diff --git a/.fern/metadata.json b/.fern/metadata.json index 3594085a7..3a835c4cc 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.3" } diff --git a/reference.md b/reference.md index ccb2348b5..f26fa38d5 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,7 @@ 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", @@ -4115,6 +4532,29 @@ await client.ats.offices.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.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" +}); +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,7 @@ 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", @@ -4397,6 +4837,29 @@ await client.ats.rejectReasons.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.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" +}); +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,33 @@ 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", + 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" +}); +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", - expand: "application", includeDeletedData: true, includeRemoteData: true, includeShellData: true, @@ -4552,6 +5036,12 @@ await client.ats.scorecards.list({ 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,27 @@ 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", + 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" +}); +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", @@ -4905,6 +5452,12 @@ await client.ats.users.list({ 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,7 +6120,7 @@ await client.crm.accounts.partialUpdate("id", {
-**id:** `string` +**request:** `Merge.accounting.AccountsListRequest`
@@ -5535,7 +6128,66 @@ await client.crm.accounts.partialUpdate("id", {
-**request:** `Merge.crm.PatchedCrmAccountEndpointRequest` +**requestOptions:** `AccountsClient.RequestOptions` + +
+
+ +
+ + + + +
+ +
client.accounting.accounts.create({ ...params }) -> Merge.AccountResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Creates an `Account` object with the given values. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.accounting.accounts.create({ + isDebugMode: true, + runAsync: true, + model: {} +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.accounting.AccountEndpointRequest`
@@ -5555,7 +6207,7 @@ await client.crm.accounts.partialUpdate("id", {
-
client.crm.accounts.metaPatchRetrieve(id) -> Merge.MetaResponse +
client.accounting.accounts.retrieve(id, { ...params }) -> Merge.Account
@@ -5567,7 +6219,7 @@ await client.crm.accounts.partialUpdate("id", {
-Returns metadata for `CRMAccount` PATCHs. +Returns an `Account` object with the given `id`.
@@ -5582,7 +6234,12 @@ Returns metadata for `CRMAccount` PATCHs.
```typescript -await client.crm.accounts.metaPatchRetrieve("id"); +await client.accounting.accounts.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + remoteFields: "classification", + showEnumOrigins: "classification" +}); ```
@@ -5606,6 +6263,14 @@ await client.crm.accounts.metaPatchRetrieve("id");
+**request:** `Merge.accounting.AccountsRetrieveRequest` + +
+
+ +
+
+ **requestOptions:** `AccountsClient.RequestOptions`
@@ -5618,7 +6283,7 @@ await client.crm.accounts.metaPatchRetrieve("id");
-
client.crm.accounts.metaPostRetrieve() -> Merge.MetaResponse +
client.accounting.accounts.metaPostRetrieve() -> Merge.MetaResponse
@@ -5630,7 +6295,7 @@ await client.crm.accounts.metaPatchRetrieve("id");
-Returns metadata for `CRMAccount` POSTs. +Returns metadata for `Account` POSTs.
@@ -5645,7 +6310,7 @@ Returns metadata for `CRMAccount` POSTs.
```typescript -await client.crm.accounts.metaPostRetrieve(); +await client.accounting.accounts.metaPostRetrieve(); ```
@@ -5673,7 +6338,8 @@ await client.crm.accounts.metaPostRetrieve();
-
client.crm.accounts.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +## Accounting Addresses +
client.accounting.addresses.retrieve(id, { ...params }) -> Merge.Address
@@ -5685,7 +6351,7 @@ await client.crm.accounts.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Returns an `Address` object with the given `id`.
@@ -5700,15 +6366,11 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.accounts.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, +await client.accounting.addresses.retrieve("id", { includeRemoteData: true, - includeRemoteFields: true, includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 + remoteFields: "type", + showEnumOrigins: "type" }); ``` @@ -5725,7 +6387,7 @@ await client.crm.accounts.remoteFieldClassesList({
-**request:** `Merge.crm.AccountsRemoteFieldClassesListRequest` +**id:** `string`
@@ -5733,7 +6395,15 @@ await client.crm.accounts.remoteFieldClassesList({
-**requestOptions:** `AccountsClient.RequestOptions` +**request:** `Merge.accounting.AddressesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `AddressesClient.RequestOptions`
@@ -5745,8 +6415,8 @@ await client.crm.accounts.remoteFieldClassesList({
-## Crm AsyncPassthrough -
client.crm.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept +## Accounting AsyncPassthrough +
client.accounting.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept
@@ -5773,7 +6443,7 @@ Asynchronously pull data from an endpoint not currently supported by Merge.
```typescript -await client.crm.asyncPassthrough.create({ +await client.accounting.asyncPassthrough.create({ method: "GET", path: "/scooters" }); @@ -5812,7 +6482,7 @@ await client.crm.asyncPassthrough.create({
-
client.crm.asyncPassthrough.retrieve(async_passthrough_receipt_id) -> Merge.AsyncPassthroughRetrieveResponse +
client.accounting.asyncPassthrough.retrieve(async_passthrough_receipt_id) -> Merge.AsyncPassthroughRetrieveResponse
@@ -5839,7 +6509,7 @@ Retrieves data from earlier async-passthrough POST request
```typescript -await client.crm.asyncPassthrough.retrieve("async_passthrough_receipt_id"); +await client.accounting.asyncPassthrough.retrieve("async_passthrough_receipt_id"); ```
@@ -5875,8 +6545,8 @@ await client.crm.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-## Crm AuditTrail -
client.crm.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList +## Accounting AsyncTasks +
client.accounting.asyncTasks.retrieve(id) -> Merge.AsyncPostTask
@@ -5888,7 +6558,7 @@ await client.crm.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-Gets a list of audit trail events. +Returns an `AsyncPostTask` object with the given `id`.
@@ -5903,14 +6573,7 @@ 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.asyncTasks.retrieve("id"); ```
@@ -5926,7 +6589,7 @@ await client.crm.auditTrail.list({
-**request:** `Merge.crm.AuditTrailListRequest` +**id:** `string`
@@ -5934,7 +6597,7 @@ await client.crm.auditTrail.list({
-**requestOptions:** `AuditTrailClient.RequestOptions` +**requestOptions:** `AsyncTasksClient.RequestOptions`
@@ -5946,8 +6609,8 @@ await client.crm.auditTrail.list({
-## Crm AvailableActions -
client.crm.availableActions.retrieve() -> Merge.AvailableActions +## Accounting Attachments +
client.accounting.attachments.list({ ...params }) -> core.Page
@@ -5959,7 +6622,7 @@ await client.crm.auditTrail.list({
-Returns a list of models and actions available for an account. +Returns a list of `AccountingAttachment` objects.
@@ -5974,7 +6637,43 @@ Returns a list of models and actions available for an account.
```typescript -await client.crm.availableActions.retrieve(); +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; ```
@@ -5990,7 +6689,15 @@ await client.crm.availableActions.retrieve();
-**requestOptions:** `AvailableActionsClient.RequestOptions` +**request:** `Merge.accounting.AttachmentsListRequest` + +
+
+ +
+
+ +**requestOptions:** `AttachmentsClient.RequestOptions`
@@ -6002,8 +6709,7 @@ await client.crm.availableActions.retrieve();
-## Crm Contacts -
client.crm.contacts.list({ ...params }) -> Merge.PaginatedContactList +
client.accounting.attachments.create({ ...params }) -> Merge.AccountingAttachmentResponse
@@ -6015,7 +6721,7 @@ await client.crm.availableActions.retrieve();
-Returns a list of `Contact` objects. +Creates an `AccountingAttachment` object with the given values.
@@ -6030,22 +6736,10 @@ 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.attachments.create({ + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -6062,7 +6756,7 @@ await client.crm.contacts.list({
-**request:** `Merge.crm.ContactsListRequest` +**request:** `Merge.accounting.AccountingAttachmentEndpointRequest`
@@ -6070,7 +6764,7 @@ await client.crm.contacts.list({
-**requestOptions:** `ContactsClient.RequestOptions` +**requestOptions:** `AttachmentsClient.RequestOptions`
@@ -6082,7 +6776,7 @@ await client.crm.contacts.list({
-
client.crm.contacts.create({ ...params }) -> Merge.CrmContactResponse +
client.accounting.attachments.retrieve(id, { ...params }) -> Merge.AccountingAttachment
@@ -6094,7 +6788,7 @@ await client.crm.contacts.list({
-Creates a `Contact` object with the given values. +Returns an `AccountingAttachment` object with the given `id`.
@@ -6109,10 +6803,9 @@ Creates a `Contact` object with the given values.
```typescript -await client.crm.contacts.create({ - isDebugMode: true, - runAsync: true, - model: {} +await client.accounting.attachments.retrieve("id", { + includeRemoteData: true, + includeShellData: true }); ``` @@ -6129,7 +6822,7 @@ await client.crm.contacts.create({
-**request:** `Merge.crm.CrmContactEndpointRequest` +**id:** `string`
@@ -6137,7 +6830,15 @@ await client.crm.contacts.create({
-**requestOptions:** `ContactsClient.RequestOptions` +**request:** `Merge.accounting.AttachmentsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `AttachmentsClient.RequestOptions`
@@ -6149,7 +6850,7 @@ await client.crm.contacts.create({
-
client.crm.contacts.retrieve(id, { ...params }) -> Merge.Contact +
client.accounting.attachments.metaPostRetrieve() -> Merge.MetaResponse
@@ -6161,7 +6862,7 @@ await client.crm.contacts.create({
-Returns a `Contact` object with the given `id`. +Returns metadata for `AccountingAttachment` POSTs.
@@ -6176,12 +6877,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.attachments.metaPostRetrieve(); ```
@@ -6197,23 +6893,7 @@ await client.crm.contacts.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.ContactsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `ContactsClient.RequestOptions` +**requestOptions:** `AttachmentsClient.RequestOptions`
@@ -6225,7 +6905,8 @@ await client.crm.contacts.retrieve("id", {
-
client.crm.contacts.partialUpdate(id, { ...params }) -> Merge.CrmContactResponse +## Accounting AuditTrail +
client.accounting.auditTrail.list({ ...params }) -> core.Page
@@ -6237,7 +6918,7 @@ await client.crm.contacts.retrieve("id", {
-Updates a `Contact` object with the given `id`. +Gets a list of audit trail events.
@@ -6252,11 +6933,33 @@ 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.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; ```
@@ -6272,7 +6975,7 @@ await client.crm.contacts.partialUpdate("id", {
-**id:** `string` +**request:** `Merge.accounting.AuditTrailListRequest`
@@ -6280,15 +6983,63 @@ await client.crm.contacts.partialUpdate("id", {
-**request:** `Merge.crm.PatchedCrmContactEndpointRequest` +**requestOptions:** `AuditTrailClient.RequestOptions`
+ +
+ + + +
+ +## Accounting AvailableActions +
client.accounting.availableActions.retrieve() -> Merge.AvailableActions
-**requestOptions:** `ContactsClient.RequestOptions` +#### 📝 Description + +
+
+ +
+
+ +Returns a list of models and actions available for an account. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.accounting.availableActions.retrieve(); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `AvailableActionsClient.RequestOptions`
@@ -6300,7 +7051,8 @@ await client.crm.contacts.partialUpdate("id", {
-
client.crm.contacts.ignoreCreate(model_id, { ...params }) -> void +## Accounting BalanceSheets +
client.accounting.balanceSheets.list({ ...params }) -> core.Page
@@ -6312,7 +7064,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. +Returns a list of `BalanceSheet` objects.
@@ -6327,9 +7079,43 @@ 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" +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; ```
@@ -6345,15 +7131,7 @@ await client.crm.contacts.ignoreCreate("model_id", {
-**model_id:** `string` - -
-
- -
-
- -**request:** `Merge.IgnoreCommonModelRequest` +**request:** `Merge.accounting.BalanceSheetsListRequest`
@@ -6361,7 +7139,7 @@ await client.crm.contacts.ignoreCreate("model_id", {
-**requestOptions:** `ContactsClient.RequestOptions` +**requestOptions:** `BalanceSheetsClient.RequestOptions`
@@ -6373,7 +7151,7 @@ await client.crm.contacts.ignoreCreate("model_id", {
-
client.crm.contacts.metaPatchRetrieve(id) -> Merge.MetaResponse +
client.accounting.balanceSheets.retrieve(id, { ...params }) -> Merge.BalanceSheet
@@ -6385,7 +7163,7 @@ await client.crm.contacts.ignoreCreate("model_id", {
-Returns metadata for `CRMContact` PATCHs. +Returns a `BalanceSheet` object with the given `id`.
@@ -6400,7 +7178,10 @@ Returns metadata for `CRMContact` PATCHs.
```typescript -await client.crm.contacts.metaPatchRetrieve("id"); +await client.accounting.balanceSheets.retrieve("id", { + includeRemoteData: true, + includeShellData: true +}); ```
@@ -6424,7 +7205,15 @@ await client.crm.contacts.metaPatchRetrieve("id");
-**requestOptions:** `ContactsClient.RequestOptions` +**request:** `Merge.accounting.BalanceSheetsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `BalanceSheetsClient.RequestOptions`
@@ -6436,7 +7225,8 @@ await client.crm.contacts.metaPatchRetrieve("id");
-
client.crm.contacts.metaPostRetrieve() -> Merge.MetaResponse +## Accounting BankFeedAccounts +
client.accounting.bankFeedAccounts.list({ ...params }) -> core.Page
@@ -6448,7 +7238,7 @@ await client.crm.contacts.metaPatchRetrieve("id");
-Returns metadata for `CRMContact` POSTs. +Returns a list of `BankFeedAccount` objects.
@@ -6463,7 +7253,31 @@ Returns metadata for `CRMContact` POSTs.
```typescript -await client.crm.contacts.metaPostRetrieve(); +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; ```
@@ -6479,7 +7293,15 @@ await client.crm.contacts.metaPostRetrieve();
-**requestOptions:** `ContactsClient.RequestOptions` +**request:** `Merge.accounting.BankFeedAccountsListRequest` + +
+
+ +
+
+ +**requestOptions:** `BankFeedAccountsClient.RequestOptions`
@@ -6491,7 +7313,7 @@ await client.crm.contacts.metaPostRetrieve();
-
client.crm.contacts.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.accounting.bankFeedAccounts.create({ ...params }) -> Merge.BankFeedAccountResponse
@@ -6503,7 +7325,7 @@ await client.crm.contacts.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Creates a `BankFeedAccount` object with the given values.
@@ -6518,15 +7340,10 @@ 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.bankFeedAccounts.create({ + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -6543,7 +7360,7 @@ await client.crm.contacts.remoteFieldClassesList({
-**request:** `Merge.crm.ContactsRemoteFieldClassesListRequest` +**request:** `Merge.accounting.BankFeedAccountEndpointRequest`
@@ -6551,7 +7368,7 @@ await client.crm.contacts.remoteFieldClassesList({
-**requestOptions:** `ContactsClient.RequestOptions` +**requestOptions:** `BankFeedAccountsClient.RequestOptions`
@@ -6563,8 +7380,7 @@ await client.crm.contacts.remoteFieldClassesList({
-## Crm CustomObjectClasses -
client.crm.customObjectClasses.list({ ...params }) -> Merge.PaginatedCustomObjectClassList +
client.accounting.bankFeedAccounts.retrieve(id, { ...params }) -> Merge.BankFeedAccount
@@ -6576,7 +7392,7 @@ await client.crm.contacts.remoteFieldClassesList({
-Returns a list of `CustomObjectClass` objects. +Returns a `BankFeedAccount` object with the given `id`.
@@ -6591,18 +7407,9 @@ 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, +await client.accounting.bankFeedAccounts.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, - remoteId: "remote_id" + includeShellData: true }); ``` @@ -6619,7 +7426,7 @@ await client.crm.customObjectClasses.list({
-**request:** `Merge.crm.CustomObjectClassesListRequest` +**id:** `string`
@@ -6627,7 +7434,15 @@ await client.crm.customObjectClasses.list({
-**requestOptions:** `CustomObjectClassesClient.RequestOptions` +**request:** `Merge.accounting.BankFeedAccountsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `BankFeedAccountsClient.RequestOptions`
@@ -6639,7 +7454,7 @@ await client.crm.customObjectClasses.list({
-
client.crm.customObjectClasses.retrieve(id, { ...params }) -> Merge.CustomObjectClass +
client.accounting.bankFeedAccounts.metaPostRetrieve() -> Merge.MetaResponse
@@ -6651,7 +7466,7 @@ await client.crm.customObjectClasses.list({
-Returns a `CustomObjectClass` object with the given `id`. +Returns metadata for `BankFeedAccount` POSTs.
@@ -6666,11 +7481,7 @@ Returns a `CustomObjectClass` object with the given `id`.
```typescript -await client.crm.customObjectClasses.retrieve("id", { - expand: "fields", - includeRemoteData: true, - includeShellData: true -}); +await client.accounting.bankFeedAccounts.metaPostRetrieve(); ```
@@ -6686,23 +7497,7 @@ await client.crm.customObjectClasses.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CustomObjectClassesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `CustomObjectClassesClient.RequestOptions` +**requestOptions:** `BankFeedAccountsClient.RequestOptions`
@@ -6714,8 +7509,8 @@ await client.crm.customObjectClasses.retrieve("id", {
-## Crm AssociationTypes -
client.crm.associationTypes.customObjectClassesAssociationTypesList(custom_object_class_id, { ...params }) -> Merge.PaginatedAssociationTypeList +## Accounting BankFeedTransactions +
client.accounting.bankFeedTransactions.list({ ...params }) -> core.Page
@@ -6727,7 +7522,7 @@ await client.crm.customObjectClasses.retrieve("id", {
-Returns a list of `AssociationType` objects. +Returns a list of `BankFeedTransaction` objects.
@@ -6742,19 +7537,43 @@ Returns a list of `AssociationType` objects.
```typescript -await client.crm.associationTypes.customObjectClassesAssociationTypesList("custom_object_class_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: "target_object_classes", 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; ```
@@ -6770,15 +7589,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesList("custo
-**custom_object_class_id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CustomObjectClassesAssociationTypesListRequest` +**request:** `Merge.accounting.BankFeedTransactionsListRequest`
@@ -6786,7 +7597,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesList("custo
-**requestOptions:** `AssociationTypesClient.RequestOptions` +**requestOptions:** `BankFeedTransactionsClient.RequestOptions`
@@ -6798,7 +7609,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesList("custo
-
client.crm.associationTypes.customObjectClassesAssociationTypesCreate(custom_object_class_id, { ...params }) -> Merge.CrmAssociationTypeResponse +
client.accounting.bankFeedTransactions.create({ ...params }) -> Merge.BankFeedTransactionResponse
@@ -6810,7 +7621,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesList("custo
-Creates an `AssociationType` object with the given values. +Creates a `BankFeedTransaction` object with the given values.
@@ -6825,20 +7636,10 @@ Creates an `AssociationType` object with the given values.
```typescript -await client.crm.associationTypes.customObjectClassesAssociationTypesCreate("custom_object_class_id", { +await client.accounting.bankFeedTransactions.create({ isDebugMode: true, runAsync: true, - model: { - sourceObjectClass: { - id: "id", - originType: "CUSTOM_OBJECT" - }, - targetObjectClasses: [{ - id: "id", - originType: "CUSTOM_OBJECT" - }], - remoteKeyName: "remote_key_name" - } + model: {} }); ``` @@ -6855,15 +7656,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesCreate("cus
-**custom_object_class_id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CrmAssociationTypeEndpointRequest` +**request:** `Merge.accounting.BankFeedTransactionEndpointRequest`
@@ -6871,7 +7664,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesCreate("cus
-**requestOptions:** `AssociationTypesClient.RequestOptions` +**requestOptions:** `BankFeedTransactionsClient.RequestOptions`
@@ -6883,7 +7676,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesCreate("cus
-
client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve(custom_object_class_id, id, { ...params }) -> Merge.AssociationType +
client.accounting.bankFeedTransactions.retrieve(id, { ...params }) -> Merge.BankFeedTransaction
@@ -6895,7 +7688,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesCreate("cus
-Returns an `AssociationType` object with the given `id`. +Returns a `BankFeedTransaction` object with the given `id`.
@@ -6910,8 +7703,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.bankFeedTransactions.retrieve("id", { includeRemoteData: true, includeShellData: true }); @@ -6930,14 +7722,6 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("c
-**custom_object_class_id:** `string` - -
-
- -
-
- **id:** `string`
@@ -6946,7 +7730,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("c
-**request:** `Merge.crm.CustomObjectClassesAssociationTypesRetrieveRequest` +**request:** `Merge.accounting.BankFeedTransactionsRetrieveRequest`
@@ -6954,7 +7738,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("c
-**requestOptions:** `AssociationTypesClient.RequestOptions` +**requestOptions:** `BankFeedTransactionsClient.RequestOptions`
@@ -6966,7 +7750,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("c
-
client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRetrieve(custom_object_class_id) -> Merge.MetaResponse +
client.accounting.bankFeedTransactions.metaPostRetrieve() -> Merge.MetaResponse
@@ -6978,7 +7762,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("c
-Returns metadata for `CRMAssociationType` POSTs. +Returns metadata for `BankFeedTransaction` POSTs.
@@ -6993,7 +7777,7 @@ Returns metadata for `CRMAssociationType` POSTs.
```typescript -await client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRetrieve("custom_object_class_id"); +await client.accounting.bankFeedTransactions.metaPostRetrieve(); ```
@@ -7009,15 +7793,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRet
-**custom_object_class_id:** `string` - -
-
- -
-
- -**requestOptions:** `AssociationTypesClient.RequestOptions` +**requestOptions:** `BankFeedTransactionsClient.RequestOptions`
@@ -7029,8 +7805,8 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRet
-## Crm CustomObjects -
client.crm.customObjects.customObjectClassesCustomObjectsList(custom_object_class_id, { ...params }) -> Merge.PaginatedCustomObjectList +## Accounting CashFlowStatements +
client.accounting.cashFlowStatements.list({ ...params }) -> core.Page
@@ -7042,7 +7818,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRet
-Returns a list of `CustomObject` objects. +Returns a list of `CashFlowStatement` objects.
@@ -7057,19 +7833,43 @@ Returns a list of `CustomObject` objects.
```typescript -await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_object_class_id", { +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); +} + +// 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; ```
@@ -7085,15 +7885,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_obje
-**custom_object_class_id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CustomObjectClassesCustomObjectsListRequest` +**request:** `Merge.accounting.CashFlowStatementsListRequest`
@@ -7101,7 +7893,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_obje
-**requestOptions:** `CustomObjectsClient.RequestOptions` +**requestOptions:** `CashFlowStatementsClient.RequestOptions`
@@ -7113,7 +7905,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_obje
-
client.crm.customObjects.customObjectClassesCustomObjectsCreate(custom_object_class_id, { ...params }) -> Merge.CrmCustomObjectResponse +
client.accounting.cashFlowStatements.retrieve(id, { ...params }) -> Merge.CashFlowStatement
@@ -7125,7 +7917,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_obje
-Creates a `CustomObject` object with the given values. +Returns a `CashFlowStatement` object with the given `id`.
@@ -7140,14 +7932,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.cashFlowStatements.retrieve("id", { + includeRemoteData: true, + includeShellData: true }); ``` @@ -7164,7 +7951,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_ob
-**custom_object_class_id:** `string` +**id:** `string`
@@ -7172,7 +7959,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_ob
-**request:** `Merge.crm.CrmCustomObjectEndpointRequest` +**request:** `Merge.accounting.CashFlowStatementsRetrieveRequest`
@@ -7180,7 +7967,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_ob
-**requestOptions:** `CustomObjectsClient.RequestOptions` +**requestOptions:** `CashFlowStatementsClient.RequestOptions`
@@ -7192,7 +7979,8 @@ await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_ob
-
client.crm.customObjects.customObjectClassesCustomObjectsRetrieve(custom_object_class_id, id, { ...params }) -> Merge.CustomObject +## Accounting CompanyInfo +
client.accounting.companyInfo.list({ ...params }) -> core.Page
@@ -7204,7 +7992,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_ob
-Returns a `CustomObject` object with the given `id`. +Returns a list of `CompanyInfo` objects.
@@ -7219,11 +8007,43 @@ Returns a `CustomObject` object with the given `id`.
```typescript -await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve("custom_object_class_id", "id", { +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 + 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.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; ```
@@ -7239,23 +8059,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve("custom_
-**custom_object_class_id:** `string` - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CustomObjectClassesCustomObjectsRetrieveRequest` +**request:** `Merge.accounting.CompanyInfoListRequest`
@@ -7263,7 +8067,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve("custom_
-**requestOptions:** `CustomObjectsClient.RequestOptions` +**requestOptions:** `CompanyInfoClient.RequestOptions`
@@ -7275,7 +8079,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve("custom_
-
client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve(custom_object_class_id) -> Merge.MetaResponse +
client.accounting.companyInfo.retrieve(id, { ...params }) -> Merge.CompanyInfo
@@ -7287,7 +8091,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve("custom_
-Returns metadata for `CRMCustomObject` POSTs. +Returns a `CompanyInfo` object with the given `id`.
@@ -7302,7 +8106,10 @@ Returns metadata for `CRMCustomObject` POSTs.
```typescript -await client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve("custom_object_class_id"); +await client.accounting.companyInfo.retrieve("id", { + includeRemoteData: true, + includeShellData: true +}); ```
@@ -7318,7 +8125,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve(
-**custom_object_class_id:** `string` +**id:** `string`
@@ -7326,7 +8133,15 @@ await client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve(
-**requestOptions:** `CustomObjectsClient.RequestOptions` +**request:** `Merge.accounting.CompanyInfoRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `CompanyInfoClient.RequestOptions`
@@ -7338,7 +8153,8 @@ await client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve(
-
client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +## Accounting Contacts +
client.accounting.contacts.list({ ...params }) -> core.Page
@@ -7350,7 +8166,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve(
-Returns a list of `RemoteFieldClass` objects. +Returns a list of `Contact` objects.
@@ -7365,16 +8181,59 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClassesList({ +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, - 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: "" }); +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; ```
@@ -7390,7 +8249,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClasse
-**request:** `Merge.crm.CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest` +**request:** `Merge.accounting.ContactsListRequest`
@@ -7398,7 +8257,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClasse
-**requestOptions:** `CustomObjectsClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -7410,8 +8269,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClasse
-## Crm Associations -
client.crm.associations.customObjectClassesCustomObjectsAssociationsList(custom_object_class_id, object_id, { ...params }) -> Merge.PaginatedAssociationList +
client.accounting.contacts.create({ ...params }) -> Merge.ContactResponse
@@ -7423,7 +8281,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClasse
-Returns a list of `Association` objects. +Creates a `Contact` object with the given values.
@@ -7438,19 +8296,10 @@ Returns a list of `Association` objects.
```typescript -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: "association_type", - 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.contacts.create({ + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -7467,23 +8316,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsList("
-**custom_object_class_id:** `string` - -
-
- -
-
- -**object_id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CustomObjectClassesCustomObjectsAssociationsListRequest` +**request:** `Merge.accounting.ContactEndpointRequest`
@@ -7491,7 +8324,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsList("
-**requestOptions:** `AssociationsClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -7503,7 +8336,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.contacts.retrieve(id, { ...params }) -> Merge.Contact
@@ -7515,7 +8348,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsList("
-Creates an Association between `source_object_id` and `target_object_id` of type `association_type_id`. +Returns a `Contact` object with the given `id`.
@@ -7530,9 +8363,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", { - isDebugMode: true, - runAsync: true +await client.accounting.contacts.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + remoteFields: "status", + showEnumOrigins: "status" }); ``` @@ -7549,7 +8385,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate
-**source_class_id:** `string` +**id:** `string`
@@ -7557,7 +8393,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate
-**source_object_id:** `string` +**request:** `Merge.accounting.ContactsRetrieveRequest`
@@ -7565,23 +8401,66 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate
-**target_class_id:** `string` +**requestOptions:** `ContactsClient.RequestOptions`
+
+
+ + + + +
+
client.accounting.contacts.partialUpdate(id, { ...params }) -> Merge.ContactResponse
-**target_object_id:** `string` - +#### 📝 Description + +
+
+ +
+
+ +Updates a `Contact` object with the given `id`. +
+
+#### 🔌 Usage +
-**association_type_id:** `string` +
+
+ +```typescript +await client.accounting.contacts.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {} +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `string`
@@ -7589,7 +8468,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate
-**request:** `Merge.crm.CustomObjectClassesCustomObjectsAssociationsUpdateRequest` +**request:** `Merge.accounting.PatchedContactEndpointRequest`
@@ -7597,7 +8476,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate
-**requestOptions:** `AssociationsClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -7609,8 +8488,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate
-## Crm Scopes -
client.crm.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi +
client.accounting.contacts.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -7622,7 +8500,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 metadata for `Contact` PATCHs.
@@ -7637,7 +8515,7 @@ Get the default permissions for Merge Common Models and fields across all Linked
```typescript -await client.crm.scopes.defaultScopesRetrieve(); +await client.accounting.contacts.metaPatchRetrieve("id"); ```
@@ -7653,7 +8531,15 @@ await client.crm.scopes.defaultScopesRetrieve();
-**requestOptions:** `ScopesClient.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**requestOptions:** `ContactsClient.RequestOptions`
@@ -7665,7 +8551,7 @@ await client.crm.scopes.defaultScopesRetrieve();
-
client.crm.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi +
client.accounting.contacts.metaPostRetrieve() -> Merge.MetaResponse
@@ -7677,7 +8563,7 @@ await client.crm.scopes.defaultScopesRetrieve();
-Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Returns metadata for `Contact` POSTs.
@@ -7692,7 +8578,7 @@ Get all available permissions for Merge Common Models and fields for a single Li
```typescript -await client.crm.scopes.linkedAccountScopesRetrieve(); +await client.accounting.contacts.metaPostRetrieve(); ```
@@ -7708,7 +8594,7 @@ await client.crm.scopes.linkedAccountScopesRetrieve();
-**requestOptions:** `ScopesClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -7720,7 +8606,7 @@ await client.crm.scopes.linkedAccountScopesRetrieve();
-
client.crm.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi +
client.accounting.contacts.remoteFieldClassesList({ ...params }) -> core.Page
@@ -7732,7 +8618,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 a list of `RemoteFieldClass` objects.
@@ -7747,30 +8633,35 @@ 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 - } - } - }] +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; ```
@@ -7786,7 +8677,7 @@ await client.crm.scopes.linkedAccountScopesCreate({
-**request:** `Merge.crm.LinkedAccountCommonModelScopeDeserializerRequest` +**request:** `Merge.accounting.ContactsRemoteFieldClassesListRequest`
@@ -7794,7 +8685,7 @@ await client.crm.scopes.linkedAccountScopesCreate({
-**requestOptions:** `ScopesClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -7806,8 +8697,8 @@ await client.crm.scopes.linkedAccountScopesCreate({
-## Crm DeleteAccount -
client.crm.deleteAccount.delete() -> void +## Accounting CreditNotes +
client.accounting.creditNotes.list({ ...params }) -> core.Page
@@ -7819,7 +8710,7 @@ await client.crm.scopes.linkedAccountScopesCreate({
-Delete a linked account. +Returns a list of `CreditNote` objects.
@@ -7834,7 +8725,51 @@ Delete a linked account.
```typescript -await client.crm.deleteAccount.delete(); +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; ```
@@ -7850,7 +8785,15 @@ await client.crm.deleteAccount.delete();
-**requestOptions:** `DeleteAccountClient.RequestOptions` +**request:** `Merge.accounting.CreditNotesListRequest` + +
+
+ +
+
+ +**requestOptions:** `CreditNotesClient.RequestOptions`
@@ -7862,8 +8805,7 @@ await client.crm.deleteAccount.delete();
-## Crm EngagementTypes -
client.crm.engagementTypes.list({ ...params }) -> Merge.PaginatedEngagementTypeList +
client.accounting.creditNotes.create({ ...params }) -> Merge.CreditNoteResponse
@@ -7875,7 +8817,7 @@ await client.crm.deleteAccount.delete();
-Returns a list of `EngagementType` objects. +Creates a `CreditNote` object with the given values.
@@ -7890,18 +8832,10 @@ Returns a list of `EngagementType` objects.
```typescript -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" +await client.accounting.creditNotes.create({ + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -7918,7 +8852,7 @@ await client.crm.engagementTypes.list({
-**request:** `Merge.crm.EngagementTypesListRequest` +**request:** `Merge.accounting.CreditNoteEndpointRequest`
@@ -7926,7 +8860,7 @@ await client.crm.engagementTypes.list({
-**requestOptions:** `EngagementTypesClient.RequestOptions` +**requestOptions:** `CreditNotesClient.RequestOptions`
@@ -7938,7 +8872,7 @@ await client.crm.engagementTypes.list({
-
client.crm.engagementTypes.retrieve(id, { ...params }) -> Merge.EngagementType +
client.accounting.creditNotes.retrieve(id, { ...params }) -> Merge.CreditNote
@@ -7950,7 +8884,7 @@ await client.crm.engagementTypes.list({
-Returns an `EngagementType` object with the given `id`. +Returns a `CreditNote` object with the given `id`.
@@ -7965,10 +8899,11 @@ Returns an `EngagementType` object with the given `id`.
```typescript -await client.crm.engagementTypes.retrieve("id", { +await client.accounting.creditNotes.retrieve("id", { includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true + includeShellData: true, + remoteFields: "status", + showEnumOrigins: "status" }); ``` @@ -7993,7 +8928,7 @@ await client.crm.engagementTypes.retrieve("id", {
-**request:** `Merge.crm.EngagementTypesRetrieveRequest` +**request:** `Merge.accounting.CreditNotesRetrieveRequest`
@@ -8001,7 +8936,7 @@ await client.crm.engagementTypes.retrieve("id", {
-**requestOptions:** `EngagementTypesClient.RequestOptions` +**requestOptions:** `CreditNotesClient.RequestOptions`
@@ -8013,7 +8948,7 @@ await client.crm.engagementTypes.retrieve("id", {
-
client.crm.engagementTypes.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.accounting.creditNotes.partialUpdate(id, { ...params }) -> Merge.CreditNoteResponse
@@ -8025,7 +8960,7 @@ await client.crm.engagementTypes.retrieve("id", {
-Returns a list of `RemoteFieldClass` objects. +Updates a `CreditNote` object with the given `id`.
@@ -8040,15 +8975,10 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.engagementTypes.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 +await client.accounting.creditNotes.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -8065,7 +8995,7 @@ await client.crm.engagementTypes.remoteFieldClassesList({
-**request:** `Merge.crm.EngagementTypesRemoteFieldClassesListRequest` +**id:** `string`
@@ -8073,7 +9003,15 @@ await client.crm.engagementTypes.remoteFieldClassesList({
-**requestOptions:** `EngagementTypesClient.RequestOptions` +**request:** `Merge.accounting.PatchedCreditNoteEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `CreditNotesClient.RequestOptions`
@@ -8085,8 +9023,7 @@ await client.crm.engagementTypes.remoteFieldClassesList({
-## Crm Engagements -
client.crm.engagements.list({ ...params }) -> Merge.PaginatedEngagementList +
client.accounting.creditNotes.applicationCreate(id, { ...params }) -> Merge.CreditNoteResponse
@@ -8098,7 +9035,7 @@ await client.crm.engagementTypes.remoteFieldClassesList({
-Returns a list of `Engagement` objects. +Creates a new CreditNoteApplyLine to apply a credit note to an invoice
@@ -8113,21 +9050,11 @@ 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, - 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") +await client.accounting.creditNotes.applicationCreate("id", { + isDebugMode: true, + runAsync: true, + appliedDate: new Date("2024-01-15T09:30:00.000Z"), + appliedAmount: "applied_amount" }); ``` @@ -8144,7 +9071,7 @@ await client.crm.engagements.list({
-**request:** `Merge.crm.EngagementsListRequest` +**id:** `string`
@@ -8152,7 +9079,15 @@ await client.crm.engagements.list({
-**requestOptions:** `EngagementsClient.RequestOptions` +**request:** `Merge.accounting.ApplyCreditNoteRequest` + +
+
+ +
+
+ +**requestOptions:** `CreditNotesClient.RequestOptions`
@@ -8164,7 +9099,7 @@ await client.crm.engagements.list({
-
client.crm.engagements.create({ ...params }) -> Merge.EngagementResponse +
client.accounting.creditNotes.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -8176,7 +9111,7 @@ await client.crm.engagements.list({
-Creates an `Engagement` object with the given values. +Returns metadata for `CreditNote` PATCHs.
@@ -8191,11 +9126,7 @@ Creates an `Engagement` object with the given values.
```typescript -await client.crm.engagements.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); +await client.accounting.creditNotes.metaPatchRetrieve("id"); ```
@@ -8211,7 +9142,7 @@ await client.crm.engagements.create({
-**request:** `Merge.crm.EngagementEndpointRequest` +**id:** `string`
@@ -8219,7 +9150,7 @@ await client.crm.engagements.create({
-**requestOptions:** `EngagementsClient.RequestOptions` +**requestOptions:** `CreditNotesClient.RequestOptions`
@@ -8231,7 +9162,7 @@ await client.crm.engagements.create({
-
client.crm.engagements.retrieve(id, { ...params }) -> Merge.Engagement +
client.accounting.creditNotes.metaPostRetrieve() -> Merge.MetaResponse
@@ -8243,7 +9174,7 @@ await client.crm.engagements.create({
-Returns an `Engagement` object with the given `id`. +Returns metadata for `CreditNote` POSTs.
@@ -8258,12 +9189,7 @@ 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.creditNotes.metaPostRetrieve(); ```
@@ -8279,23 +9205,7 @@ await client.crm.engagements.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.EngagementsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `EngagementsClient.RequestOptions` +**requestOptions:** `CreditNotesClient.RequestOptions`
@@ -8307,7 +9217,8 @@ await client.crm.engagements.retrieve("id", {
-
client.crm.engagements.partialUpdate(id, { ...params }) -> Merge.EngagementResponse +## Accounting Scopes +
client.accounting.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -8319,7 +9230,7 @@ await client.crm.engagements.retrieve("id", {
-Updates an `Engagement` 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).
@@ -8334,11 +9245,7 @@ Updates an `Engagement` object with the given `id`.
```typescript -await client.crm.engagements.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {} -}); +await client.accounting.scopes.defaultScopesRetrieve(); ```
@@ -8354,23 +9261,62 @@ await client.crm.engagements.partialUpdate("id", {
-**id:** `string` +**requestOptions:** `ScopesClient.RequestOptions`
+ +
+ + + + +
+ +
client.accounting.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi +
+
+ +#### 📝 Description
-**request:** `Merge.crm.PatchedEngagementEndpointRequest` - +
+
+ +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 +
-**requestOptions:** `EngagementsClient.RequestOptions` +
+
+ +```typescript +await client.accounting.scopes.linkedAccountScopesRetrieve(); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `ScopesClient.RequestOptions`
@@ -8382,7 +9328,7 @@ await client.crm.engagements.partialUpdate("id", {
-
client.crm.engagements.metaPatchRetrieve(id) -> Merge.MetaResponse +
client.accounting.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi
@@ -8394,7 +9340,7 @@ await client.crm.engagements.partialUpdate("id", {
-Returns metadata for `Engagement` PATCHs. +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)
@@ -8409,7 +9355,30 @@ Returns metadata for `Engagement` PATCHs.
```typescript -await client.crm.engagements.metaPatchRetrieve("id"); +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 + } + } + }] +}); ```
@@ -8425,7 +9394,7 @@ await client.crm.engagements.metaPatchRetrieve("id");
-**id:** `string` +**request:** `Merge.accounting.LinkedAccountCommonModelScopeDeserializerRequest`
@@ -8433,7 +9402,7 @@ await client.crm.engagements.metaPatchRetrieve("id");
-**requestOptions:** `EngagementsClient.RequestOptions` +**requestOptions:** `ScopesClient.RequestOptions`
@@ -8445,7 +9414,8 @@ await client.crm.engagements.metaPatchRetrieve("id");
-
client.crm.engagements.metaPostRetrieve() -> Merge.MetaResponse +## Accounting DeleteAccount +
client.accounting.deleteAccount.delete() -> void
@@ -8457,7 +9427,7 @@ await client.crm.engagements.metaPatchRetrieve("id");
-Returns metadata for `Engagement` POSTs. +Delete a linked account.
@@ -8472,7 +9442,7 @@ Returns metadata for `Engagement` POSTs.
```typescript -await client.crm.engagements.metaPostRetrieve(); +await client.accounting.deleteAccount.delete(); ```
@@ -8488,7 +9458,7 @@ await client.crm.engagements.metaPostRetrieve();
-**requestOptions:** `EngagementsClient.RequestOptions` +**requestOptions:** `DeleteAccountClient.RequestOptions`
@@ -8500,7 +9470,8 @@ await client.crm.engagements.metaPostRetrieve();
-
client.crm.engagements.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +## Accounting Employees +
client.accounting.employees.list({ ...params }) -> core.Page
@@ -8512,7 +9483,7 @@ await client.crm.engagements.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Returns a list of `Employee` objects.
@@ -8527,16 +9498,43 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.engagements.remoteFieldClassesList({ +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, - 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.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; ```
@@ -8552,7 +9550,7 @@ await client.crm.engagements.remoteFieldClassesList({
-**request:** `Merge.crm.EngagementsRemoteFieldClassesListRequest` +**request:** `Merge.accounting.EmployeesListRequest`
@@ -8560,7 +9558,7 @@ await client.crm.engagements.remoteFieldClassesList({
-**requestOptions:** `EngagementsClient.RequestOptions` +**requestOptions:** `EmployeesClient.RequestOptions`
@@ -8572,8 +9570,7 @@ await client.crm.engagements.remoteFieldClassesList({
-## Crm FieldMapping -
client.crm.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse +
client.accounting.employees.retrieve(id, { ...params }) -> Merge.Employee
@@ -8585,7 +9582,7 @@ await client.crm.engagements.remoteFieldClassesList({
-Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). +Returns an `Employee` object with the given `id`.
@@ -8600,8 +9597,9 @@ Get all Field Mappings for this Linked Account. Field Mappings are mappings betw
```typescript -await client.crm.fieldMapping.fieldMappingsRetrieve({ - excludeRemoteFieldMetadata: true +await client.accounting.employees.retrieve("id", { + includeRemoteData: true, + includeShellData: true }); ``` @@ -8618,7 +9616,7 @@ await client.crm.fieldMapping.fieldMappingsRetrieve({
-**request:** `Merge.crm.FieldMappingsRetrieveRequest` +**id:** `string`
@@ -8626,7 +9624,15 @@ await client.crm.fieldMapping.fieldMappingsRetrieve({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**request:** `Merge.accounting.EmployeesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `EmployeesClient.RequestOptions`
@@ -8638,7 +9644,8 @@ await client.crm.fieldMapping.fieldMappingsRetrieve({
-
client.crm.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse +## Accounting ExpenseReports +
client.accounting.expenseReports.list({ ...params }) -> core.Page
@@ -8650,7 +9657,7 @@ await client.crm.fieldMapping.fieldMappingsRetrieve({
-Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Returns a list of `ExpenseReport` objects.
@@ -8665,15 +9672,45 @@ 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" +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; ```
@@ -8689,7 +9726,7 @@ await client.crm.fieldMapping.fieldMappingsCreate({
-**request:** `Merge.crm.CreateFieldMappingRequest` +**request:** `Merge.accounting.ExpenseReportsListRequest`
@@ -8697,7 +9734,7 @@ await client.crm.fieldMapping.fieldMappingsCreate({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `ExpenseReportsClient.RequestOptions`
@@ -8709,7 +9746,7 @@ await client.crm.fieldMapping.fieldMappingsCreate({
-
client.crm.fieldMapping.fieldMappingsDestroy(field_mapping_id) -> Merge.FieldMappingInstanceResponse +
client.accounting.expenseReports.create({ ...params }) -> Merge.ExpenseReportResponse
@@ -8721,7 +9758,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. +Creates an `ExpenseReport` object with the given values.
@@ -8736,7 +9773,13 @@ 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.expenseReports.create({ + isDebugMode: true, + runAsync: true, + model: { + trackingCategories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"] + } +}); ```
@@ -8752,7 +9795,7 @@ await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**field_mapping_id:** `string` +**request:** `Merge.accounting.ExpenseReportEndpointRequest`
@@ -8760,7 +9803,7 @@ await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `ExpenseReportsClient.RequestOptions`
@@ -8772,7 +9815,7 @@ await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-
client.crm.fieldMapping.fieldMappingsPartialUpdate(field_mapping_id, { ...params }) -> Merge.FieldMappingInstanceResponse +
client.accounting.expenseReports.linesList(expense_report_id, { ...params }) -> core.Page
@@ -8784,7 +9827,7 @@ await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Returns a list of `ExpenseReportLine` objects that point to a `ExpenseReport` with the given id.
@@ -8799,7 +9842,33 @@ Create or update existing Field Mappings for a Linked Account. Changes will be r
```typescript -await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); +const pageableResponse = await client.accounting.expenseReports.linesList("expense_report_id", { + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: 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.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; ```
@@ -8815,7 +9884,7 @@ await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-**field_mapping_id:** `string` +**expense_report_id:** `string`
@@ -8823,7 +9892,7 @@ await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-**request:** `Merge.crm.PatchedEditFieldMappingRequest` +**request:** `Merge.accounting.ExpenseReportsLinesListRequest`
@@ -8831,7 +9900,7 @@ await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `ExpenseReportsClient.RequestOptions`
@@ -8843,7 +9912,7 @@ await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-
client.crm.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse +
client.accounting.expenseReports.retrieve(id, { ...params }) -> Merge.ExpenseReport
@@ -8855,7 +9924,7 @@ await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). +Returns an `ExpenseReport` object with the given `id`.
@@ -8870,9 +9939,10 @@ 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" +await client.accounting.expenseReports.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true }); ``` @@ -8889,7 +9959,7 @@ await client.crm.fieldMapping.remoteFieldsRetrieve({
-**request:** `Merge.crm.RemoteFieldsRetrieveRequest` +**id:** `string`
@@ -8897,7 +9967,15 @@ await client.crm.fieldMapping.remoteFieldsRetrieve({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**request:** `Merge.accounting.ExpenseReportsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `ExpenseReportsClient.RequestOptions`
@@ -8909,7 +9987,7 @@ await client.crm.fieldMapping.remoteFieldsRetrieve({
-
client.crm.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse +
client.accounting.expenseReports.linesRemoteFieldClassesList({ ...params }) -> core.Page
@@ -8921,7 +9999,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 `RemoteFieldClass` objects.
@@ -8936,7 +10014,35 @@ Get all organization-wide Target Fields, this will not include any Linked Accoun
```typescript -await client.crm.fieldMapping.targetFieldsRetrieve(); +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; ```
@@ -8952,7 +10058,15 @@ await client.crm.fieldMapping.targetFieldsRetrieve();
-**requestOptions:** `FieldMappingClient.RequestOptions` +**request:** `Merge.accounting.ExpenseReportsLinesRemoteFieldClassesListRequest` + +
+
+ +
+
+ +**requestOptions:** `ExpenseReportsClient.RequestOptions`
@@ -8964,8 +10078,7 @@ await client.crm.fieldMapping.targetFieldsRetrieve();
-## Crm GenerateKey -
client.crm.generateKey.create({ ...params }) -> Merge.RemoteKey +
client.accounting.expenseReports.metaPostRetrieve() -> Merge.MetaResponse
@@ -8977,7 +10090,7 @@ await client.crm.fieldMapping.targetFieldsRetrieve();
-Create a remote key. +Returns metadata for `ExpenseReport` POSTs.
@@ -8992,9 +10105,7 @@ Create a remote key.
```typescript -await client.crm.generateKey.create({ - name: "Remote Deployment Key 1" -}); +await client.accounting.expenseReports.metaPostRetrieve(); ```
@@ -9010,15 +10121,7 @@ await client.crm.generateKey.create({
-**request:** `Merge.crm.GenerateRemoteKeyRequest` - -
-
- -
-
- -**requestOptions:** `GenerateKeyClient.RequestOptions` +**requestOptions:** `ExpenseReportsClient.RequestOptions`
@@ -9030,8 +10133,7 @@ await client.crm.generateKey.create({
-## Crm Issues -
client.crm.issues.list({ ...params }) -> Merge.PaginatedIssueList +
client.accounting.expenseReports.remoteFieldClassesList({ ...params }) -> core.Page
@@ -9043,7 +10145,7 @@ await client.crm.generateKey.create({
-Gets all issues for Organization. +Returns a list of `RemoteFieldClass` objects.
@@ -9058,22 +10160,35 @@ Gets all issues for Organization.
```typescript -await client.crm.issues.list({ - accountToken: "account_token", +const pageableResponse = await client.accounting.expenseReports.remoteFieldClassesList({ 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.expenseReports.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; ```
@@ -9089,7 +10204,7 @@ await client.crm.issues.list({
-**request:** `Merge.crm.IssuesListRequest` +**request:** `Merge.accounting.ExpenseReportsRemoteFieldClassesListRequest`
@@ -9097,7 +10212,7 @@ await client.crm.issues.list({
-**requestOptions:** `IssuesClient.RequestOptions` +**requestOptions:** `ExpenseReportsClient.RequestOptions`
@@ -9109,7 +10224,8 @@ await client.crm.issues.list({
-
client.crm.issues.retrieve(id) -> Merge.Issue +## Accounting Expenses +
client.accounting.expenses.list({ ...params }) -> core.Page
@@ -9121,7 +10237,7 @@ await client.crm.issues.list({
-Get a specific issue. +Returns a list of `Expense` objects.
@@ -9136,7 +10252,49 @@ Get a specific issue.
```typescript -await client.crm.issues.retrieve("id"); +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; ```
@@ -9152,7 +10310,7 @@ await client.crm.issues.retrieve("id");
-**id:** `string` +**request:** `Merge.accounting.ExpensesListRequest`
@@ -9160,7 +10318,7 @@ await client.crm.issues.retrieve("id");
-**requestOptions:** `IssuesClient.RequestOptions` +**requestOptions:** `ExpensesClient.RequestOptions`
@@ -9172,8 +10330,7 @@ await client.crm.issues.retrieve("id");
-## Crm Leads -
client.crm.leads.list({ ...params }) -> Merge.PaginatedLeadList +
client.accounting.expenses.create({ ...params }) -> Merge.ExpenseResponse
@@ -9185,7 +10342,7 @@ await client.crm.issues.retrieve("id");
-Returns a list of `Lead` objects. +Creates an `Expense` object with the given values.
@@ -9200,24 +10357,10 @@ Returns a list of `Lead` objects.
```typescript -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" +await client.accounting.expenses.create({ + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -9234,7 +10377,7 @@ await client.crm.leads.list({
-**request:** `Merge.crm.LeadsListRequest` +**request:** `Merge.accounting.ExpenseEndpointRequest`
@@ -9242,7 +10385,7 @@ await client.crm.leads.list({
-**requestOptions:** `LeadsClient.RequestOptions` +**requestOptions:** `ExpensesClient.RequestOptions`
@@ -9254,7 +10397,7 @@ await client.crm.leads.list({
-
client.crm.leads.create({ ...params }) -> Merge.LeadResponse +
client.accounting.expenses.retrieve(id, { ...params }) -> Merge.Expense
@@ -9266,7 +10409,7 @@ await client.crm.leads.list({
-Creates a `Lead` object with the given values. +Returns an `Expense` object with the given `id`.
@@ -9281,10 +10424,10 @@ Creates a `Lead` object with the given values.
```typescript -await client.crm.leads.create({ - isDebugMode: true, - runAsync: true, - model: {} +await client.accounting.expenses.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true }); ``` @@ -9301,7 +10444,7 @@ await client.crm.leads.create({
-**request:** `Merge.crm.LeadEndpointRequest` +**id:** `string`
@@ -9309,7 +10452,15 @@ await client.crm.leads.create({
-**requestOptions:** `LeadsClient.RequestOptions` +**request:** `Merge.accounting.ExpensesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `ExpensesClient.RequestOptions`
@@ -9321,7 +10472,7 @@ await client.crm.leads.create({
-
client.crm.leads.retrieve(id, { ...params }) -> Merge.Lead +
client.accounting.expenses.asyncBulkCreate({ ...params }) -> Merge.ExpenseResponse
@@ -9333,7 +10484,7 @@ await client.crm.leads.create({
-Returns a `Lead` object with the given `id`. +Creates an `Expense` object with the given values.
@@ -9348,11 +10499,13 @@ 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.expenses.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [{ + itemId: "item_id", + payload: {} + }] }); ``` @@ -9369,7 +10522,7 @@ await client.crm.leads.retrieve("id", {
-**id:** `string` +**request:** `Merge.accounting.ExpenseBulkRequest`
@@ -9377,15 +10530,7 @@ await client.crm.leads.retrieve("id", {
-**request:** `Merge.crm.LeadsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `LeadsClient.RequestOptions` +**requestOptions:** `ExpensesClient.RequestOptions`
@@ -9397,7 +10542,7 @@ await client.crm.leads.retrieve("id", {
-
client.crm.leads.metaPostRetrieve() -> Merge.MetaResponse +
client.accounting.expenses.batchObjectsList(batch_id, { ...params }) -> core.Page
@@ -9409,7 +10554,7 @@ await client.crm.leads.retrieve("id", {
-Returns metadata for `Lead` POSTs. +Returns a list of `Expense` objects.
@@ -9424,7 +10569,49 @@ Returns metadata for `Lead` POSTs.
```typescript -await client.crm.leads.metaPostRetrieve(); +const pageableResponse = 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") +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = 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") +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -9440,7 +10627,23 @@ await client.crm.leads.metaPostRetrieve();
-**requestOptions:** `LeadsClient.RequestOptions` +**batch_id:** `string` + +
+
+ +
+
+ +**request:** `Merge.accounting.ExpensesBatchObjectsListRequest` + +
+
+ +
+
+ +**requestOptions:** `ExpensesClient.RequestOptions`
@@ -9452,7 +10655,7 @@ await client.crm.leads.metaPostRetrieve();
-
client.crm.leads.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.accounting.expenses.linesRemoteFieldClassesList({ ...params }) -> core.Page
@@ -9479,16 +10682,35 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.leads.remoteFieldClassesList({ +const pageableResponse = await client.accounting.expenses.linesRemoteFieldClassesList({ 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.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; ```
@@ -9504,7 +10726,7 @@ await client.crm.leads.remoteFieldClassesList({
-**request:** `Merge.crm.LeadsRemoteFieldClassesListRequest` +**request:** `Merge.accounting.ExpensesLinesRemoteFieldClassesListRequest`
@@ -9512,7 +10734,7 @@ await client.crm.leads.remoteFieldClassesList({
-**requestOptions:** `LeadsClient.RequestOptions` +**requestOptions:** `ExpensesClient.RequestOptions`
@@ -9524,8 +10746,7 @@ await client.crm.leads.remoteFieldClassesList({
-## Crm LinkToken -
client.crm.linkToken.create({ ...params }) -> Merge.LinkToken +
client.accounting.expenses.metaPostRetrieve() -> Merge.MetaResponse
@@ -9537,7 +10758,7 @@ await client.crm.leads.remoteFieldClassesList({
-Creates a link token to be used when linking a new end user. +Returns metadata for `Expense` POSTs.
@@ -9552,12 +10773,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.expenses.metaPostRetrieve(); ```
@@ -9573,15 +10789,7 @@ await client.crm.linkToken.create({
-**request:** `Merge.crm.EndUserDetailsRequest` - -
-
- -
-
- -**requestOptions:** `LinkTokenClient.RequestOptions` +**requestOptions:** `ExpensesClient.RequestOptions`
@@ -9593,8 +10801,7 @@ await client.crm.linkToken.create({
-## Crm LinkedAccounts -
client.crm.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList +
client.accounting.expenses.remoteFieldClassesList({ ...params }) -> core.Page
@@ -9606,7 +10813,7 @@ await client.crm.linkToken.create({
-List linked accounts for your organization. +Returns a list of `RemoteFieldClass` objects.
@@ -9621,21 +10828,35 @@ List linked accounts for your organization.
```typescript -await client.crm.linkedAccounts.list({ - category: "accounting", +const pageableResponse = await client.accounting.expenses.remoteFieldClassesList({ 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" + 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.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; ```
@@ -9651,7 +10872,7 @@ await client.crm.linkedAccounts.list({
-**request:** `Merge.crm.LinkedAccountsListRequest` +**request:** `Merge.accounting.ExpensesRemoteFieldClassesListRequest`
@@ -9659,7 +10880,7 @@ await client.crm.linkedAccounts.list({
-**requestOptions:** `LinkedAccountsClient.RequestOptions` +**requestOptions:** `ExpensesClient.RequestOptions`
@@ -9671,8 +10892,8 @@ await client.crm.linkedAccounts.list({
-## Crm Notes -
client.crm.notes.list({ ...params }) -> Merge.PaginatedNoteList +## Accounting FieldMapping +
client.accounting.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse
@@ -9684,7 +10905,7 @@ await client.crm.linkedAccounts.list({
-Returns a list of `Note` 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/).
@@ -9699,23 +10920,8 @@ 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.fieldMapping.fieldMappingsRetrieve({ + excludeRemoteFieldMetadata: true }); ``` @@ -9732,7 +10938,7 @@ await client.crm.notes.list({
-**request:** `Merge.crm.NotesListRequest` +**request:** `Merge.accounting.FieldMappingsRetrieveRequest`
@@ -9740,7 +10946,7 @@ await client.crm.notes.list({
-**requestOptions:** `NotesClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -9752,7 +10958,7 @@ await client.crm.notes.list({
-
client.crm.notes.create({ ...params }) -> Merge.NoteResponse +
client.accounting.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse
@@ -9764,7 +10970,7 @@ await client.crm.notes.list({
-Creates a `Note` 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.
@@ -9779,10 +10985,15 @@ Creates a `Note` object with the given values.
```typescript -await client.crm.notes.create({ - isDebugMode: true, - runAsync: true, - model: {} +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" }); ``` @@ -9799,7 +11010,7 @@ await client.crm.notes.create({
-**request:** `Merge.crm.NoteEndpointRequest` +**request:** `Merge.accounting.CreateFieldMappingRequest`
@@ -9807,7 +11018,7 @@ await client.crm.notes.create({
-**requestOptions:** `NotesClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -9819,7 +11030,7 @@ await client.crm.notes.create({
-
client.crm.notes.retrieve(id, { ...params }) -> Merge.Note +
client.accounting.fieldMapping.fieldMappingsDestroy(field_mapping_id) -> Merge.FieldMappingInstanceResponse
@@ -9831,7 +11042,7 @@ await client.crm.notes.create({
-Returns a `Note` 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.
@@ -9846,12 +11057,7 @@ Returns a `Note` object with the given `id`.
```typescript -await client.crm.notes.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true -}); +await client.accounting.fieldMapping.fieldMappingsDestroy("field_mapping_id"); ```
@@ -9867,15 +11073,7 @@ await client.crm.notes.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.NotesRetrieveRequest` +**field_mapping_id:** `string`
@@ -9883,7 +11081,7 @@ await client.crm.notes.retrieve("id", {
-**requestOptions:** `NotesClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -9895,7 +11093,7 @@ await client.crm.notes.retrieve("id", {
-
client.crm.notes.metaPostRetrieve() -> Merge.MetaResponse +
client.accounting.fieldMapping.fieldMappingsPartialUpdate(field_mapping_id, { ...params }) -> Merge.FieldMappingInstanceResponse
@@ -9907,7 +11105,7 @@ await client.crm.notes.retrieve("id", {
-Returns metadata for `Note` POSTs. +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.
@@ -9922,7 +11120,9 @@ Returns metadata for `Note` POSTs.
```typescript -await client.crm.notes.metaPostRetrieve(); +await client.accounting.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + remoteDataIterationCount: 1 +}); ```
@@ -9938,7 +11138,23 @@ await client.crm.notes.metaPostRetrieve();
-**requestOptions:** `NotesClient.RequestOptions` +**field_mapping_id:** `string` + +
+
+ +
+
+ +**request:** `Merge.accounting.PatchedEditFieldMappingRequest` + +
+
+ +
+
+ +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -9950,7 +11166,7 @@ await client.crm.notes.metaPostRetrieve();
-
client.crm.notes.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.accounting.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse
@@ -9962,7 +11178,7 @@ await client.crm.notes.metaPostRetrieve();
-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/).
@@ -9977,15 +11193,9 @@ 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.fieldMapping.remoteFieldsRetrieve({ + commonModels: "common_models", + includeExampleValues: "include_example_values" }); ``` @@ -10002,7 +11212,7 @@ await client.crm.notes.remoteFieldClassesList({
-**request:** `Merge.crm.NotesRemoteFieldClassesListRequest` +**request:** `Merge.accounting.RemoteFieldsRetrieveRequest`
@@ -10010,7 +11220,7 @@ await client.crm.notes.remoteFieldClassesList({
-**requestOptions:** `NotesClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -10022,8 +11232,7 @@ await client.crm.notes.remoteFieldClassesList({
-## Crm Opportunities -
client.crm.opportunities.list({ ...params }) -> Merge.PaginatedOpportunityList +
client.accounting.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse
@@ -10035,7 +11244,7 @@ await client.crm.notes.remoteFieldClassesList({
-Returns a list of `Opportunity` 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/).
@@ -10050,27 +11259,7 @@ 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"), - 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" -}); +await client.accounting.fieldMapping.targetFieldsRetrieve(); ```
@@ -10086,15 +11275,7 @@ await client.crm.opportunities.list({
-**request:** `Merge.crm.OpportunitiesListRequest` - -
-
- -
-
- -**requestOptions:** `OpportunitiesClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -10106,7 +11287,8 @@ await client.crm.opportunities.list({
-
client.crm.opportunities.create({ ...params }) -> Merge.OpportunityResponse +## Accounting GeneralLedgerTransactions +
client.accounting.generalLedgerTransactions.list({ ...params }) -> core.Page
@@ -10118,7 +11300,7 @@ await client.crm.opportunities.list({
-Creates an `Opportunity` object with the given values. +Returns a list of `GeneralLedgerTransaction` objects.
@@ -10133,11 +11315,47 @@ Creates an `Opportunity` object with the given values.
```typescript -await client.crm.opportunities.create({ - isDebugMode: true, - runAsync: true, - model: {} +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", + 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; ```
@@ -10153,7 +11371,7 @@ await client.crm.opportunities.create({
-**request:** `Merge.crm.OpportunityEndpointRequest` +**request:** `Merge.accounting.GeneralLedgerTransactionsListRequest`
@@ -10161,7 +11379,7 @@ await client.crm.opportunities.create({
-**requestOptions:** `OpportunitiesClient.RequestOptions` +**requestOptions:** `GeneralLedgerTransactionsClient.RequestOptions`
@@ -10173,7 +11391,7 @@ await client.crm.opportunities.create({
-
client.crm.opportunities.retrieve(id, { ...params }) -> Merge.Opportunity +
client.accounting.generalLedgerTransactions.retrieve(id, { ...params }) -> Merge.GeneralLedgerTransaction
@@ -10185,7 +11403,7 @@ await client.crm.opportunities.create({
-Returns an `Opportunity` object with the given `id`. +Returns a `GeneralLedgerTransaction` object with the given `id`.
@@ -10200,13 +11418,9 @@ Returns an `Opportunity` object with the given `id`.
```typescript -await client.crm.opportunities.retrieve("id", { - expand: "account", +await client.accounting.generalLedgerTransactions.retrieve("id", { includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - remoteFields: "status", - showEnumOrigins: "status" + includeShellData: true }); ``` @@ -10231,7 +11445,7 @@ await client.crm.opportunities.retrieve("id", {
-**request:** `Merge.crm.OpportunitiesRetrieveRequest` +**request:** `Merge.accounting.GeneralLedgerTransactionsRetrieveRequest`
@@ -10239,7 +11453,7 @@ await client.crm.opportunities.retrieve("id", {
-**requestOptions:** `OpportunitiesClient.RequestOptions` +**requestOptions:** `GeneralLedgerTransactionsClient.RequestOptions`
@@ -10251,7 +11465,8 @@ await client.crm.opportunities.retrieve("id", {
-
client.crm.opportunities.partialUpdate(id, { ...params }) -> Merge.OpportunityResponse +## Accounting GenerateKey +
client.accounting.generateKey.create({ ...params }) -> Merge.RemoteKey
@@ -10263,7 +11478,7 @@ await client.crm.opportunities.retrieve("id", {
-Updates an `Opportunity` object with the given `id`. +Create a remote key.
@@ -10278,10 +11493,8 @@ Updates an `Opportunity` object with the given `id`.
```typescript -await client.crm.opportunities.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {} +await client.accounting.generateKey.create({ + name: "Remote Deployment Key 1" }); ``` @@ -10298,7 +11511,7 @@ await client.crm.opportunities.partialUpdate("id", {
-**id:** `string` +**request:** `Merge.accounting.GenerateRemoteKeyRequest`
@@ -10306,15 +11519,107 @@ await client.crm.opportunities.partialUpdate("id", {
-**request:** `Merge.crm.PatchedOpportunityEndpointRequest` +**requestOptions:** `GenerateKeyClient.RequestOptions`
+
+
+ + + +
+ +## Accounting IncomeStatements +
client.accounting.incomeStatements.list({ ...params }) -> core.Page
-**requestOptions:** `OpportunitiesClient.RequestOptions` +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `IncomeStatement` objects. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +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, + 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.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; + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.accounting.IncomeStatementsListRequest` + +
+
+ +
+
+ +**requestOptions:** `IncomeStatementsClient.RequestOptions`
@@ -10326,7 +11631,7 @@ await client.crm.opportunities.partialUpdate("id", {
-
client.crm.opportunities.metaPatchRetrieve(id) -> Merge.MetaResponse +
client.accounting.incomeStatements.retrieve(id, { ...params }) -> Merge.IncomeStatement
@@ -10338,7 +11643,7 @@ await client.crm.opportunities.partialUpdate("id", {
-Returns metadata for `Opportunity` PATCHs. +Returns an `IncomeStatement` object with the given `id`.
@@ -10353,7 +11658,10 @@ Returns metadata for `Opportunity` PATCHs.
```typescript -await client.crm.opportunities.metaPatchRetrieve("id"); +await client.accounting.incomeStatements.retrieve("id", { + includeRemoteData: true, + includeShellData: true +}); ```
@@ -10377,7 +11685,15 @@ await client.crm.opportunities.metaPatchRetrieve("id");
-**requestOptions:** `OpportunitiesClient.RequestOptions` +**request:** `Merge.accounting.IncomeStatementsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `IncomeStatementsClient.RequestOptions`
@@ -10389,7 +11705,8 @@ await client.crm.opportunities.metaPatchRetrieve("id");
-
client.crm.opportunities.metaPostRetrieve() -> Merge.MetaResponse +## Accounting Invoices +
client.accounting.invoices.list({ ...params }) -> core.Page
@@ -10401,7 +11718,7 @@ await client.crm.opportunities.metaPatchRetrieve("id");
-Returns metadata for `Opportunity` POSTs. +Returns a list of `Invoice` objects.
@@ -10416,7 +11733,61 @@ Returns metadata for `Opportunity` POSTs.
```typescript -await client.crm.opportunities.metaPostRetrieve(); +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; ```
@@ -10432,7 +11803,15 @@ await client.crm.opportunities.metaPostRetrieve();
-**requestOptions:** `OpportunitiesClient.RequestOptions` +**request:** `Merge.accounting.InvoicesListRequest` + +
+
+ +
+
+ +**requestOptions:** `InvoicesClient.RequestOptions`
@@ -10444,7 +11823,7 @@ await client.crm.opportunities.metaPostRetrieve();
-
client.crm.opportunities.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.accounting.invoices.create({ ...params }) -> Merge.InvoiceResponse
@@ -10456,7 +11835,9 @@ await client.crm.opportunities.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +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). +
@@ -10471,15 +11852,10 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.opportunities.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 +await client.accounting.invoices.create({ + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -10496,7 +11872,7 @@ await client.crm.opportunities.remoteFieldClassesList({
-**request:** `Merge.crm.OpportunitiesRemoteFieldClassesListRequest` +**request:** `Merge.accounting.InvoiceEndpointRequest`
@@ -10504,7 +11880,7 @@ await client.crm.opportunities.remoteFieldClassesList({
-**requestOptions:** `OpportunitiesClient.RequestOptions` +**requestOptions:** `InvoicesClient.RequestOptions`
@@ -10516,8 +11892,7 @@ await client.crm.opportunities.remoteFieldClassesList({
-## Crm Passthrough -
client.crm.passthrough.create({ ...params }) -> Merge.RemoteResponse +
client.accounting.invoices.retrieve(id, { ...params }) -> Merge.Invoice
@@ -10529,7 +11904,7 @@ await client.crm.opportunities.remoteFieldClassesList({
-Pull data from an endpoint not currently supported by Merge. +Returns an `Invoice` object with the given `id`.
@@ -10544,9 +11919,12 @@ Pull data from an endpoint not currently supported by Merge.
```typescript -await client.crm.passthrough.create({ - method: "GET", - path: "/scooters" +await client.accounting.invoices.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + remoteFields: "type", + showEnumOrigins: "type" }); ``` @@ -10563,7 +11941,7 @@ await client.crm.passthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**id:** `string`
@@ -10571,7 +11949,15 @@ await client.crm.passthrough.create({
-**requestOptions:** `PassthroughClient.RequestOptions` +**request:** `Merge.accounting.InvoicesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `InvoicesClient.RequestOptions`
@@ -10583,8 +11969,7 @@ await client.crm.passthrough.create({
-## Crm RegenerateKey -
client.crm.regenerateKey.create({ ...params }) -> Merge.RemoteKey +
client.accounting.invoices.partialUpdate(id, { ...params }) -> Merge.InvoiceResponse
@@ -10596,7 +11981,7 @@ await client.crm.passthrough.create({
-Exchange remote keys. +Updates an `Invoice` object with the given `id`.
@@ -10611,8 +11996,10 @@ Exchange remote keys.
```typescript -await client.crm.regenerateKey.create({ - name: "Remote Deployment Key 1" +await client.accounting.invoices.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -10629,7 +12016,7 @@ await client.crm.regenerateKey.create({
-**request:** `Merge.crm.RemoteKeyForRegenerationRequest` +**id:** `string`
@@ -10637,7 +12024,15 @@ await client.crm.regenerateKey.create({
-**requestOptions:** `RegenerateKeyClient.RequestOptions` +**request:** `Merge.accounting.PatchedInvoiceEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `InvoicesClient.RequestOptions`
@@ -10649,8 +12044,7 @@ await client.crm.regenerateKey.create({
-## Crm Stages -
client.crm.stages.list({ ...params }) -> Merge.PaginatedStageList +
client.accounting.invoices.asyncBulkCreate({ ...params }) -> Merge.InvoiceResponse
@@ -10662,7 +12056,9 @@ await client.crm.regenerateKey.create({
-Returns a list of `Stage` objects. +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). +
@@ -10677,18 +12073,13 @@ 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, - 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.invoices.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [{ + itemId: "item_id", + payload: {} + }] }); ``` @@ -10705,7 +12096,7 @@ await client.crm.stages.list({
-**request:** `Merge.crm.StagesListRequest` +**request:** `Merge.accounting.InvoiceBulkRequest`
@@ -10713,7 +12104,7 @@ await client.crm.stages.list({
-**requestOptions:** `StagesClient.RequestOptions` +**requestOptions:** `InvoicesClient.RequestOptions`
@@ -10725,7 +12116,7 @@ await client.crm.stages.list({
-
client.crm.stages.retrieve(id, { ...params }) -> Merge.Stage +
client.accounting.invoices.batchObjectsList(batch_id, { ...params }) -> core.Page
@@ -10737,7 +12128,7 @@ await client.crm.stages.list({
-Returns a `Stage` object with the given `id`. +Returns a list of `Invoice` objects.
@@ -10752,11 +12143,61 @@ Returns a `Stage` object with the given `id`.
```typescript -await client.crm.stages.retrieve("id", { +const pageableResponse = 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 + 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.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" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -10772,7 +12213,7 @@ await client.crm.stages.retrieve("id", {
-**id:** `string` +**batch_id:** `string`
@@ -10780,7 +12221,7 @@ await client.crm.stages.retrieve("id", {
-**request:** `Merge.crm.StagesRetrieveRequest` +**request:** `Merge.accounting.InvoicesBatchObjectsListRequest`
@@ -10788,7 +12229,7 @@ await client.crm.stages.retrieve("id", {
-**requestOptions:** `StagesClient.RequestOptions` +**requestOptions:** `InvoicesClient.RequestOptions`
@@ -10800,7 +12241,7 @@ await client.crm.stages.retrieve("id", {
-
client.crm.stages.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.accounting.invoices.lineItemsRemoteFieldClassesList({ ...params }) -> core.Page
@@ -10827,16 +12268,35 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.stages.remoteFieldClassesList({ +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, - 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; ```
@@ -10852,7 +12312,7 @@ await client.crm.stages.remoteFieldClassesList({
-**request:** `Merge.crm.StagesRemoteFieldClassesListRequest` +**request:** `Merge.accounting.InvoicesLineItemsRemoteFieldClassesListRequest`
@@ -10860,7 +12320,7 @@ await client.crm.stages.remoteFieldClassesList({
-**requestOptions:** `StagesClient.RequestOptions` +**requestOptions:** `InvoicesClient.RequestOptions`
@@ -10872,8 +12332,7 @@ await client.crm.stages.remoteFieldClassesList({
-## Crm SyncStatus -
client.crm.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList +
client.accounting.invoices.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -10885,7 +12344,7 @@ await client.crm.stages.remoteFieldClassesList({
-Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). +Returns metadata for `Invoice` PATCHs.
@@ -10900,10 +12359,7 @@ Get sync status for the current sync and the most recently finished sync. `last_
```typescript -await client.crm.syncStatus.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - pageSize: 1 -}); +await client.accounting.invoices.metaPatchRetrieve("id"); ```
@@ -10919,7 +12375,7 @@ await client.crm.syncStatus.list({
-**request:** `Merge.crm.SyncStatusListRequest` +**id:** `string`
@@ -10927,7 +12383,7 @@ await client.crm.syncStatus.list({
-**requestOptions:** `SyncStatusClient.RequestOptions` +**requestOptions:** `InvoicesClient.RequestOptions`
@@ -10939,8 +12395,7 @@ await client.crm.syncStatus.list({
-## Crm ForceResync -
client.crm.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[] +
client.accounting.invoices.metaPostRetrieve() -> Merge.MetaResponse
@@ -10952,7 +12407,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 `Invoice` POSTs.
@@ -10967,7 +12422,7 @@ Force re-sync of all models. This endpoint is available for monthly, quarterly,
```typescript -await client.crm.forceResync.syncStatusResyncCreate(); +await client.accounting.invoices.metaPostRetrieve(); ```
@@ -10983,7 +12438,7 @@ await client.crm.forceResync.syncStatusResyncCreate();
-**requestOptions:** `ForceResyncClient.RequestOptions` +**requestOptions:** `InvoicesClient.RequestOptions`
@@ -10995,8 +12450,7 @@ await client.crm.forceResync.syncStatusResyncCreate();
-## Crm Tasks -
client.crm.tasks.list({ ...params }) -> Merge.PaginatedTaskList +
client.accounting.invoices.remoteFieldClassesList({ ...params }) -> core.Page
@@ -11008,7 +12462,7 @@ await client.crm.forceResync.syncStatusResyncCreate();
-Returns a list of `Task` objects. +Returns a list of `RemoteFieldClass` objects.
@@ -11023,20 +12477,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.invoices.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.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; ```
@@ -11052,7 +12521,7 @@ await client.crm.tasks.list({
-**request:** `Merge.crm.TasksListRequest` +**request:** `Merge.accounting.InvoicesRemoteFieldClassesListRequest`
@@ -11060,7 +12529,7 @@ await client.crm.tasks.list({
-**requestOptions:** `TasksClient.RequestOptions` +**requestOptions:** `InvoicesClient.RequestOptions`
@@ -11072,7 +12541,8 @@ await client.crm.tasks.list({
-
client.crm.tasks.create({ ...params }) -> Merge.TaskResponse +## Accounting Issues +
client.accounting.issues.list({ ...params }) -> core.Page
@@ -11084,7 +12554,7 @@ await client.crm.tasks.list({
-Creates a `Task` object with the given values. +Gets all issues for Organization.
@@ -11099,11 +12569,49 @@ Creates a `Task` object with the given values.
```typescript -await client.crm.tasks.create({ - isDebugMode: true, - runAsync: true, - model: {} +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; ```
@@ -11119,7 +12627,7 @@ await client.crm.tasks.create({
-**request:** `Merge.crm.TaskEndpointRequest` +**request:** `Merge.accounting.IssuesListRequest`
@@ -11127,7 +12635,7 @@ await client.crm.tasks.create({
-**requestOptions:** `TasksClient.RequestOptions` +**requestOptions:** `IssuesClient.RequestOptions`
@@ -11139,7 +12647,7 @@ await client.crm.tasks.create({
-
client.crm.tasks.retrieve(id, { ...params }) -> Merge.Task +
client.accounting.issues.retrieve(id) -> Merge.Issue
@@ -11151,7 +12659,7 @@ await client.crm.tasks.create({
-Returns a `Task` object with the given `id`. +Get a specific issue.
@@ -11166,12 +12674,7 @@ 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.issues.retrieve("id"); ```
@@ -11195,15 +12698,7 @@ await client.crm.tasks.retrieve("id", {
-**request:** `Merge.crm.TasksRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `TasksClient.RequestOptions` +**requestOptions:** `IssuesClient.RequestOptions`
@@ -11215,7 +12710,8 @@ await client.crm.tasks.retrieve("id", {
-
client.crm.tasks.partialUpdate(id, { ...params }) -> Merge.TaskResponse +## Accounting ItemFulfillments +
client.accounting.itemFulfillments.list({ ...params }) -> core.Page
@@ -11227,7 +12723,7 @@ await client.crm.tasks.retrieve("id", {
-Updates a `Task` object with the given `id`. +Returns a list of `ItemFulfillment` objects.
@@ -11242,11 +12738,37 @@ Updates a `Task` object with the given `id`.
```typescript -await client.crm.tasks.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {} +const pageableResponse = await client.accounting.itemFulfillments.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: 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; ```
@@ -11262,15 +12784,7 @@ await client.crm.tasks.partialUpdate("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.PatchedTaskEndpointRequest` +**request:** `Merge.accounting.ItemFulfillmentsListRequest`
@@ -11278,7 +12792,7 @@ await client.crm.tasks.partialUpdate("id", {
-**requestOptions:** `TasksClient.RequestOptions` +**requestOptions:** `ItemFulfillmentsClient.RequestOptions`
@@ -11290,7 +12804,7 @@ await client.crm.tasks.partialUpdate("id", {
-
client.crm.tasks.metaPatchRetrieve(id) -> Merge.MetaResponse +
client.accounting.itemFulfillments.create({ ...params }) -> Merge.ItemFulfillmentResponse
@@ -11302,7 +12816,7 @@ await client.crm.tasks.partialUpdate("id", {
-Returns metadata for `Task` PATCHs. +Creates an `ItemFulfillment` object with the given values.
@@ -11317,7 +12831,11 @@ Returns metadata for `Task` PATCHs.
```typescript -await client.crm.tasks.metaPatchRetrieve("id"); +await client.accounting.itemFulfillments.create({ + isDebugMode: true, + runAsync: true, + model: {} +}); ```
@@ -11333,7 +12851,7 @@ await client.crm.tasks.metaPatchRetrieve("id");
-**id:** `string` +**request:** `Merge.accounting.ItemFulfillmentEndpointRequest`
@@ -11341,7 +12859,7 @@ await client.crm.tasks.metaPatchRetrieve("id");
-**requestOptions:** `TasksClient.RequestOptions` +**requestOptions:** `ItemFulfillmentsClient.RequestOptions`
@@ -11353,7 +12871,7 @@ await client.crm.tasks.metaPatchRetrieve("id");
-
client.crm.tasks.metaPostRetrieve() -> Merge.MetaResponse +
client.accounting.itemFulfillments.retrieve(id, { ...params }) -> Merge.ItemFulfillment
@@ -11365,7 +12883,7 @@ await client.crm.tasks.metaPatchRetrieve("id");
-Returns metadata for `Task` POSTs. +Returns an `ItemFulfillment` object with the given `id`.
@@ -11380,7 +12898,13 @@ Returns metadata for `Task` POSTs.
```typescript -await client.crm.tasks.metaPostRetrieve(); +await client.accounting.itemFulfillments.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + remoteFields: "status", + showEnumOrigins: "status" +}); ```
@@ -11396,7 +12920,23 @@ await client.crm.tasks.metaPostRetrieve();
-**requestOptions:** `TasksClient.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.accounting.ItemFulfillmentsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `ItemFulfillmentsClient.RequestOptions`
@@ -11408,7 +12948,7 @@ await client.crm.tasks.metaPostRetrieve();
-
client.crm.tasks.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.accounting.itemFulfillments.asyncBulkCreate({ ...params }) -> Merge.ItemFulfillmentResponse
@@ -11420,7 +12960,7 @@ await client.crm.tasks.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Creates an `ItemFulfillment` object with the given values.
@@ -11435,15 +12975,13 @@ 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.itemFulfillments.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [{ + itemId: "item_id", + payload: {} + }] }); ``` @@ -11460,7 +12998,7 @@ await client.crm.tasks.remoteFieldClassesList({
-**request:** `Merge.crm.TasksRemoteFieldClassesListRequest` +**request:** `Merge.accounting.ItemFulfillmentBulkRequest`
@@ -11468,7 +13006,7 @@ await client.crm.tasks.remoteFieldClassesList({
-**requestOptions:** `TasksClient.RequestOptions` +**requestOptions:** `ItemFulfillmentsClient.RequestOptions`
@@ -11480,8 +13018,7 @@ await client.crm.tasks.remoteFieldClassesList({
-## Crm Users -
client.crm.users.list({ ...params }) -> Merge.PaginatedUserList +
client.accounting.itemFulfillments.batchObjectsList(batch_id, { ...params }) -> core.Page
@@ -11493,7 +13030,7 @@ await client.crm.tasks.remoteFieldClassesList({
-Returns a list of `User` objects. +Returns a list of `ItemFulfillment` objects.
@@ -11508,20 +13045,37 @@ Returns a list of `User` objects.
```typescript -await client.crm.users.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.batchObjectsList("batch_id", { 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" + 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.batchObjectsList("batch_id", { + 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; ```
@@ -11537,7 +13091,7 @@ await client.crm.users.list({
-**request:** `Merge.crm.UsersListRequest` +**batch_id:** `string`
@@ -11545,7 +13099,15 @@ await client.crm.users.list({
-**requestOptions:** `UsersClient.RequestOptions` +**request:** `Merge.accounting.ItemFulfillmentsBatchObjectsListRequest` + +
+
+ +
+
+ +**requestOptions:** `ItemFulfillmentsClient.RequestOptions`
@@ -11557,7 +13119,7 @@ await client.crm.users.list({
-
client.crm.users.retrieve(id, { ...params }) -> Merge.User +
client.accounting.itemFulfillments.linesRemoteFieldClassesList({ ...params }) -> core.Page
@@ -11569,7 +13131,7 @@ await client.crm.users.list({
-Returns a `User` object with the given `id`. +Returns a list of `RemoteFieldClass` objects.
@@ -11584,11 +13146,35 @@ Returns a `User` object with the given `id`.
```typescript -await client.crm.users.retrieve("id", { +const pageableResponse = await client.accounting.itemFulfillments.linesRemoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, includeRemoteData: true, - includeRemoteFields: true, - includeShellData: 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; ```
@@ -11604,15 +13190,7 @@ await client.crm.users.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.UsersRetrieveRequest` +**request:** `Merge.accounting.ItemFulfillmentsLinesRemoteFieldClassesListRequest`
@@ -11620,7 +13198,7 @@ await client.crm.users.retrieve("id", {
-**requestOptions:** `UsersClient.RequestOptions` +**requestOptions:** `ItemFulfillmentsClient.RequestOptions`
@@ -11632,7 +13210,7 @@ await client.crm.users.retrieve("id", {
-
client.crm.users.ignoreCreate(model_id, { ...params }) -> void +
client.accounting.itemFulfillments.metaPostRetrieve() -> Merge.MetaResponse
@@ -11644,7 +13222,7 @@ await client.crm.users.retrieve("id", {
-Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. +Returns metadata for `ItemFulfillment` POSTs.
@@ -11659,9 +13237,7 @@ 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.itemFulfillments.metaPostRetrieve(); ```
@@ -11677,23 +13253,7 @@ await client.crm.users.ignoreCreate("model_id", {
-**model_id:** `string` - -
-
- -
-
- -**request:** `Merge.IgnoreCommonModelRequest` - -
-
- -
-
- -**requestOptions:** `UsersClient.RequestOptions` +**requestOptions:** `ItemFulfillmentsClient.RequestOptions`
@@ -11705,7 +13265,7 @@ await client.crm.users.ignoreCreate("model_id", {
-
client.crm.users.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.accounting.itemFulfillments.remoteFieldClassesList({ ...params }) -> core.Page
@@ -11732,16 +13292,35 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.users.remoteFieldClassesList({ +const pageableResponse = await client.accounting.itemFulfillments.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.itemFulfillments.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; ```
@@ -11757,7 +13336,7 @@ await client.crm.users.remoteFieldClassesList({
-**request:** `Merge.crm.UsersRemoteFieldClassesListRequest` +**request:** `Merge.accounting.ItemFulfillmentsRemoteFieldClassesListRequest`
@@ -11765,7 +13344,7 @@ await client.crm.users.remoteFieldClassesList({
-**requestOptions:** `UsersClient.RequestOptions` +**requestOptions:** `ItemFulfillmentsClient.RequestOptions`
@@ -11777,8 +13356,8 @@ await client.crm.users.remoteFieldClassesList({
-## Crm WebhookReceivers -
client.crm.webhookReceivers.list() -> Merge.WebhookReceiver[] +## Accounting Items +
client.accounting.items.list({ ...params }) -> core.Page
@@ -11790,7 +13369,7 @@ await client.crm.users.remoteFieldClassesList({
-Returns a list of `WebhookReceiver` objects. +Returns a list of `Item` objects.
@@ -11805,7 +13384,49 @@ Returns a list of `WebhookReceiver` objects.
```typescript -await client.crm.webhookReceivers.list(); +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; ```
@@ -11821,7 +13442,15 @@ await client.crm.webhookReceivers.list();
-**requestOptions:** `WebhookReceiversClient.RequestOptions` +**request:** `Merge.accounting.ItemsListRequest` + +
+
+ +
+
+ +**requestOptions:** `ItemsClient.RequestOptions`
@@ -11833,7 +13462,7 @@ await client.crm.webhookReceivers.list();
-
client.crm.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver +
client.accounting.items.create({ ...params }) -> Merge.ItemResponse
@@ -11845,7 +13474,7 @@ await client.crm.webhookReceivers.list();
-Creates a `WebhookReceiver` object with the given values. +Creates an `Item` object with the given values.
@@ -11860,9 +13489,10 @@ Creates a `WebhookReceiver` object with the given values.
```typescript -await client.crm.webhookReceivers.create({ - event: "event", - isActive: true +await client.accounting.items.create({ + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -11879,7 +13509,7 @@ await client.crm.webhookReceivers.create({
-**request:** `Merge.crm.WebhookReceiverRequest` +**request:** `Merge.accounting.ItemEndpointRequest`
@@ -11887,7 +13517,7 @@ await client.crm.webhookReceivers.create({
-**requestOptions:** `WebhookReceiversClient.RequestOptions` +**requestOptions:** `ItemsClient.RequestOptions`
@@ -11899,8 +13529,7 @@ await client.crm.webhookReceivers.create({
-## Filestorage AccountDetails -
client.filestorage.accountDetails.retrieve() -> Merge.AccountDetails +
client.accounting.items.retrieve(id, { ...params }) -> Merge.Item
@@ -11912,7 +13541,7 @@ await client.crm.webhookReceivers.create({
-Get details for a linked account. +Returns an `Item` object with the given `id`.
@@ -11927,7 +13556,12 @@ Get details for a linked account.
```typescript -await client.filestorage.accountDetails.retrieve(); +await client.accounting.items.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + remoteFields: "status", + showEnumOrigins: "status" +}); ```
@@ -11943,7 +13577,23 @@ await client.filestorage.accountDetails.retrieve();
-**requestOptions:** `AccountDetailsClient.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.accounting.ItemsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `ItemsClient.RequestOptions`
@@ -11955,8 +13605,7 @@ await client.filestorage.accountDetails.retrieve();
-## Filestorage AccountToken -
client.filestorage.accountToken.retrieve(public_token) -> Merge.AccountToken +
client.accounting.items.partialUpdate(id, { ...params }) -> Merge.ItemResponse
@@ -11968,7 +13617,7 @@ await client.filestorage.accountDetails.retrieve();
-Returns the account token for the end user with the provided public token. +Updates an `Item` object with the given `id`.
@@ -11983,7 +13632,11 @@ Returns the account token for the end user with the provided public token.
```typescript -await client.filestorage.accountToken.retrieve("public_token"); +await client.accounting.items.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {} +}); ```
@@ -11999,7 +13652,7 @@ await client.filestorage.accountToken.retrieve("public_token");
-**public_token:** `string` +**id:** `string`
@@ -12007,7 +13660,15 @@ await client.filestorage.accountToken.retrieve("public_token");
-**requestOptions:** `AccountTokenClient.RequestOptions` +**request:** `Merge.accounting.PatchedItemEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `ItemsClient.RequestOptions`
@@ -12019,8 +13680,7 @@ await client.filestorage.accountToken.retrieve("public_token");
-## Filestorage AsyncPassthrough -
client.filestorage.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept +
client.accounting.items.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -12032,7 +13692,7 @@ await client.filestorage.accountToken.retrieve("public_token");
-Asynchronously pull data from an endpoint not currently supported by Merge. +Returns metadata for `Item` PATCHs.
@@ -12047,10 +13707,7 @@ Asynchronously pull data from an endpoint not currently supported by Merge.
```typescript -await client.filestorage.asyncPassthrough.create({ - method: "GET", - path: "/scooters" -}); +await client.accounting.items.metaPatchRetrieve("id"); ```
@@ -12066,7 +13723,7 @@ await client.filestorage.asyncPassthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**id:** `string`
@@ -12074,7 +13731,7 @@ await client.filestorage.asyncPassthrough.create({
-**requestOptions:** `AsyncPassthroughClient.RequestOptions` +**requestOptions:** `ItemsClient.RequestOptions`
@@ -12086,7 +13743,7 @@ await client.filestorage.asyncPassthrough.create({
-
client.filestorage.asyncPassthrough.retrieve(async_passthrough_receipt_id) -> Merge.AsyncPassthroughRetrieveResponse +
client.accounting.items.metaPostRetrieve() -> Merge.MetaResponse
@@ -12098,7 +13755,7 @@ await client.filestorage.asyncPassthrough.create({
-Retrieves data from earlier async-passthrough POST request +Returns metadata for `Item` POSTs.
@@ -12113,7 +13770,7 @@ Retrieves data from earlier async-passthrough POST request
```typescript -await client.filestorage.asyncPassthrough.retrieve("async_passthrough_receipt_id"); +await client.accounting.items.metaPostRetrieve(); ```
@@ -12129,15 +13786,7 @@ await client.filestorage.asyncPassthrough.retrieve("async_passthrough_receipt_id
-**async_passthrough_receipt_id:** `string` - -
-
- -
-
- -**requestOptions:** `AsyncPassthroughClient.RequestOptions` +**requestOptions:** `ItemsClient.RequestOptions`
@@ -12149,8 +13798,8 @@ await client.filestorage.asyncPassthrough.retrieve("async_passthrough_receipt_id
-## Filestorage AuditTrail -
client.filestorage.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList +## Accounting JournalEntries +
client.accounting.journalEntries.list({ ...params }) -> core.Page
@@ -12162,7 +13811,7 @@ await client.filestorage.asyncPassthrough.retrieve("async_passthrough_receipt_id
-Gets a list of audit trail events. +Returns a list of `JournalEntry` objects.
@@ -12177,14 +13826,49 @@ Gets a list of audit trail events.
```typescript -await client.filestorage.auditTrail.list({ +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", - 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", + 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; ```
@@ -12200,7 +13884,7 @@ await client.filestorage.auditTrail.list({
-**request:** `Merge.filestorage.AuditTrailListRequest` +**request:** `Merge.accounting.JournalEntriesListRequest`
@@ -12208,7 +13892,7 @@ await client.filestorage.auditTrail.list({
-**requestOptions:** `AuditTrailClient.RequestOptions` +**requestOptions:** `JournalEntriesClient.RequestOptions`
@@ -12220,8 +13904,7 @@ await client.filestorage.auditTrail.list({
-## Filestorage AvailableActions -
client.filestorage.availableActions.retrieve() -> Merge.AvailableActions +
client.accounting.journalEntries.create({ ...params }) -> Merge.JournalEntryResponse
@@ -12233,7 +13916,7 @@ await client.filestorage.auditTrail.list({
-Returns a list of models and actions available for an account. +Creates a `JournalEntry` object with the given values.
@@ -12248,7 +13931,11 @@ Returns a list of models and actions available for an account.
```typescript -await client.filestorage.availableActions.retrieve(); +await client.accounting.journalEntries.create({ + isDebugMode: true, + runAsync: true, + model: {} +}); ```
@@ -12264,7 +13951,15 @@ await client.filestorage.availableActions.retrieve();
-**requestOptions:** `AvailableActionsClient.RequestOptions` +**request:** `Merge.accounting.JournalEntryEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `JournalEntriesClient.RequestOptions`
@@ -12276,8 +13971,7 @@ await client.filestorage.availableActions.retrieve();
-## Filestorage Scopes -
client.filestorage.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi +
client.accounting.journalEntries.retrieve(id, { ...params }) -> Merge.JournalEntry
@@ -12289,7 +13983,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 a `JournalEntry` object with the given `id`.
@@ -12304,7 +13998,11 @@ Get the default permissions for Merge Common Models and fields across all Linked
```typescript -await client.filestorage.scopes.defaultScopesRetrieve(); +await client.accounting.journalEntries.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true +}); ```
@@ -12320,7 +14018,23 @@ await client.filestorage.scopes.defaultScopesRetrieve();
-**requestOptions:** `ScopesClient.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.accounting.JournalEntriesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `JournalEntriesClient.RequestOptions`
@@ -12332,7 +14046,7 @@ await client.filestorage.scopes.defaultScopesRetrieve();
-
client.filestorage.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi +
client.accounting.journalEntries.linesRemoteFieldClassesList({ ...params }) -> core.Page
@@ -12344,7 +14058,7 @@ await client.filestorage.scopes.defaultScopesRetrieve();
-Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Returns a list of `RemoteFieldClass` objects.
@@ -12359,7 +14073,35 @@ Get all available permissions for Merge Common Models and fields for a single Li
```typescript -await client.filestorage.scopes.linkedAccountScopesRetrieve(); +const pageableResponse = await client.accounting.journalEntries.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.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; ```
@@ -12375,7 +14117,15 @@ await client.filestorage.scopes.linkedAccountScopesRetrieve();
-**requestOptions:** `ScopesClient.RequestOptions` +**request:** `Merge.accounting.JournalEntriesLinesRemoteFieldClassesListRequest` + +
+
+ +
+
+ +**requestOptions:** `JournalEntriesClient.RequestOptions`
@@ -12387,7 +14137,7 @@ await client.filestorage.scopes.linkedAccountScopesRetrieve();
-
client.filestorage.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi +
client.accounting.journalEntries.metaPostRetrieve() -> Merge.MetaResponse
@@ -12399,7 +14149,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 metadata for `JournalEntry` POSTs.
@@ -12414,30 +14164,7 @@ Update permissions for any Common Model or field for a single Linked Account. An
```typescript -await client.filestorage.scopes.linkedAccountScopesCreate({ - commonModels: [{ - modelName: "Employee", - modelPermissions: { - "READ": { - isEnabled: true - }, - "WRITE": { - isEnabled: false - } - }, - fieldPermissions: { - enabledFields: ["avatar", "home_location"], - disabledFields: ["work_location"] - } - }, { - modelName: "Benefit", - modelPermissions: { - "WRITE": { - isEnabled: false - } - } - }] -}); +await client.accounting.journalEntries.metaPostRetrieve(); ```
@@ -12453,15 +14180,7 @@ await client.filestorage.scopes.linkedAccountScopesCreate({
-**request:** `Merge.filestorage.LinkedAccountCommonModelScopeDeserializerRequest` - -
-
- -
-
- -**requestOptions:** `ScopesClient.RequestOptions` +**requestOptions:** `JournalEntriesClient.RequestOptions`
@@ -12473,8 +14192,7 @@ await client.filestorage.scopes.linkedAccountScopesCreate({
-## Filestorage DeleteAccount -
client.filestorage.deleteAccount.delete() -> void +
client.accounting.journalEntries.remoteFieldClassesList({ ...params }) -> core.Page
@@ -12486,7 +14204,7 @@ await client.filestorage.scopes.linkedAccountScopesCreate({
-Delete a linked account. +Returns a list of `RemoteFieldClass` objects.
@@ -12501,75 +14219,35 @@ Delete a linked account.
```typescript -await client.filestorage.deleteAccount.delete(); +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); +} -``` -
-
- - - -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `DeleteAccountClient.RequestOptions` - -
-
-
-
- - - - -
- -## Filestorage Drives -
client.filestorage.drives.list({ ...params }) -> Merge.PaginatedDriveList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Drive` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.drives.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), +// Or you can manually iterate page-by-page +let page = await client.accounting.journalEntries.remoteFieldClassesList({ 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" + isCommonModelField: true, + isCustom: true, + pageSize: 1 }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -12585,7 +14263,7 @@ await client.filestorage.drives.list({
-**request:** `Merge.filestorage.DrivesListRequest` +**request:** `Merge.accounting.JournalEntriesRemoteFieldClassesListRequest`
@@ -12593,7 +14271,7 @@ await client.filestorage.drives.list({
-**requestOptions:** `DrivesClient.RequestOptions` +**requestOptions:** `JournalEntriesClient.RequestOptions`
@@ -12605,7 +14283,8 @@ await client.filestorage.drives.list({
-
client.filestorage.drives.retrieve(id, { ...params }) -> Merge.Drive +## Accounting LinkToken +
client.accounting.linkToken.create({ ...params }) -> Merge.LinkToken
@@ -12617,7 +14296,7 @@ await client.filestorage.drives.list({
-Returns a `Drive` object with the given `id`. +Creates a link token to be used when linking a new end user. The link token expires after single use.
@@ -12632,9 +14311,11 @@ Returns a `Drive` object with the given `id`.
```typescript -await client.filestorage.drives.retrieve("id", { - includeRemoteData: true, - includeShellData: true +await client.accounting.linkToken.create({ + endUserEmailAddress: "example@gmail.com", + endUserOrganizationName: "Test Organization", + endUserOriginId: "12345", + categories: ["hris", "ats"] }); ``` @@ -12651,15 +14332,7 @@ await client.filestorage.drives.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.filestorage.DrivesRetrieveRequest` +**request:** `Merge.accounting.EndUserDetailsRequest`
@@ -12667,7 +14340,7 @@ await client.filestorage.drives.retrieve("id", {
-**requestOptions:** `DrivesClient.RequestOptions` +**requestOptions:** `LinkTokenClient.RequestOptions`
@@ -12679,8 +14352,8 @@ await client.filestorage.drives.retrieve("id", {
-## Filestorage FieldMapping -
client.filestorage.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse +## Accounting LinkedAccounts +
client.accounting.linkedAccounts.list({ ...params }) -> core.Page
@@ -12692,7 +14365,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/). +List linked accounts for your organization.
@@ -12707,9 +14380,47 @@ Get all Field Mappings for this Linked Account. Field Mappings are mappings betw
```typescript -await client.filestorage.fieldMapping.fieldMappingsRetrieve({ - excludeRemoteFieldMetadata: true +const pageableResponse = 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" +}); +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; ```
@@ -12725,7 +14436,7 @@ await client.filestorage.fieldMapping.fieldMappingsRetrieve({
-**request:** `Merge.filestorage.FieldMappingsRetrieveRequest` +**request:** `Merge.accounting.LinkedAccountsListRequest`
@@ -12733,7 +14444,7 @@ await client.filestorage.fieldMapping.fieldMappingsRetrieve({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `LinkedAccountsClient.RequestOptions`
@@ -12745,7 +14456,8 @@ await client.filestorage.fieldMapping.fieldMappingsRetrieve({
-
client.filestorage.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse +## Accounting Passthrough +
client.accounting.passthrough.create({ ...params }) -> Merge.RemoteResponse
@@ -12757,7 +14469,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. +Pull data from an endpoint not currently supported by Merge.
@@ -12772,14 +14484,9 @@ 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.passthrough.create({ + method: "GET", + path: "/scooters" }); ``` @@ -12796,7 +14503,7 @@ await client.filestorage.fieldMapping.fieldMappingsCreate({
-**request:** `Merge.filestorage.CreateFieldMappingRequest` +**request:** `Merge.DataPassthroughRequest`
@@ -12804,7 +14511,7 @@ await client.filestorage.fieldMapping.fieldMappingsCreate({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `PassthroughClient.RequestOptions`
@@ -12816,7 +14523,8 @@ await client.filestorage.fieldMapping.fieldMappingsCreate({
-
client.filestorage.fieldMapping.fieldMappingsDestroy(field_mapping_id) -> Merge.FieldMappingInstanceResponse +## Accounting PaymentMethods +
client.accounting.paymentMethods.list({ ...params }) -> core.Page
@@ -12828,7 +14536,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 `PaymentMethod` objects.
@@ -12843,7 +14551,31 @@ Deletes Field Mappings for a Linked Account. All data related to this Field Mapp
```typescript -await client.filestorage.fieldMapping.fieldMappingsDestroy("field_mapping_id"); +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; ```
@@ -12859,7 +14591,7 @@ await client.filestorage.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**field_mapping_id:** `string` +**request:** `Merge.accounting.PaymentMethodsListRequest`
@@ -12867,7 +14599,7 @@ await client.filestorage.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `PaymentMethodsClient.RequestOptions`
@@ -12879,7 +14611,7 @@ await client.filestorage.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-
client.filestorage.fieldMapping.fieldMappingsPartialUpdate(field_mapping_id, { ...params }) -> Merge.FieldMappingInstanceResponse +
client.accounting.paymentMethods.retrieve(id, { ...params }) -> Merge.PaymentMethod
@@ -12891,7 +14623,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. +Returns a `PaymentMethod` object with the given `id`.
@@ -12906,7 +14638,10 @@ 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.paymentMethods.retrieve("id", { + includeRemoteData: true, + includeShellData: true +}); ```
@@ -12922,7 +14657,7 @@ await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_
-**field_mapping_id:** `string` +**id:** `string`
@@ -12930,7 +14665,7 @@ await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_
-**request:** `Merge.filestorage.PatchedEditFieldMappingRequest` +**request:** `Merge.accounting.PaymentMethodsRetrieveRequest`
@@ -12938,7 +14673,7 @@ await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `PaymentMethodsClient.RequestOptions`
@@ -12950,7 +14685,8 @@ await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_
-
client.filestorage.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse +## Accounting PaymentTerms +
client.accounting.paymentTerms.list({ ...params }) -> core.Page
@@ -12962,7 +14698,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 `PaymentTerm` objects.
@@ -12977,10 +14713,31 @@ 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.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; ```
@@ -12996,7 +14753,7 @@ await client.filestorage.fieldMapping.remoteFieldsRetrieve({
-**request:** `Merge.filestorage.RemoteFieldsRetrieveRequest` +**request:** `Merge.accounting.PaymentTermsListRequest`
@@ -13004,7 +14761,7 @@ await client.filestorage.fieldMapping.remoteFieldsRetrieve({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `PaymentTermsClient.RequestOptions`
@@ -13016,7 +14773,7 @@ await client.filestorage.fieldMapping.remoteFieldsRetrieve({
-
client.filestorage.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse +
client.accounting.paymentTerms.retrieve(id, { ...params }) -> Merge.PaymentTerm
@@ -13028,7 +14785,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 a `PaymentTerm` object with the given `id`.
@@ -13043,7 +14800,10 @@ Get all organization-wide Target Fields, this will not include any Linked Accoun
```typescript -await client.filestorage.fieldMapping.targetFieldsRetrieve(); +await client.accounting.paymentTerms.retrieve("id", { + includeRemoteData: true, + includeShellData: true +}); ```
@@ -13059,7 +14819,23 @@ await client.filestorage.fieldMapping.targetFieldsRetrieve();
-**requestOptions:** `FieldMappingClient.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.accounting.PaymentTermsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `PaymentTermsClient.RequestOptions`
@@ -13071,8 +14847,8 @@ await client.filestorage.fieldMapping.targetFieldsRetrieve();
-## Filestorage Files -
client.filestorage.files.list({ ...params }) -> Merge.PaginatedFileList +## Accounting Payments +
client.accounting.payments.list({ ...params }) -> core.Page
@@ -13084,7 +14860,7 @@ await client.filestorage.fieldMapping.targetFieldsRetrieve();
-Returns a list of `File` objects. +Returns a list of `Payment` objects.
@@ -13099,26 +14875,53 @@ Returns a list of `File` objects.
```typescript -await client.filestorage.files.list({ +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", - driveId: "drive_id", - expand: "drive", - folderId: "folder_id", includeDeletedData: true, includeRemoteData: true, + includeRemoteFields: 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" + 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; ```
@@ -13134,7 +14937,7 @@ await client.filestorage.files.list({
-**request:** `Merge.filestorage.FilesListRequest` +**request:** `Merge.accounting.PaymentsListRequest`
@@ -13142,7 +14945,7 @@ await client.filestorage.files.list({
-**requestOptions:** `FilesClient.RequestOptions` +**requestOptions:** `PaymentsClient.RequestOptions`
@@ -13154,7 +14957,7 @@ await client.filestorage.files.list({
-
client.filestorage.files.create({ ...params }) -> Merge.FileStorageFileResponse +
client.accounting.payments.create({ ...params }) -> Merge.PaymentResponse
@@ -13166,7 +14969,7 @@ await client.filestorage.files.list({
-Creates a `File` object with the given values. +Creates a `Payment` object with the given values.
@@ -13181,7 +14984,7 @@ Creates a `File` object with the given values.
```typescript -await client.filestorage.files.create({ +await client.accounting.payments.create({ isDebugMode: true, runAsync: true, model: {} @@ -13201,7 +15004,7 @@ await client.filestorage.files.create({
-**request:** `Merge.filestorage.FileStorageFileEndpointRequest` +**request:** `Merge.accounting.PaymentEndpointRequest`
@@ -13209,7 +15012,7 @@ await client.filestorage.files.create({
-**requestOptions:** `FilesClient.RequestOptions` +**requestOptions:** `PaymentsClient.RequestOptions`
@@ -13221,7 +15024,7 @@ await client.filestorage.files.create({
-
client.filestorage.files.retrieve(id, { ...params }) -> Merge.File_ +
client.accounting.payments.retrieve(id, { ...params }) -> Merge.Payment
@@ -13233,7 +15036,7 @@ await client.filestorage.files.create({
-Returns a `File` object with the given `id`. +Returns a `Payment` object with the given `id`.
@@ -13248,9 +15051,9 @@ Returns a `File` object with the given `id`.
```typescript -await client.filestorage.files.retrieve("id", { - expand: "drive", +await client.accounting.payments.retrieve("id", { includeRemoteData: true, + includeRemoteFields: true, includeShellData: true }); @@ -13276,7 +15079,7 @@ await client.filestorage.files.retrieve("id", {
-**request:** `Merge.filestorage.FilesRetrieveRequest` +**request:** `Merge.accounting.PaymentsRetrieveRequest`
@@ -13284,7 +15087,7 @@ await client.filestorage.files.retrieve("id", {
-**requestOptions:** `FilesClient.RequestOptions` +**requestOptions:** `PaymentsClient.RequestOptions`
@@ -13296,7 +15099,7 @@ await client.filestorage.files.retrieve("id", {
-
client.filestorage.files.downloadRequestMetaRetrieve(id, { ...params }) -> Merge.DownloadRequestMeta +
client.accounting.payments.partialUpdate(id, { ...params }) -> Merge.PaymentResponse
@@ -13308,7 +15111,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. +Updates a `Payment` object with the given `id`.
@@ -13323,8 +15126,10 @@ 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.payments.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -13349,7 +15154,7 @@ await client.filestorage.files.downloadRequestMetaRetrieve("id", {
-**request:** `Merge.filestorage.FilesDownloadRequestMetaRetrieveRequest` +**request:** `Merge.accounting.PatchedPaymentEndpointRequest`
@@ -13357,7 +15162,7 @@ await client.filestorage.files.downloadRequestMetaRetrieve("id", {
-**requestOptions:** `FilesClient.RequestOptions` +**requestOptions:** `PaymentsClient.RequestOptions`
@@ -13369,7 +15174,7 @@ await client.filestorage.files.downloadRequestMetaRetrieve("id", {
-
client.filestorage.files.downloadRequestMetaList({ ...params }) -> Merge.PaginatedDownloadRequestMetaList +
client.accounting.payments.lineItemsRemoteFieldClassesList({ ...params }) -> core.Page
@@ -13381,7 +15186,7 @@ await client.filestorage.files.downloadRequestMetaRetrieve("id", {
-Returns metadata to construct authenticated file download requests, allowing you to download files directly from the third-party. +Returns a list of `RemoteFieldClass` objects.
@@ -13396,17 +15201,35 @@ Returns metadata to construct authenticated file download requests, allowing you
```typescript -await client.filestorage.files.downloadRequestMetaList({ - createdAfter: "created_after", - createdBefore: "created_before", +const pageableResponse = await client.accounting.payments.lineItemsRemoteFieldClassesList({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", includeDeletedData: true, - mimeTypes: "mime_types", - modifiedAfter: "modified_after", - modifiedBefore: "modified_before", - orderBy: "-created_at", + 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; ```
@@ -13422,70 +15245,15 @@ await client.filestorage.files.downloadRequestMetaList({
-**request:** `Merge.filestorage.FilesDownloadRequestMetaListRequest` - -
-
- -
-
- -**requestOptions:** `FilesClient.RequestOptions` +**request:** `Merge.accounting.PaymentsLineItemsRemoteFieldClassesListRequest`
- -
- - - -
- -
client.filestorage.files.metaPostRetrieve() -> Merge.MetaResponse
-#### 📝 Description - -
-
- -
-
- -Returns metadata for `FileStorageFile` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.files.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `FilesClient.RequestOptions` +**requestOptions:** `PaymentsClient.RequestOptions`
@@ -13497,8 +15265,7 @@ await client.filestorage.files.metaPostRetrieve();
-## Filestorage Folders -
client.filestorage.folders.list({ ...params }) -> Merge.PaginatedFolderList +
client.accounting.payments.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -13510,7 +15277,7 @@ await client.filestorage.files.metaPostRetrieve();
-Returns a list of `Folder` objects. +Returns metadata for `Payment` PATCHs.
@@ -13525,22 +15292,7 @@ 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.payments.metaPatchRetrieve("id"); ```
@@ -13556,7 +15308,7 @@ await client.filestorage.folders.list({
-**request:** `Merge.filestorage.FoldersListRequest` +**id:** `string`
@@ -13564,7 +15316,7 @@ await client.filestorage.folders.list({
-**requestOptions:** `FoldersClient.RequestOptions` +**requestOptions:** `PaymentsClient.RequestOptions`
@@ -13576,7 +15328,7 @@ await client.filestorage.folders.list({
-
client.filestorage.folders.create({ ...params }) -> Merge.FileStorageFolderResponse +
client.accounting.payments.metaPostRetrieve() -> Merge.MetaResponse
@@ -13588,7 +15340,7 @@ await client.filestorage.folders.list({
-Creates a `Folder` object with the given values. +Returns metadata for `Payment` POSTs.
@@ -13603,11 +15355,7 @@ Creates a `Folder` object with the given values.
```typescript -await client.filestorage.folders.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); +await client.accounting.payments.metaPostRetrieve(); ```
@@ -13623,15 +15371,7 @@ await client.filestorage.folders.create({
-**request:** `Merge.filestorage.FileStorageFolderEndpointRequest` - -
-
- -
-
- -**requestOptions:** `FoldersClient.RequestOptions` +**requestOptions:** `PaymentsClient.RequestOptions`
@@ -13643,7 +15383,7 @@ await client.filestorage.folders.create({
-
client.filestorage.folders.retrieve(id, { ...params }) -> Merge.Folder +
client.accounting.payments.remoteFieldClassesList({ ...params }) -> core.Page
@@ -13655,7 +15395,7 @@ await client.filestorage.folders.create({
-Returns a `Folder` object with the given `id`. +Returns a list of `RemoteFieldClass` objects.
@@ -13670,11 +15410,35 @@ Returns a `Folder` object with the given `id`.
```typescript -await client.filestorage.folders.retrieve("id", { - expand: "drive", +const pageableResponse = await client.accounting.payments.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, includeRemoteData: true, - includeShellData: 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.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; ```
@@ -13690,15 +15454,7 @@ await client.filestorage.folders.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.filestorage.FoldersRetrieveRequest` +**request:** `Merge.accounting.PaymentsRemoteFieldClassesListRequest`
@@ -13706,7 +15462,7 @@ await client.filestorage.folders.retrieve("id", {
-**requestOptions:** `FoldersClient.RequestOptions` +**requestOptions:** `PaymentsClient.RequestOptions`
@@ -13718,7 +15474,8 @@ await client.filestorage.folders.retrieve("id", {
-
client.filestorage.folders.metaPostRetrieve() -> Merge.MetaResponse +## Accounting PhoneNumbers +
client.accounting.phoneNumbers.retrieve(id, { ...params }) -> Merge.AccountingPhoneNumber
@@ -13730,7 +15487,7 @@ await client.filestorage.folders.retrieve("id", {
-Returns metadata for `FileStorageFolder` POSTs. +Returns an `AccountingPhoneNumber` object with the given `id`.
@@ -13745,7 +15502,10 @@ Returns metadata for `FileStorageFolder` POSTs.
```typescript -await client.filestorage.folders.metaPostRetrieve(); +await client.accounting.phoneNumbers.retrieve("id", { + includeRemoteData: true, + includeShellData: true +}); ```
@@ -13761,65 +15521,15 @@ await client.filestorage.folders.metaPostRetrieve();
-**requestOptions:** `FoldersClient.RequestOptions` +**id:** `string`
- -
- - - - -
- -## Filestorage GenerateKey -
client.filestorage.generateKey.create({ ...params }) -> Merge.RemoteKey -
-
- -#### 📝 Description - -
-
- -
-
- -Create a remote key. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.generateKey.create({ - name: "Remote Deployment Key 1" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
-**request:** `Merge.filestorage.GenerateRemoteKeyRequest` +**request:** `Merge.accounting.PhoneNumbersRetrieveRequest`
@@ -13827,7 +15537,7 @@ await client.filestorage.generateKey.create({
-**requestOptions:** `GenerateKeyClient.RequestOptions` +**requestOptions:** `PhoneNumbersClient.RequestOptions`
@@ -13839,8 +15549,8 @@ await client.filestorage.generateKey.create({
-## Filestorage Groups -
client.filestorage.groups.list({ ...params }) -> Merge.PaginatedGroupList +## Accounting Projects +
client.accounting.projects.list({ ...params }) -> core.Page
@@ -13852,7 +15562,7 @@ await client.filestorage.generateKey.create({
-Returns a list of `Group` objects. +Returns a list of `Project` objects.
@@ -13867,11 +15577,11 @@ Returns a list of `Group` objects.
```typescript -await client.filestorage.groups.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", - expand: "child_groups", includeDeletedData: true, includeRemoteData: true, includeShellData: true, @@ -13880,6 +15590,30 @@ await client.filestorage.groups.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.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" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -13895,7 +15629,7 @@ await client.filestorage.groups.list({
-**request:** `Merge.filestorage.GroupsListRequest` +**request:** `Merge.accounting.ProjectsListRequest`
@@ -13903,7 +15637,7 @@ await client.filestorage.groups.list({
-**requestOptions:** `GroupsClient.RequestOptions` +**requestOptions:** `ProjectsClient.RequestOptions`
@@ -13915,7 +15649,7 @@ await client.filestorage.groups.list({
-
client.filestorage.groups.retrieve(id, { ...params }) -> Merge.Group +
client.accounting.projects.retrieve(id, { ...params }) -> Merge.Project
@@ -13927,7 +15661,7 @@ await client.filestorage.groups.list({
-Returns a `Group` object with the given `id`. +Returns a `Project` object with the given `id`.
@@ -13942,8 +15676,7 @@ Returns a `Group` object with the given `id`.
```typescript -await client.filestorage.groups.retrieve("id", { - expand: "child_groups", +await client.accounting.projects.retrieve("id", { includeRemoteData: true, includeShellData: true }); @@ -13970,7 +15703,7 @@ await client.filestorage.groups.retrieve("id", {
-**request:** `Merge.filestorage.GroupsRetrieveRequest` +**request:** `Merge.accounting.ProjectsRetrieveRequest`
@@ -13978,7 +15711,7 @@ await client.filestorage.groups.retrieve("id", {
-**requestOptions:** `GroupsClient.RequestOptions` +**requestOptions:** `ProjectsClient.RequestOptions`
@@ -13990,8 +15723,8 @@ await client.filestorage.groups.retrieve("id", {
-## Filestorage Issues -
client.filestorage.issues.list({ ...params }) -> Merge.PaginatedIssueList +## Accounting PurchaseOrders +
client.accounting.purchaseOrders.list({ ...params }) -> core.Page
@@ -14003,7 +15736,7 @@ await client.filestorage.groups.retrieve("id", {
-Gets all issues for Organization. +Returns a list of `PurchaseOrder` objects.
@@ -14018,22 +15751,53 @@ Gets all issues for Organization.
```typescript -await client.filestorage.issues.list({ - accountToken: "account_token", +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", - 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, + 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, - startDate: "start_date", - status: "ONGOING" + 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; ```
@@ -14049,7 +15813,7 @@ await client.filestorage.issues.list({
-**request:** `Merge.filestorage.IssuesListRequest` +**request:** `Merge.accounting.PurchaseOrdersListRequest`
@@ -14057,7 +15821,7 @@ await client.filestorage.issues.list({
-**requestOptions:** `IssuesClient.RequestOptions` +**requestOptions:** `PurchaseOrdersClient.RequestOptions`
@@ -14069,7 +15833,7 @@ await client.filestorage.issues.list({
-
client.filestorage.issues.retrieve(id) -> Merge.Issue +
client.accounting.purchaseOrders.create({ ...params }) -> Merge.PurchaseOrderResponse
@@ -14081,7 +15845,7 @@ await client.filestorage.issues.list({
-Get a specific issue. +Creates a `PurchaseOrder` object with the given values.
@@ -14096,7 +15860,11 @@ Get a specific issue.
```typescript -await client.filestorage.issues.retrieve("id"); +await client.accounting.purchaseOrders.create({ + isDebugMode: true, + runAsync: true, + model: {} +}); ```
@@ -14112,7 +15880,7 @@ await client.filestorage.issues.retrieve("id");
-**id:** `string` +**request:** `Merge.accounting.PurchaseOrderEndpointRequest`
@@ -14120,7 +15888,7 @@ await client.filestorage.issues.retrieve("id");
-**requestOptions:** `IssuesClient.RequestOptions` +**requestOptions:** `PurchaseOrdersClient.RequestOptions`
@@ -14132,8 +15900,7 @@ await client.filestorage.issues.retrieve("id");
-## Filestorage LinkToken -
client.filestorage.linkToken.create({ ...params }) -> Merge.LinkToken +
client.accounting.purchaseOrders.retrieve(id, { ...params }) -> Merge.PurchaseOrder
@@ -14145,7 +15912,7 @@ await client.filestorage.issues.retrieve("id");
-Creates a link token to be used when linking a new end user. +Returns a `PurchaseOrder` object with the given `id`.
@@ -14160,11 +15927,12 @@ Creates a link token to be used when linking a new end user.
```typescript -await client.filestorage.linkToken.create({ - endUserEmailAddress: "example@gmail.com", - endUserOrganizationName: "Test Organization", - endUserOriginId: "12345", - categories: ["hris", "ats"] +await client.accounting.purchaseOrders.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + remoteFields: "status", + showEnumOrigins: "status" }); ``` @@ -14181,7 +15949,7 @@ await client.filestorage.linkToken.create({
-**request:** `Merge.filestorage.EndUserDetailsRequest` +**id:** `string`
@@ -14189,7 +15957,15 @@ await client.filestorage.linkToken.create({
-**requestOptions:** `LinkTokenClient.RequestOptions` +**request:** `Merge.accounting.PurchaseOrdersRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `PurchaseOrdersClient.RequestOptions`
@@ -14201,8 +15977,7 @@ await client.filestorage.linkToken.create({
-## Filestorage LinkedAccounts -
client.filestorage.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList +
client.accounting.purchaseOrders.lineItemsRemoteFieldClassesList({ ...params }) -> core.Page
@@ -14214,7 +15989,7 @@ await client.filestorage.linkToken.create({
-List linked accounts for your organization. +Returns a list of `RemoteFieldClass` objects.
@@ -14229,21 +16004,35 @@ List linked accounts for your organization.
```typescript -await client.filestorage.linkedAccounts.list({ - category: "accounting", +const pageableResponse = await client.accounting.purchaseOrders.lineItemsRemoteFieldClassesList({ 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" + 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.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; ```
@@ -14259,7 +16048,7 @@ await client.filestorage.linkedAccounts.list({
-**request:** `Merge.filestorage.LinkedAccountsListRequest` +**request:** `Merge.accounting.PurchaseOrdersLineItemsRemoteFieldClassesListRequest`
@@ -14267,7 +16056,7 @@ await client.filestorage.linkedAccounts.list({
-**requestOptions:** `LinkedAccountsClient.RequestOptions` +**requestOptions:** `PurchaseOrdersClient.RequestOptions`
@@ -14279,8 +16068,7 @@ await client.filestorage.linkedAccounts.list({
-## Filestorage Passthrough -
client.filestorage.passthrough.create({ ...params }) -> Merge.RemoteResponse +
client.accounting.purchaseOrders.metaPostRetrieve() -> Merge.MetaResponse
@@ -14292,7 +16080,7 @@ await client.filestorage.linkedAccounts.list({
-Pull data from an endpoint not currently supported by Merge. +Returns metadata for `PurchaseOrder` POSTs.
@@ -14307,10 +16095,7 @@ Pull data from an endpoint not currently supported by Merge.
```typescript -await client.filestorage.passthrough.create({ - method: "GET", - path: "/scooters" -}); +await client.accounting.purchaseOrders.metaPostRetrieve(); ```
@@ -14326,15 +16111,7 @@ await client.filestorage.passthrough.create({
-**request:** `Merge.DataPassthroughRequest` - -
-
- -
-
- -**requestOptions:** `PassthroughClient.RequestOptions` +**requestOptions:** `PurchaseOrdersClient.RequestOptions`
@@ -14346,8 +16123,7 @@ await client.filestorage.passthrough.create({
-## Filestorage RegenerateKey -
client.filestorage.regenerateKey.create({ ...params }) -> Merge.RemoteKey +
client.accounting.purchaseOrders.remoteFieldClassesList({ ...params }) -> core.Page
@@ -14359,7 +16135,7 @@ await client.filestorage.passthrough.create({
-Exchange remote keys. +Returns a list of `RemoteFieldClass` objects.
@@ -14374,9 +16150,35 @@ Exchange remote keys.
```typescript -await client.filestorage.regenerateKey.create({ - name: "Remote Deployment Key 1" +const pageableResponse = await client.accounting.purchaseOrders.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.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; ```
@@ -14392,7 +16194,7 @@ await client.filestorage.regenerateKey.create({
-**request:** `Merge.filestorage.RemoteKeyForRegenerationRequest` +**request:** `Merge.accounting.PurchaseOrdersRemoteFieldClassesListRequest`
@@ -14400,7 +16202,7 @@ await client.filestorage.regenerateKey.create({
-**requestOptions:** `RegenerateKeyClient.RequestOptions` +**requestOptions:** `PurchaseOrdersClient.RequestOptions`
@@ -14412,8 +16214,8 @@ await client.filestorage.regenerateKey.create({
-## Filestorage SyncStatus -
client.filestorage.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList +## Accounting RegenerateKey +
client.accounting.regenerateKey.create({ ...params }) -> Merge.RemoteKey
@@ -14425,7 +16227,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). +Exchange remote keys.
@@ -14440,9 +16242,8 @@ 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.regenerateKey.create({ + name: "Remote Deployment Key 1" }); ``` @@ -14459,7 +16260,7 @@ await client.filestorage.syncStatus.list({
-**request:** `Merge.filestorage.SyncStatusListRequest` +**request:** `Merge.accounting.RemoteKeyForRegenerationRequest`
@@ -14467,7 +16268,7 @@ await client.filestorage.syncStatus.list({
-**requestOptions:** `SyncStatusClient.RequestOptions` +**requestOptions:** `RegenerateKeyClient.RequestOptions`
@@ -14479,8 +16280,8 @@ await client.filestorage.syncStatus.list({
-## Filestorage ForceResync -
client.filestorage.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[] +## Accounting SalesOrders +
client.accounting.salesOrders.list({ ...params }) -> core.Page
@@ -14492,7 +16293,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 `SalesOrder` objects.
@@ -14507,7 +16308,53 @@ Force re-sync of all models. This endpoint is available for monthly, quarterly,
```typescript -await client.filestorage.forceResync.syncStatusResyncCreate(); +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", + 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" +}); +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; ```
@@ -14523,7 +16370,15 @@ await client.filestorage.forceResync.syncStatusResyncCreate();
-**requestOptions:** `ForceResyncClient.RequestOptions` +**request:** `Merge.accounting.SalesOrdersListRequest` + +
+
+ +
+
+ +**requestOptions:** `SalesOrdersClient.RequestOptions`
@@ -14535,8 +16390,7 @@ await client.filestorage.forceResync.syncStatusResyncCreate();
-## Filestorage Users -
client.filestorage.users.list({ ...params }) -> Merge.PaginatedUserList +
client.accounting.salesOrders.create({ ...params }) -> Merge.SalesOrderResponse
@@ -14548,7 +16402,7 @@ await client.filestorage.forceResync.syncStatusResyncCreate();
-Returns a list of `User` objects. +Creates a `SalesOrder` object with the given values.
@@ -14563,18 +16417,10 @@ 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, - 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" +await client.accounting.salesOrders.create({ + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -14591,7 +16437,7 @@ await client.filestorage.users.list({
-**request:** `Merge.filestorage.UsersListRequest` +**request:** `Merge.accounting.SalesOrderEndpointRequest`
@@ -14599,7 +16445,7 @@ await client.filestorage.users.list({
-**requestOptions:** `UsersClient.RequestOptions` +**requestOptions:** `SalesOrdersClient.RequestOptions`
@@ -14611,7 +16457,7 @@ await client.filestorage.users.list({
-
client.filestorage.users.retrieve(id, { ...params }) -> Merge.User +
client.accounting.salesOrders.retrieve(id, { ...params }) -> Merge.SalesOrder
@@ -14623,7 +16469,7 @@ await client.filestorage.users.list({
-Returns a `User` object with the given `id`. +Returns a `SalesOrder` object with the given `id`.
@@ -14638,9 +16484,12 @@ Returns a `User` object with the given `id`.
```typescript -await client.filestorage.users.retrieve("id", { +await client.accounting.salesOrders.retrieve("id", { includeRemoteData: true, - includeShellData: true + includeRemoteFields: true, + includeShellData: true, + remoteFields: "status", + showEnumOrigins: "status" }); ``` @@ -14665,7 +16514,7 @@ await client.filestorage.users.retrieve("id", {
-**request:** `Merge.filestorage.UsersRetrieveRequest` +**request:** `Merge.accounting.SalesOrdersRetrieveRequest`
@@ -14673,7 +16522,7 @@ await client.filestorage.users.retrieve("id", {
-**requestOptions:** `UsersClient.RequestOptions` +**requestOptions:** `SalesOrdersClient.RequestOptions`
@@ -14685,8 +16534,7 @@ await client.filestorage.users.retrieve("id", {
-## Filestorage WebhookReceivers -
client.filestorage.webhookReceivers.list() -> Merge.WebhookReceiver[] +
client.accounting.salesOrders.asyncBulkCreate({ ...params }) -> Merge.SalesOrderResponse
@@ -14698,7 +16546,7 @@ await client.filestorage.users.retrieve("id", {
-Returns a list of `WebhookReceiver` objects. +Creates a `SalesOrder` object with the given values.
@@ -14713,7 +16561,14 @@ Returns a list of `WebhookReceiver` objects.
```typescript -await client.filestorage.webhookReceivers.list(); +await client.accounting.salesOrders.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [{ + itemId: "item_id", + payload: {} + }] +}); ```
@@ -14729,7 +16584,15 @@ await client.filestorage.webhookReceivers.list();
-**requestOptions:** `WebhookReceiversClient.RequestOptions` +**request:** `Merge.accounting.SalesOrderBulkRequest` + +
+
+ +
+
+ +**requestOptions:** `SalesOrdersClient.RequestOptions`
@@ -14741,7 +16604,7 @@ await client.filestorage.webhookReceivers.list();
-
client.filestorage.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver +
client.accounting.salesOrders.batchObjectsList(batch_id, { ...params }) -> core.Page
@@ -14753,7 +16616,7 @@ await client.filestorage.webhookReceivers.list();
-Creates a `WebhookReceiver` object with the given values. +Returns a list of `SalesOrder` objects.
@@ -14768,10 +16631,53 @@ Creates a `WebhookReceiver` object with the given values.
```typescript -await client.filestorage.webhookReceivers.create({ - event: "event", - isActive: true +const pageableResponse = 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" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = 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" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -14787,7 +16693,7 @@ await client.filestorage.webhookReceivers.create({
-**request:** `Merge.filestorage.WebhookReceiverRequest` +**batch_id:** `string`
@@ -14795,63 +16701,15 @@ await client.filestorage.webhookReceivers.create({
-**requestOptions:** `WebhookReceiversClient.RequestOptions` +**request:** `Merge.accounting.SalesOrdersBatchObjectsListRequest` -
-
- -
- - - - -
- -## 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` +**requestOptions:** `SalesOrdersClient.RequestOptions`
@@ -14863,8 +16721,7 @@ await client.hris.accountDetails.retrieve();
-## Hris AccountToken -
client.hris.accountToken.retrieve(public_token) -> Merge.AccountToken +
client.accounting.salesOrders.linesRemoteFieldClassesList({ ...params }) -> core.Page
@@ -14876,7 +16733,7 @@ await client.hris.accountDetails.retrieve();
-Returns the account token for the end user with the provided public token. +Returns a list of `RemoteFieldClass` objects.
@@ -14891,7 +16748,35 @@ Returns the account token for the end user with the provided public token.
```typescript -await client.hris.accountToken.retrieve("public_token"); +const pageableResponse = await client.accounting.salesOrders.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.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; ```
@@ -14907,7 +16792,7 @@ await client.hris.accountToken.retrieve("public_token");
-**public_token:** `string` +**request:** `Merge.accounting.SalesOrdersLinesRemoteFieldClassesListRequest`
@@ -14915,7 +16800,7 @@ await client.hris.accountToken.retrieve("public_token");
-**requestOptions:** `AccountTokenClient.RequestOptions` +**requestOptions:** `SalesOrdersClient.RequestOptions`
@@ -14927,8 +16812,7 @@ await client.hris.accountToken.retrieve("public_token");
-## Hris AsyncPassthrough -
client.hris.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept +
client.accounting.salesOrders.metaPostRetrieve() -> Merge.MetaResponse
@@ -14940,7 +16824,7 @@ await client.hris.accountToken.retrieve("public_token");
-Asynchronously pull data from an endpoint not currently supported by Merge. +Returns metadata for `SalesOrder` POSTs.
@@ -14955,10 +16839,7 @@ Asynchronously pull data from an endpoint not currently supported by Merge.
```typescript -await client.hris.asyncPassthrough.create({ - method: "GET", - path: "/scooters" -}); +await client.accounting.salesOrders.metaPostRetrieve(); ```
@@ -14974,15 +16855,7 @@ await client.hris.asyncPassthrough.create({
-**request:** `Merge.DataPassthroughRequest` - -
-
- -
-
- -**requestOptions:** `AsyncPassthroughClient.RequestOptions` +**requestOptions:** `SalesOrdersClient.RequestOptions`
@@ -14994,7 +16867,7 @@ await client.hris.asyncPassthrough.create({
-
client.hris.asyncPassthrough.retrieve(async_passthrough_receipt_id) -> Merge.AsyncPassthroughRetrieveResponse +
client.accounting.salesOrders.remoteFieldClassesList({ ...params }) -> core.Page
@@ -15006,7 +16879,7 @@ await client.hris.asyncPassthrough.create({
-Retrieves data from earlier async-passthrough POST request +Returns a list of `RemoteFieldClass` objects.
@@ -15021,7 +16894,35 @@ Retrieves data from earlier async-passthrough POST request
```typescript -await client.hris.asyncPassthrough.retrieve("async_passthrough_receipt_id"); +const pageableResponse = await client.accounting.salesOrders.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.salesOrders.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; ```
@@ -15037,7 +16938,7 @@ await client.hris.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-**async_passthrough_receipt_id:** `string` +**request:** `Merge.accounting.SalesOrdersRemoteFieldClassesListRequest`
@@ -15045,7 +16946,7 @@ await client.hris.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-**requestOptions:** `AsyncPassthroughClient.RequestOptions` +**requestOptions:** `SalesOrdersClient.RequestOptions`
@@ -15057,8 +16958,8 @@ await client.hris.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-## Hris AuditTrail -
client.hris.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList +## Accounting SyncStatus +
client.accounting.syncStatus.list({ ...params }) -> core.Page
@@ -15070,7 +16971,7 @@ await client.hris.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-Gets a list of audit trail events. +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).
@@ -15085,14 +16986,25 @@ Gets a list of audit trail events.
```typescript -await client.hris.auditTrail.list({ +const pageableResponse = await client.accounting.syncStatus.list({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - eventType: "event_type", - pageSize: 1, - startDate: "start_date", - userEmail: "user_email" + 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; ```
@@ -15108,7 +17020,7 @@ await client.hris.auditTrail.list({
-**request:** `Merge.hris.AuditTrailListRequest` +**request:** `Merge.accounting.SyncStatusListRequest`
@@ -15116,7 +17028,7 @@ await client.hris.auditTrail.list({
-**requestOptions:** `AuditTrailClient.RequestOptions` +**requestOptions:** `SyncStatusClient.RequestOptions`
@@ -15128,8 +17040,8 @@ await client.hris.auditTrail.list({
-## Hris AvailableActions -
client.hris.availableActions.retrieve() -> Merge.AvailableActions +## Accounting ForceResync +
client.accounting.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[]
@@ -15141,7 +17053,7 @@ await client.hris.auditTrail.list({
-Returns a list of models and actions available for an account. +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.
@@ -15156,7 +17068,7 @@ Returns a list of models and actions available for an account.
```typescript -await client.hris.availableActions.retrieve(); +await client.accounting.forceResync.syncStatusResyncCreate(); ```
@@ -15172,7 +17084,7 @@ await client.hris.availableActions.retrieve();
-**requestOptions:** `AvailableActionsClient.RequestOptions` +**requestOptions:** `ForceResyncClient.RequestOptions`
@@ -15184,8 +17096,8 @@ await client.hris.availableActions.retrieve();
-## Hris BankInfo -
client.hris.bankInfo.list({ ...params }) -> Merge.PaginatedBankInfoList +## Accounting TaxRates +
client.accounting.taxRates.list({ ...params }) -> core.Page
@@ -15197,7 +17109,7 @@ await client.hris.availableActions.retrieve();
-Returns a list of `BankInfo` objects. +Returns a list of `TaxRate` objects.
@@ -15212,25 +17124,45 @@ Returns a list of `BankInfo` objects.
```typescript -await client.hris.bankInfo.list({ - accountType: "CHECKING", - bankName: "bank_name", +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", - 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", + name: "name", pageSize: 1, - remoteFields: "account_type", - remoteId: "remote_id", - showEnumOrigins: "account_type" + 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; ```
@@ -15246,7 +17178,7 @@ await client.hris.bankInfo.list({
-**request:** `Merge.hris.BankInfoListRequest` +**request:** `Merge.accounting.TaxRatesListRequest`
@@ -15254,7 +17186,7 @@ await client.hris.bankInfo.list({
-**requestOptions:** `BankInfoClient.RequestOptions` +**requestOptions:** `TaxRatesClient.RequestOptions`
@@ -15266,7 +17198,7 @@ await client.hris.bankInfo.list({
-
client.hris.bankInfo.retrieve(id, { ...params }) -> Merge.BankInfo +
client.accounting.taxRates.retrieve(id, { ...params }) -> Merge.TaxRate
@@ -15278,7 +17210,7 @@ await client.hris.bankInfo.list({
-Returns a `BankInfo` object with the given `id`. +Returns a `TaxRate` object with the given `id`.
@@ -15293,12 +17225,9 @@ Returns a `BankInfo` object with the given `id`.
```typescript -await client.hris.bankInfo.retrieve("id", { - expand: "employee", +await client.accounting.taxRates.retrieve("id", { includeRemoteData: true, - includeShellData: true, - remoteFields: "account_type", - showEnumOrigins: "account_type" + includeShellData: true }); ``` @@ -15323,7 +17252,7 @@ await client.hris.bankInfo.retrieve("id", {
-**request:** `Merge.hris.BankInfoRetrieveRequest` +**request:** `Merge.accounting.TaxRatesRetrieveRequest`
@@ -15331,7 +17260,7 @@ await client.hris.bankInfo.retrieve("id", {
-**requestOptions:** `BankInfoClient.RequestOptions` +**requestOptions:** `TaxRatesClient.RequestOptions`
@@ -15343,8 +17272,8 @@ await client.hris.bankInfo.retrieve("id", {
-## Hris Benefits -
client.hris.benefits.list({ ...params }) -> Merge.PaginatedBenefitList +## Accounting TrackingCategories +
client.accounting.trackingCategories.list({ ...params }) -> core.Page
@@ -15356,7 +17285,7 @@ await client.hris.bankInfo.retrieve("id", {
-Returns a list of `Benefit` objects. +Returns a list of `TrackingCategory` objects.
@@ -15371,20 +17300,53 @@ Returns a list of `Benefit` objects.
```typescript -await client.hris.benefits.list({ +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", - 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"), + name: "name", pageSize: 1, - remoteId: "remote_id" + 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; ```
@@ -15400,7 +17362,7 @@ await client.hris.benefits.list({
-**request:** `Merge.hris.BenefitsListRequest` +**request:** `Merge.accounting.TrackingCategoriesListRequest`
@@ -15408,7 +17370,7 @@ await client.hris.benefits.list({
-**requestOptions:** `BenefitsClient.RequestOptions` +**requestOptions:** `TrackingCategoriesClient.RequestOptions`
@@ -15420,7 +17382,7 @@ await client.hris.benefits.list({
-
client.hris.benefits.retrieve(id, { ...params }) -> Merge.Benefit +
client.accounting.trackingCategories.retrieve(id, { ...params }) -> Merge.TrackingCategory
@@ -15432,7 +17394,7 @@ await client.hris.benefits.list({
-Returns a `Benefit` object with the given `id`. +Returns a `TrackingCategory` object with the given `id`.
@@ -15447,10 +17409,11 @@ Returns a `Benefit` object with the given `id`.
```typescript -await client.hris.benefits.retrieve("id", { - expand: "employee", +await client.accounting.trackingCategories.retrieve("id", { includeRemoteData: true, - includeShellData: true + includeShellData: true, + remoteFields: "status", + showEnumOrigins: "status" }); ``` @@ -15475,7 +17438,7 @@ await client.hris.benefits.retrieve("id", {
-**request:** `Merge.hris.BenefitsRetrieveRequest` +**request:** `Merge.accounting.TrackingCategoriesRetrieveRequest`
@@ -15483,7 +17446,7 @@ await client.hris.benefits.retrieve("id", {
-**requestOptions:** `BenefitsClient.RequestOptions` +**requestOptions:** `TrackingCategoriesClient.RequestOptions`
@@ -15495,8 +17458,8 @@ await client.hris.benefits.retrieve("id", {
-## Hris Companies -
client.hris.companies.list({ ...params }) -> Merge.PaginatedCompanyList +## Accounting Transactions +
client.accounting.transactions.list({ ...params }) -> core.Page
@@ -15508,7 +17471,7 @@ await client.hris.benefits.retrieve("id", {
-Returns a list of `Company` objects. +Returns a list of `Transaction` objects.
@@ -15523,7 +17486,8 @@ Returns a list of `Company` objects.
```typescript -await client.hris.companies.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", @@ -15533,8 +17497,36 @@ await client.hris.companies.list({ 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") }); +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; ```
@@ -15550,7 +17542,7 @@ await client.hris.companies.list({
-**request:** `Merge.hris.CompaniesListRequest` +**request:** `Merge.accounting.TransactionsListRequest`
@@ -15558,7 +17550,7 @@ await client.hris.companies.list({
-**requestOptions:** `CompaniesClient.RequestOptions` +**requestOptions:** `TransactionsClient.RequestOptions`
@@ -15570,7 +17562,7 @@ await client.hris.companies.list({
-
client.hris.companies.retrieve(id, { ...params }) -> Merge.Company +
client.accounting.transactions.retrieve(id, { ...params }) -> Merge.Transaction
@@ -15582,7 +17574,7 @@ await client.hris.companies.list({
-Returns a `Company` object with the given `id`. +Returns a `Transaction` object with the given `id`.
@@ -15597,7 +17589,7 @@ Returns a `Company` object with the given `id`.
```typescript -await client.hris.companies.retrieve("id", { +await client.accounting.transactions.retrieve("id", { includeRemoteData: true, includeShellData: true }); @@ -15624,7 +17616,7 @@ await client.hris.companies.retrieve("id", {
-**request:** `Merge.hris.CompaniesRetrieveRequest` +**request:** `Merge.accounting.TransactionsRetrieveRequest`
@@ -15632,7 +17624,7 @@ await client.hris.companies.retrieve("id", {
-**requestOptions:** `CompaniesClient.RequestOptions` +**requestOptions:** `TransactionsClient.RequestOptions`
@@ -15644,8 +17636,8 @@ await client.hris.companies.retrieve("id", {
-## Hris Scopes -
client.hris.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi +## Accounting VendorCredits +
client.accounting.vendorCredits.list({ ...params }) -> core.Page
@@ -15657,7 +17649,7 @@ await client.hris.companies.retrieve("id", {
-Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Returns a list of `VendorCredit` objects.
@@ -15672,7 +17664,47 @@ Get the default permissions for Merge Common Models and fields across all Linked
```typescript -await client.hris.scopes.defaultScopesRetrieve(); +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", + 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") +}); +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; ```
@@ -15688,62 +17720,15 @@ await client.hris.scopes.defaultScopesRetrieve();
-**requestOptions:** `ScopesClient.RequestOptions` +**request:** `Merge.accounting.VendorCreditsListRequest`
- -
- - - - -
- -
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` +**requestOptions:** `VendorCreditsClient.RequestOptions`
@@ -15755,7 +17740,7 @@ await client.hris.scopes.linkedAccountScopesRetrieve();
-
client.hris.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi +
client.accounting.vendorCredits.create({ ...params }) -> Merge.VendorCreditResponse
@@ -15767,7 +17752,7 @@ await client.hris.scopes.linkedAccountScopesRetrieve();
-Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) +Creates a `VendorCredit` object with the given values.
@@ -15782,29 +17767,10 @@ 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.vendorCredits.create({ + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -15821,7 +17787,7 @@ await client.hris.scopes.linkedAccountScopesCreate({
-**request:** `Merge.hris.LinkedAccountCommonModelScopeDeserializerRequest` +**request:** `Merge.accounting.VendorCreditEndpointRequest`
@@ -15829,7 +17795,7 @@ await client.hris.scopes.linkedAccountScopesCreate({
-**requestOptions:** `ScopesClient.RequestOptions` +**requestOptions:** `VendorCreditsClient.RequestOptions`
@@ -15841,8 +17807,7 @@ await client.hris.scopes.linkedAccountScopesCreate({
-## Hris DeleteAccount -
client.hris.deleteAccount.delete() -> void +
client.accounting.vendorCredits.retrieve(id, { ...params }) -> Merge.VendorCredit
@@ -15854,7 +17819,7 @@ await client.hris.scopes.linkedAccountScopesCreate({
-Delete a linked account. +Returns a `VendorCredit` object with the given `id`.
@@ -15869,7 +17834,10 @@ Delete a linked account.
```typescript -await client.hris.deleteAccount.delete(); +await client.accounting.vendorCredits.retrieve("id", { + includeRemoteData: true, + includeShellData: true +}); ```
@@ -15885,76 +17853,15 @@ await client.hris.deleteAccount.delete();
-**requestOptions:** `DeleteAccountClient.RequestOptions` +**id:** `string`
- -
- - - - -
- -## Hris Dependents -
client.hris.dependents.list({ ...params }) -> Merge.PaginatedDependentList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Dependent` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
-**request:** `Merge.hris.DependentsListRequest` +**request:** `Merge.accounting.VendorCreditsRetrieveRequest`
@@ -15962,7 +17869,7 @@ await client.hris.dependents.list({
-**requestOptions:** `DependentsClient.RequestOptions` +**requestOptions:** `VendorCreditsClient.RequestOptions`
@@ -15974,7 +17881,7 @@ await client.hris.dependents.list({
-
client.hris.dependents.retrieve(id, { ...params }) -> Merge.Dependent +
client.accounting.vendorCredits.partialUpdate(id, { ...params }) -> Merge.VendorCreditResponse
@@ -15986,7 +17893,7 @@ await client.hris.dependents.list({
-Returns a `Dependent` object with the given `id`. +Updates a `VendorCredit` object with the given `id`.
@@ -16001,10 +17908,10 @@ Returns a `Dependent` object with the given `id`.
```typescript -await client.hris.dependents.retrieve("id", { - includeRemoteData: true, - includeSensitiveFields: true, - includeShellData: true +await client.accounting.vendorCredits.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -16029,7 +17936,7 @@ await client.hris.dependents.retrieve("id", {
-**request:** `Merge.hris.DependentsRetrieveRequest` +**request:** `Merge.accounting.PatchedVendorCreditEndpointRequest`
@@ -16037,7 +17944,7 @@ await client.hris.dependents.retrieve("id", {
-**requestOptions:** `DependentsClient.RequestOptions` +**requestOptions:** `VendorCreditsClient.RequestOptions`
@@ -16049,8 +17956,7 @@ await client.hris.dependents.retrieve("id", {
-## Hris EmployeePayrollRuns -
client.hris.employeePayrollRuns.list({ ...params }) -> Merge.PaginatedEmployeePayrollRunList +
client.accounting.vendorCredits.applicationCreate(id, { ...params }) -> Merge.VendorCreditResponse
@@ -16062,7 +17968,7 @@ await client.hris.dependents.retrieve("id", {
-Returns a list of `EmployeePayrollRun` objects. +Creates a new VendorCreditApplyLine to apply a vendor credit to an invoice
@@ -16077,24 +17983,11 @@ 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"), - 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") +await client.accounting.vendorCredits.applicationCreate("id", { + isDebugMode: true, + runAsync: true, + appliedDate: new Date("2024-01-15T09:30:00.000Z"), + appliedAmount: "applied_amount" }); ``` @@ -16111,7 +18004,7 @@ await client.hris.employeePayrollRuns.list({
-**request:** `Merge.hris.EmployeePayrollRunsListRequest` +**id:** `string`
@@ -16119,7 +18012,15 @@ await client.hris.employeePayrollRuns.list({
-**requestOptions:** `EmployeePayrollRunsClient.RequestOptions` +**request:** `Merge.accounting.ApplyVendorCreditRequest` + +
+
+ +
+
+ +**requestOptions:** `VendorCreditsClient.RequestOptions`
@@ -16131,7 +18032,7 @@ await client.hris.employeePayrollRuns.list({
-
client.hris.employeePayrollRuns.retrieve(id, { ...params }) -> Merge.EmployeePayrollRun +
client.accounting.vendorCredits.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -16143,7 +18044,7 @@ await client.hris.employeePayrollRuns.list({
-Returns an `EmployeePayrollRun` object with the given `id`. +Returns metadata for `VendorCredit` PATCHs.
@@ -16158,11 +18059,7 @@ Returns an `EmployeePayrollRun` object with the given `id`.
```typescript -await client.hris.employeePayrollRuns.retrieve("id", { - expand: "employee", - includeRemoteData: true, - includeShellData: true -}); +await client.accounting.vendorCredits.metaPatchRetrieve("id"); ```
@@ -16186,15 +18083,7 @@ await client.hris.employeePayrollRuns.retrieve("id", {
-**request:** `Merge.hris.EmployeePayrollRunsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `EmployeePayrollRunsClient.RequestOptions` +**requestOptions:** `VendorCreditsClient.RequestOptions`
@@ -16206,8 +18095,7 @@ await client.hris.employeePayrollRuns.retrieve("id", {
-## Hris Employees -
client.hris.employees.list({ ...params }) -> Merge.PaginatedEmployeeList +
client.accounting.vendorCredits.metaPostRetrieve() -> Merge.MetaResponse
@@ -16219,7 +18107,7 @@ await client.hris.employeePayrollRuns.retrieve("id", {
-Returns a list of `Employee` objects. +Returns metadata for `VendorCredit` POSTs.
@@ -16234,42 +18122,7 @@ Returns a list of `Employee` objects.
```typescript -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" -}); +await client.accounting.vendorCredits.metaPostRetrieve(); ```
@@ -16285,15 +18138,7 @@ await client.hris.employees.list({
-**request:** `Merge.hris.EmployeesListRequest` - -
-
- -
-
- -**requestOptions:** `EmployeesClient.RequestOptions` +**requestOptions:** `VendorCreditsClient.RequestOptions`
@@ -16305,7 +18150,8 @@ await client.hris.employees.list({
-
client.hris.employees.create({ ...params }) -> Merge.EmployeeResponse +## Accounting WebhookReceivers +
client.accounting.webhookReceivers.list() -> Merge.WebhookReceiver[]
@@ -16317,7 +18163,7 @@ await client.hris.employees.list({
-Creates an `Employee` object with the given values. +Returns a list of `WebhookReceiver` objects.
@@ -16332,11 +18178,7 @@ Creates an `Employee` object with the given values.
```typescript -await client.hris.employees.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); +await client.accounting.webhookReceivers.list(); ```
@@ -16352,15 +18194,7 @@ await client.hris.employees.create({
-**request:** `Merge.hris.EmployeeEndpointRequest` - -
-
- -
-
- -**requestOptions:** `EmployeesClient.RequestOptions` +**requestOptions:** `WebhookReceiversClient.RequestOptions`
@@ -16372,7 +18206,7 @@ await client.hris.employees.create({
-
client.hris.employees.retrieve(id, { ...params }) -> Merge.Employee +
client.accounting.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver
@@ -16384,7 +18218,7 @@ await client.hris.employees.create({
-Returns an `Employee` object with the given `id`. +Creates a `WebhookReceiver` object with the given values.
@@ -16399,13 +18233,9 @@ Returns an `Employee` object with the given `id`.
```typescript -await client.hris.employees.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeSensitiveFields: true, - includeShellData: true, - remoteFields: "employment_status", - showEnumOrigins: "employment_status" +await client.accounting.webhookReceivers.create({ + event: "event", + isActive: true }); ``` @@ -16422,15 +18252,7 @@ await client.hris.employees.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.EmployeesRetrieveRequest` +**request:** `Merge.accounting.WebhookReceiverRequest`
@@ -16438,7 +18260,7 @@ await client.hris.employees.retrieve("id", {
-**requestOptions:** `EmployeesClient.RequestOptions` +**requestOptions:** `WebhookReceiversClient.RequestOptions`
@@ -16450,7 +18272,8 @@ await client.hris.employees.retrieve("id", {
-
client.hris.employees.ignoreCreate(model_id, { ...params }) -> void +## Crm AccountDetails +
client.crm.accountDetails.retrieve() -> Merge.AccountDetails
@@ -16462,7 +18285,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. +Get details for a linked account.
@@ -16477,9 +18300,7 @@ 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.crm.accountDetails.retrieve(); ```
@@ -16495,15 +18316,63 @@ await client.hris.employees.ignoreCreate("model_id", {
-**model_id:** `string` +**requestOptions:** `AccountDetailsClient.RequestOptions`
+ +
+ + + + +
+ +## Crm AccountToken +
client.crm.accountToken.retrieve(public_token) -> Merge.AccountToken +
+
+ +#### 📝 Description
-**request:** `Merge.hris.IgnoreCommonModelRequest` +
+
+ +Returns the account token for the end user with the provided public token. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.accountToken.retrieve("public_token"); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**public_token:** `string`
@@ -16511,7 +18380,7 @@ await client.hris.employees.ignoreCreate("model_id", {
-**requestOptions:** `EmployeesClient.RequestOptions` +**requestOptions:** `AccountTokenClient.RequestOptions`
@@ -16523,7 +18392,7 @@ await client.hris.employees.ignoreCreate("model_id", {
-
client.hris.employees.metaPostRetrieve() -> Merge.MetaResponse +
client.crm.accountToken.regenerateCreate() -> Merge.RegenerateAccountToken
@@ -16535,7 +18404,7 @@ await client.hris.employees.ignoreCreate("model_id", {
-Returns metadata for `Employee` POSTs. +Exchange Linked Account account tokens.
@@ -16550,7 +18419,7 @@ Returns metadata for `Employee` POSTs.
```typescript -await client.hris.employees.metaPostRetrieve(); +await client.crm.accountToken.regenerateCreate(); ```
@@ -16566,7 +18435,7 @@ await client.hris.employees.metaPostRetrieve();
-**requestOptions:** `EmployeesClient.RequestOptions` +**requestOptions:** `AccountTokenClient.RequestOptions`
@@ -16578,8 +18447,8 @@ await client.hris.employees.metaPostRetrieve();
-## Hris EmployerBenefits -
client.hris.employerBenefits.list({ ...params }) -> Merge.PaginatedEmployerBenefitList +## Crm Accounts +
client.crm.accounts.list({ ...params }) -> core.Page
@@ -16591,7 +18460,7 @@ await client.hris.employees.metaPostRetrieve();
-Returns a list of `EmployerBenefit` objects. +Returns a list of `Account` objects.
@@ -16606,18 +18475,47 @@ Returns a list of `EmployerBenefit` objects.
```typescript -await client.hris.employerBenefits.list({ +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; ```
@@ -16633,7 +18531,7 @@ await client.hris.employerBenefits.list({
-**request:** `Merge.hris.EmployerBenefitsListRequest` +**request:** `Merge.crm.AccountsListRequest`
@@ -16641,7 +18539,7 @@ await client.hris.employerBenefits.list({
-**requestOptions:** `EmployerBenefitsClient.RequestOptions` +**requestOptions:** `AccountsClient.RequestOptions`
@@ -16653,7 +18551,7 @@ await client.hris.employerBenefits.list({
-
client.hris.employerBenefits.retrieve(id, { ...params }) -> Merge.EmployerBenefit +
client.crm.accounts.create({ ...params }) -> Merge.CrmAccountResponse
@@ -16665,7 +18563,7 @@ await client.hris.employerBenefits.list({
-Returns an `EmployerBenefit` object with the given `id`. +Creates an `Account` object with the given values.
@@ -16680,9 +18578,10 @@ Returns an `EmployerBenefit` object with the given `id`.
```typescript -await client.hris.employerBenefits.retrieve("id", { - includeRemoteData: true, - includeShellData: true +await client.crm.accounts.create({ + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -16699,15 +18598,7 @@ await client.hris.employerBenefits.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.EmployerBenefitsRetrieveRequest` +**request:** `Merge.crm.CrmAccountEndpointRequest`
@@ -16715,7 +18606,7 @@ await client.hris.employerBenefits.retrieve("id", {
-**requestOptions:** `EmployerBenefitsClient.RequestOptions` +**requestOptions:** `AccountsClient.RequestOptions`
@@ -16727,8 +18618,7 @@ await client.hris.employerBenefits.retrieve("id", {
-## Hris Employments -
client.hris.employments.list({ ...params }) -> Merge.PaginatedEmploymentList +
client.crm.accounts.retrieve(id, { ...params }) -> Merge.Account
@@ -16740,7 +18630,7 @@ await client.hris.employerBenefits.retrieve("id", {
-Returns a list of `Employment` objects. +Returns an `Account` object with the given `id`.
@@ -16755,22 +18645,10 @@ 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"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employeeId: "employee_id", - expand: "employee", - includeDeletedData: true, +await client.crm.accounts.retrieve("id", { 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" + includeRemoteFields: true, + includeShellData: true }); ``` @@ -16787,7 +18665,7 @@ await client.hris.employments.list({
-**request:** `Merge.hris.EmploymentsListRequest` +**id:** `string`
@@ -16795,7 +18673,15 @@ await client.hris.employments.list({
-**requestOptions:** `EmploymentsClient.RequestOptions` +**request:** `Merge.crm.AccountsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `AccountsClient.RequestOptions`
@@ -16807,7 +18693,7 @@ await client.hris.employments.list({
-
client.hris.employments.retrieve(id, { ...params }) -> Merge.Employment +
client.crm.accounts.partialUpdate(id, { ...params }) -> Merge.CrmAccountResponse
@@ -16819,7 +18705,7 @@ await client.hris.employments.list({
-Returns an `Employment` object with the given `id`. +Updates an `Account` object with the given `id`.
@@ -16834,12 +18720,10 @@ Returns an `Employment` object with the given `id`.
```typescript -await client.hris.employments.retrieve("id", { - expand: "employee", - includeRemoteData: true, - includeShellData: true, - remoteFields: "employment_type", - showEnumOrigins: "employment_type" +await client.crm.accounts.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -16864,7 +18748,7 @@ await client.hris.employments.retrieve("id", {
-**request:** `Merge.hris.EmploymentsRetrieveRequest` +**request:** `Merge.crm.PatchedCrmAccountEndpointRequest`
@@ -16872,7 +18756,7 @@ await client.hris.employments.retrieve("id", {
-**requestOptions:** `EmploymentsClient.RequestOptions` +**requestOptions:** `AccountsClient.RequestOptions`
@@ -16884,8 +18768,7 @@ await client.hris.employments.retrieve("id", {
-## Hris FieldMapping -
client.hris.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse +
client.crm.accounts.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -16897,7 +18780,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/). +Returns metadata for `CRMAccount` PATCHs.
@@ -16912,9 +18795,7 @@ Get all Field Mappings for this Linked Account. Field Mappings are mappings betw
```typescript -await client.hris.fieldMapping.fieldMappingsRetrieve({ - excludeRemoteFieldMetadata: true -}); +await client.crm.accounts.metaPatchRetrieve("id"); ```
@@ -16930,7 +18811,7 @@ await client.hris.fieldMapping.fieldMappingsRetrieve({
-**request:** `Merge.hris.FieldMappingsRetrieveRequest` +**id:** `string`
@@ -16938,7 +18819,7 @@ await client.hris.fieldMapping.fieldMappingsRetrieve({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `AccountsClient.RequestOptions`
@@ -16950,7 +18831,7 @@ await client.hris.fieldMapping.fieldMappingsRetrieve({
-
client.hris.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse +
client.crm.accounts.metaPostRetrieve() -> Merge.MetaResponse
@@ -16962,7 +18843,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. +Returns metadata for `CRMAccount` POSTs.
@@ -16977,15 +18858,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.crm.accounts.metaPostRetrieve(); ```
@@ -17001,15 +18874,7 @@ await client.hris.fieldMapping.fieldMappingsCreate({
-**request:** `Merge.hris.CreateFieldMappingRequest` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `AccountsClient.RequestOptions`
@@ -17021,7 +18886,7 @@ await client.hris.fieldMapping.fieldMappingsCreate({
-
client.hris.fieldMapping.fieldMappingsDestroy(field_mapping_id) -> Merge.FieldMappingInstanceResponse +
client.crm.accounts.remoteFieldClassesList({ ...params }) -> core.Page
@@ -17033,7 +18898,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 `RemoteFieldClass` objects.
@@ -17048,7 +18913,37 @@ 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.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; ```
@@ -17064,7 +18959,7 @@ await client.hris.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**field_mapping_id:** `string` +**request:** `Merge.crm.AccountsRemoteFieldClassesListRequest`
@@ -17072,7 +18967,7 @@ await client.hris.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `AccountsClient.RequestOptions`
@@ -17084,7 +18979,8 @@ await client.hris.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-
client.hris.fieldMapping.fieldMappingsPartialUpdate(field_mapping_id, { ...params }) -> Merge.FieldMappingInstanceResponse +## Crm AsyncPassthrough +
client.crm.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept
@@ -17096,7 +18992,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. +Asynchronously pull data from an endpoint not currently supported by Merge.
@@ -17111,7 +19007,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.crm.asyncPassthrough.create({ + method: "GET", + path: "/scooters" +}); ```
@@ -17127,15 +19026,7 @@ await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-**field_mapping_id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.PatchedEditFieldMappingRequest` +**request:** `Merge.DataPassthroughRequest`
@@ -17143,7 +19034,7 @@ await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `AsyncPassthroughClient.RequestOptions`
@@ -17155,7 +19046,7 @@ await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-
client.hris.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse +
client.crm.asyncPassthrough.retrieve(async_passthrough_receipt_id) -> Merge.AsyncPassthroughRetrieveResponse
@@ -17167,7 +19058,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/). +Retrieves data from earlier async-passthrough POST request
@@ -17182,10 +19073,7 @@ 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" -}); +await client.crm.asyncPassthrough.retrieve("async_passthrough_receipt_id"); ```
@@ -17201,7 +19089,7 @@ await client.hris.fieldMapping.remoteFieldsRetrieve({
-**request:** `Merge.hris.RemoteFieldsRetrieveRequest` +**async_passthrough_receipt_id:** `string`
@@ -17209,7 +19097,7 @@ await client.hris.fieldMapping.remoteFieldsRetrieve({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `AsyncPassthroughClient.RequestOptions`
@@ -17221,7 +19109,8 @@ await client.hris.fieldMapping.remoteFieldsRetrieve({
-
client.hris.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse +## Crm AuditTrail +
client.crm.auditTrail.list({ ...params }) -> core.Page
@@ -17233,7 +19122,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/). +Gets a list of audit trail events.
@@ -17248,7 +19137,33 @@ Get all organization-wide Target Fields, this will not include any Linked Accoun
```typescript -await client.hris.fieldMapping.targetFieldsRetrieve(); +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; ```
@@ -17264,7 +19179,15 @@ await client.hris.fieldMapping.targetFieldsRetrieve();
-**requestOptions:** `FieldMappingClient.RequestOptions` +**request:** `Merge.crm.AuditTrailListRequest` + +
+
+ +
+
+ +**requestOptions:** `AuditTrailClient.RequestOptions`
@@ -17276,8 +19199,8 @@ await client.hris.fieldMapping.targetFieldsRetrieve();
-## Hris GenerateKey -
client.hris.generateKey.create({ ...params }) -> Merge.RemoteKey +## Crm AvailableActions +
client.crm.availableActions.retrieve() -> Merge.AvailableActions
@@ -17289,7 +19212,7 @@ await client.hris.fieldMapping.targetFieldsRetrieve();
-Create a remote key. +Returns a list of models and actions available for an account.
@@ -17304,9 +19227,7 @@ Create a remote key.
```typescript -await client.hris.generateKey.create({ - name: "Remote Deployment Key 1" -}); +await client.crm.availableActions.retrieve(); ```
@@ -17322,15 +19243,7 @@ await client.hris.generateKey.create({
-**request:** `Merge.hris.GenerateRemoteKeyRequest` - -
-
- -
-
- -**requestOptions:** `GenerateKeyClient.RequestOptions` +**requestOptions:** `AvailableActionsClient.RequestOptions`
@@ -17342,8 +19255,8 @@ await client.hris.generateKey.create({
-## Hris Groups -
client.hris.groups.list({ ...params }) -> Merge.PaginatedGroupList +## Crm Contacts +
client.crm.contacts.list({ ...params }) -> core.Page
@@ -17355,7 +19268,7 @@ await client.hris.generateKey.create({
-Returns a list of `Group` objects. +Returns a list of `Contact` objects.
@@ -17370,23 +19283,49 @@ Returns a list of `Group` objects.
```typescript -await client.hris.groups.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", + emailAddresses: "email_addresses", includeDeletedData: true, includeRemoteData: true, + includeRemoteFields: 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" + 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; ```
@@ -17402,7 +19341,7 @@ await client.hris.groups.list({
-**request:** `Merge.hris.GroupsListRequest` +**request:** `Merge.crm.ContactsListRequest`
@@ -17410,7 +19349,7 @@ await client.hris.groups.list({
-**requestOptions:** `GroupsClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -17422,7 +19361,7 @@ await client.hris.groups.list({
-
client.hris.groups.retrieve(id, { ...params }) -> Merge.Group +
client.crm.contacts.create({ ...params }) -> Merge.CrmContactResponse
@@ -17434,7 +19373,7 @@ await client.hris.groups.list({
-Returns a `Group` object with the given `id`. +Creates a `Contact` object with the given values.
@@ -17449,11 +19388,10 @@ Returns a `Group` object with the given `id`.
```typescript -await client.hris.groups.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - remoteFields: "type", - showEnumOrigins: "type" +await client.crm.contacts.create({ + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -17470,15 +19408,7 @@ await client.hris.groups.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.GroupsRetrieveRequest` +**request:** `Merge.crm.CrmContactEndpointRequest`
@@ -17486,7 +19416,7 @@ await client.hris.groups.retrieve("id", {
-**requestOptions:** `GroupsClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -17498,8 +19428,7 @@ await client.hris.groups.retrieve("id", {
-## Hris Issues -
client.hris.issues.list({ ...params }) -> Merge.PaginatedIssueList +
client.crm.contacts.retrieve(id, { ...params }) -> Merge.Contact
@@ -17511,7 +19440,7 @@ await client.hris.groups.retrieve("id", {
-Gets all issues for Organization. +Returns a `Contact` object with the given `id`.
@@ -17526,21 +19455,10 @@ Gets all issues for Organization.
```typescript -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" +await client.crm.contacts.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true }); ``` @@ -17557,7 +19475,7 @@ await client.hris.issues.list({
-**request:** `Merge.hris.IssuesListRequest` +**id:** `string`
@@ -17565,7 +19483,15 @@ await client.hris.issues.list({
-**requestOptions:** `IssuesClient.RequestOptions` +**request:** `Merge.crm.ContactsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `ContactsClient.RequestOptions`
@@ -17577,7 +19503,7 @@ await client.hris.issues.list({
-
client.hris.issues.retrieve(id) -> Merge.Issue +
client.crm.contacts.partialUpdate(id, { ...params }) -> Merge.CrmContactResponse
@@ -17589,7 +19515,7 @@ await client.hris.issues.list({
-Get a specific issue. +Updates a `Contact` object with the given `id`.
@@ -17604,7 +19530,11 @@ Get a specific issue.
```typescript -await client.hris.issues.retrieve("id"); +await client.crm.contacts.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {} +}); ```
@@ -17628,68 +19558,7 @@ await client.hris.issues.retrieve("id");
-**requestOptions:** `IssuesClient.RequestOptions` - -
-
- -
- - - - -
- -## Hris LinkToken -
client.hris.linkToken.create({ ...params }) -> Merge.LinkToken -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a link token to be used when linking a new end user. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.linkToken.create({ - endUserEmailAddress: "example@gmail.com", - endUserOrganizationName: "Test Organization", - endUserOriginId: "12345", - categories: ["hris", "ats"] -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.hris.EndUserDetailsRequest` +**request:** `Merge.crm.PatchedCrmContactEndpointRequest`
@@ -17697,7 +19566,7 @@ await client.hris.linkToken.create({
-**requestOptions:** `LinkTokenClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -17709,8 +19578,7 @@ await client.hris.linkToken.create({
-## Hris LinkedAccounts -
client.hris.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList +
client.crm.contacts.ignoreCreate(model_id, { ...params }) -> void
@@ -17722,7 +19590,7 @@ await client.hris.linkToken.create({
-List linked accounts for your organization. +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.
@@ -17737,20 +19605,8 @@ 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.crm.contacts.ignoreCreate("model_id", { + reason: "GENERAL_CUSTOMER_REQUEST" }); ``` @@ -17767,7 +19623,7 @@ await client.hris.linkedAccounts.list({
-**request:** `Merge.hris.LinkedAccountsListRequest` +**model_id:** `string`
@@ -17775,7 +19631,15 @@ await client.hris.linkedAccounts.list({
-**requestOptions:** `LinkedAccountsClient.RequestOptions` +**request:** `Merge.IgnoreCommonModelRequest` + +
+
+ +
+
+ +**requestOptions:** `ContactsClient.RequestOptions`
@@ -17787,8 +19651,7 @@ await client.hris.linkedAccounts.list({
-## Hris Locations -
client.hris.locations.list({ ...params }) -> Merge.PaginatedLocationList +
client.crm.contacts.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -17800,7 +19663,7 @@ await client.hris.linkedAccounts.list({
-Returns a list of `Location` objects. +Returns metadata for `CRMContact` PATCHs.
@@ -17815,21 +19678,7 @@ Returns a list of `Location` objects.
```typescript -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" -}); +await client.crm.contacts.metaPatchRetrieve("id"); ```
@@ -17845,7 +19694,7 @@ await client.hris.locations.list({
-**request:** `Merge.hris.LocationsListRequest` +**id:** `string`
@@ -17853,7 +19702,7 @@ await client.hris.locations.list({
-**requestOptions:** `LocationsClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -17865,7 +19714,7 @@ await client.hris.locations.list({
-
client.hris.locations.retrieve(id, { ...params }) -> Merge.Location +
client.crm.contacts.metaPostRetrieve() -> Merge.MetaResponse
@@ -17877,7 +19726,7 @@ await client.hris.locations.list({
-Returns a `Location` object with the given `id`. +Returns metadata for `CRMContact` POSTs.
@@ -17892,12 +19741,7 @@ 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.crm.contacts.metaPostRetrieve(); ```
@@ -17913,23 +19757,7 @@ await client.hris.locations.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.LocationsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `LocationsClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -17941,8 +19769,7 @@ await client.hris.locations.retrieve("id", {
-## Hris Passthrough -
client.hris.passthrough.create({ ...params }) -> Merge.RemoteResponse +
client.crm.contacts.remoteFieldClassesList({ ...params }) -> core.Page
@@ -17954,7 +19781,7 @@ await client.hris.locations.retrieve("id", {
-Pull data from an endpoint not currently supported by Merge. +Returns a list of `RemoteFieldClass` objects.
@@ -17969,10 +19796,37 @@ Pull data from an endpoint not currently supported by Merge.
```typescript -await client.hris.passthrough.create({ - method: "GET", - path: "/scooters" +const pageableResponse = await client.crm.contacts.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.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; ```
@@ -17988,7 +19842,7 @@ await client.hris.passthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**request:** `Merge.crm.ContactsRemoteFieldClassesListRequest`
@@ -17996,7 +19850,7 @@ await client.hris.passthrough.create({
-**requestOptions:** `PassthroughClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -18008,8 +19862,8 @@ await client.hris.passthrough.create({
-## Hris PayGroups -
client.hris.payGroups.list({ ...params }) -> Merge.PaginatedPayGroupList +## Crm CustomObjectClasses +
client.crm.customObjectClasses.list({ ...params }) -> core.Page
@@ -18021,7 +19875,7 @@ await client.hris.passthrough.create({
-Returns a list of `PayGroup` objects. +Returns a list of `CustomObjectClass` objects.
@@ -18036,7 +19890,24 @@ Returns a list of `PayGroup` objects.
```typescript -await client.hris.payGroups.list({ +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", @@ -18048,6 +19919,12 @@ await client.hris.payGroups.list({ pageSize: 1, remoteId: "remote_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -18063,7 +19940,7 @@ await client.hris.payGroups.list({
-**request:** `Merge.hris.PayGroupsListRequest` +**request:** `Merge.crm.CustomObjectClassesListRequest`
@@ -18071,7 +19948,7 @@ await client.hris.payGroups.list({
-**requestOptions:** `PayGroupsClient.RequestOptions` +**requestOptions:** `CustomObjectClassesClient.RequestOptions`
@@ -18083,7 +19960,7 @@ await client.hris.payGroups.list({
-
client.hris.payGroups.retrieve(id, { ...params }) -> Merge.PayGroup +
client.crm.customObjectClasses.retrieve(id, { ...params }) -> Merge.CustomObjectClass
@@ -18095,7 +19972,7 @@ await client.hris.payGroups.list({
-Returns a `PayGroup` object with the given `id`. +Returns a `CustomObjectClass` object with the given `id`.
@@ -18110,7 +19987,7 @@ Returns a `PayGroup` object with the given `id`.
```typescript -await client.hris.payGroups.retrieve("id", { +await client.crm.customObjectClasses.retrieve("id", { includeRemoteData: true, includeShellData: true }); @@ -18137,7 +20014,7 @@ await client.hris.payGroups.retrieve("id", {
-**request:** `Merge.hris.PayGroupsRetrieveRequest` +**request:** `Merge.crm.CustomObjectClassesRetrieveRequest`
@@ -18145,7 +20022,7 @@ await client.hris.payGroups.retrieve("id", {
-**requestOptions:** `PayGroupsClient.RequestOptions` +**requestOptions:** `CustomObjectClassesClient.RequestOptions`
@@ -18157,8 +20034,8 @@ await client.hris.payGroups.retrieve("id", {
-## Hris PayrollRuns -
client.hris.payrollRuns.list({ ...params }) -> Merge.PaginatedPayrollRunList +## Crm AssociationTypes +
client.crm.associationTypes.customObjectClassesAssociationTypesList(custom_object_class_id, { ...params }) -> core.Page
@@ -18170,7 +20047,7 @@ await client.hris.payGroups.retrieve("id", {
-Returns a list of `PayrollRun` objects. +Returns a list of `AssociationType` objects.
@@ -18185,25 +20062,41 @@ Returns a list of `PayrollRun` objects.
```typescript -await client.hris.payrollRuns.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", - 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") + 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; ```
@@ -18219,7 +20112,7 @@ await client.hris.payrollRuns.list({
-**request:** `Merge.hris.PayrollRunsListRequest` +**custom_object_class_id:** `string`
@@ -18227,7 +20120,15 @@ await client.hris.payrollRuns.list({
-**requestOptions:** `PayrollRunsClient.RequestOptions` +**request:** `Merge.crm.CustomObjectClassesAssociationTypesListRequest` + +
+
+ +
+
+ +**requestOptions:** `AssociationTypesClient.RequestOptions`
@@ -18239,7 +20140,7 @@ await client.hris.payrollRuns.list({
-
client.hris.payrollRuns.retrieve(id, { ...params }) -> Merge.PayrollRun +
client.crm.associationTypes.customObjectClassesAssociationTypesCreate(custom_object_class_id, { ...params }) -> Merge.CrmAssociationTypeResponse
@@ -18251,7 +20152,7 @@ await client.hris.payrollRuns.list({
-Returns a `PayrollRun` object with the given `id`. +Creates an `AssociationType` object with the given values.
@@ -18266,11 +20167,20 @@ 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.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" + } }); ``` @@ -18287,7 +20197,7 @@ await client.hris.payrollRuns.retrieve("id", {
-**id:** `string` +**custom_object_class_id:** `string`
@@ -18295,7 +20205,7 @@ await client.hris.payrollRuns.retrieve("id", {
-**request:** `Merge.hris.PayrollRunsRetrieveRequest` +**request:** `Merge.crm.CrmAssociationTypeEndpointRequest`
@@ -18303,7 +20213,7 @@ await client.hris.payrollRuns.retrieve("id", {
-**requestOptions:** `PayrollRunsClient.RequestOptions` +**requestOptions:** `AssociationTypesClient.RequestOptions`
@@ -18315,8 +20225,7 @@ await client.hris.payrollRuns.retrieve("id", {
-## Hris RegenerateKey -
client.hris.regenerateKey.create({ ...params }) -> Merge.RemoteKey +
client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve(custom_object_class_id, id, { ...params }) -> Merge.AssociationType
@@ -18328,7 +20237,7 @@ await client.hris.payrollRuns.retrieve("id", {
-Exchange remote keys. +Returns an `AssociationType` object with the given `id`.
@@ -18343,8 +20252,9 @@ Exchange remote keys.
```typescript -await client.hris.regenerateKey.create({ - name: "Remote Deployment Key 1" +await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("custom_object_class_id", "id", { + includeRemoteData: true, + includeShellData: true }); ``` @@ -18361,7 +20271,7 @@ await client.hris.regenerateKey.create({
-**request:** `Merge.hris.RemoteKeyForRegenerationRequest` +**custom_object_class_id:** `string`
@@ -18369,66 +20279,15 @@ await client.hris.regenerateKey.create({
-**requestOptions:** `RegenerateKeyClient.RequestOptions` +**id:** `string`
-
-
- - - - -
- -## Hris SyncStatus -
client.hris.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList -
-
- -#### 📝 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 -await client.hris.syncStatus.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
-**request:** `Merge.hris.SyncStatusListRequest` +**request:** `Merge.crm.CustomObjectClassesAssociationTypesRetrieveRequest`
@@ -18436,7 +20295,7 @@ await client.hris.syncStatus.list({
-**requestOptions:** `SyncStatusClient.RequestOptions` +**requestOptions:** `AssociationTypesClient.RequestOptions`
@@ -18448,8 +20307,7 @@ await client.hris.syncStatus.list({
-## Hris ForceResync -
client.hris.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[] +
client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRetrieve(custom_object_class_id) -> Merge.MetaResponse
@@ -18461,7 +20319,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 metadata for `CRMAssociationType` POSTs.
@@ -18476,7 +20334,7 @@ Force re-sync of all models. This endpoint is available for monthly, quarterly,
```typescript -await client.hris.forceResync.syncStatusResyncCreate(); +await client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRetrieve("custom_object_class_id"); ```
@@ -18492,7 +20350,15 @@ await client.hris.forceResync.syncStatusResyncCreate();
-**requestOptions:** `ForceResyncClient.RequestOptions` +**custom_object_class_id:** `string` + +
+
+ +
+
+ +**requestOptions:** `AssociationTypesClient.RequestOptions`
@@ -18504,8 +20370,8 @@ await client.hris.forceResync.syncStatusResyncCreate();
-## Hris Teams -
client.hris.teams.list({ ...params }) -> Merge.PaginatedTeamList +## Crm CustomObjects +
client.crm.customObjects.customObjectClassesCustomObjectsList(custom_object_class_id, { ...params }) -> core.Page
@@ -18517,7 +20383,7 @@ await client.hris.forceResync.syncStatusResyncCreate();
-Returns a list of `Team` objects. +Returns a list of `CustomObject` objects.
@@ -18532,20 +20398,43 @@ Returns a list of `Team` objects.
```typescript -await client.hris.teams.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", - expand: "parent_team", 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.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, - parentTeamId: "parent_team_id", remoteId: "remote_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -18561,7 +20450,7 @@ await client.hris.teams.list({
-**request:** `Merge.hris.TeamsListRequest` +**custom_object_class_id:** `string`
@@ -18569,7 +20458,15 @@ await client.hris.teams.list({
-**requestOptions:** `TeamsClient.RequestOptions` +**request:** `Merge.crm.CustomObjectClassesCustomObjectsListRequest` + +
+
+ +
+
+ +**requestOptions:** `CustomObjectsClient.RequestOptions`
@@ -18581,7 +20478,7 @@ await client.hris.teams.list({
-
client.hris.teams.retrieve(id, { ...params }) -> Merge.Team +
client.crm.customObjects.customObjectClassesCustomObjectsCreate(custom_object_class_id, { ...params }) -> Merge.CrmCustomObjectResponse
@@ -18593,7 +20490,7 @@ await client.hris.teams.list({
-Returns a `Team` object with the given `id`. +Creates a `CustomObject` object with the given values.
@@ -18608,10 +20505,14 @@ Returns a `Team` object with the given `id`.
```typescript -await client.hris.teams.retrieve("id", { - expand: "parent_team", - includeRemoteData: true, - includeShellData: true +await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_object_class_id", { + isDebugMode: true, + runAsync: true, + model: { + fields: { + "test_field": "hello" + } + } }); ``` @@ -18628,7 +20529,7 @@ await client.hris.teams.retrieve("id", {
-**id:** `string` +**custom_object_class_id:** `string`
@@ -18636,7 +20537,7 @@ await client.hris.teams.retrieve("id", {
-**request:** `Merge.hris.TeamsRetrieveRequest` +**request:** `Merge.crm.CrmCustomObjectEndpointRequest`
@@ -18644,7 +20545,7 @@ await client.hris.teams.retrieve("id", {
-**requestOptions:** `TeamsClient.RequestOptions` +**requestOptions:** `CustomObjectsClient.RequestOptions`
@@ -18656,8 +20557,7 @@ await client.hris.teams.retrieve("id", {
-## Hris TimeOff -
client.hris.timeOff.list({ ...params }) -> Merge.PaginatedTimeOffList +
client.crm.customObjects.customObjectClassesCustomObjectsRetrieve(custom_object_class_id, id, { ...params }) -> Merge.CustomObject
@@ -18669,7 +20569,7 @@ await client.hris.teams.retrieve("id", {
-Returns a list of `TimeOff` objects. +Returns a `CustomObject` object with the given `id`.
@@ -18684,28 +20584,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, +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"), - 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" + includeRemoteFields: true, + includeShellData: true }); ``` @@ -18722,7 +20604,7 @@ await client.hris.timeOff.list({
-**request:** `Merge.hris.TimeOffListRequest` +**custom_object_class_id:** `string`
@@ -18730,7 +20612,23 @@ await client.hris.timeOff.list({
-**requestOptions:** `TimeOffClient.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.crm.CustomObjectClassesCustomObjectsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `CustomObjectsClient.RequestOptions`
@@ -18742,7 +20640,7 @@ await client.hris.timeOff.list({
-
client.hris.timeOff.create({ ...params }) -> Merge.TimeOffResponse +
client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve(custom_object_class_id) -> Merge.MetaResponse
@@ -18754,7 +20652,7 @@ await client.hris.timeOff.list({
-Creates a `TimeOff` object with the given values. +Returns metadata for `CRMCustomObject` POSTs.
@@ -18769,11 +20667,7 @@ Creates a `TimeOff` object with the given values.
```typescript -await client.hris.timeOff.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); +await client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve("custom_object_class_id"); ```
@@ -18789,7 +20683,7 @@ await client.hris.timeOff.create({
-**request:** `Merge.hris.TimeOffEndpointRequest` +**custom_object_class_id:** `string`
@@ -18797,7 +20691,7 @@ await client.hris.timeOff.create({
-**requestOptions:** `TimeOffClient.RequestOptions` +**requestOptions:** `CustomObjectsClient.RequestOptions`
@@ -18809,7 +20703,7 @@ await client.hris.timeOff.create({
-
client.hris.timeOff.retrieve(id, { ...params }) -> Merge.TimeOff +
client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClassesList({ ...params }) -> core.Page
@@ -18821,7 +20715,7 @@ await client.hris.timeOff.create({
-Returns a `TimeOff` object with the given `id`. +Returns a list of `RemoteFieldClass` objects.
@@ -18836,13 +20730,37 @@ Returns a `TimeOff` object with the given `id`.
```typescript -await client.hris.timeOff.retrieve("id", { - expand: "approver", +const pageableResponse = await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, includeRemoteData: true, + includeRemoteFields: true, includeShellData: true, - remoteFields: "request_type", - showEnumOrigins: "request_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; ```
@@ -18858,15 +20776,7 @@ await client.hris.timeOff.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.TimeOffRetrieveRequest` +**request:** `Merge.crm.CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest`
@@ -18874,7 +20784,7 @@ await client.hris.timeOff.retrieve("id", {
-**requestOptions:** `TimeOffClient.RequestOptions` +**requestOptions:** `CustomObjectsClient.RequestOptions`
@@ -18886,7 +20796,8 @@ await client.hris.timeOff.retrieve("id", {
-
client.hris.timeOff.metaPostRetrieve() -> Merge.MetaResponse +## Crm Associations +
client.crm.associations.customObjectClassesCustomObjectsAssociationsList(custom_object_class_id, object_id, { ...params }) -> core.Page
@@ -18898,7 +20809,7 @@ await client.hris.timeOff.retrieve("id", {
-Returns metadata for `TimeOff` POSTs. +Returns a list of `Association` objects.
@@ -18913,7 +20824,43 @@ Returns metadata for `TimeOff` POSTs.
```typescript -await client.hris.timeOff.metaPostRetrieve(); +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", + 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.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; ```
@@ -18929,7 +20876,31 @@ await client.hris.timeOff.metaPostRetrieve();
-**requestOptions:** `TimeOffClient.RequestOptions` +**custom_object_class_id:** `string` + +
+
+ +
+
+ +**object_id:** `string` + +
+
+ +
+
+ +**request:** `Merge.crm.CustomObjectClassesCustomObjectsAssociationsListRequest` + +
+
+ +
+
+ +**requestOptions:** `AssociationsClient.RequestOptions`
@@ -18941,8 +20912,7 @@ await client.hris.timeOff.metaPostRetrieve();
-## Hris TimeOffBalances -
client.hris.timeOffBalances.list({ ...params }) -> Merge.PaginatedTimeOffBalanceList +
client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate(source_class_id, source_object_id, target_class_id, target_object_id, association_type_id, { ...params }) -> Merge.Association
@@ -18954,7 +20924,7 @@ await client.hris.timeOff.metaPostRetrieve();
-Returns a list of `TimeOffBalance` objects. +Creates an Association between `source_object_id` and `target_object_id` of type `association_type_id`.
@@ -18969,22 +20939,9 @@ 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.associations.customObjectClassesCustomObjectsAssociationsUpdate("source_class_id", "source_object_id", "target_class_id", "target_object_id", "association_type_id", { + isDebugMode: true, + runAsync: true }); ``` @@ -19001,7 +20958,7 @@ await client.hris.timeOffBalances.list({
-**request:** `Merge.hris.TimeOffBalancesListRequest` +**source_class_id:** `string`
@@ -19009,68 +20966,31 @@ await client.hris.timeOffBalances.list({
-**requestOptions:** `TimeOffBalancesClient.RequestOptions` +**source_object_id:** `string`
-
-
- - - -
- -
client.hris.timeOffBalances.retrieve(id, { ...params }) -> Merge.TimeOffBalance
-#### 📝 Description - -
-
- -
-
- -Returns a `TimeOffBalance` object with the given `id`. -
-
+**target_class_id:** `string` +
-#### 🔌 Usage -
-
-
- -```typescript -await client.hris.timeOffBalances.retrieve("id", { - expand: "employee", - includeRemoteData: true, - includeShellData: true, - remoteFields: "policy_type", - showEnumOrigins: "policy_type" -}); - -``` -
-
+**target_object_id:** `string` +
-#### ⚙️ Parameters - -
-
-
-**id:** `string` +**association_type_id:** `string`
@@ -19078,7 +20998,7 @@ await client.hris.timeOffBalances.retrieve("id", {
-**request:** `Merge.hris.TimeOffBalancesRetrieveRequest` +**request:** `Merge.crm.CustomObjectClassesCustomObjectsAssociationsUpdateRequest`
@@ -19086,7 +21006,7 @@ await client.hris.timeOffBalances.retrieve("id", {
-**requestOptions:** `TimeOffBalancesClient.RequestOptions` +**requestOptions:** `AssociationsClient.RequestOptions`
@@ -19098,8 +21018,8 @@ await client.hris.timeOffBalances.retrieve("id", {
-## Hris TimesheetEntries -
client.hris.timesheetEntries.list({ ...params }) -> Merge.PaginatedTimesheetEntryList +## Crm Scopes +
client.crm.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -19111,7 +21031,7 @@ await client.hris.timeOffBalances.retrieve("id", {
-Returns a list of `TimesheetEntry` objects. +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).
@@ -19126,25 +21046,7 @@ Returns a list of `TimesheetEntry` objects.
```typescript -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") -}); +await client.crm.scopes.defaultScopesRetrieve(); ```
@@ -19160,15 +21062,7 @@ await client.hris.timesheetEntries.list({
-**request:** `Merge.hris.TimesheetEntriesListRequest` - -
-
- -
-
- -**requestOptions:** `TimesheetEntriesClient.RequestOptions` +**requestOptions:** `ScopesClient.RequestOptions`
@@ -19180,7 +21074,7 @@ await client.hris.timesheetEntries.list({
-
client.hris.timesheetEntries.create({ ...params }) -> Merge.TimesheetEntryResponse +
client.crm.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -19192,7 +21086,7 @@ await client.hris.timesheetEntries.list({
-Creates a `TimesheetEntry` object with the given values. +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).
@@ -19207,11 +21101,7 @@ Creates a `TimesheetEntry` object with the given values.
```typescript -await client.hris.timesheetEntries.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); +await client.crm.scopes.linkedAccountScopesRetrieve(); ```
@@ -19227,15 +21117,7 @@ await client.hris.timesheetEntries.create({
-**request:** `Merge.hris.TimesheetEntryEndpointRequest` - -
-
- -
-
- -**requestOptions:** `TimesheetEntriesClient.RequestOptions` +**requestOptions:** `ScopesClient.RequestOptions`
@@ -19247,7 +21129,7 @@ await client.hris.timesheetEntries.create({
-
client.hris.timesheetEntries.retrieve(id, { ...params }) -> Merge.TimesheetEntry +
client.crm.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi
@@ -19259,7 +21141,7 @@ await client.hris.timesheetEntries.create({
-Returns a `TimesheetEntry` 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)
@@ -19274,10 +21156,29 @@ Returns a `TimesheetEntry` object with the given `id`.
```typescript -await client.hris.timesheetEntries.retrieve("id", { - expand: "employee", - includeRemoteData: true, - includeShellData: true +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 + } + } + }] }); ``` @@ -19294,15 +21195,7 @@ await client.hris.timesheetEntries.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.TimesheetEntriesRetrieveRequest` +**request:** `Merge.crm.LinkedAccountCommonModelScopeDeserializerRequest`
@@ -19310,7 +21203,7 @@ await client.hris.timesheetEntries.retrieve("id", {
-**requestOptions:** `TimesheetEntriesClient.RequestOptions` +**requestOptions:** `ScopesClient.RequestOptions`
@@ -19322,7 +21215,8 @@ await client.hris.timesheetEntries.retrieve("id", {
-
client.hris.timesheetEntries.metaPostRetrieve() -> Merge.MetaResponse +## Crm DeleteAccount +
client.crm.deleteAccount.delete() -> void
@@ -19334,7 +21228,7 @@ await client.hris.timesheetEntries.retrieve("id", {
-Returns metadata for `TimesheetEntry` POSTs. +Delete a linked account.
@@ -19349,7 +21243,7 @@ Returns metadata for `TimesheetEntry` POSTs.
```typescript -await client.hris.timesheetEntries.metaPostRetrieve(); +await client.crm.deleteAccount.delete(); ```
@@ -19365,7 +21259,7 @@ await client.hris.timesheetEntries.metaPostRetrieve();
-**requestOptions:** `TimesheetEntriesClient.RequestOptions` +**requestOptions:** `DeleteAccountClient.RequestOptions`
@@ -19377,8 +21271,8 @@ await client.hris.timesheetEntries.metaPostRetrieve();
-## Hris WebhookReceivers -
client.hris.webhookReceivers.list() -> Merge.WebhookReceiver[] +## Crm EngagementTypes +
client.crm.engagementTypes.list({ ...params }) -> core.Page
@@ -19390,7 +21284,7 @@ await client.hris.timesheetEntries.metaPostRetrieve();
-Returns a list of `WebhookReceiver` objects. +Returns a list of `EngagementType` objects.
@@ -19405,7 +21299,43 @@ Returns a list of `WebhookReceiver` objects.
```typescript -await client.hris.webhookReceivers.list(); +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, + 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; ```
@@ -19421,7 +21351,15 @@ await client.hris.webhookReceivers.list();
-**requestOptions:** `WebhookReceiversClient.RequestOptions` +**request:** `Merge.crm.EngagementTypesListRequest` + +
+
+ +
+
+ +**requestOptions:** `EngagementTypesClient.RequestOptions`
@@ -19433,7 +21371,7 @@ await client.hris.webhookReceivers.list();
-
client.hris.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver +
client.crm.engagementTypes.retrieve(id, { ...params }) -> Merge.EngagementType
@@ -19445,7 +21383,7 @@ await client.hris.webhookReceivers.list();
-Creates a `WebhookReceiver` object with the given values. +Returns an `EngagementType` object with the given `id`.
@@ -19460,9 +21398,10 @@ Creates a `WebhookReceiver` object with the given values.
```typescript -await client.hris.webhookReceivers.create({ - event: "event", - isActive: true +await client.crm.engagementTypes.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true }); ``` @@ -19479,7 +21418,7 @@ await client.hris.webhookReceivers.create({
-**request:** `Merge.hris.WebhookReceiverRequest` +**id:** `string`
@@ -19487,7 +21426,15 @@ await client.hris.webhookReceivers.create({
-**requestOptions:** `WebhookReceiversClient.RequestOptions` +**request:** `Merge.crm.EngagementTypesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `EngagementTypesClient.RequestOptions`
@@ -19499,8 +21446,7 @@ await client.hris.webhookReceivers.create({
-## Ticketing AccountDetails -
client.ticketing.accountDetails.retrieve() -> Merge.AccountDetails +
client.crm.engagementTypes.remoteFieldClassesList({ ...params }) -> core.Page
@@ -19512,7 +21458,7 @@ await client.hris.webhookReceivers.create({
-Get details for a linked account. +Returns a list of `RemoteFieldClass` objects.
@@ -19527,7 +21473,37 @@ Get details for a linked account.
```typescript -await client.ticketing.accountDetails.retrieve(); +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; ```
@@ -19543,7 +21519,15 @@ await client.ticketing.accountDetails.retrieve();
-**requestOptions:** `AccountDetailsClient.RequestOptions` +**request:** `Merge.crm.EngagementTypesRemoteFieldClassesListRequest` + +
+
+ +
+
+ +**requestOptions:** `EngagementTypesClient.RequestOptions`
@@ -19555,8 +21539,8 @@ await client.ticketing.accountDetails.retrieve();
-## Ticketing AccountToken -
client.ticketing.accountToken.retrieve(public_token) -> Merge.AccountToken +## Crm Engagements +
client.crm.engagements.list({ ...params }) -> core.Page
@@ -19568,7 +21552,7 @@ await client.ticketing.accountDetails.retrieve();
-Returns the account token for the end user with the provided public token. +Returns a list of `Engagement` objects.
@@ -19583,7 +21567,47 @@ Returns the account token for the end user with the provided public token.
```typescript -await client.ticketing.accountToken.retrieve("public_token"); +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; ```
@@ -19599,7 +21623,7 @@ await client.ticketing.accountToken.retrieve("public_token");
-**public_token:** `string` +**request:** `Merge.crm.EngagementsListRequest`
@@ -19607,7 +21631,7 @@ await client.ticketing.accountToken.retrieve("public_token");
-**requestOptions:** `AccountTokenClient.RequestOptions` +**requestOptions:** `EngagementsClient.RequestOptions`
@@ -19619,8 +21643,7 @@ await client.ticketing.accountToken.retrieve("public_token");
-## Ticketing Accounts -
client.ticketing.accounts.list({ ...params }) -> Merge.PaginatedAccountList +
client.crm.engagements.create({ ...params }) -> Merge.EngagementResponse
@@ -19632,7 +21655,7 @@ await client.ticketing.accountToken.retrieve("public_token");
-Returns a list of `Account` objects. +Creates an `Engagement` object with the given values.
@@ -19647,17 +21670,10 @@ 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.engagements.create({ + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -19674,7 +21690,7 @@ await client.ticketing.accounts.list({
-**request:** `Merge.ticketing.AccountsListRequest` +**request:** `Merge.crm.EngagementEndpointRequest`
@@ -19682,7 +21698,7 @@ await client.ticketing.accounts.list({
-**requestOptions:** `AccountsClient.RequestOptions` +**requestOptions:** `EngagementsClient.RequestOptions`
@@ -19694,7 +21710,7 @@ await client.ticketing.accounts.list({
-
client.ticketing.accounts.retrieve(id, { ...params }) -> Merge.Account +
client.crm.engagements.retrieve(id, { ...params }) -> Merge.Engagement
@@ -19706,7 +21722,7 @@ await client.ticketing.accounts.list({
-Returns an `Account` object with the given `id`. +Returns an `Engagement` object with the given `id`.
@@ -19721,8 +21737,9 @@ Returns an `Account` object with the given `id`.
```typescript -await client.ticketing.accounts.retrieve("id", { +await client.crm.engagements.retrieve("id", { includeRemoteData: true, + includeRemoteFields: true, includeShellData: true }); @@ -19748,7 +21765,7 @@ await client.ticketing.accounts.retrieve("id", {
-**request:** `Merge.ticketing.AccountsRetrieveRequest` +**request:** `Merge.crm.EngagementsRetrieveRequest`
@@ -19756,7 +21773,7 @@ await client.ticketing.accounts.retrieve("id", {
-**requestOptions:** `AccountsClient.RequestOptions` +**requestOptions:** `EngagementsClient.RequestOptions`
@@ -19768,8 +21785,7 @@ await client.ticketing.accounts.retrieve("id", {
-## Ticketing AsyncPassthrough -
client.ticketing.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept +
client.crm.engagements.partialUpdate(id, { ...params }) -> Merge.EngagementResponse
@@ -19781,7 +21797,7 @@ await client.ticketing.accounts.retrieve("id", {
-Asynchronously pull data from an endpoint not currently supported by Merge. +Updates an `Engagement` object with the given `id`.
@@ -19796,9 +21812,10 @@ Asynchronously pull data from an endpoint not currently supported by Merge.
```typescript -await client.ticketing.asyncPassthrough.create({ - method: "GET", - path: "/scooters" +await client.crm.engagements.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -19815,7 +21832,7 @@ await client.ticketing.asyncPassthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**id:** `string`
@@ -19823,7 +21840,15 @@ await client.ticketing.asyncPassthrough.create({
-**requestOptions:** `AsyncPassthroughClient.RequestOptions` +**request:** `Merge.crm.PatchedEngagementEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `EngagementsClient.RequestOptions`
@@ -19835,7 +21860,7 @@ await client.ticketing.asyncPassthrough.create({
-
client.ticketing.asyncPassthrough.retrieve(async_passthrough_receipt_id) -> Merge.AsyncPassthroughRetrieveResponse +
client.crm.engagements.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -19847,7 +21872,7 @@ await client.ticketing.asyncPassthrough.create({
-Retrieves data from earlier async-passthrough POST request +Returns metadata for `Engagement` PATCHs.
@@ -19862,7 +21887,7 @@ Retrieves data from earlier async-passthrough POST request
```typescript -await client.ticketing.asyncPassthrough.retrieve("async_passthrough_receipt_id"); +await client.crm.engagements.metaPatchRetrieve("id"); ```
@@ -19878,7 +21903,7 @@ await client.ticketing.asyncPassthrough.retrieve("async_passthrough_receipt_id")
-**async_passthrough_receipt_id:** `string` +**id:** `string`
@@ -19886,7 +21911,7 @@ await client.ticketing.asyncPassthrough.retrieve("async_passthrough_receipt_id")
-**requestOptions:** `AsyncPassthroughClient.RequestOptions` +**requestOptions:** `EngagementsClient.RequestOptions`
@@ -19898,8 +21923,7 @@ await client.ticketing.asyncPassthrough.retrieve("async_passthrough_receipt_id")
-## Ticketing Attachments -
client.ticketing.attachments.list({ ...params }) -> Merge.PaginatedAttachmentList +
client.crm.engagements.metaPostRetrieve() -> Merge.MetaResponse
@@ -19911,7 +21935,7 @@ await client.ticketing.asyncPassthrough.retrieve("async_passthrough_receipt_id")
-Returns a list of `Attachment` objects. +Returns metadata for `Engagement` POSTs.
@@ -19926,21 +21950,92 @@ Returns a list of `Attachment` objects.
```typescript -await client.ticketing.attachments.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), +await client.crm.engagements.metaPostRetrieve(); + +``` +
+
+ + + +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `EngagementsClient.RequestOptions` + +
+
+
+
+ + + + +
+ +
client.crm.engagements.remoteFieldClassesList({ ...params }) -> core.Page +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `RemoteFieldClass` objects. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +const pageableResponse = await client.crm.engagements.remoteFieldClassesList({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "ticket", 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, - remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), - remoteId: "remote_id", - ticketId: "ticket_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.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; ```
@@ -19956,7 +22051,7 @@ await client.ticketing.attachments.list({
-**request:** `Merge.ticketing.AttachmentsListRequest` +**request:** `Merge.crm.EngagementsRemoteFieldClassesListRequest`
@@ -19964,7 +22059,7 @@ await client.ticketing.attachments.list({
-**requestOptions:** `AttachmentsClient.RequestOptions` +**requestOptions:** `EngagementsClient.RequestOptions`
@@ -19976,7 +22071,8 @@ await client.ticketing.attachments.list({
-
client.ticketing.attachments.create({ ...params }) -> Merge.TicketingAttachmentResponse +## Crm FieldMapping +
client.crm.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse
@@ -19988,7 +22084,7 @@ await client.ticketing.attachments.list({
-Creates an `Attachment` 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/).
@@ -20003,10 +22099,8 @@ Creates an `Attachment` object with the given values.
```typescript -await client.ticketing.attachments.create({ - isDebugMode: true, - runAsync: true, - model: {} +await client.crm.fieldMapping.fieldMappingsRetrieve({ + excludeRemoteFieldMetadata: true }); ``` @@ -20023,7 +22117,7 @@ await client.ticketing.attachments.create({
-**request:** `Merge.ticketing.TicketingAttachmentEndpointRequest` +**request:** `Merge.crm.FieldMappingsRetrieveRequest`
@@ -20031,7 +22125,7 @@ await client.ticketing.attachments.create({
-**requestOptions:** `AttachmentsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -20043,7 +22137,7 @@ await client.ticketing.attachments.create({
-
client.ticketing.attachments.retrieve(id, { ...params }) -> Merge.Attachment +
client.crm.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse
@@ -20055,7 +22149,7 @@ await client.ticketing.attachments.create({
-Returns an `Attachment` 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.
@@ -20070,10 +22164,15 @@ Returns an `Attachment` object with the given `id`.
```typescript -await client.ticketing.attachments.retrieve("id", { - expand: "ticket", - includeRemoteData: true, - includeShellData: true +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" }); ``` @@ -20090,7 +22189,7 @@ await client.ticketing.attachments.retrieve("id", {
-**id:** `string` +**request:** `Merge.crm.CreateFieldMappingRequest`
@@ -20098,15 +22197,70 @@ await client.ticketing.attachments.retrieve("id", {
-**request:** `Merge.ticketing.AttachmentsRetrieveRequest` +**requestOptions:** `FieldMappingClient.RequestOptions`
+
+
+ + + +
+ +
client.crm.fieldMapping.fieldMappingsDestroy(field_mapping_id) -> Merge.FieldMappingInstanceResponse
-**requestOptions:** `AttachmentsClient.RequestOptions` +#### 📝 Description + +
+
+ +
+
+ +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. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id"); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**field_mapping_id:** `string` + +
+
+ +
+
+ +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -20118,7 +22272,7 @@ await client.ticketing.attachments.retrieve("id", {
-
client.ticketing.attachments.metaPostRetrieve() -> Merge.MetaResponse +
client.crm.fieldMapping.fieldMappingsPartialUpdate(field_mapping_id, { ...params }) -> Merge.FieldMappingInstanceResponse
@@ -20130,7 +22284,7 @@ await client.ticketing.attachments.retrieve("id", {
-Returns metadata for `TicketingAttachment` POSTs. +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.
@@ -20145,7 +22299,9 @@ Returns metadata for `TicketingAttachment` POSTs.
```typescript -await client.ticketing.attachments.metaPostRetrieve(); +await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + remoteDataIterationCount: 1 +}); ```
@@ -20161,7 +22317,23 @@ await client.ticketing.attachments.metaPostRetrieve();
-**requestOptions:** `AttachmentsClient.RequestOptions` +**field_mapping_id:** `string` + +
+
+ +
+
+ +**request:** `Merge.crm.PatchedEditFieldMappingRequest` + +
+
+ +
+
+ +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -20173,8 +22345,7 @@ await client.ticketing.attachments.metaPostRetrieve();
-## Ticketing AuditTrail -
client.ticketing.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList +
client.crm.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse
@@ -20186,7 +22357,7 @@ await client.ticketing.attachments.metaPostRetrieve();
-Gets a list of audit trail events. +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/).
@@ -20201,13 +22372,9 @@ Gets a list of audit trail events.
```typescript -await client.ticketing.auditTrail.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - eventType: "event_type", - pageSize: 1, - startDate: "start_date", - userEmail: "user_email" +await client.crm.fieldMapping.remoteFieldsRetrieve({ + commonModels: "common_models", + includeExampleValues: "include_example_values" }); ``` @@ -20224,7 +22391,7 @@ await client.ticketing.auditTrail.list({
-**request:** `Merge.ticketing.AuditTrailListRequest` +**request:** `Merge.crm.RemoteFieldsRetrieveRequest`
@@ -20232,7 +22399,7 @@ await client.ticketing.auditTrail.list({
-**requestOptions:** `AuditTrailClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -20244,8 +22411,7 @@ await client.ticketing.auditTrail.list({
-## Ticketing AvailableActions -
client.ticketing.availableActions.retrieve() -> Merge.AvailableActions +
client.crm.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse
@@ -20257,7 +22423,7 @@ await client.ticketing.auditTrail.list({
-Returns a list of models and actions available for an account. +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/).
@@ -20272,7 +22438,7 @@ Returns a list of models and actions available for an account.
```typescript -await client.ticketing.availableActions.retrieve(); +await client.crm.fieldMapping.targetFieldsRetrieve(); ```
@@ -20288,7 +22454,7 @@ await client.ticketing.availableActions.retrieve();
-**requestOptions:** `AvailableActionsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -20300,8 +22466,8 @@ await client.ticketing.availableActions.retrieve();
-## Ticketing Collections -
client.ticketing.collections.list({ ...params }) -> Merge.PaginatedCollectionList +## Crm GenerateKey +
client.crm.generateKey.create({ ...params }) -> Merge.RemoteKey
@@ -20313,7 +22479,7 @@ await client.ticketing.availableActions.retrieve();
-Returns a list of `Collection` objects. +Create a remote key.
@@ -20328,23 +22494,8 @@ 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, - 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" +await client.crm.generateKey.create({ + name: "Remote Deployment Key 1" }); ``` @@ -20361,7 +22512,7 @@ await client.ticketing.collections.list({
-**request:** `Merge.ticketing.CollectionsListRequest` +**request:** `Merge.crm.GenerateRemoteKeyRequest`
@@ -20369,7 +22520,7 @@ await client.ticketing.collections.list({
-**requestOptions:** `CollectionsClient.RequestOptions` +**requestOptions:** `GenerateKeyClient.RequestOptions`
@@ -20381,7 +22532,8 @@ await client.ticketing.collections.list({
-
client.ticketing.collections.viewersList(collection_id, { ...params }) -> Merge.PaginatedViewerList +## Crm Issues +
client.crm.issues.list({ ...params }) -> core.Page
@@ -20393,7 +22545,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) +Gets all issues for Organization.
@@ -20408,14 +22560,49 @@ 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", { +const pageableResponse = await client.crm.issues.list({ + accountToken: "account_token", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "team", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: 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.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; ```
@@ -20431,15 +22618,7 @@ await client.ticketing.collections.viewersList("collection_id", {
-**collection_id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.CollectionsViewersListRequest` +**request:** `Merge.crm.IssuesListRequest`
@@ -20447,7 +22626,7 @@ await client.ticketing.collections.viewersList("collection_id", {
-**requestOptions:** `CollectionsClient.RequestOptions` +**requestOptions:** `IssuesClient.RequestOptions`
@@ -20459,7 +22638,7 @@ await client.ticketing.collections.viewersList("collection_id", {
-
client.ticketing.collections.retrieve(id, { ...params }) -> Merge.Collection +
client.crm.issues.retrieve(id) -> Merge.Issue
@@ -20471,7 +22650,7 @@ await client.ticketing.collections.viewersList("collection_id", {
-Returns a `Collection` object with the given `id`. +Get a specific issue.
@@ -20486,13 +22665,7 @@ Returns a `Collection` object with the given `id`.
```typescript -await client.ticketing.collections.retrieve("id", { - expand: "parent_collection", - includeRemoteData: true, - includeShellData: true, - remoteFields: "collection_type", - showEnumOrigins: "collection_type" -}); +await client.crm.issues.retrieve("id"); ```
@@ -20516,15 +22689,7 @@ await client.ticketing.collections.retrieve("id", {
-**request:** `Merge.ticketing.CollectionsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `CollectionsClient.RequestOptions` +**requestOptions:** `IssuesClient.RequestOptions`
@@ -20536,8 +22701,8 @@ await client.ticketing.collections.retrieve("id", {
-## Ticketing Comments -
client.ticketing.comments.list({ ...params }) -> Merge.PaginatedCommentList +## Crm Leads +
client.crm.leads.list({ ...params }) -> core.Page
@@ -20549,7 +22714,7 @@ await client.ticketing.collections.retrieve("id", {
-Returns a list of `Comment` objects. +Returns a list of `Lead` objects.
@@ -20564,21 +22729,53 @@ Returns a list of `Comment` objects.
```typescript -await client.ticketing.comments.list({ +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", - expand: "contact", + 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, - remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), - remoteId: "remote_id", - ticketId: "ticket_id" + 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; ```
@@ -20594,7 +22791,7 @@ await client.ticketing.comments.list({
-**request:** `Merge.ticketing.CommentsListRequest` +**request:** `Merge.crm.LeadsListRequest`
@@ -20602,7 +22799,7 @@ await client.ticketing.comments.list({
-**requestOptions:** `CommentsClient.RequestOptions` +**requestOptions:** `LeadsClient.RequestOptions`
@@ -20614,7 +22811,7 @@ await client.ticketing.comments.list({
-
client.ticketing.comments.create({ ...params }) -> Merge.CommentResponse +
client.crm.leads.create({ ...params }) -> Merge.LeadResponse
@@ -20626,7 +22823,7 @@ await client.ticketing.comments.list({
-Creates a `Comment` object with the given values. +Creates a `Lead` object with the given values.
@@ -20641,7 +22838,7 @@ Creates a `Comment` object with the given values.
```typescript -await client.ticketing.comments.create({ +await client.crm.leads.create({ isDebugMode: true, runAsync: true, model: {} @@ -20661,7 +22858,7 @@ await client.ticketing.comments.create({
-**request:** `Merge.ticketing.CommentEndpointRequest` +**request:** `Merge.crm.LeadEndpointRequest`
@@ -20669,7 +22866,7 @@ await client.ticketing.comments.create({
-**requestOptions:** `CommentsClient.RequestOptions` +**requestOptions:** `LeadsClient.RequestOptions`
@@ -20681,7 +22878,7 @@ await client.ticketing.comments.create({
-
client.ticketing.comments.retrieve(id, { ...params }) -> Merge.Comment +
client.crm.leads.retrieve(id, { ...params }) -> Merge.Lead
@@ -20693,7 +22890,7 @@ await client.ticketing.comments.create({
-Returns a `Comment` object with the given `id`. +Returns a `Lead` object with the given `id`.
@@ -20708,9 +22905,9 @@ Returns a `Comment` object with the given `id`.
```typescript -await client.ticketing.comments.retrieve("id", { - expand: "contact", +await client.crm.leads.retrieve("id", { includeRemoteData: true, + includeRemoteFields: true, includeShellData: true }); @@ -20736,7 +22933,7 @@ await client.ticketing.comments.retrieve("id", {
-**request:** `Merge.ticketing.CommentsRetrieveRequest` +**request:** `Merge.crm.LeadsRetrieveRequest`
@@ -20744,7 +22941,7 @@ await client.ticketing.comments.retrieve("id", {
-**requestOptions:** `CommentsClient.RequestOptions` +**requestOptions:** `LeadsClient.RequestOptions`
@@ -20756,7 +22953,7 @@ await client.ticketing.comments.retrieve("id", {
-
client.ticketing.comments.metaPostRetrieve() -> Merge.MetaResponse +
client.crm.leads.metaPostRetrieve() -> Merge.MetaResponse
@@ -20768,7 +22965,7 @@ await client.ticketing.comments.retrieve("id", {
-Returns metadata for `Comment` POSTs. +Returns metadata for `Lead` POSTs.
@@ -20783,7 +22980,7 @@ Returns metadata for `Comment` POSTs.
```typescript -await client.ticketing.comments.metaPostRetrieve(); +await client.crm.leads.metaPostRetrieve(); ```
@@ -20799,7 +22996,7 @@ await client.ticketing.comments.metaPostRetrieve();
-**requestOptions:** `CommentsClient.RequestOptions` +**requestOptions:** `LeadsClient.RequestOptions`
@@ -20811,8 +23008,7 @@ await client.ticketing.comments.metaPostRetrieve();
-## Ticketing Contacts -
client.ticketing.contacts.list({ ...params }) -> Merge.PaginatedContactList +
client.crm.leads.remoteFieldClassesList({ ...params }) -> core.Page
@@ -20824,7 +23020,7 @@ await client.ticketing.comments.metaPostRetrieve();
-Returns a list of `Contact` objects. +Returns a list of `RemoteFieldClass` objects.
@@ -20839,20 +23035,37 @@ 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"), +const pageableResponse = await client.crm.leads.remoteFieldClassesList({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - emailAddress: "email_address", - 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.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; ```
@@ -20868,7 +23081,7 @@ await client.ticketing.contacts.list({
-**request:** `Merge.ticketing.ContactsListRequest` +**request:** `Merge.crm.LeadsRemoteFieldClassesListRequest`
@@ -20876,7 +23089,7 @@ await client.ticketing.contacts.list({
-**requestOptions:** `ContactsClient.RequestOptions` +**requestOptions:** `LeadsClient.RequestOptions`
@@ -20888,7 +23101,8 @@ await client.ticketing.contacts.list({
-
client.ticketing.contacts.create({ ...params }) -> Merge.TicketingContactResponse +## Crm LinkToken +
client.crm.linkToken.create({ ...params }) -> Merge.LinkToken
@@ -20900,7 +23114,7 @@ await client.ticketing.contacts.list({
-Creates a `Contact` 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.
@@ -20915,10 +23129,11 @@ Creates a `Contact` object with the given values.
```typescript -await client.ticketing.contacts.create({ - isDebugMode: true, - runAsync: true, - model: {} +await client.crm.linkToken.create({ + endUserEmailAddress: "example@gmail.com", + endUserOrganizationName: "Test Organization", + endUserOriginId: "12345", + categories: ["hris", "ats"] }); ``` @@ -20935,7 +23150,7 @@ await client.ticketing.contacts.create({
-**request:** `Merge.ticketing.TicketingContactEndpointRequest` +**request:** `Merge.crm.EndUserDetailsRequest`
@@ -20943,7 +23158,7 @@ await client.ticketing.contacts.create({
-**requestOptions:** `ContactsClient.RequestOptions` +**requestOptions:** `LinkTokenClient.RequestOptions`
@@ -20955,7 +23170,8 @@ await client.ticketing.contacts.create({
-
client.ticketing.contacts.retrieve(id, { ...params }) -> Merge.Contact +## Crm LinkedAccounts +
client.crm.linkedAccounts.list({ ...params }) -> core.Page
@@ -20967,7 +23183,7 @@ await client.ticketing.contacts.create({
-Returns a `Contact` object with the given `id`. +List linked accounts for your organization.
@@ -20982,11 +23198,47 @@ Returns a `Contact` object with the given `id`.
```typescript -await client.ticketing.contacts.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeShellData: true +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; ```
@@ -21002,15 +23254,7 @@ await client.ticketing.contacts.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.ContactsRetrieveRequest` +**request:** `Merge.crm.LinkedAccountsListRequest`
@@ -21018,7 +23262,7 @@ await client.ticketing.contacts.retrieve("id", {
-**requestOptions:** `ContactsClient.RequestOptions` +**requestOptions:** `LinkedAccountsClient.RequestOptions`
@@ -21030,7 +23274,8 @@ await client.ticketing.contacts.retrieve("id", {
-
client.ticketing.contacts.metaPostRetrieve() -> Merge.MetaResponse +## Crm Notes +
client.crm.notes.list({ ...params }) -> core.Page
@@ -21042,7 +23287,7 @@ await client.ticketing.contacts.retrieve("id", {
-Returns metadata for `TicketingContact` POSTs. +Returns a list of `Note` objects.
@@ -21057,7 +23302,51 @@ Returns metadata for `TicketingContact` POSTs.
```typescript -await client.ticketing.contacts.metaPostRetrieve(); +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; ```
@@ -21073,7 +23362,15 @@ await client.ticketing.contacts.metaPostRetrieve();
-**requestOptions:** `ContactsClient.RequestOptions` +**request:** `Merge.crm.NotesListRequest` + +
+
+ +
+
+ +**requestOptions:** `NotesClient.RequestOptions`
@@ -21085,8 +23382,7 @@ await client.ticketing.contacts.metaPostRetrieve();
-## Ticketing Scopes -
client.ticketing.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi +
client.crm.notes.create({ ...params }) -> Merge.NoteResponse
@@ -21098,7 +23394,7 @@ await client.ticketing.contacts.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). +Creates a `Note` object with the given values.
@@ -21113,7 +23409,11 @@ Get the default permissions for Merge Common Models and fields across all Linked
```typescript -await client.ticketing.scopes.defaultScopesRetrieve(); +await client.crm.notes.create({ + isDebugMode: true, + runAsync: true, + model: {} +}); ```
@@ -21129,7 +23429,15 @@ await client.ticketing.scopes.defaultScopesRetrieve();
-**requestOptions:** `ScopesClient.RequestOptions` +**request:** `Merge.crm.NoteEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `NotesClient.RequestOptions`
@@ -21141,7 +23449,7 @@ await client.ticketing.scopes.defaultScopesRetrieve();
-
client.ticketing.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi +
client.crm.notes.retrieve(id, { ...params }) -> Merge.Note
@@ -21153,7 +23461,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 `Note` object with the given `id`.
@@ -21168,7 +23476,11 @@ Get all available permissions for Merge Common Models and fields for a single Li
```typescript -await client.ticketing.scopes.linkedAccountScopesRetrieve(); +await client.crm.notes.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true +}); ```
@@ -21184,7 +23496,23 @@ await client.ticketing.scopes.linkedAccountScopesRetrieve();
-**requestOptions:** `ScopesClient.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.crm.NotesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `NotesClient.RequestOptions`
@@ -21196,7 +23524,7 @@ await client.ticketing.scopes.linkedAccountScopesRetrieve();
-
client.ticketing.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi +
client.crm.notes.metaPostRetrieve() -> Merge.MetaResponse
@@ -21208,7 +23536,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 metadata for `Note` POSTs.
@@ -21223,30 +23551,7 @@ 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 - } - } - }] -}); +await client.crm.notes.metaPostRetrieve(); ```
@@ -21262,15 +23567,7 @@ await client.ticketing.scopes.linkedAccountScopesCreate({
-**request:** `Merge.ticketing.LinkedAccountCommonModelScopeDeserializerRequest` - -
-
- -
-
- -**requestOptions:** `ScopesClient.RequestOptions` +**requestOptions:** `NotesClient.RequestOptions`
@@ -21282,8 +23579,7 @@ await client.ticketing.scopes.linkedAccountScopesCreate({
-## Ticketing DeleteAccount -
client.ticketing.deleteAccount.delete() -> void +
client.crm.notes.remoteFieldClassesList({ ...params }) -> core.Page
@@ -21295,7 +23591,7 @@ await client.ticketing.scopes.linkedAccountScopesCreate({
-Delete a linked account. +Returns a list of `RemoteFieldClass` objects.
@@ -21310,7 +23606,37 @@ Delete a linked account.
```typescript -await client.ticketing.deleteAccount.delete(); +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; ```
@@ -21326,7 +23652,15 @@ await client.ticketing.deleteAccount.delete();
-**requestOptions:** `DeleteAccountClient.RequestOptions` +**request:** `Merge.crm.NotesRemoteFieldClassesListRequest` + +
+
+ +
+
+ +**requestOptions:** `NotesClient.RequestOptions`
@@ -21338,8 +23672,8 @@ await client.ticketing.deleteAccount.delete();
-## Ticketing FieldMapping -
client.ticketing.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse +## Crm Opportunities +
client.crm.opportunities.list({ ...params }) -> core.Page
@@ -21351,7 +23685,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 a list of `Opportunity` objects.
@@ -21366,9 +23700,57 @@ Get all Field Mappings for this Linked Account. Field Mappings are mappings betw
```typescript -await client.ticketing.fieldMapping.fieldMappingsRetrieve({ - excludeRemoteFieldMetadata: true +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; ```
@@ -21384,7 +23766,7 @@ await client.ticketing.fieldMapping.fieldMappingsRetrieve({
-**request:** `Merge.ticketing.FieldMappingsRetrieveRequest` +**request:** `Merge.crm.OpportunitiesListRequest`
@@ -21392,7 +23774,7 @@ await client.ticketing.fieldMapping.fieldMappingsRetrieve({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `OpportunitiesClient.RequestOptions`
@@ -21404,7 +23786,7 @@ await client.ticketing.fieldMapping.fieldMappingsRetrieve({
-
client.ticketing.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse +
client.crm.opportunities.create({ ...params }) -> Merge.OpportunityResponse
@@ -21416,7 +23798,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. +Creates an `Opportunity` object with the given values.
@@ -21431,14 +23813,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.opportunities.create({ + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -21455,7 +23833,7 @@ await client.ticketing.fieldMapping.fieldMappingsCreate({
-**request:** `Merge.ticketing.CreateFieldMappingRequest` +**request:** `Merge.crm.OpportunityEndpointRequest`
@@ -21463,7 +23841,7 @@ await client.ticketing.fieldMapping.fieldMappingsCreate({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `OpportunitiesClient.RequestOptions`
@@ -21475,7 +23853,7 @@ await client.ticketing.fieldMapping.fieldMappingsCreate({
-
client.ticketing.fieldMapping.fieldMappingsDestroy(field_mapping_id) -> Merge.FieldMappingInstanceResponse +
client.crm.opportunities.retrieve(id, { ...params }) -> Merge.Opportunity
@@ -21487,7 +23865,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 an `Opportunity` object with the given `id`.
@@ -21502,7 +23880,13 @@ 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.opportunities.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + remoteFields: "status", + showEnumOrigins: "status" +}); ```
@@ -21518,7 +23902,7 @@ await client.ticketing.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**field_mapping_id:** `string` +**id:** `string`
@@ -21526,7 +23910,15 @@ await client.ticketing.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**requestOptions:** `FieldMappingClient.RequestOptions` +**request:** `Merge.crm.OpportunitiesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `OpportunitiesClient.RequestOptions`
@@ -21538,7 +23930,7 @@ await client.ticketing.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-
client.ticketing.fieldMapping.fieldMappingsPartialUpdate(field_mapping_id, { ...params }) -> Merge.FieldMappingInstanceResponse +
client.crm.opportunities.partialUpdate(id, { ...params }) -> Merge.OpportunityResponse
@@ -21550,7 +23942,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. +Updates an `Opportunity` object with the given `id`.
@@ -21565,7 +23957,11 @@ 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.opportunities.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {} +}); ```
@@ -21581,7 +23977,7 @@ await client.ticketing.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id
-**field_mapping_id:** `string` +**id:** `string`
@@ -21589,7 +23985,7 @@ await client.ticketing.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id
-**request:** `Merge.ticketing.PatchedEditFieldMappingRequest` +**request:** `Merge.crm.PatchedOpportunityEndpointRequest`
@@ -21597,7 +23993,7 @@ await client.ticketing.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `OpportunitiesClient.RequestOptions`
@@ -21609,7 +24005,7 @@ await client.ticketing.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id
-
client.ticketing.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse +
client.crm.opportunities.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -21621,7 +24017,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 metadata for `Opportunity` PATCHs.
@@ -21636,10 +24032,7 @@ 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" -}); +await client.crm.opportunities.metaPatchRetrieve("id"); ```
@@ -21655,7 +24048,7 @@ await client.ticketing.fieldMapping.remoteFieldsRetrieve({
-**request:** `Merge.ticketing.RemoteFieldsRetrieveRequest` +**id:** `string`
@@ -21663,7 +24056,7 @@ await client.ticketing.fieldMapping.remoteFieldsRetrieve({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `OpportunitiesClient.RequestOptions`
@@ -21675,7 +24068,7 @@ await client.ticketing.fieldMapping.remoteFieldsRetrieve({
-
client.ticketing.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse +
client.crm.opportunities.metaPostRetrieve() -> Merge.MetaResponse
@@ -21687,7 +24080,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/). +Returns metadata for `Opportunity` POSTs.
@@ -21702,7 +24095,7 @@ Get all organization-wide Target Fields, this will not include any Linked Accoun
```typescript -await client.ticketing.fieldMapping.targetFieldsRetrieve(); +await client.crm.opportunities.metaPostRetrieve(); ```
@@ -21718,7 +24111,7 @@ await client.ticketing.fieldMapping.targetFieldsRetrieve();
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `OpportunitiesClient.RequestOptions`
@@ -21730,8 +24123,7 @@ await client.ticketing.fieldMapping.targetFieldsRetrieve();
-## Ticketing GenerateKey -
client.ticketing.generateKey.create({ ...params }) -> Merge.RemoteKey +
client.crm.opportunities.remoteFieldClassesList({ ...params }) -> core.Page
@@ -21743,7 +24135,7 @@ await client.ticketing.fieldMapping.targetFieldsRetrieve();
-Create a remote key. +Returns a list of `RemoteFieldClass` objects.
@@ -21758,9 +24150,37 @@ Create a remote key.
```typescript -await client.ticketing.generateKey.create({ - name: "Remote Deployment Key 1" +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; ```
@@ -21776,7 +24196,7 @@ await client.ticketing.generateKey.create({
-**request:** `Merge.ticketing.GenerateRemoteKeyRequest` +**request:** `Merge.crm.OpportunitiesRemoteFieldClassesListRequest`
@@ -21784,7 +24204,7 @@ await client.ticketing.generateKey.create({
-**requestOptions:** `GenerateKeyClient.RequestOptions` +**requestOptions:** `OpportunitiesClient.RequestOptions`
@@ -21796,8 +24216,8 @@ await client.ticketing.generateKey.create({
-## Ticketing Issues -
client.ticketing.issues.list({ ...params }) -> Merge.PaginatedIssueList +## Crm Passthrough +
client.crm.passthrough.create({ ...params }) -> Merge.RemoteResponse
@@ -21809,7 +24229,7 @@ await client.ticketing.generateKey.create({
-Gets all issues for Organization. +Pull data from an endpoint not currently supported by Merge.
@@ -21824,21 +24244,9 @@ 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.passthrough.create({ + method: "GET", + path: "/scooters" }); ``` @@ -21855,7 +24263,7 @@ await client.ticketing.issues.list({
-**request:** `Merge.ticketing.IssuesListRequest` +**request:** `Merge.DataPassthroughRequest`
@@ -21863,7 +24271,7 @@ await client.ticketing.issues.list({
-**requestOptions:** `IssuesClient.RequestOptions` +**requestOptions:** `PassthroughClient.RequestOptions`
@@ -21875,7 +24283,8 @@ await client.ticketing.issues.list({
-
client.ticketing.issues.retrieve(id) -> Merge.Issue +## Crm RegenerateKey +
client.crm.regenerateKey.create({ ...params }) -> Merge.RemoteKey
@@ -21887,7 +24296,7 @@ await client.ticketing.issues.list({
-Get a specific issue. +Exchange remote keys.
@@ -21902,7 +24311,9 @@ Get a specific issue.
```typescript -await client.ticketing.issues.retrieve("id"); +await client.crm.regenerateKey.create({ + name: "Remote Deployment Key 1" +}); ```
@@ -21918,7 +24329,7 @@ await client.ticketing.issues.retrieve("id");
-**id:** `string` +**request:** `Merge.crm.RemoteKeyForRegenerationRequest`
@@ -21926,7 +24337,7 @@ await client.ticketing.issues.retrieve("id");
-**requestOptions:** `IssuesClient.RequestOptions` +**requestOptions:** `RegenerateKeyClient.RequestOptions`
@@ -21938,8 +24349,8 @@ await client.ticketing.issues.retrieve("id");
-## Ticketing LinkToken -
client.ticketing.linkToken.create({ ...params }) -> Merge.LinkToken +## Crm Stages +
client.crm.stages.list({ ...params }) -> core.Page
@@ -21951,7 +24362,7 @@ await client.ticketing.issues.retrieve("id");
-Creates a link token to be used when linking a new end user. +Returns a list of `Stage` objects.
@@ -21966,12 +24377,43 @@ 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"] +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; ```
@@ -21987,7 +24429,7 @@ await client.ticketing.linkToken.create({
-**request:** `Merge.ticketing.EndUserDetailsRequest` +**request:** `Merge.crm.StagesListRequest`
@@ -21995,7 +24437,7 @@ await client.ticketing.linkToken.create({
-**requestOptions:** `LinkTokenClient.RequestOptions` +**requestOptions:** `StagesClient.RequestOptions`
@@ -22007,8 +24449,7 @@ await client.ticketing.linkToken.create({
-## Ticketing LinkedAccounts -
client.ticketing.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList +
client.crm.stages.retrieve(id, { ...params }) -> Merge.Stage
@@ -22020,7 +24461,7 @@ await client.ticketing.linkToken.create({
-List linked accounts for your organization. +Returns a `Stage` object with the given `id`.
@@ -22035,20 +24476,10 @@ 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.stages.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true }); ``` @@ -22065,7 +24496,7 @@ await client.ticketing.linkedAccounts.list({
-**request:** `Merge.ticketing.LinkedAccountsListRequest` +**id:** `string`
@@ -22073,7 +24504,15 @@ await client.ticketing.linkedAccounts.list({
-**requestOptions:** `LinkedAccountsClient.RequestOptions` +**request:** `Merge.crm.StagesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `StagesClient.RequestOptions`
@@ -22085,8 +24524,7 @@ await client.ticketing.linkedAccounts.list({
-## Ticketing Passthrough -
client.ticketing.passthrough.create({ ...params }) -> Merge.RemoteResponse +
client.crm.stages.remoteFieldClassesList({ ...params }) -> core.Page
@@ -22098,7 +24536,7 @@ await client.ticketing.linkedAccounts.list({
-Pull data from an endpoint not currently supported by Merge. +Returns a list of `RemoteFieldClass` objects.
@@ -22113,10 +24551,37 @@ Pull data from an endpoint not currently supported by Merge.
```typescript -await client.ticketing.passthrough.create({ - method: "GET", - path: "/scooters" +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; ```
@@ -22132,7 +24597,7 @@ await client.ticketing.passthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**request:** `Merge.crm.StagesRemoteFieldClassesListRequest`
@@ -22140,7 +24605,7 @@ await client.ticketing.passthrough.create({
-**requestOptions:** `PassthroughClient.RequestOptions` +**requestOptions:** `StagesClient.RequestOptions`
@@ -22152,8 +24617,8 @@ await client.ticketing.passthrough.create({
-## Ticketing Projects -
client.ticketing.projects.list({ ...params }) -> Merge.PaginatedProjectList +## Crm SyncStatus +
client.crm.syncStatus.list({ ...params }) -> core.Page
@@ -22165,7 +24630,7 @@ await client.ticketing.passthrough.create({
-Returns a list of `Project` 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).
@@ -22180,18 +24645,25 @@ 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.syncStatus.list({ 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" + 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; ```
@@ -22207,7 +24679,7 @@ await client.ticketing.projects.list({
-**request:** `Merge.ticketing.ProjectsListRequest` +**request:** `Merge.crm.SyncStatusListRequest`
@@ -22215,7 +24687,7 @@ await client.ticketing.projects.list({
-**requestOptions:** `ProjectsClient.RequestOptions` +**requestOptions:** `SyncStatusClient.RequestOptions`
@@ -22227,7 +24699,8 @@ await client.ticketing.projects.list({
-
client.ticketing.projects.retrieve(id, { ...params }) -> Merge.Project +## Crm ForceResync +
client.crm.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[]
@@ -22239,7 +24712,7 @@ await client.ticketing.projects.list({
-Returns a `Project` 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.
@@ -22254,10 +24727,7 @@ Returns a `Project` object with the given `id`.
```typescript -await client.ticketing.projects.retrieve("id", { - includeRemoteData: true, - includeShellData: true -}); +await client.crm.forceResync.syncStatusResyncCreate(); ```
@@ -22273,23 +24743,7 @@ await client.ticketing.projects.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.ProjectsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `ProjectsClient.RequestOptions` +**requestOptions:** `ForceResyncClient.RequestOptions`
@@ -22301,7 +24755,8 @@ await client.ticketing.projects.retrieve("id", {
-
client.ticketing.projects.usersList(parent_id, { ...params }) -> Merge.PaginatedUserList +## Crm Tasks +
client.crm.tasks.list({ ...params }) -> core.Page
@@ -22313,7 +24768,7 @@ await client.ticketing.projects.retrieve("id", {
-Returns a list of `User` objects. +Returns a list of `Task` objects.
@@ -22328,14 +24783,43 @@ Returns a list of `User` objects.
```typescript -await client.ticketing.projects.usersList("parent_id", { +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", - expand: "roles", includeDeletedData: true, includeRemoteData: true, + includeRemoteFields: 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, + 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; ```
@@ -22351,15 +24835,7 @@ await client.ticketing.projects.usersList("parent_id", {
-**parent_id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.ProjectsUsersListRequest` +**request:** `Merge.crm.TasksListRequest`
@@ -22367,7 +24843,7 @@ await client.ticketing.projects.usersList("parent_id", {
-**requestOptions:** `ProjectsClient.RequestOptions` +**requestOptions:** `TasksClient.RequestOptions`
@@ -22379,8 +24855,7 @@ await client.ticketing.projects.usersList("parent_id", {
-## Ticketing RegenerateKey -
client.ticketing.regenerateKey.create({ ...params }) -> Merge.RemoteKey +
client.crm.tasks.create({ ...params }) -> Merge.TaskResponse
@@ -22392,7 +24867,7 @@ await client.ticketing.projects.usersList("parent_id", {
-Exchange remote keys. +Creates a `Task` object with the given values.
@@ -22407,8 +24882,10 @@ Exchange remote keys.
```typescript -await client.ticketing.regenerateKey.create({ - name: "Remote Deployment Key 1" +await client.crm.tasks.create({ + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -22425,7 +24902,7 @@ await client.ticketing.regenerateKey.create({
-**request:** `Merge.ticketing.RemoteKeyForRegenerationRequest` +**request:** `Merge.crm.TaskEndpointRequest`
@@ -22433,7 +24910,7 @@ await client.ticketing.regenerateKey.create({
-**requestOptions:** `RegenerateKeyClient.RequestOptions` +**requestOptions:** `TasksClient.RequestOptions`
@@ -22445,8 +24922,7 @@ await client.ticketing.regenerateKey.create({
-## Ticketing Roles -
client.ticketing.roles.list({ ...params }) -> Merge.PaginatedRoleList +
client.crm.tasks.retrieve(id, { ...params }) -> Merge.Task
@@ -22458,7 +24934,7 @@ await client.ticketing.regenerateKey.create({
-Returns a list of `Role` objects. +Returns a `Task` object with the given `id`.
@@ -22473,17 +24949,10 @@ Returns a list of `Role` objects.
```typescript -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, +await client.crm.tasks.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, - remoteId: "remote_id" + includeRemoteFields: true, + includeShellData: true }); ``` @@ -22500,7 +24969,7 @@ await client.ticketing.roles.list({
-**request:** `Merge.ticketing.RolesListRequest` +**id:** `string`
@@ -22508,7 +24977,15 @@ await client.ticketing.roles.list({
-**requestOptions:** `RolesClient.RequestOptions` +**request:** `Merge.crm.TasksRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `TasksClient.RequestOptions`
@@ -22520,7 +24997,7 @@ await client.ticketing.roles.list({
-
client.ticketing.roles.retrieve(id, { ...params }) -> Merge.Role +
client.crm.tasks.partialUpdate(id, { ...params }) -> Merge.TaskResponse
@@ -22532,7 +25009,7 @@ await client.ticketing.roles.list({
-Returns a `Role` object with the given `id`. +Updates a `Task` object with the given `id`.
@@ -22547,9 +25024,10 @@ Returns a `Role` object with the given `id`.
```typescript -await client.ticketing.roles.retrieve("id", { - includeRemoteData: true, - includeShellData: true +await client.crm.tasks.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -22574,7 +25052,2272 @@ await client.ticketing.roles.retrieve("id", {
-**request:** `Merge.ticketing.RolesRetrieveRequest` +**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` + +
+
+ +
+
+ +**request:** `Merge.hris.DependentsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `DependentsClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +## Hris EmployeePayrollRuns +
client.hris.employeePayrollRuns.list({ ...params }) -> core.Page +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `EmployeePayrollRun` objects. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +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", + 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") +}); +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; + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.hris.EmployeePayrollRunsListRequest` + +
+
+ +
+
+ +**requestOptions:** `EmployeePayrollRunsClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.hris.employeePayrollRuns.retrieve(id, { ...params }) -> Merge.EmployeePayrollRun +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns an `EmployeePayrollRun` object with the given `id`. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.hris.employeePayrollRuns.retrieve("id", { + includeRemoteData: true, + includeShellData: true +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `string`
@@ -22582,7 +27325,15 @@ await client.ticketing.roles.retrieve("id", {
-**requestOptions:** `RolesClient.RequestOptions` +**request:** `Merge.hris.EmployeePayrollRunsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `EmployeePayrollRunsClient.RequestOptions`
@@ -22594,8 +27345,8 @@ await client.ticketing.roles.retrieve("id", {
-## Ticketing SyncStatus -
client.ticketing.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList +## Hris Employees +
client.hris.employees.list({ ...params }) -> core.Page
@@ -22607,7 +27358,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). +Returns a list of `Employee` objects.
@@ -22622,10 +27373,87 @@ Get sync status for the current sync and the most recently finished sync. `last_
```typescript -await client.ticketing.syncStatus.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", - pageSize: 1 + 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" +}); +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; ```
@@ -22641,7 +27469,7 @@ await client.ticketing.syncStatus.list({
-**request:** `Merge.ticketing.SyncStatusListRequest` +**request:** `Merge.hris.EmployeesListRequest`
@@ -22649,7 +27477,7 @@ await client.ticketing.syncStatus.list({
-**requestOptions:** `SyncStatusClient.RequestOptions` +**requestOptions:** `EmployeesClient.RequestOptions`
@@ -22661,8 +27489,7 @@ await client.ticketing.syncStatus.list({
-## Ticketing ForceResync -
client.ticketing.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[] +
client.hris.employees.create({ ...params }) -> Merge.EmployeeResponse
@@ -22674,7 +27501,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. +Creates an `Employee` object with the given values.
@@ -22689,7 +27516,11 @@ Force re-sync of all models. This endpoint is available for monthly, quarterly,
```typescript -await client.ticketing.forceResync.syncStatusResyncCreate(); +await client.hris.employees.create({ + isDebugMode: true, + runAsync: true, + model: {} +}); ```
@@ -22705,7 +27536,15 @@ await client.ticketing.forceResync.syncStatusResyncCreate();
-**requestOptions:** `ForceResyncClient.RequestOptions` +**request:** `Merge.hris.EmployeeEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `EmployeesClient.RequestOptions`
@@ -22717,8 +27556,7 @@ await client.ticketing.forceResync.syncStatusResyncCreate();
-## Ticketing Tags -
client.ticketing.tags.list({ ...params }) -> Merge.PaginatedTagList +
client.hris.employees.retrieve(id, { ...params }) -> Merge.Employee
@@ -22730,7 +27568,213 @@ await client.ticketing.forceResync.syncStatusResyncCreate();
-Returns a list of `Tag` objects. +Returns an `Employee` object with the given `id`. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.hris.employees.retrieve("id", { + includeRemoteData: true, + includeSensitiveFields: true, + includeShellData: true, + remoteFields: "employment_status", + showEnumOrigins: "employment_status" +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.hris.EmployeesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `EmployeesClient.RequestOptions` + +
+
+
+
+ + + + +
+ +
client.hris.employees.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.hris.employees.ignoreCreate("model_id", { + reason: "GENERAL_CUSTOMER_REQUEST" +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**model_id:** `string` + +
+
+ +
+
+ +**request:** `Merge.IgnoreCommonModelRequest` + +
+
+ +
+
+ +**requestOptions:** `EmployeesClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.hris.employees.metaPostRetrieve() -> Merge.MetaResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns metadata for `Employee` POSTs. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.hris.employees.metaPostRetrieve(); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `EmployeesClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +## Hris EmployerBenefits +
client.hris.employerBenefits.list({ ...params }) -> core.Page +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `EmployerBenefit` objects.
@@ -22745,7 +27789,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 +27818,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 +27839,7 @@ await client.ticketing.tags.list({
-**request:** `Merge.ticketing.TagsListRequest` +**request:** `Merge.hris.EmployerBenefitsListRequest`
@@ -22780,7 +27847,7 @@ await client.ticketing.tags.list({
-**requestOptions:** `TagsClient.RequestOptions` +**requestOptions:** `EmployerBenefitsClient.RequestOptions`
@@ -22792,7 +27859,7 @@ await client.ticketing.tags.list({
-
client.ticketing.tags.retrieve(id, { ...params }) -> Merge.Tag +
client.hris.employerBenefits.retrieve(id, { ...params }) -> Merge.EmployerBenefit
@@ -22804,7 +27871,7 @@ await client.ticketing.tags.list({
-Returns a `Tag` object with the given `id`. +Returns an `EmployerBenefit` object with the given `id`.
@@ -22819,7 +27886,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 +27913,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 +28103,7 @@ await client.ticketing.tags.retrieve("id", {
-**requestOptions:** `TagsClient.RequestOptions` +**requestOptions:** `EmploymentsClient.RequestOptions`
@@ -22866,8 +28115,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 +28128,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 +28143,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 +28161,7 @@ await client.ticketing.teams.list({
-**request:** `Merge.ticketing.TeamsListRequest` +**request:** `Merge.hris.FieldMappingsRetrieveRequest`
@@ -22929,7 +28169,7 @@ await client.ticketing.teams.list({
-**requestOptions:** `TeamsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -22941,7 +28181,7 @@ await client.ticketing.teams.list({
-
client.ticketing.teams.retrieve(id, { ...params }) -> Merge.Team +
client.hris.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse
@@ -22953,7 +28193,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 +28208,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 +28232,7 @@ await client.ticketing.teams.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.TeamsRetrieveRequest` +**request:** `Merge.hris.CreateFieldMappingRequest`
@@ -23003,7 +28240,7 @@ await client.ticketing.teams.retrieve("id", {
-**requestOptions:** `TeamsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -23015,8 +28252,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 +28264,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 +28279,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 +28295,7 @@ await client.ticketing.tickets.list({
-**request:** `Merge.ticketing.TicketsListRequest` +**field_mapping_id:** `string`
@@ -23103,7 +28303,7 @@ await client.ticketing.tickets.list({
-**requestOptions:** `TicketsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -23115,7 +28315,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 +28327,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 +28342,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 +28360,7 @@ await client.ticketing.tickets.create({
-**request:** `Merge.ticketing.TicketEndpointRequest` +**field_mapping_id:** `string`
@@ -23170,7 +28368,15 @@ await client.ticketing.tickets.create({
-**requestOptions:** `TicketsClient.RequestOptions` +**request:** `Merge.hris.PatchedEditFieldMappingRequest` + +
+
+ +
+
+ +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -23182,7 +28388,7 @@ await client.ticketing.tickets.create({
-
client.ticketing.tickets.retrieve(id, { ...params }) -> Merge.Ticket +
client.hris.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse
@@ -23194,7 +28400,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 +28415,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 +28434,7 @@ await client.ticketing.tickets.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.TicketsRetrieveRequest` +**request:** `Merge.hris.RemoteFieldsRetrieveRequest`
@@ -23248,7 +28442,7 @@ await client.ticketing.tickets.retrieve("id", {
-**requestOptions:** `TicketsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -23260,7 +28454,7 @@ await client.ticketing.tickets.retrieve("id", {
-
client.ticketing.tickets.partialUpdate(id, { ...params }) -> Merge.TicketResponse +
client.hris.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse
@@ -23272,7 +28466,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 +28481,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 +28497,7 @@ await client.ticketing.tickets.partialUpdate("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.PatchedTicketEndpointRequest` - -
-
- -
-
- -**requestOptions:** `TicketsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -23335,7 +28509,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 +28522,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 +28537,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 +28555,7 @@ await client.ticketing.tickets.viewersList("ticket_id", {
-**ticket_id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.TicketsViewersListRequest` +**request:** `Merge.hris.GenerateRemoteKeyRequest`
@@ -23401,7 +28563,7 @@ await client.ticketing.tickets.viewersList("ticket_id", {
-**requestOptions:** `TicketsClient.RequestOptions` +**requestOptions:** `GenerateKeyClient.RequestOptions`
@@ -23413,7 +28575,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 +28588,7 @@ await client.ticketing.tickets.viewersList("ticket_id", {
-Returns metadata for `Ticket` PATCHs. +Returns a list of `Group` objects.
@@ -23440,7 +28603,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 +28663,7 @@ await client.ticketing.tickets.metaPatchRetrieve("id");
-**id:** `string` +**request:** `Merge.hris.GroupsListRequest`
@@ -23464,7 +28671,7 @@ await client.ticketing.tickets.metaPatchRetrieve("id");
-**requestOptions:** `TicketsClient.RequestOptions` +**requestOptions:** `GroupsClient.RequestOptions`
@@ -23476,7 +28683,7 @@ await client.ticketing.tickets.metaPatchRetrieve("id");
-
client.ticketing.tickets.metaPostRetrieve({ ...params }) -> Merge.MetaResponse +
client.hris.groups.retrieve(id, { ...params }) -> Merge.Group
@@ -23488,7 +28695,7 @@ await client.ticketing.tickets.metaPatchRetrieve("id");
-Returns metadata for `Ticket` POSTs. +Returns a `Group` object with the given `id`.
@@ -23503,9 +28710,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 +28731,7 @@ await client.ticketing.tickets.metaPostRetrieve({
-**request:** `Merge.ticketing.TicketsMetaPostRetrieveRequest` +**id:** `string`
@@ -23530,7 +28739,15 @@ await client.ticketing.tickets.metaPostRetrieve({
-**requestOptions:** `TicketsClient.RequestOptions` +**request:** `Merge.hris.GroupsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `GroupsClient.RequestOptions`
@@ -23542,7 +28759,7 @@ await client.ticketing.tickets.metaPostRetrieve({
-
client.ticketing.tickets.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.hris.groups.typesList({ ...params }) -> Merge.GroupsTypesListResponse
@@ -23554,7 +28771,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 +28786,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 +28805,7 @@ await client.ticketing.tickets.remoteFieldClassesList({
-**request:** `Merge.ticketing.TicketsRemoteFieldClassesListRequest` +**request:** `Merge.hris.GroupsTypesListRequest`
@@ -23602,7 +28813,7 @@ await client.ticketing.tickets.remoteFieldClassesList({
-**requestOptions:** `TicketsClient.RequestOptions` +**requestOptions:** `GroupsClient.RequestOptions`
@@ -23614,8 +28825,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 +28838,7 @@ await client.ticketing.tickets.remoteFieldClassesList({
-Returns a list of `User` objects. +Gets all issues for Organization.
@@ -23642,21 +28853,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 +28911,7 @@ await client.ticketing.users.list({
-**request:** `Merge.ticketing.UsersListRequest` +**request:** `Merge.hris.IssuesListRequest`
@@ -23680,7 +28919,7 @@ await client.ticketing.users.list({
-**requestOptions:** `UsersClient.RequestOptions` +**requestOptions:** `IssuesClient.RequestOptions`
@@ -23692,7 +28931,7 @@ await client.ticketing.users.list({
-
client.ticketing.users.retrieve(id, { ...params }) -> Merge.User +
client.hris.issues.retrieve(id) -> Merge.Issue
@@ -23704,7 +28943,7 @@ await client.ticketing.users.list({
-Returns a `User` object with the given `id`. +Get a specific issue.
@@ -23719,11 +28958,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 +28982,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 +28994,8 @@ await client.ticketing.webhookReceivers.list();
-
client.ticketing.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver +## Hris LinkToken +
client.hris.linkToken.create({ ...params }) -> Merge.LinkToken
@@ -23835,7 +29007,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 +29022,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 +29043,7 @@ await client.ticketing.webhookReceivers.create({
-**request:** `Merge.ticketing.WebhookReceiverRequest` +**request:** `Merge.hris.EndUserDetailsRequest`
@@ -23877,7 +29051,7 @@ await client.ticketing.webhookReceivers.create({
-**requestOptions:** `WebhookReceiversClient.RequestOptions` +**requestOptions:** `LinkTokenClient.RequestOptions`
@@ -23889,8 +29063,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 +29076,7 @@ await client.ticketing.webhookReceivers.create({
-Get details for a linked account. +List linked accounts for your organization.
@@ -23917,63 +29091,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 +29147,7 @@ await client.accounting.accountToken.retrieve("public_token");
-**public_token:** `string` +**request:** `Merge.hris.LinkedAccountsListRequest`
@@ -23997,7 +29155,7 @@ await client.accounting.accountToken.retrieve("public_token");
-**requestOptions:** `AccountTokenClient.RequestOptions` +**requestOptions:** `LinkedAccountsClient.RequestOptions`
@@ -24009,8 +29167,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 +29180,7 @@ await client.accounting.accountToken.retrieve("public_token");
-Returns a list of `AccountingPeriod` objects. +Returns a list of `Location` objects.
@@ -24037,13 +29195,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 +29251,7 @@ await client.accounting.accountingPeriods.list({
-**request:** `Merge.accounting.AccountingPeriodsListRequest` +**request:** `Merge.hris.LocationsListRequest`
@@ -24067,7 +29259,7 @@ await client.accounting.accountingPeriods.list({
-**requestOptions:** `AccountingPeriodsClient.RequestOptions` +**requestOptions:** `LocationsClient.RequestOptions`
@@ -24079,7 +29271,7 @@ await client.accounting.accountingPeriods.list({
-
client.accounting.accountingPeriods.retrieve(id, { ...params }) -> Merge.AccountingPeriod +
client.hris.locations.retrieve(id, { ...params }) -> Merge.Location
@@ -24091,7 +29283,7 @@ await client.accounting.accountingPeriods.list({
-Returns an `AccountingPeriod` object with the given `id`. +Returns a `Location` object with the given `id`.
@@ -24106,9 +29298,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 +29327,7 @@ await client.accounting.accountingPeriods.retrieve("id", {
-**request:** `Merge.accounting.AccountingPeriodsRetrieveRequest` +**request:** `Merge.hris.LocationsRetrieveRequest`
@@ -24141,7 +29335,7 @@ await client.accounting.accountingPeriods.retrieve("id", {
-**requestOptions:** `AccountingPeriodsClient.RequestOptions` +**requestOptions:** `LocationsClient.RequestOptions`
@@ -24153,8 +29347,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 +29360,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 +29375,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 +29394,7 @@ await client.accounting.accounts.list({
-**request:** `Merge.accounting.AccountsListRequest` +**request:** `Merge.DataPassthroughRequest`
@@ -24224,7 +29402,7 @@ await client.accounting.accounts.list({
-**requestOptions:** `AccountsClient.RequestOptions` +**requestOptions:** `PassthroughClient.RequestOptions`
@@ -24236,7 +29414,8 @@ await client.accounting.accounts.list({
-
client.accounting.accounts.create({ ...params }) -> Merge.AccountResponse +## Hris PayGroups +
client.hris.payGroups.list({ ...params }) -> core.Page
@@ -24248,7 +29427,7 @@ await client.accounting.accounts.list({
-Creates an `Account` object with the given values. +Returns a list of `PayGroup` objects.
@@ -24263,11 +29442,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 +29492,7 @@ await client.accounting.accounts.create({
-**request:** `Merge.accounting.AccountEndpointRequest` +**request:** `Merge.hris.PayGroupsListRequest`
@@ -24291,7 +29500,7 @@ await client.accounting.accounts.create({
-**requestOptions:** `AccountsClient.RequestOptions` +**requestOptions:** `PayGroupsClient.RequestOptions`
@@ -24303,7 +29512,7 @@ await client.accounting.accounts.create({
-
client.accounting.accounts.retrieve(id, { ...params }) -> Merge.Account +
client.hris.payGroups.retrieve(id, { ...params }) -> Merge.PayGroup
@@ -24315,7 +29524,7 @@ await client.accounting.accounts.create({
-Returns an `Account` object with the given `id`. +Returns a `PayGroup` object with the given `id`.
@@ -24330,12 +29539,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 +29566,7 @@ await client.accounting.accounts.retrieve("id", {
-**request:** `Merge.accounting.AccountsRetrieveRequest` +**request:** `Merge.hris.PayGroupsRetrieveRequest`
@@ -24368,7 +29574,7 @@ await client.accounting.accounts.retrieve("id", {
-**requestOptions:** `AccountsClient.RequestOptions` +**requestOptions:** `PayGroupsClient.RequestOptions`
@@ -24380,7 +29586,8 @@ await client.accounting.accounts.retrieve("id", {
-
client.accounting.accounts.metaPostRetrieve() -> Merge.MetaResponse +## Hris PayrollRuns +
client.hris.payrollRuns.list({ ...params }) -> core.Page
@@ -24392,7 +29599,7 @@ await client.accounting.accounts.retrieve("id", {
-Returns metadata for `Account` POSTs. +Returns a list of `PayrollRun` objects.
@@ -24407,7 +29614,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 +29678,15 @@ await client.accounting.accounts.metaPostRetrieve();
-**requestOptions:** `AccountsClient.RequestOptions` +**request:** `Merge.hris.PayrollRunsListRequest` + +
+
+ +
+
+ +**requestOptions:** `PayrollRunsClient.RequestOptions`
@@ -24435,8 +29698,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 +29710,7 @@ await client.accounting.accounts.metaPostRetrieve();
-Returns an `Address` object with the given `id`. +Returns a `PayrollRun` object with the given `id`.
@@ -24463,11 +29725,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 +29754,7 @@ await client.accounting.addresses.retrieve("id", {
-**request:** `Merge.accounting.AddressesRetrieveRequest` +**request:** `Merge.hris.PayrollRunsRetrieveRequest`
@@ -24500,7 +29762,7 @@ await client.accounting.addresses.retrieve("id", {
-**requestOptions:** `AddressesClient.RequestOptions` +**requestOptions:** `PayrollRunsClient.RequestOptions`
@@ -24512,8 +29774,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 +29787,7 @@ await client.accounting.addresses.retrieve("id", {
-Asynchronously pull data from an endpoint not currently supported by Merge. +Exchange remote keys.
@@ -24540,9 +29802,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 +29820,7 @@ await client.accounting.asyncPassthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**request:** `Merge.hris.RemoteKeyForRegenerationRequest`
@@ -24567,7 +29828,7 @@ await client.accounting.asyncPassthrough.create({
-**requestOptions:** `AsyncPassthroughClient.RequestOptions` +**requestOptions:** `RegenerateKeyClient.RequestOptions`
@@ -24579,7 +29840,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 +29853,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 +29868,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 +29902,7 @@ await client.accounting.asyncPassthrough.retrieve("async_passthrough_receipt_id"
-**async_passthrough_receipt_id:** `string` +**request:** `Merge.hris.SyncStatusListRequest`
@@ -24630,7 +29910,7 @@ await client.accounting.asyncPassthrough.retrieve("async_passthrough_receipt_id"
-**requestOptions:** `AsyncPassthroughClient.RequestOptions` +**requestOptions:** `SyncStatusClient.RequestOptions`
@@ -24642,8 +29922,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 +29935,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 +29950,7 @@ Returns an `AsyncPostTask` object with the given `id`.
```typescript -await client.accounting.asyncTasks.retrieve("id"); +await client.hris.forceResync.syncStatusResyncCreate(); ```
@@ -24686,15 +29966,7 @@ await client.accounting.asyncTasks.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**requestOptions:** `AsyncTasksClient.RequestOptions` +**requestOptions:** `ForceResyncClient.RequestOptions`
@@ -24706,8 +29978,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 +29991,7 @@ await client.accounting.asyncTasks.retrieve("id");
-Returns a list of `AccountingAttachment` objects. +Returns a list of `Team` objects.
@@ -24734,8 +30006,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 +30034,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 +30058,7 @@ await client.accounting.attachments.list({
-**request:** `Merge.accounting.AttachmentsListRequest` +**request:** `Merge.hris.TeamsListRequest`
@@ -24770,7 +30066,7 @@ await client.accounting.attachments.list({
-**requestOptions:** `AttachmentsClient.RequestOptions` +**requestOptions:** `TeamsClient.RequestOptions`
@@ -24782,7 +30078,7 @@ await client.accounting.attachments.list({
-
client.accounting.attachments.create({ ...params }) -> Merge.AccountingAttachmentResponse +
client.hris.teams.retrieve(id, { ...params }) -> Merge.Team
@@ -24794,7 +30090,7 @@ await client.accounting.attachments.list({
-Creates an `AccountingAttachment` object with the given values. +Returns a `Team` object with the given `id`.
@@ -24809,10 +30105,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 +30124,7 @@ await client.accounting.attachments.create({
-**request:** `Merge.accounting.AccountingAttachmentEndpointRequest` +**id:** `string`
@@ -24837,7 +30132,15 @@ await client.accounting.attachments.create({
-**requestOptions:** `AttachmentsClient.RequestOptions` +**request:** `Merge.hris.TeamsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `TeamsClient.RequestOptions`
@@ -24849,7 +30152,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 +30165,7 @@ await client.accounting.attachments.create({
-Returns an `AccountingAttachment` object with the given `id`. +Returns a list of `TimeOff` objects.
@@ -24876,10 +30180,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 +30250,7 @@ await client.accounting.attachments.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.AttachmentsRetrieveRequest` +**request:** `Merge.hris.TimeOffListRequest`
@@ -24911,7 +30258,7 @@ await client.accounting.attachments.retrieve("id", {
-**requestOptions:** `AttachmentsClient.RequestOptions` +**requestOptions:** `TimeOffClient.RequestOptions`
@@ -24923,7 +30270,7 @@ await client.accounting.attachments.retrieve("id", {
-
client.accounting.attachments.metaPostRetrieve() -> Merge.MetaResponse +
client.hris.timeOff.create({ ...params }) -> Merge.TimeOffResponse
@@ -24935,7 +30282,7 @@ await client.accounting.attachments.retrieve("id", {
-Returns metadata for `AccountingAttachment` POSTs. +Creates a `TimeOff` object with the given values.
@@ -24950,7 +30297,11 @@ Returns metadata for `AccountingAttachment` POSTs.
```typescript -await client.accounting.attachments.metaPostRetrieve(); +await client.hris.timeOff.create({ + isDebugMode: true, + runAsync: true, + model: {} +}); ```
@@ -24966,7 +30317,15 @@ await client.accounting.attachments.metaPostRetrieve();
-**requestOptions:** `AttachmentsClient.RequestOptions` +**request:** `Merge.hris.TimeOffEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `TimeOffClient.RequestOptions`
@@ -24978,8 +30337,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 +30349,7 @@ await client.accounting.attachments.metaPostRetrieve();
-Gets a list of audit trail events. +Returns a `TimeOff` object with the given `id`.
@@ -25006,13 +30364,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 +30385,7 @@ await client.accounting.auditTrail.list({
-**request:** `Merge.accounting.AuditTrailListRequest` +**id:** `string`
@@ -25037,7 +30393,15 @@ await client.accounting.auditTrail.list({
-**requestOptions:** `AuditTrailClient.RequestOptions` +**request:** `Merge.hris.TimeOffRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `TimeOffClient.RequestOptions`
@@ -25049,8 +30413,7 @@ await client.accounting.auditTrail.list({
-## Accounting AvailableActions -
client.accounting.availableActions.retrieve() -> Merge.AvailableActions +
client.hris.timeOff.metaPostRetrieve() -> Merge.MetaResponse
@@ -25062,7 +30425,7 @@ await client.accounting.auditTrail.list({
-Returns a list of models and actions available for an account. +Returns metadata for `TimeOff` POSTs.
@@ -25077,7 +30440,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 +30456,7 @@ await client.accounting.availableActions.retrieve();
-**requestOptions:** `AvailableActionsClient.RequestOptions` +**requestOptions:** `TimeOffClient.RequestOptions`
@@ -25105,8 +30468,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 +30481,7 @@ await client.accounting.availableActions.retrieve();
-Returns a list of `BalanceSheet` objects. +Returns a list of `TimeOffBalance` objects.
@@ -25133,20 +30496,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 +30554,7 @@ await client.accounting.balanceSheets.list({
-**request:** `Merge.accounting.BalanceSheetsListRequest` +**request:** `Merge.hris.TimeOffBalancesListRequest`
@@ -25170,7 +30562,7 @@ await client.accounting.balanceSheets.list({
-**requestOptions:** `BalanceSheetsClient.RequestOptions` +**requestOptions:** `TimeOffBalancesClient.RequestOptions`
@@ -25182,7 +30574,7 @@ await client.accounting.balanceSheets.list({
-
client.accounting.balanceSheets.retrieve(id, { ...params }) -> Merge.BalanceSheet +
client.hris.timeOffBalances.retrieve(id, { ...params }) -> Merge.TimeOffBalance
@@ -25194,7 +30586,7 @@ await client.accounting.balanceSheets.list({
-Returns a `BalanceSheet` object with the given `id`. +Returns a `TimeOffBalance` object with the given `id`.
@@ -25209,10 +30601,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 +30630,7 @@ await client.accounting.balanceSheets.retrieve("id", {
-**request:** `Merge.accounting.BalanceSheetsRetrieveRequest` +**request:** `Merge.hris.TimeOffBalancesRetrieveRequest`
@@ -25245,7 +30638,7 @@ await client.accounting.balanceSheets.retrieve("id", {
-**requestOptions:** `BalanceSheetsClient.RequestOptions` +**requestOptions:** `TimeOffBalancesClient.RequestOptions`
@@ -25257,8 +30650,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 +30663,7 @@ await client.accounting.balanceSheets.retrieve("id", {
-Returns a list of `BankFeedAccount` objects. +Returns a list of `TimesheetEntry` objects.
@@ -25285,13 +30678,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 +30740,7 @@ await client.accounting.bankFeedAccounts.list({
-**request:** `Merge.accounting.BankFeedAccountsListRequest` +**request:** `Merge.hris.TimesheetEntriesListRequest`
@@ -25315,7 +30748,7 @@ await client.accounting.bankFeedAccounts.list({
-**requestOptions:** `BankFeedAccountsClient.RequestOptions` +**requestOptions:** `TimesheetEntriesClient.RequestOptions`
@@ -25327,7 +30760,7 @@ await client.accounting.bankFeedAccounts.list({
-
client.accounting.bankFeedAccounts.create({ ...params }) -> Merge.BankFeedAccountResponse +
client.hris.timesheetEntries.create({ ...params }) -> Merge.TimesheetEntryResponse
@@ -25339,7 +30772,7 @@ await client.accounting.bankFeedAccounts.list({
-Creates a `BankFeedAccount` object with the given values. +Creates a `TimesheetEntry` object with the given values.
@@ -25354,7 +30787,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 +30807,7 @@ await client.accounting.bankFeedAccounts.create({
-**request:** `Merge.accounting.BankFeedAccountEndpointRequest` +**request:** `Merge.hris.TimesheetEntryEndpointRequest`
@@ -25382,7 +30815,7 @@ await client.accounting.bankFeedAccounts.create({
-**requestOptions:** `BankFeedAccountsClient.RequestOptions` +**requestOptions:** `TimesheetEntriesClient.RequestOptions`
@@ -25394,7 +30827,7 @@ await client.accounting.bankFeedAccounts.create({
-
client.accounting.bankFeedAccounts.retrieve(id, { ...params }) -> Merge.BankFeedAccount +
client.hris.timesheetEntries.retrieve(id, { ...params }) -> Merge.TimesheetEntry
@@ -25406,7 +30839,7 @@ await client.accounting.bankFeedAccounts.create({
-Returns a `BankFeedAccount` object with the given `id`. +Returns a `TimesheetEntry` object with the given `id`.
@@ -25421,7 +30854,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 +30881,7 @@ await client.accounting.bankFeedAccounts.retrieve("id", {
-**request:** `Merge.accounting.BankFeedAccountsRetrieveRequest` +**request:** `Merge.hris.TimesheetEntriesRetrieveRequest`
@@ -25456,7 +30889,7 @@ await client.accounting.bankFeedAccounts.retrieve("id", {
-**requestOptions:** `BankFeedAccountsClient.RequestOptions` +**requestOptions:** `TimesheetEntriesClient.RequestOptions`
@@ -25468,7 +30901,7 @@ await client.accounting.bankFeedAccounts.retrieve("id", {
-
client.accounting.bankFeedAccounts.metaPostRetrieve() -> Merge.MetaResponse +
client.hris.timesheetEntries.metaPostRetrieve() -> Merge.MetaResponse
@@ -25480,7 +30913,7 @@ await client.accounting.bankFeedAccounts.retrieve("id", {
-Returns metadata for `BankFeedAccount` POSTs. +Returns metadata for `TimesheetEntry` POSTs.
@@ -25495,7 +30928,7 @@ Returns metadata for `BankFeedAccount` POSTs.
```typescript -await client.accounting.bankFeedAccounts.metaPostRetrieve(); +await client.hris.timesheetEntries.metaPostRetrieve(); ```
@@ -25511,7 +30944,7 @@ await client.accounting.bankFeedAccounts.metaPostRetrieve();
-**requestOptions:** `BankFeedAccountsClient.RequestOptions` +**requestOptions:** `TimesheetEntriesClient.RequestOptions`
@@ -25523,8 +30956,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 +30969,7 @@ await client.accounting.bankFeedAccounts.metaPostRetrieve();
-Returns a list of `BankFeedTransaction` objects. +Returns a list of `WebhookReceiver` objects.
@@ -25551,20 +30984,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 +31000,7 @@ await client.accounting.bankFeedTransactions.list({
-**request:** `Merge.accounting.BankFeedTransactionsListRequest` - -
-
- -
-
- -**requestOptions:** `BankFeedTransactionsClient.RequestOptions` +**requestOptions:** `WebhookReceiversClient.RequestOptions`
@@ -25600,7 +31012,7 @@ await client.accounting.bankFeedTransactions.list({
-
client.accounting.bankFeedTransactions.create({ ...params }) -> Merge.BankFeedTransactionResponse +
client.hris.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver
@@ -25612,7 +31024,7 @@ await client.accounting.bankFeedTransactions.list({
-Creates a `BankFeedTransaction` object with the given values. +Creates a `WebhookReceiver` object with the given values.
@@ -25627,10 +31039,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 +31058,7 @@ await client.accounting.bankFeedTransactions.create({
-**request:** `Merge.accounting.BankFeedTransactionEndpointRequest` +**request:** `Merge.hris.WebhookReceiverRequest`
@@ -25655,7 +31066,7 @@ await client.accounting.bankFeedTransactions.create({
-**requestOptions:** `BankFeedTransactionsClient.RequestOptions` +**requestOptions:** `WebhookReceiversClient.RequestOptions`
@@ -25667,7 +31078,8 @@ await client.accounting.bankFeedTransactions.create({
-
client.accounting.bankFeedTransactions.retrieve(id, { ...params }) -> Merge.BankFeedTransaction +## Ticketing AccountDetails +
client.ticketing.accountDetails.retrieve() -> Merge.AccountDetails
@@ -25679,7 +31091,7 @@ await client.accounting.bankFeedTransactions.create({
-Returns a `BankFeedTransaction` object with the given `id`. +Get details for a linked account.
@@ -25694,11 +31106,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 +31122,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 +31186,7 @@ await client.accounting.bankFeedTransactions.retrieve("id", {
-**requestOptions:** `BankFeedTransactionsClient.RequestOptions` +**requestOptions:** `AccountTokenClient.RequestOptions`
@@ -25742,7 +31198,7 @@ await client.accounting.bankFeedTransactions.retrieve("id", {
-
client.accounting.bankFeedTransactions.metaPostRetrieve() -> Merge.MetaResponse +
client.ticketing.accountToken.regenerateCreate() -> Merge.RegenerateAccountToken
@@ -25754,7 +31210,7 @@ await client.accounting.bankFeedTransactions.retrieve("id", {
-Returns metadata for `BankFeedTransaction` POSTs. +Exchange Linked Account account tokens.
@@ -25769,7 +31225,7 @@ Returns metadata for `BankFeedTransaction` POSTs.
```typescript -await client.accounting.bankFeedTransactions.metaPostRetrieve(); +await client.ticketing.accountToken.regenerateCreate(); ```
@@ -25785,7 +31241,7 @@ await client.accounting.bankFeedTransactions.metaPostRetrieve();
-**requestOptions:** `BankFeedTransactionsClient.RequestOptions` +**requestOptions:** `AccountTokenClient.RequestOptions`
@@ -25797,8 +31253,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 +31266,7 @@ await client.accounting.bankFeedTransactions.metaPostRetrieve();
-Returns a list of `CashFlowStatement` objects. +Returns a list of `Account` objects.
@@ -25825,12 +31281,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 +31293,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 +31331,7 @@ await client.accounting.cashFlowStatements.list({
-**request:** `Merge.accounting.CashFlowStatementsListRequest` +**request:** `Merge.ticketing.AccountsListRequest`
@@ -25862,7 +31339,7 @@ await client.accounting.cashFlowStatements.list({
-**requestOptions:** `CashFlowStatementsClient.RequestOptions` +**requestOptions:** `AccountsClient.RequestOptions`
@@ -25874,7 +31351,7 @@ await client.accounting.cashFlowStatements.list({
-
client.accounting.cashFlowStatements.retrieve(id, { ...params }) -> Merge.CashFlowStatement +
client.ticketing.accounts.retrieve(id, { ...params }) -> Merge.Account
@@ -25886,7 +31363,7 @@ await client.accounting.cashFlowStatements.list({
-Returns a `CashFlowStatement` object with the given `id`. +Returns an `Account` object with the given `id`.
@@ -25901,8 +31378,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 +31405,7 @@ await client.accounting.cashFlowStatements.retrieve("id", {
-**request:** `Merge.accounting.CashFlowStatementsRetrieveRequest` +**request:** `Merge.ticketing.AccountsRetrieveRequest`
@@ -25937,7 +31413,7 @@ await client.accounting.cashFlowStatements.retrieve("id", {
-**requestOptions:** `CashFlowStatementsClient.RequestOptions` +**requestOptions:** `AccountsClient.RequestOptions`
@@ -25949,8 +31425,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 +31438,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 +31453,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 +31472,7 @@ await client.accounting.companyInfo.list({
-**request:** `Merge.accounting.CompanyInfoListRequest` +**request:** `Merge.DataPassthroughRequest`
@@ -26013,7 +31480,7 @@ await client.accounting.companyInfo.list({
-**requestOptions:** `CompanyInfoClient.RequestOptions` +**requestOptions:** `AsyncPassthroughClient.RequestOptions`
@@ -26025,7 +31492,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 +31504,7 @@ await client.accounting.companyInfo.list({
-Returns a `CompanyInfo` object with the given `id`. +Retrieves data from earlier async-passthrough POST request
@@ -26052,11 +31519,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 +31535,7 @@ await client.accounting.companyInfo.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.CompanyInfoRetrieveRequest` +**async_passthrough_receipt_id:** `string`
@@ -26088,7 +31543,7 @@ await client.accounting.companyInfo.retrieve("id", {
-**requestOptions:** `CompanyInfoClient.RequestOptions` +**requestOptions:** `AsyncPassthroughClient.RequestOptions`
@@ -26100,8 +31555,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 +31568,7 @@ await client.accounting.companyInfo.retrieve("id", {
-Returns a list of `Contact` objects. +Returns a list of `Attachment` objects.
@@ -26128,28 +31583,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 +31637,7 @@ await client.accounting.contacts.list({
-**request:** `Merge.accounting.ContactsListRequest` +**request:** `Merge.ticketing.AttachmentsListRequest`
@@ -26173,7 +31645,7 @@ await client.accounting.contacts.list({
-**requestOptions:** `ContactsClient.RequestOptions` +**requestOptions:** `AttachmentsClient.RequestOptions`
@@ -26185,7 +31657,7 @@ await client.accounting.contacts.list({
-
client.accounting.contacts.create({ ...params }) -> Merge.ContactResponse +
client.ticketing.attachments.create({ ...params }) -> Merge.TicketingAttachmentResponse
@@ -26197,7 +31669,7 @@ await client.accounting.contacts.list({
-Creates a `Contact` object with the given values. +Creates an `Attachment` object with the given values.
@@ -26212,7 +31684,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 +31704,7 @@ await client.accounting.contacts.create({
-**request:** `Merge.accounting.ContactEndpointRequest` +**request:** `Merge.ticketing.TicketingAttachmentEndpointRequest`
@@ -26240,7 +31712,7 @@ await client.accounting.contacts.create({
-**requestOptions:** `ContactsClient.RequestOptions` +**requestOptions:** `AttachmentsClient.RequestOptions`
@@ -26252,7 +31724,7 @@ await client.accounting.contacts.create({
-
client.accounting.contacts.retrieve(id, { ...params }) -> Merge.Contact +
client.ticketing.attachments.retrieve(id, { ...params }) -> Merge.Attachment
@@ -26264,7 +31736,7 @@ await client.accounting.contacts.create({
-Returns a `Contact` object with the given `id`. +Returns an `Attachment` object with the given `id`.
@@ -26279,13 +31751,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 +31778,7 @@ await client.accounting.contacts.retrieve("id", {
-**request:** `Merge.accounting.ContactsRetrieveRequest` +**request:** `Merge.ticketing.AttachmentsRetrieveRequest`
@@ -26318,7 +31786,7 @@ await client.accounting.contacts.retrieve("id", {
-**requestOptions:** `ContactsClient.RequestOptions` +**requestOptions:** `AttachmentsClient.RequestOptions`
@@ -26330,7 +31798,7 @@ await client.accounting.contacts.retrieve("id", {
-
client.accounting.contacts.partialUpdate(id, { ...params }) -> Merge.ContactResponse +
client.ticketing.attachments.metaPostRetrieve() -> Merge.MetaResponse
@@ -26342,7 +31810,7 @@ await client.accounting.contacts.retrieve("id", {
-Updates a `Contact` object with the given `id`. +Returns metadata for `TicketingAttachment` POSTs.
@@ -26357,11 +31825,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 +31841,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 +31931,7 @@ await client.accounting.contacts.partialUpdate("id", {
-**requestOptions:** `ContactsClient.RequestOptions` +**requestOptions:** `AuditTrailClient.RequestOptions`
@@ -26405,7 +31943,8 @@ await client.accounting.contacts.partialUpdate("id", {
-
client.accounting.contacts.metaPatchRetrieve(id) -> Merge.MetaResponse +## Ticketing AvailableActions +
client.ticketing.availableActions.retrieve() -> Merge.AvailableActions
@@ -26417,7 +31956,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 +31971,7 @@ Returns metadata for `Contact` PATCHs.
```typescript -await client.accounting.contacts.metaPatchRetrieve("id"); +await client.ticketing.availableActions.retrieve(); ```
@@ -26448,15 +31987,7 @@ await client.accounting.contacts.metaPatchRetrieve("id");
-**id:** `string` - -
-
- -
-
- -**requestOptions:** `ContactsClient.RequestOptions` +**requestOptions:** `AvailableActionsClient.RequestOptions`
@@ -26468,7 +31999,8 @@ await client.accounting.contacts.metaPatchRetrieve("id");
-
client.accounting.contacts.metaPostRetrieve() -> Merge.MetaResponse +## Ticketing Collections +
client.ticketing.collections.list({ ...params }) -> core.Page
@@ -26480,7 +32012,7 @@ await client.accounting.contacts.metaPatchRetrieve("id");
-Returns metadata for `Contact` POSTs. +Returns a list of `Collection` objects.
@@ -26495,7 +32027,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 +32087,15 @@ await client.accounting.contacts.metaPostRetrieve();
-**requestOptions:** `ContactsClient.RequestOptions` +**request:** `Merge.ticketing.CollectionsListRequest` + +
+
+ +
+
+ +**requestOptions:** `CollectionsClient.RequestOptions`
@@ -26523,7 +32107,7 @@ await client.accounting.contacts.metaPostRetrieve();
-
client.accounting.contacts.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.ticketing.collections.viewersList(collection_id, { ...params }) -> core.Page
@@ -26535,7 +32119,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 +32134,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 +32174,7 @@ await client.accounting.contacts.remoteFieldClassesList({
-**request:** `Merge.accounting.ContactsRemoteFieldClassesListRequest` +**collection_id:** `string`
@@ -26582,7 +32182,15 @@ await client.accounting.contacts.remoteFieldClassesList({
-**requestOptions:** `ContactsClient.RequestOptions` +**request:** `Merge.ticketing.CollectionsViewersListRequest` + +
+
+ +
+
+ +**requestOptions:** `CollectionsClient.RequestOptions`
@@ -26594,8 +32202,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 +32214,7 @@ await client.accounting.contacts.remoteFieldClassesList({
-Returns a list of `CreditNote` objects. +Returns a `Collection` object with the given `id`.
@@ -26622,23 +32229,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 +32250,7 @@ await client.accounting.creditNotes.list({
-**request:** `Merge.accounting.CreditNotesListRequest` +**id:** `string`
@@ -26663,7 +32258,15 @@ await client.accounting.creditNotes.list({
-**requestOptions:** `CreditNotesClient.RequestOptions` +**request:** `Merge.ticketing.CollectionsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `CollectionsClient.RequestOptions`
@@ -26675,7 +32278,8 @@ await client.accounting.creditNotes.list({
-
client.accounting.creditNotes.create({ ...params }) -> Merge.CreditNoteResponse +## Ticketing Comments +
client.ticketing.comments.list({ ...params }) -> core.Page
@@ -26687,7 +32291,7 @@ await client.accounting.creditNotes.list({
-Creates a `CreditNote` object with the given values. +Returns a list of `Comment` objects.
@@ -26702,11 +32306,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 +32360,7 @@ await client.accounting.creditNotes.create({
-**request:** `Merge.accounting.CreditNoteEndpointRequest` +**request:** `Merge.ticketing.CommentsListRequest`
@@ -26730,7 +32368,7 @@ await client.accounting.creditNotes.create({
-**requestOptions:** `CreditNotesClient.RequestOptions` +**requestOptions:** `CommentsClient.RequestOptions`
@@ -26742,7 +32380,7 @@ await client.accounting.creditNotes.create({
-
client.accounting.creditNotes.retrieve(id, { ...params }) -> Merge.CreditNote +
client.ticketing.comments.create({ ...params }) -> Merge.CommentResponse
@@ -26754,7 +32392,7 @@ await client.accounting.creditNotes.create({
-Returns a `CreditNote` object with the given `id`. +Creates a `Comment` object with the given values.
@@ -26769,12 +32407,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 +32427,7 @@ await client.accounting.creditNotes.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.CreditNotesRetrieveRequest` +**request:** `Merge.ticketing.CommentEndpointRequest`
@@ -26807,7 +32435,7 @@ await client.accounting.creditNotes.retrieve("id", {
-**requestOptions:** `CreditNotesClient.RequestOptions` +**requestOptions:** `CommentsClient.RequestOptions`
@@ -26819,7 +32447,7 @@ await client.accounting.creditNotes.retrieve("id", {
-
client.accounting.creditNotes.metaPostRetrieve() -> Merge.MetaResponse +
client.ticketing.comments.retrieve(id, { ...params }) -> Merge.Comment
@@ -26831,7 +32459,7 @@ await client.accounting.creditNotes.retrieve("id", {
-Returns metadata for `CreditNote` POSTs. +Returns a `Comment` object with the given `id`.
@@ -26846,7 +32474,10 @@ Returns metadata for `CreditNote` POSTs.
```typescript -await client.accounting.creditNotes.metaPostRetrieve(); +await client.ticketing.comments.retrieve("id", { + includeRemoteData: true, + includeShellData: true +}); ```
@@ -26862,7 +32493,23 @@ await client.accounting.creditNotes.metaPostRetrieve();
-**requestOptions:** `CreditNotesClient.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.ticketing.CommentsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `CommentsClient.RequestOptions`
@@ -26874,8 +32521,7 @@ await client.accounting.creditNotes.metaPostRetrieve();
-## Accounting Scopes -
client.accounting.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi +
client.ticketing.comments.metaPostRetrieve() -> Merge.MetaResponse
@@ -26887,7 +32533,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 +32548,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 +32564,7 @@ await client.accounting.scopes.defaultScopesRetrieve();
-**requestOptions:** `ScopesClient.RequestOptions` +**requestOptions:** `CommentsClient.RequestOptions`
@@ -26930,7 +32576,8 @@ await client.accounting.scopes.defaultScopesRetrieve();
-
client.accounting.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi +## Ticketing Contacts +
client.ticketing.contacts.list({ ...params }) -> core.Page
@@ -26942,7 +32589,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 +32604,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 +32656,15 @@ await client.accounting.scopes.linkedAccountScopesRetrieve();
-**requestOptions:** `ScopesClient.RequestOptions` +**request:** `Merge.ticketing.ContactsListRequest` + +
+
+ +
+
+ +**requestOptions:** `ContactsClient.RequestOptions`
@@ -26985,7 +32676,7 @@ await client.accounting.scopes.linkedAccountScopesRetrieve();
-
client.accounting.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi +
client.ticketing.contacts.create({ ...params }) -> Merge.TicketingContactResponse
@@ -26997,7 +32688,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 +32703,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 +32723,7 @@ await client.accounting.scopes.linkedAccountScopesCreate({
-**request:** `Merge.accounting.LinkedAccountCommonModelScopeDeserializerRequest` +**request:** `Merge.ticketing.TicketingContactEndpointRequest`
@@ -27059,7 +32731,7 @@ await client.accounting.scopes.linkedAccountScopesCreate({
-**requestOptions:** `ScopesClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -27071,8 +32743,7 @@ await client.accounting.scopes.linkedAccountScopesCreate({
-## Accounting DeleteAccount -
client.accounting.deleteAccount.delete() -> void +
client.ticketing.contacts.retrieve(id, { ...params }) -> Merge.Contact
@@ -27084,7 +32755,7 @@ await client.accounting.scopes.linkedAccountScopesCreate({
-Delete a linked account. +Returns a `Contact` object with the given `id`.
@@ -27099,7 +32770,10 @@ Delete a linked account.
```typescript -await client.accounting.deleteAccount.delete(); +await client.ticketing.contacts.retrieve("id", { + includeRemoteData: true, + includeShellData: true +}); ```
@@ -27115,7 +32789,23 @@ await client.accounting.deleteAccount.delete();
-**requestOptions:** `DeleteAccountClient.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.ticketing.ContactsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `ContactsClient.RequestOptions`
@@ -27127,8 +32817,7 @@ await client.accounting.deleteAccount.delete();
-## Accounting Employees -
client.accounting.employees.list({ ...params }) -> Merge.PaginatedEmployeeList +
client.ticketing.contacts.metaPostRetrieve() -> Merge.MetaResponse
@@ -27140,7 +32829,7 @@ await client.accounting.deleteAccount.delete();
-Returns a list of `Employee` objects. +Returns metadata for `TicketingContact` POSTs.
@@ -27155,20 +32844,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 +32860,7 @@ await client.accounting.employees.list({
-**request:** `Merge.accounting.EmployeesListRequest` - -
-
- -
-
- -**requestOptions:** `EmployeesClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -27204,7 +32872,8 @@ await client.accounting.employees.list({
-
client.accounting.employees.retrieve(id, { ...params }) -> Merge.Employee +## Ticketing Scopes +
client.ticketing.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -27216,7 +32885,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 +32900,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(); ```
@@ -27251,23 +32916,7 @@ await client.accounting.employees.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.EmployeesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `EmployeesClient.RequestOptions` +**requestOptions:** `ScopesClient.RequestOptions`
@@ -27279,8 +32928,7 @@ await client.accounting.employees.retrieve("id", {
-## Accounting ExpenseReports -
client.accounting.expenseReports.list({ ...params }) -> Merge.PaginatedExpenseReportList +
client.ticketing.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -27292,7 +32940,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 +32955,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 +32971,7 @@ await client.accounting.expenseReports.list({
-**request:** `Merge.accounting.ExpenseReportsListRequest` - -
-
- -
-
- -**requestOptions:** `ExpenseReportsClient.RequestOptions` +**requestOptions:** `ScopesClient.RequestOptions`
@@ -27357,7 +32983,7 @@ await client.accounting.expenseReports.list({
-
client.accounting.expenseReports.create({ ...params }) -> Merge.ExpenseReportResponse +
client.ticketing.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi
@@ -27369,7 +32995,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 +33010,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 +33049,7 @@ await client.accounting.expenseReports.create({
-**request:** `Merge.accounting.ExpenseReportEndpointRequest` +**request:** `Merge.ticketing.LinkedAccountCommonModelScopeDeserializerRequest`
@@ -27414,7 +33057,7 @@ await client.accounting.expenseReports.create({
-**requestOptions:** `ExpenseReportsClient.RequestOptions` +**requestOptions:** `ScopesClient.RequestOptions`
@@ -27426,7 +33069,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 +33082,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 +33097,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 +33113,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 +33125,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 +33138,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 +33153,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 +33171,7 @@ await client.accounting.expenseReports.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.ExpenseReportsRetrieveRequest` +**request:** `Merge.ticketing.FieldMappingsRetrieveRequest`
@@ -27569,7 +33179,7 @@ await client.accounting.expenseReports.retrieve("id", {
-**requestOptions:** `ExpenseReportsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -27581,7 +33191,7 @@ await client.accounting.expenseReports.retrieve("id", {
-
client.accounting.expenseReports.linesRemoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.ticketing.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse
@@ -27593,7 +33203,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 +33218,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 +33243,7 @@ await client.accounting.expenseReports.linesRemoteFieldClassesList({
-**request:** `Merge.accounting.ExpenseReportsLinesRemoteFieldClassesListRequest` +**request:** `Merge.ticketing.CreateFieldMappingRequest`
@@ -27640,7 +33251,7 @@ await client.accounting.expenseReports.linesRemoteFieldClassesList({
-**requestOptions:** `ExpenseReportsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -27652,7 +33263,7 @@ await client.accounting.expenseReports.linesRemoteFieldClassesList({
-
client.accounting.expenseReports.metaPostRetrieve() -> Merge.MetaResponse +
client.ticketing.fieldMapping.fieldMappingsDestroy(field_mapping_id) -> Merge.FieldMappingInstanceResponse
@@ -27664,7 +33275,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 +33290,7 @@ Returns metadata for `ExpenseReport` POSTs.
```typescript -await client.accounting.expenseReports.metaPostRetrieve(); +await client.ticketing.fieldMapping.fieldMappingsDestroy("field_mapping_id"); ```
@@ -27695,7 +33306,15 @@ await client.accounting.expenseReports.metaPostRetrieve();
-**requestOptions:** `ExpenseReportsClient.RequestOptions` +**field_mapping_id:** `string` + +
+
+ +
+
+ +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -27707,7 +33326,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 +33338,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 +33353,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 +33371,7 @@ await client.accounting.expenseReports.remoteFieldClassesList({
-**request:** `Merge.accounting.ExpenseReportsRemoteFieldClassesListRequest` +**field_mapping_id:** `string`
@@ -27766,7 +33379,15 @@ await client.accounting.expenseReports.remoteFieldClassesList({
-**requestOptions:** `ExpenseReportsClient.RequestOptions` +**request:** `Merge.ticketing.PatchedEditFieldMappingRequest` + +
+
+ +
+
+ +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -27778,8 +33399,7 @@ await client.accounting.expenseReports.remoteFieldClassesList({
-## Accounting Expenses -
client.accounting.expenses.list({ ...params }) -> Merge.PaginatedExpenseList +
client.ticketing.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse
@@ -27791,7 +33411,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 +33426,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 +33445,7 @@ await client.accounting.expenses.list({
-**request:** `Merge.accounting.ExpensesListRequest` +**request:** `Merge.ticketing.RemoteFieldsRetrieveRequest`
@@ -27846,7 +33453,7 @@ await client.accounting.expenses.list({
-**requestOptions:** `ExpensesClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -27858,7 +33465,7 @@ await client.accounting.expenses.list({
-
client.accounting.expenses.create({ ...params }) -> Merge.ExpenseResponse +
client.ticketing.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse
@@ -27870,7 +33477,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 +33492,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 +33508,7 @@ await client.accounting.expenses.create({
-**request:** `Merge.accounting.ExpenseEndpointRequest` - -
-
- -
-
- -**requestOptions:** `ExpensesClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -27925,7 +33520,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 +33533,7 @@ await client.accounting.expenses.create({
-Returns an `Expense` object with the given `id`. +Create a remote key.
@@ -27952,11 +33548,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 +33566,7 @@ await client.accounting.expenses.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.ExpensesRetrieveRequest` +**request:** `Merge.ticketing.GenerateRemoteKeyRequest`
@@ -27989,7 +33574,7 @@ await client.accounting.expenses.retrieve("id", {
-**requestOptions:** `ExpensesClient.RequestOptions` +**requestOptions:** `GenerateKeyClient.RequestOptions`
@@ -28001,7 +33586,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 +33599,7 @@ await client.accounting.expenses.retrieve("id", {
-Returns a list of `RemoteFieldClass` objects. +Gets all issues for Organization.
@@ -28028,15 +33614,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 +33672,7 @@ await client.accounting.expenses.linesRemoteFieldClassesList({
-**request:** `Merge.accounting.ExpensesLinesRemoteFieldClassesListRequest` +**request:** `Merge.ticketing.IssuesListRequest`
@@ -28060,7 +33680,7 @@ await client.accounting.expenses.linesRemoteFieldClassesList({
-**requestOptions:** `ExpensesClient.RequestOptions` +**requestOptions:** `IssuesClient.RequestOptions`
@@ -28072,7 +33692,7 @@ await client.accounting.expenses.linesRemoteFieldClassesList({
-
client.accounting.expenses.metaPostRetrieve() -> Merge.MetaResponse +
client.ticketing.issues.retrieve(id) -> Merge.Issue
@@ -28084,7 +33704,7 @@ await client.accounting.expenses.linesRemoteFieldClassesList({
-Returns metadata for `Expense` POSTs. +Get a specific issue.
@@ -28099,7 +33719,7 @@ Returns metadata for `Expense` POSTs.
```typescript -await client.accounting.expenses.metaPostRetrieve(); +await client.ticketing.issues.retrieve("id"); ```
@@ -28115,7 +33735,15 @@ await client.accounting.expenses.metaPostRetrieve();
-**requestOptions:** `ExpensesClient.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**requestOptions:** `IssuesClient.RequestOptions`
@@ -28127,7 +33755,8 @@ await client.accounting.expenses.metaPostRetrieve();
-
client.accounting.expenses.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +## Ticketing LinkToken +
client.ticketing.linkToken.create({ ...params }) -> Merge.LinkToken
@@ -28139,7 +33768,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 +33783,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 +33804,7 @@ await client.accounting.expenses.remoteFieldClassesList({
-**request:** `Merge.accounting.ExpensesRemoteFieldClassesListRequest` +**request:** `Merge.ticketing.EndUserDetailsRequest`
@@ -28186,7 +33812,7 @@ await client.accounting.expenses.remoteFieldClassesList({
-**requestOptions:** `ExpensesClient.RequestOptions` +**requestOptions:** `LinkTokenClient.RequestOptions`
@@ -28198,8 +33824,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 +33837,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 +33852,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 +33908,7 @@ await client.accounting.fieldMapping.fieldMappingsRetrieve({
-**request:** `Merge.accounting.FieldMappingsRetrieveRequest` +**request:** `Merge.ticketing.LinkedAccountsListRequest`
@@ -28252,7 +33916,7 @@ await client.accounting.fieldMapping.fieldMappingsRetrieve({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `LinkedAccountsClient.RequestOptions`
@@ -28264,7 +33928,8 @@ await client.accounting.fieldMapping.fieldMappingsRetrieve({
-
client.accounting.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse +## Ticketing Passthrough +
client.ticketing.passthrough.create({ ...params }) -> Merge.RemoteResponse
@@ -28276,7 +33941,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 +33956,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 +33975,7 @@ await client.accounting.fieldMapping.fieldMappingsCreate({
-**request:** `Merge.accounting.CreateFieldMappingRequest` +**request:** `Merge.DataPassthroughRequest`
@@ -28323,7 +33983,7 @@ await client.accounting.fieldMapping.fieldMappingsCreate({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `PassthroughClient.RequestOptions`
@@ -28335,7 +33995,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 +34008,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 +34023,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 +34073,7 @@ await client.accounting.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**field_mapping_id:** `string` +**request:** `Merge.ticketing.ProjectsListRequest`
@@ -28386,7 +34081,7 @@ await client.accounting.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `ProjectsClient.RequestOptions`
@@ -28398,7 +34093,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 +34105,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 +34120,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 +34139,7 @@ await client.accounting.fieldMapping.fieldMappingsPartialUpdate("field_mapping_i
-**field_mapping_id:** `string` +**id:** `string`
@@ -28449,7 +34147,7 @@ await client.accounting.fieldMapping.fieldMappingsPartialUpdate("field_mapping_i
-**request:** `Merge.accounting.PatchedEditFieldMappingRequest` +**request:** `Merge.ticketing.ProjectsRetrieveRequest`
@@ -28457,7 +34155,7 @@ await client.accounting.fieldMapping.fieldMappingsPartialUpdate("field_mapping_i
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `ProjectsClient.RequestOptions`
@@ -28469,7 +34167,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 +34179,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 +34194,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 +34234,7 @@ await client.accounting.fieldMapping.remoteFieldsRetrieve({
-**request:** `Merge.accounting.RemoteFieldsRetrieveRequest` +**parent_id:** `string`
@@ -28523,7 +34242,15 @@ await client.accounting.fieldMapping.remoteFieldsRetrieve({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**request:** `Merge.ticketing.ProjectsUsersListRequest` + +
+
+ +
+
+ +**requestOptions:** `ProjectsClient.RequestOptions`
@@ -28535,7 +34262,8 @@ await client.accounting.fieldMapping.remoteFieldsRetrieve({
-
client.accounting.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse +## Ticketing RegenerateKey +
client.ticketing.regenerateKey.create({ ...params }) -> Merge.RemoteKey
@@ -28547,7 +34275,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 +34290,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 +34308,15 @@ await client.accounting.fieldMapping.targetFieldsRetrieve();
-**requestOptions:** `FieldMappingClient.RequestOptions` +**request:** `Merge.ticketing.RemoteKeyForRegenerationRequest` + +
+
+ +
+
+ +**requestOptions:** `RegenerateKeyClient.RequestOptions`
@@ -28590,8 +34328,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 +34341,7 @@ await client.accounting.fieldMapping.targetFieldsRetrieve();
-Returns a list of `GeneralLedgerTransaction` objects. +Returns a list of `Role` objects.
@@ -28618,22 +34356,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 +34406,7 @@ await client.accounting.generalLedgerTransactions.list({
-**request:** `Merge.accounting.GeneralLedgerTransactionsListRequest` +**request:** `Merge.ticketing.RolesListRequest`
@@ -28657,7 +34414,7 @@ await client.accounting.generalLedgerTransactions.list({
-**requestOptions:** `GeneralLedgerTransactionsClient.RequestOptions` +**requestOptions:** `RolesClient.RequestOptions`
@@ -28669,7 +34426,7 @@ await client.accounting.generalLedgerTransactions.list({
-
client.accounting.generalLedgerTransactions.retrieve(id, { ...params }) -> Merge.GeneralLedgerTransaction +
client.ticketing.roles.retrieve(id, { ...params }) -> Merge.Role
@@ -28681,7 +34438,7 @@ await client.accounting.generalLedgerTransactions.list({
-Returns a `GeneralLedgerTransaction` object with the given `id`. +Returns a `Role` object with the given `id`.
@@ -28696,8 +34453,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 +34480,7 @@ await client.accounting.generalLedgerTransactions.retrieve("id", {
-**request:** `Merge.accounting.GeneralLedgerTransactionsRetrieveRequest` +**request:** `Merge.ticketing.RolesRetrieveRequest`
@@ -28732,7 +34488,7 @@ await client.accounting.generalLedgerTransactions.retrieve("id", {
-**requestOptions:** `GeneralLedgerTransactionsClient.RequestOptions` +**requestOptions:** `RolesClient.RequestOptions`
@@ -28744,8 +34500,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 +34513,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 +34528,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 +34562,7 @@ await client.accounting.generateKey.create({
-**request:** `Merge.accounting.GenerateRemoteKeyRequest` +**request:** `Merge.ticketing.SyncStatusListRequest`
@@ -28798,7 +34570,7 @@ await client.accounting.generateKey.create({
-**requestOptions:** `GenerateKeyClient.RequestOptions` +**requestOptions:** `SyncStatusClient.RequestOptions`
@@ -28810,8 +34582,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 +34595,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 +34610,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 +34626,7 @@ await client.accounting.incomeStatements.list({
-**request:** `Merge.accounting.IncomeStatementsListRequest` - -
-
- -
-
- -**requestOptions:** `IncomeStatementsClient.RequestOptions` +**requestOptions:** `ForceResyncClient.RequestOptions`
@@ -28887,7 +34638,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 +34651,7 @@ await client.accounting.incomeStatements.list({
-Returns an `IncomeStatement` object with the given `id`. +Returns a list of `Tag` objects.
@@ -28914,11 +34666,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 +34716,7 @@ await client.accounting.incomeStatements.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.IncomeStatementsRetrieveRequest` +**request:** `Merge.ticketing.TagsListRequest`
@@ -28950,7 +34724,7 @@ await client.accounting.incomeStatements.retrieve("id", {
-**requestOptions:** `IncomeStatementsClient.RequestOptions` +**requestOptions:** `TagsClient.RequestOptions`
@@ -28962,8 +34736,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 +34748,7 @@ await client.accounting.incomeStatements.retrieve("id", {
-Returns a list of `Invoice` objects. +Returns a `Tag` object with the given `id`.
@@ -28990,28 +34763,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 +34782,7 @@ await client.accounting.invoices.list({
-**request:** `Merge.accounting.InvoicesListRequest` +**id:** `string`
@@ -29036,7 +34790,15 @@ await client.accounting.invoices.list({
-**requestOptions:** `InvoicesClient.RequestOptions` +**request:** `Merge.ticketing.TagsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `TagsClient.RequestOptions`
@@ -29048,7 +34810,8 @@ await client.accounting.invoices.list({
-
client.accounting.invoices.create({ ...params }) -> Merge.InvoiceResponse +## Ticketing Teams +
client.ticketing.teams.list({ ...params }) -> core.Page
@@ -29060,9 +34823,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 +34838,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 +34888,7 @@ await client.accounting.invoices.create({
-**request:** `Merge.accounting.InvoiceEndpointRequest` +**request:** `Merge.ticketing.TeamsListRequest`
@@ -29105,7 +34896,7 @@ await client.accounting.invoices.create({
-**requestOptions:** `InvoicesClient.RequestOptions` +**requestOptions:** `TeamsClient.RequestOptions`
@@ -29117,7 +34908,7 @@ await client.accounting.invoices.create({
-
client.accounting.invoices.retrieve(id, { ...params }) -> Merge.Invoice +
client.ticketing.teams.retrieve(id, { ...params }) -> Merge.Team
@@ -29129,7 +34920,7 @@ await client.accounting.invoices.create({
-Returns an `Invoice` object with the given `id`. +Returns a `Team` object with the given `id`.
@@ -29144,13 +34935,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 +34962,7 @@ await client.accounting.invoices.retrieve("id", {
-**request:** `Merge.accounting.InvoicesRetrieveRequest` +**request:** `Merge.ticketing.TeamsRetrieveRequest`
@@ -29183,7 +34970,7 @@ await client.accounting.invoices.retrieve("id", {
-**requestOptions:** `InvoicesClient.RequestOptions` +**requestOptions:** `TeamsClient.RequestOptions`
@@ -29195,7 +34982,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 +34995,7 @@ await client.accounting.invoices.retrieve("id", {
-Updates an `Invoice` object with the given `id`. +Returns a list of `Ticket` objects.
@@ -29222,11 +35010,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 +35110,7 @@ await client.accounting.invoices.partialUpdate("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.PatchedInvoiceEndpointRequest` +**request:** `Merge.ticketing.TicketsListRequest`
@@ -29258,7 +35118,7 @@ await client.accounting.invoices.partialUpdate("id", {
-**requestOptions:** `InvoicesClient.RequestOptions` +**requestOptions:** `TicketsClient.RequestOptions`
@@ -29270,7 +35130,7 @@ await client.accounting.invoices.partialUpdate("id", {
-
client.accounting.invoices.lineItemsRemoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.ticketing.tickets.create({ ...params }) -> Merge.TicketResponse
@@ -29282,7 +35142,7 @@ await client.accounting.invoices.partialUpdate("id", {
-Returns a list of `RemoteFieldClass` objects. +Creates a `Ticket` object with the given values.
@@ -29297,14 +35157,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 +35177,7 @@ await client.accounting.invoices.lineItemsRemoteFieldClassesList({
-**request:** `Merge.accounting.InvoicesLineItemsRemoteFieldClassesListRequest` +**request:** `Merge.ticketing.TicketEndpointRequest`
@@ -29329,7 +35185,7 @@ await client.accounting.invoices.lineItemsRemoteFieldClassesList({
-**requestOptions:** `InvoicesClient.RequestOptions` +**requestOptions:** `TicketsClient.RequestOptions`
@@ -29341,7 +35197,7 @@ await client.accounting.invoices.lineItemsRemoteFieldClassesList({
-
client.accounting.invoices.metaPatchRetrieve(id) -> Merge.MetaResponse +
client.ticketing.tickets.retrieve(id, { ...params }) -> Merge.Ticket
@@ -29353,7 +35209,7 @@ await client.accounting.invoices.lineItemsRemoteFieldClassesList({
-Returns metadata for `Invoice` PATCHs. +Returns a `Ticket` object with the given `id`.
@@ -29368,7 +35224,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 +35254,15 @@ await client.accounting.invoices.metaPatchRetrieve("id");
-**requestOptions:** `InvoicesClient.RequestOptions` +**request:** `Merge.ticketing.TicketsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `TicketsClient.RequestOptions`
@@ -29404,7 +35274,7 @@ await client.accounting.invoices.metaPatchRetrieve("id");
-
client.accounting.invoices.metaPostRetrieve() -> Merge.MetaResponse +
client.ticketing.tickets.partialUpdate(id, { ...params }) -> Merge.TicketResponse
@@ -29416,7 +35286,7 @@ await client.accounting.invoices.metaPatchRetrieve("id");
-Returns metadata for `Invoice` POSTs. +Updates a `Ticket` object with the given `id`.
@@ -29431,7 +35301,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 +35321,23 @@ await client.accounting.invoices.metaPostRetrieve();
-**requestOptions:** `InvoicesClient.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.ticketing.PatchedTicketEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `TicketsClient.RequestOptions`
@@ -29459,7 +35349,7 @@ await client.accounting.invoices.metaPostRetrieve();
-
client.accounting.invoices.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.ticketing.tickets.viewersList(ticket_id, { ...params }) -> core.Page
@@ -29471,7 +35361,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 +35376,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 +35416,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 +35432,7 @@ await client.accounting.issues.list({
-**requestOptions:** `IssuesClient.RequestOptions` +**requestOptions:** `TicketsClient.RequestOptions`
@@ -29609,7 +35444,7 @@ await client.accounting.issues.list({
-
client.accounting.issues.retrieve(id) -> Merge.Issue +
client.ticketing.tickets.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -29621,7 +35456,7 @@ await client.accounting.issues.list({
-Get a specific issue. +Returns metadata for `Ticket` PATCHs.
@@ -29636,7 +35471,7 @@ Get a specific issue.
```typescript -await client.accounting.issues.retrieve("id"); +await client.ticketing.tickets.metaPatchRetrieve("id"); ```
@@ -29660,7 +35495,7 @@ await client.accounting.issues.retrieve("id");
-**requestOptions:** `IssuesClient.RequestOptions` +**requestOptions:** `TicketsClient.RequestOptions`
@@ -29672,8 +35507,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 +35519,7 @@ await client.accounting.issues.retrieve("id");
-Returns a list of `Item` objects. +Returns metadata for `Ticket` POSTs.
@@ -29700,21 +35534,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 +35553,7 @@ await client.accounting.items.list({
-**request:** `Merge.accounting.ItemsListRequest` +**request:** `Merge.ticketing.TicketsMetaPostRetrieveRequest`
@@ -29739,7 +35561,7 @@ await client.accounting.items.list({
-**requestOptions:** `ItemsClient.RequestOptions` +**requestOptions:** `TicketsClient.RequestOptions`
@@ -29751,7 +35573,7 @@ await client.accounting.items.list({
-
client.accounting.items.create({ ...params }) -> Merge.ItemResponse +
client.ticketing.tickets.remoteFieldClassesList({ ...params }) -> core.Page
@@ -29763,7 +35585,7 @@ await client.accounting.items.list({
-Creates an `Item` object with the given values. +Returns a list of `RemoteFieldClass` objects.
@@ -29778,11 +35600,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 +35646,7 @@ await client.accounting.items.create({
-**request:** `Merge.accounting.ItemEndpointRequest` +**request:** `Merge.ticketing.TicketsRemoteFieldClassesListRequest`
@@ -29806,7 +35654,7 @@ await client.accounting.items.create({
-**requestOptions:** `ItemsClient.RequestOptions` +**requestOptions:** `TicketsClient.RequestOptions`
@@ -29818,7 +35666,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 +35679,7 @@ await client.accounting.items.create({
-Returns an `Item` object with the given `id`. +Returns a list of `User` objects.
@@ -29845,13 +35694,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 +35754,7 @@ await client.accounting.items.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.ItemsRetrieveRequest` +**request:** `Merge.ticketing.UsersListRequest`
@@ -29883,7 +35762,7 @@ await client.accounting.items.retrieve("id", {
-**requestOptions:** `ItemsClient.RequestOptions` +**requestOptions:** `UsersClient.RequestOptions`
@@ -29895,7 +35774,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 +35786,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 +35801,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 +35828,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 +35836,7 @@ await client.accounting.items.metaPatchRetrieve("id");
-**requestOptions:** `ItemsClient.RequestOptions` +**requestOptions:** `UsersClient.RequestOptions`
@@ -30033,7 +35848,8 @@ await client.accounting.items.metaPatchRetrieve("id");
-
client.accounting.items.metaPostRetrieve() -> Merge.MetaResponse +## Ticketing WebhookReceivers +
client.ticketing.webhookReceivers.list() -> Merge.WebhookReceiver[]
@@ -30045,7 +35861,7 @@ await client.accounting.items.metaPatchRetrieve("id");
-Returns metadata for `Item` POSTs. +Returns a list of `WebhookReceiver` objects.
@@ -30060,7 +35876,7 @@ Returns metadata for `Item` POSTs.
```typescript -await client.accounting.items.metaPostRetrieve(); +await client.ticketing.webhookReceivers.list(); ```
@@ -30076,7 +35892,7 @@ await client.accounting.items.metaPostRetrieve();
-**requestOptions:** `ItemsClient.RequestOptions` +**requestOptions:** `WebhookReceiversClient.RequestOptions`
@@ -30088,8 +35904,7 @@ await client.accounting.items.metaPostRetrieve();
-## Accounting JournalEntries -
client.accounting.journalEntries.list({ ...params }) -> Merge.PaginatedJournalEntryList +
client.ticketing.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver
@@ -30101,7 +35916,7 @@ await client.accounting.items.metaPostRetrieve();
-Returns a list of `JournalEntry` objects. +Creates a `WebhookReceiver` object with the given values.
@@ -30116,22 +35931,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 +35950,7 @@ await client.accounting.journalEntries.list({
-**request:** `Merge.accounting.JournalEntriesListRequest` +**request:** `Merge.ticketing.WebhookReceiverRequest`
@@ -30156,7 +35958,7 @@ await client.accounting.journalEntries.list({
-**requestOptions:** `JournalEntriesClient.RequestOptions` +**requestOptions:** `WebhookReceiversClient.RequestOptions`
@@ -30168,7 +35970,8 @@ await client.accounting.journalEntries.list({
-
client.accounting.journalEntries.create({ ...params }) -> Merge.JournalEntryResponse +## Filestorage AccountDetails +
client.filestorage.accountDetails.retrieve() -> Merge.AccountDetails
@@ -30180,7 +35983,7 @@ await client.accounting.journalEntries.list({
-Creates a `JournalEntry` object with the given values. +Get details for a linked account.
@@ -30195,11 +35998,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 +36014,7 @@ await client.accounting.journalEntries.create({
-**request:** `Merge.accounting.JournalEntryEndpointRequest` - -
-
- -
-
- -**requestOptions:** `JournalEntriesClient.RequestOptions` +**requestOptions:** `AccountDetailsClient.RequestOptions`
@@ -30235,7 +36026,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 +36039,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 +36054,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 +36070,7 @@ await client.accounting.journalEntries.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.JournalEntriesRetrieveRequest` +**public_token:** `string`
@@ -30299,7 +36078,7 @@ await client.accounting.journalEntries.retrieve("id", {
-**requestOptions:** `JournalEntriesClient.RequestOptions` +**requestOptions:** `AccountTokenClient.RequestOptions`
@@ -30311,7 +36090,7 @@ await client.accounting.journalEntries.retrieve("id", {
-
client.accounting.journalEntries.linesRemoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.filestorage.accountToken.regenerateCreate() -> Merge.RegenerateAccountToken
@@ -30323,7 +36102,7 @@ await client.accounting.journalEntries.retrieve("id", {
-Returns a list of `RemoteFieldClass` objects. +Exchange Linked Account account tokens.
@@ -30338,15 +36117,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 +36133,7 @@ await client.accounting.journalEntries.linesRemoteFieldClassesList({
-**request:** `Merge.accounting.JournalEntriesLinesRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `JournalEntriesClient.RequestOptions` +**requestOptions:** `AccountTokenClient.RequestOptions`
@@ -30382,7 +36145,8 @@ await client.accounting.journalEntries.linesRemoteFieldClassesList({
-
client.accounting.journalEntries.metaPostRetrieve() -> Merge.MetaResponse +## Filestorage AsyncPassthrough +
client.filestorage.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept
@@ -30394,7 +36158,7 @@ await client.accounting.journalEntries.linesRemoteFieldClassesList({
-Returns metadata for `JournalEntry` POSTs. +Asynchronously pull data from an endpoint not currently supported by Merge.
@@ -30409,7 +36173,10 @@ Returns metadata for `JournalEntry` POSTs.
```typescript -await client.accounting.journalEntries.metaPostRetrieve(); +await client.filestorage.asyncPassthrough.create({ + method: "GET", + path: "/scooters" +}); ```
@@ -30425,7 +36192,15 @@ await client.accounting.journalEntries.metaPostRetrieve();
-**requestOptions:** `JournalEntriesClient.RequestOptions` +**request:** `Merge.DataPassthroughRequest` + +
+
+ +
+
+ +**requestOptions:** `AsyncPassthroughClient.RequestOptions`
@@ -30437,7 +36212,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 +36224,7 @@ await client.accounting.journalEntries.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Retrieves data from earlier async-passthrough POST request
@@ -30464,15 +36239,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 +36255,7 @@ await client.accounting.journalEntries.remoteFieldClassesList({
-**request:** `Merge.accounting.JournalEntriesRemoteFieldClassesListRequest` +**async_passthrough_receipt_id:** `string`
@@ -30496,7 +36263,7 @@ await client.accounting.journalEntries.remoteFieldClassesList({
-**requestOptions:** `JournalEntriesClient.RequestOptions` +**requestOptions:** `AsyncPassthroughClient.RequestOptions`
@@ -30508,8 +36275,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 +36288,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 +36303,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 +36345,7 @@ await client.accounting.linkToken.create({
-**request:** `Merge.accounting.EndUserDetailsRequest` +**request:** `Merge.filestorage.AuditTrailListRequest`
@@ -30565,7 +36353,7 @@ await client.accounting.linkToken.create({
-**requestOptions:** `LinkTokenClient.RequestOptions` +**requestOptions:** `AuditTrailClient.RequestOptions`
@@ -30577,8 +36365,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 +36378,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 +36393,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 +36409,7 @@ await client.accounting.linkedAccounts.list({
-**request:** `Merge.accounting.LinkedAccountsListRequest` - -
-
- -
-
- -**requestOptions:** `LinkedAccountsClient.RequestOptions` +**requestOptions:** `AvailableActionsClient.RequestOptions`
@@ -30655,8 +36421,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 +36434,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 +36449,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 +36465,7 @@ await client.accounting.passthrough.create({
-**request:** `Merge.DataPassthroughRequest` - -
-
- -
-
- -**requestOptions:** `PassthroughClient.RequestOptions` +**requestOptions:** `ScopesClient.RequestOptions`
@@ -30722,8 +36477,7 @@ await client.accounting.passthrough.create({
-## Accounting PaymentMethods -
client.accounting.paymentMethods.list({ ...params }) -> Merge.PaginatedPaymentMethodList +
client.filestorage.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -30735,7 +36489,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 +36504,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 +36520,7 @@ await client.accounting.paymentMethods.list({
-**request:** `Merge.accounting.PaymentMethodsListRequest` - -
-
- -
-
- -**requestOptions:** `PaymentMethodsClient.RequestOptions` +**requestOptions:** `ScopesClient.RequestOptions`
@@ -30792,7 +36532,7 @@ await client.accounting.paymentMethods.list({
-
client.accounting.paymentMethods.retrieve(id, { ...params }) -> Merge.PaymentMethod +
client.filestorage.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi
@@ -30804,7 +36544,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 +36559,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 +36598,7 @@ await client.accounting.paymentMethods.retrieve("id", {
-**id:** `string` +**request:** `Merge.filestorage.LinkedAccountCommonModelScopeDeserializerRequest`
@@ -30846,15 +36606,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 +36674,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 +36687,7 @@ await client.accounting.paymentMethods.retrieve("id", {
-Returns a list of `PaymentTerm` objects. +Returns a list of `Drive` objects.
@@ -30894,14 +36702,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 +36754,7 @@ await client.accounting.paymentTerms.list({
-**request:** `Merge.accounting.PaymentTermsListRequest` +**request:** `Merge.filestorage.DrivesListRequest`
@@ -30925,7 +36762,7 @@ await client.accounting.paymentTerms.list({
-**requestOptions:** `PaymentTermsClient.RequestOptions` +**requestOptions:** `DrivesClient.RequestOptions`
@@ -30937,7 +36774,7 @@ await client.accounting.paymentTerms.list({
-
client.accounting.paymentTerms.retrieve(id, { ...params }) -> Merge.PaymentTerm +
client.filestorage.drives.retrieve(id, { ...params }) -> Merge.Drive
@@ -30949,7 +36786,7 @@ await client.accounting.paymentTerms.list({
-Returns a `PaymentTerm` object with the given `id`. +Returns a `Drive` object with the given `id`.
@@ -30964,8 +36801,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 +36828,7 @@ await client.accounting.paymentTerms.retrieve("id", {
-**request:** `Merge.accounting.PaymentTermsRetrieveRequest` +**request:** `Merge.filestorage.DrivesRetrieveRequest`
@@ -31000,7 +36836,7 @@ await client.accounting.paymentTerms.retrieve("id", {
-**requestOptions:** `PaymentTermsClient.RequestOptions` +**requestOptions:** `DrivesClient.RequestOptions`
@@ -31012,8 +36848,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 +36861,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 +36876,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 +36894,7 @@ await client.accounting.payments.list({
-**request:** `Merge.accounting.PaymentsListRequest` +**request:** `Merge.filestorage.FieldMappingsRetrieveRequest`
@@ -31082,7 +36902,7 @@ await client.accounting.payments.list({
-**requestOptions:** `PaymentsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -31094,7 +36914,7 @@ await client.accounting.payments.list({
-
client.accounting.payments.create({ ...params }) -> Merge.PaymentResponse +
client.filestorage.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse
@@ -31106,7 +36926,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 +36941,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 +36966,7 @@ await client.accounting.payments.create({
-**request:** `Merge.accounting.PaymentEndpointRequest` +**request:** `Merge.filestorage.CreateFieldMappingRequest`
@@ -31149,7 +36974,7 @@ await client.accounting.payments.create({
-**requestOptions:** `PaymentsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -31161,7 +36986,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 +36998,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 +37013,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 +37029,7 @@ await client.accounting.payments.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.PaymentsRetrieveRequest` +**field_mapping_id:** `string`
@@ -31225,7 +37037,7 @@ await client.accounting.payments.retrieve("id", {
-**requestOptions:** `PaymentsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -31237,7 +37049,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 +37061,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 +37076,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 +37094,7 @@ await client.accounting.payments.partialUpdate("id", {
-**id:** `string` +**field_mapping_id:** `string`
@@ -31292,7 +37102,7 @@ await client.accounting.payments.partialUpdate("id", {
-**request:** `Merge.accounting.PatchedPaymentEndpointRequest` +**request:** `Merge.filestorage.PatchedEditFieldMappingRequest`
@@ -31300,7 +37110,7 @@ await client.accounting.payments.partialUpdate("id", {
-**requestOptions:** `PaymentsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -31312,7 +37122,7 @@ await client.accounting.payments.partialUpdate("id", {
-
client.accounting.payments.lineItemsRemoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.filestorage.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse
@@ -31324,7 +37134,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 +37149,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 +37168,7 @@ await client.accounting.payments.lineItemsRemoteFieldClassesList({
-**request:** `Merge.accounting.PaymentsLineItemsRemoteFieldClassesListRequest` +**request:** `Merge.filestorage.RemoteFieldsRetrieveRequest`
@@ -31371,7 +37176,7 @@ await client.accounting.payments.lineItemsRemoteFieldClassesList({
-**requestOptions:** `PaymentsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -31383,7 +37188,7 @@ await client.accounting.payments.lineItemsRemoteFieldClassesList({
-
client.accounting.payments.metaPatchRetrieve(id) -> Merge.MetaResponse +
client.filestorage.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse
@@ -31395,7 +37200,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 +37215,7 @@ Returns metadata for `Payment` PATCHs.
```typescript -await client.accounting.payments.metaPatchRetrieve("id"); +await client.filestorage.fieldMapping.targetFieldsRetrieve(); ```
@@ -31426,15 +37231,7 @@ await client.accounting.payments.metaPatchRetrieve("id");
-**id:** `string` - -
-
- -
-
- -**requestOptions:** `PaymentsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -31446,7 +37243,8 @@ await client.accounting.payments.metaPatchRetrieve("id");
-
client.accounting.payments.metaPostRetrieve() -> Merge.MetaResponse +## Filestorage Files +
client.filestorage.files.list({ ...params }) -> core.Page
@@ -31458,7 +37256,7 @@ await client.accounting.payments.metaPatchRetrieve("id");
-Returns metadata for `Payment` POSTs. +Returns a list of `File` objects.
@@ -31473,7 +37271,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 +37335,15 @@ await client.accounting.payments.metaPostRetrieve();
-**requestOptions:** `PaymentsClient.RequestOptions` +**request:** `Merge.filestorage.FilesListRequest` + +
+
+ +
+
+ +**requestOptions:** `FilesClient.RequestOptions`
@@ -31501,7 +37355,7 @@ await client.accounting.payments.metaPostRetrieve();
-
client.accounting.payments.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.filestorage.files.create({ ...params }) -> Merge.FileStorageFileResponse
@@ -31513,7 +37367,7 @@ await client.accounting.payments.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Creates a `File` object with the given values.
@@ -31528,14 +37382,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 +37402,7 @@ await client.accounting.payments.remoteFieldClassesList({
-**request:** `Merge.accounting.PaymentsRemoteFieldClassesListRequest` +**request:** `Merge.filestorage.FileStorageFileEndpointRequest`
@@ -31560,7 +37410,7 @@ await client.accounting.payments.remoteFieldClassesList({
-**requestOptions:** `PaymentsClient.RequestOptions` +**requestOptions:** `FilesClient.RequestOptions`
@@ -31572,8 +37422,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 +37434,7 @@ await client.accounting.payments.remoteFieldClassesList({
-Returns an `AccountingPhoneNumber` object with the given `id`. +Returns a `File` object with the given `id`.
@@ -31600,7 +37449,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 +37476,7 @@ await client.accounting.phoneNumbers.retrieve("id", {
-**request:** `Merge.accounting.PhoneNumbersRetrieveRequest` +**request:** `Merge.filestorage.FilesRetrieveRequest`
@@ -31635,7 +37484,7 @@ await client.accounting.phoneNumbers.retrieve("id", {
-**requestOptions:** `PhoneNumbersClient.RequestOptions` +**requestOptions:** `FilesClient.RequestOptions`
@@ -31647,8 +37496,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 +37508,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 +37523,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 +37541,7 @@ await client.accounting.projects.list({
-**request:** `Merge.accounting.ProjectsListRequest` +**id:** `string`
@@ -31712,7 +37549,15 @@ await client.accounting.projects.list({
-**requestOptions:** `ProjectsClient.RequestOptions` +**request:** `Merge.filestorage.FilesDownloadRequestMetaRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `FilesClient.RequestOptions`
@@ -31724,7 +37569,7 @@ await client.accounting.projects.list({
-
client.accounting.projects.retrieve(id, { ...params }) -> Merge.Project +
client.filestorage.files.downloadRequestMetaList({ ...params }) -> core.Page
@@ -31736,7 +37581,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 +37596,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 +37644,7 @@ await client.accounting.projects.retrieve("id", {
-**id:** `string` +**request:** `Merge.filestorage.FilesDownloadRequestMetaListRequest`
@@ -31779,15 +37652,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 +37719,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 +37732,7 @@ await client.accounting.projects.retrieve("id", {
-Returns a list of `PurchaseOrder` objects. +Returns a list of `Folder` objects.
@@ -31827,25 +37747,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 +37803,7 @@ await client.accounting.purchaseOrders.list({
-**request:** `Merge.accounting.PurchaseOrdersListRequest` +**request:** `Merge.filestorage.FoldersListRequest`
@@ -31869,7 +37811,7 @@ await client.accounting.purchaseOrders.list({
-**requestOptions:** `PurchaseOrdersClient.RequestOptions` +**requestOptions:** `FoldersClient.RequestOptions`
@@ -31881,7 +37823,7 @@ await client.accounting.purchaseOrders.list({
-
client.accounting.purchaseOrders.create({ ...params }) -> Merge.PurchaseOrderResponse +
client.filestorage.folders.create({ ...params }) -> Merge.FileStorageFolderResponse
@@ -31893,7 +37835,7 @@ await client.accounting.purchaseOrders.list({
-Creates a `PurchaseOrder` object with the given values. +Creates a `Folder` object with the given values.
@@ -31908,7 +37850,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 +37870,7 @@ await client.accounting.purchaseOrders.create({
-**request:** `Merge.accounting.PurchaseOrderEndpointRequest` +**request:** `Merge.filestorage.FileStorageFolderEndpointRequest`
@@ -31936,7 +37878,7 @@ await client.accounting.purchaseOrders.create({
-**requestOptions:** `PurchaseOrdersClient.RequestOptions` +**requestOptions:** `FoldersClient.RequestOptions`
@@ -31948,7 +37890,7 @@ await client.accounting.purchaseOrders.create({
-
client.accounting.purchaseOrders.retrieve(id, { ...params }) -> Merge.PurchaseOrder +
client.filestorage.folders.retrieve(id, { ...params }) -> Merge.Folder
@@ -31960,7 +37902,7 @@ await client.accounting.purchaseOrders.create({
-Returns a `PurchaseOrder` object with the given `id`. +Returns a `Folder` object with the given `id`.
@@ -31975,13 +37917,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 +37944,7 @@ await client.accounting.purchaseOrders.retrieve("id", {
-**request:** `Merge.accounting.PurchaseOrdersRetrieveRequest` +**request:** `Merge.filestorage.FoldersRetrieveRequest`
@@ -32014,7 +37952,7 @@ await client.accounting.purchaseOrders.retrieve("id", {
-**requestOptions:** `PurchaseOrdersClient.RequestOptions` +**requestOptions:** `FoldersClient.RequestOptions`
@@ -32026,7 +37964,7 @@ await client.accounting.purchaseOrders.retrieve("id", {
-
client.accounting.purchaseOrders.lineItemsRemoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.filestorage.folders.metaPostRetrieve() -> Merge.MetaResponse
@@ -32038,7 +37976,7 @@ await client.accounting.purchaseOrders.retrieve("id", {
-Returns a list of `RemoteFieldClass` objects. +Returns metadata for `FileStorageFolder` POSTs.
@@ -32053,15 +37991,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 +38007,7 @@ await client.accounting.purchaseOrders.lineItemsRemoteFieldClassesList({
-**request:** `Merge.accounting.PurchaseOrdersLineItemsRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `PurchaseOrdersClient.RequestOptions` +**requestOptions:** `FoldersClient.RequestOptions`
@@ -32097,7 +38019,8 @@ await client.accounting.purchaseOrders.lineItemsRemoteFieldClassesList({
-
client.accounting.purchaseOrders.metaPostRetrieve() -> Merge.MetaResponse +## Filestorage GenerateKey +
client.filestorage.generateKey.create({ ...params }) -> Merge.RemoteKey
@@ -32109,7 +38032,7 @@ await client.accounting.purchaseOrders.lineItemsRemoteFieldClassesList({
-Returns metadata for `PurchaseOrder` POSTs. +Create a remote key.
@@ -32124,7 +38047,9 @@ Returns metadata for `PurchaseOrder` POSTs.
```typescript -await client.accounting.purchaseOrders.metaPostRetrieve(); +await client.filestorage.generateKey.create({ + name: "Remote Deployment Key 1" +}); ```
@@ -32140,7 +38065,15 @@ await client.accounting.purchaseOrders.metaPostRetrieve();
-**requestOptions:** `PurchaseOrdersClient.RequestOptions` +**request:** `Merge.filestorage.GenerateRemoteKeyRequest` + +
+
+ +
+
+ +**requestOptions:** `GenerateKeyClient.RequestOptions`
@@ -32152,7 +38085,8 @@ await client.accounting.purchaseOrders.metaPostRetrieve();
-
client.accounting.purchaseOrders.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +## Filestorage Groups +
client.filestorage.groups.list({ ...params }) -> core.Page
@@ -32164,7 +38098,7 @@ await client.accounting.purchaseOrders.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Returns a list of `Group` objects.
@@ -32179,15 +38113,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 +38163,7 @@ await client.accounting.purchaseOrders.remoteFieldClassesList({
-**request:** `Merge.accounting.PurchaseOrdersRemoteFieldClassesListRequest` +**request:** `Merge.filestorage.GroupsListRequest`
@@ -32211,7 +38171,7 @@ await client.accounting.purchaseOrders.remoteFieldClassesList({
-**requestOptions:** `PurchaseOrdersClient.RequestOptions` +**requestOptions:** `GroupsClient.RequestOptions`
@@ -32223,8 +38183,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 +38195,7 @@ await client.accounting.purchaseOrders.remoteFieldClassesList({
-Exchange remote keys. +Returns a `Group` object with the given `id`.
@@ -32251,8 +38210,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 +38229,7 @@ await client.accounting.regenerateKey.create({
-**request:** `Merge.accounting.RemoteKeyForRegenerationRequest` +**id:** `string`
@@ -32277,7 +38237,15 @@ await client.accounting.regenerateKey.create({
-**requestOptions:** `RegenerateKeyClient.RequestOptions` +**request:** `Merge.filestorage.GroupsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `GroupsClient.RequestOptions`
@@ -32289,8 +38257,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 +38270,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 +38285,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 +38343,7 @@ await client.accounting.syncStatus.list({
-**request:** `Merge.accounting.SyncStatusListRequest` +**request:** `Merge.filestorage.IssuesListRequest`
@@ -32344,7 +38351,7 @@ await client.accounting.syncStatus.list({
-**requestOptions:** `SyncStatusClient.RequestOptions` +**requestOptions:** `IssuesClient.RequestOptions`
@@ -32356,8 +38363,7 @@ await client.accounting.syncStatus.list({
-## Accounting ForceResync -
client.accounting.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[] +
client.filestorage.issues.retrieve(id) -> Merge.Issue
@@ -32369,7 +38375,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 +38390,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 +38406,15 @@ await client.accounting.forceResync.syncStatusResyncCreate();
-**requestOptions:** `ForceResyncClient.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**requestOptions:** `IssuesClient.RequestOptions`
@@ -32412,8 +38426,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 +38439,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 +38454,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 +38475,7 @@ await client.accounting.taxRates.list({
-**request:** `Merge.accounting.TaxRatesListRequest` +**request:** `Merge.filestorage.EndUserDetailsRequest`
@@ -32478,7 +38483,7 @@ await client.accounting.taxRates.list({
-**requestOptions:** `TaxRatesClient.RequestOptions` +**requestOptions:** `LinkTokenClient.RequestOptions`
@@ -32490,7 +38495,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 +38508,7 @@ await client.accounting.taxRates.list({
-Returns a `TaxRate` object with the given `id`. +List linked accounts for your organization.
@@ -32517,11 +38523,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 +38579,7 @@ await client.accounting.taxRates.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.TaxRatesRetrieveRequest` +**request:** `Merge.filestorage.LinkedAccountsListRequest`
@@ -32553,7 +38587,7 @@ await client.accounting.taxRates.retrieve("id", {
-**requestOptions:** `TaxRatesClient.RequestOptions` +**requestOptions:** `LinkedAccountsClient.RequestOptions`
@@ -32565,8 +38599,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 +38612,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 +38627,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 +38646,7 @@ await client.accounting.trackingCategories.list({
-**request:** `Merge.accounting.TrackingCategoriesListRequest` +**request:** `Merge.DataPassthroughRequest`
@@ -32635,7 +38654,7 @@ await client.accounting.trackingCategories.list({
-**requestOptions:** `TrackingCategoriesClient.RequestOptions` +**requestOptions:** `PassthroughClient.RequestOptions`
@@ -32647,7 +38666,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 +38679,7 @@ await client.accounting.trackingCategories.list({
-Returns a `TrackingCategory` object with the given `id`. +Exchange remote keys.
@@ -32674,12 +38694,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 +38712,7 @@ await client.accounting.trackingCategories.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.TrackingCategoriesRetrieveRequest` +**request:** `Merge.filestorage.RemoteKeyForRegenerationRequest`
@@ -32712,7 +38720,7 @@ await client.accounting.trackingCategories.retrieve("id", {
-**requestOptions:** `TrackingCategoriesClient.RequestOptions` +**requestOptions:** `RegenerateKeyClient.RequestOptions`
@@ -32724,8 +38732,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 +38745,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 +38760,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 +38794,7 @@ await client.accounting.transactions.list({
-**request:** `Merge.accounting.TransactionsListRequest` +**request:** `Merge.filestorage.SyncStatusListRequest`
@@ -32791,7 +38802,7 @@ await client.accounting.transactions.list({
-**requestOptions:** `TransactionsClient.RequestOptions` +**requestOptions:** `SyncStatusClient.RequestOptions`
@@ -32803,7 +38814,8 @@ await client.accounting.transactions.list({
-
client.accounting.transactions.retrieve(id, { ...params }) -> Merge.Transaction +## Filestorage ForceResync +
client.filestorage.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[]
@@ -32815,7 +38827,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 +38842,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 +38858,7 @@ await client.accounting.transactions.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.TransactionsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `TransactionsClient.RequestOptions` +**requestOptions:** `ForceResyncClient.RequestOptions`
@@ -32878,8 +38870,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 +38883,7 @@ await client.accounting.transactions.retrieve("id", {
-Returns a list of `VendorCredit` objects. +Returns a list of `User` objects.
@@ -32906,89 +38898,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 +38952,7 @@ await client.accounting.vendorCredits.create({
-**request:** `Merge.accounting.VendorCreditEndpointRequest` +**request:** `Merge.filestorage.UsersListRequest`
@@ -33012,7 +38960,7 @@ await client.accounting.vendorCredits.create({
-**requestOptions:** `VendorCreditsClient.RequestOptions` +**requestOptions:** `UsersClient.RequestOptions`
@@ -33024,7 +38972,7 @@ await client.accounting.vendorCredits.create({
-
client.accounting.vendorCredits.retrieve(id, { ...params }) -> Merge.VendorCredit +
client.filestorage.users.retrieve(id, { ...params }) -> Merge.User
@@ -33036,7 +38984,7 @@ await client.accounting.vendorCredits.create({
-Returns a `VendorCredit` object with the given `id`. +Returns a `User` object with the given `id`.
@@ -33051,8 +38999,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 +39026,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 +39046,8 @@ await client.accounting.vendorCredits.metaPostRetrieve();
-## Accounting WebhookReceivers -
client.accounting.webhookReceivers.list() -> Merge.WebhookReceiver[] +## Filestorage WebhookReceivers +
client.filestorage.webhookReceivers.list() -> Merge.WebhookReceiver[]
@@ -33182,7 +39074,7 @@ Returns a list of `WebhookReceiver` objects.
```typescript -await client.accounting.webhookReceivers.list(); +await client.filestorage.webhookReceivers.list(); ```
@@ -33210,7 +39102,7 @@ await client.accounting.webhookReceivers.list();
-
client.accounting.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver +
client.filestorage.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver
@@ -33237,7 +39129,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 +39148,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..1e9135e2e 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..a01b01edc 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,122 +50,137 @@ 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)); - } - - private async __list( - request: Merge.accounting.AccountsListRequest = {}, - requestOptions?: AccountsClient.RequestOptions, - ): 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: 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, + ): 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 _response = await (this._options.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, + 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.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"); } /** @@ -257,7 +271,6 @@ export class AccountsClient { * * @example * await client.accounting.accounts.retrieve("id", { - * expand: "company", * includeRemoteData: true, * includeShellData: true, * remoteFields: "classification", @@ -279,7 +292,7 @@ export class AccountsClient { ): 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/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/attachments/client/Client.ts b/src/api/resources/accounting/resources/attachments/client/Client.ts index 7e527d8e8..a6915c2f1 100644 --- a/src/api/resources/accounting/resources/attachments/client/Client.ts +++ b/src/api/resources/accounting/resources/attachments/client/Client.ts @@ -44,88 +44,105 @@ 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)); - } - - private async __list( - request: Merge.accounting.AttachmentsListRequest = {}, - requestOptions?: AttachmentsClient.RequestOptions, - ): 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, + ): 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)); + }, + }, ); - const _response = await (this._options.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"); } /** 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/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/auditTrail/client/requests/AuditTrailListRequest.ts b/src/api/resources/accounting/resources/auditTrail/client/requests/AuditTrailListRequest.ts index 65216f96c..b188a570e 100644 --- a/src/api/resources/accounting/resources/auditTrail/client/requests/AuditTrailListRequest.ts +++ b/src/api/resources/accounting/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/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..8a483e798 100644 --- a/src/api/resources/accounting/resources/bankFeedAccounts/client/Client.ts +++ b/src/api/resources/accounting/resources/bankFeedAccounts/client/Client.ts @@ -38,75 +38,85 @@ 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)); - } - - private async __list( - request: Merge.accounting.BankFeedAccountsListRequest = {}, - requestOptions?: BankFeedAccountsClient.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.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 _response = await (this._options.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, + 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.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", - ); } /** diff --git a/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountsListRequest.ts b/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountsListRequest.ts index 115922f41..e666f4c9e 100644 --- a/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountsListRequest.ts +++ b/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountsListRequest.ts @@ -19,6 +19,6 @@ export interface BankFeedAccountsListRequest { 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/bankFeedTransactions/client/Client.ts b/src/api/resources/accounting/resources/bankFeedTransactions/client/Client.ts index 3ceb0de41..aeaac3bff 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,95 +44,105 @@ 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)); - } - - private async __list( - request: Merge.accounting.BankFeedTransactionsListRequest = {}, - requestOptions?: BankFeedTransactionsClient.RequestOptions, - ): 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: 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, + ): 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 _response = await (this._options.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, + 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.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", - ); } /** @@ -231,7 +240,6 @@ export class BankFeedTransactionsClient { * * @example * await client.accounting.bankFeedTransactions.retrieve("id", { - * expand: "bank_feed_account", * includeRemoteData: true, * includeShellData: true * }) @@ -251,7 +259,7 @@ export class BankFeedTransactionsClient { ): 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/bankFeedTransactions/client/requests/BankFeedTransactionsListRequest.ts b/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionsListRequest.ts index 707d1e2ef..dc0e3bb83 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. */ @@ -38,7 +37,7 @@ export interface BankFeedTransactionsListRequest { 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/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/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..55a663fc9 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. */ @@ -38,7 +37,7 @@ export interface CashFlowStatementsListRequest { 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/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..79ac1e728 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,116 +52,136 @@ 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"); } /** @@ -253,7 +272,6 @@ export class ContactsClient { * * @example * await client.accounting.contacts.retrieve("id", { - * expand: "addresses", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true, @@ -277,12 +295,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, @@ -583,84 +606,94 @@ export class ContactsClient { * pageSize: 1 * }) */ - public remoteFieldClassesList( + public async remoteFieldClassesList( request: Merge.accounting.ContactsRemoteFieldClassesListRequest = {}, requestOptions?: ContactsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); - } - - private async __remoteFieldClassesList( - request: Merge.accounting.ContactsRemoteFieldClassesListRequest = {}, - 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, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.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.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 _response = await (this._options.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, + 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.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", - ); } } 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/ContactsRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/contacts/client/requests/ContactsRemoteFieldClassesListRequest.ts index 75d7eb29a..6d1d2c907 100644 --- a/src/api/resources/accounting/resources/contacts/client/requests/ContactsRemoteFieldClassesListRequest.ts +++ b/src/api/resources/accounting/resources/contacts/client/requests/ContactsRemoteFieldClassesListRequest.ts @@ -25,6 +25,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/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/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..01ebd1a06 100644 --- a/src/api/resources/accounting/resources/contacts/types/index.ts +++ b/src/api/resources/accounting/resources/contacts/types/index.ts @@ -1,3 +1,3 @@ -export * from "./ContactsListRequestExpand"; +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..d79af67d6 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,67 +48,272 @@ export class CreditNotesClient { * transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") * }) */ - public list( + public async list( request: Merge.accounting.CreditNotesListRequest = {}, requestOptions?: CreditNotesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, 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)); + }, + }); } - private async __list( - request: Merge.accounting.CreditNotesListRequest = {}, + /** + * Creates a `CreditNote` object with the given values. + * + * @param {Merge.accounting.CreditNoteEndpointRequest} request + * @param {CreditNotesClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.creditNotes.create({ + * isDebugMode: true, + * runAsync: true, + * model: {} + * }) + */ + public create( + request: Merge.accounting.CreditNoteEndpointRequest, + requestOptions?: CreditNotesClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); + } + + private async __create( + request: Merge.accounting.CreditNoteEndpointRequest, requestOptions?: CreditNotesClient.RequestOptions, - ): Promise> { - const { - companyId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteFields, - remoteId, - showEnumOrigins, - transactionDateAfter, - transactionDateBefore, - } = request; + ): Promise> { + const { isDebugMode, runAsync, ..._body } = request; const _queryParams: Record = { - company_id: companyId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: - expand != null - ? serializers.accounting.CreditNotesListRequestExpand.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/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", - }) - : undefined, - include_deleted_data: includeDeletedData, + }), + ) + : expand != null + ? serializers.accounting.CreditNotesRetrieveRequestExpandItem.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 - ? serializers.accounting.CreditNotesListRequestRemoteFields.jsonOrThrow(remoteFields, { + ? serializers.accounting.CreditNotesRetrieveRequestRemoteFields.jsonOrThrow(remoteFields, { unrecognizedObjectKeys: "strip", }) : undefined, - remote_id: remoteId, show_enum_origins: showEnumOrigins != null - ? serializers.accounting.CreditNotesListRequestShowEnumOrigins.jsonOrThrow(showEnumOrigins, { + ? serializers.accounting.CreditNotesRetrieveRequestShowEnumOrigins.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( @@ -123,7 +327,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/${core.url.encodePathParam(id)}`, ), method: "GET", headers: _headers, @@ -136,7 +340,7 @@ export class CreditNotesClient { }); if (_response.ok) { return { - data: serializers.accounting.PaginatedCreditNoteList.parseOrThrow(_response.body, { + data: serializers.accounting.CreditNote.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -155,31 +359,39 @@ 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/{id}", + ); } /** - * Creates a `CreditNote` object with the given values. + * Updates a `CreditNote` object with the given `id`. * - * @param {Merge.accounting.CreditNoteEndpointRequest} request + * @param {string} id + * @param {Merge.accounting.PatchedCreditNoteEndpointRequest} request * @param {CreditNotesClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.creditNotes.create({ + * await client.accounting.creditNotes.partialUpdate("id", { * isDebugMode: true, * runAsync: true, * model: {} * }) */ - public create( - request: Merge.accounting.CreditNoteEndpointRequest, + public partialUpdate( + id: string, + request: Merge.accounting.PatchedCreditNoteEndpointRequest, requestOptions?: CreditNotesClient.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.CreditNoteEndpointRequest, + private async __partialUpdate( + id: string, + request: Merge.accounting.PatchedCreditNoteEndpointRequest, requestOptions?: CreditNotesClient.RequestOptions, ): Promise> { const { isDebugMode, runAsync, ..._body } = request; @@ -199,14 +411,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/${core.url.encodePathParam(id)}`, ), - method: "POST", + method: "PATCH", headers: _headers, contentType: "application/json", queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, requestType: "json", - body: serializers.accounting.CreditNoteEndpointRequest.jsonOrThrow(_body, { + body: serializers.accounting.PatchedCreditNoteEndpointRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip", }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -236,60 +448,46 @@ export class CreditNotesClient { }); } - return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/accounting/v1/credit-notes"); + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "PATCH", + "/accounting/v1/credit-notes/{id}", + ); } /** - * 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 +501,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 +517,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 +612,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/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..b6c5cd744 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,5 @@ +export type { ApplyCreditNoteRequest } from "./ApplyCreditNoteRequest"; export type { CreditNoteEndpointRequest } from "./CreditNoteEndpointRequest"; 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/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..a826d7419 100644 --- a/src/api/resources/accounting/resources/creditNotes/types/index.ts +++ b/src/api/resources/accounting/resources/creditNotes/types/index.ts @@ -1,6 +1,6 @@ -export * from "./CreditNotesListRequestExpand"; +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..beec8752f 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,102 +45,117 @@ 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", - ); } /** @@ -242,7 +256,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 +263,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 +374,6 @@ export class ExpenseReportsClient { * * @example * await client.accounting.expenseReports.retrieve("id", { - * expand: "accounting_period", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true @@ -368,12 +394,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, @@ -447,85 +478,95 @@ export class ExpenseReportsClient { * pageSize: 1 * }) */ - public linesRemoteFieldClassesList( - request: Merge.accounting.ExpenseReportsLinesRemoteFieldClassesListRequest = {}, - requestOptions?: ExpenseReportsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__linesRemoteFieldClassesList(request, requestOptions)); - } - - private async __linesRemoteFieldClassesList( + public async linesRemoteFieldClassesList( request: Merge.accounting.ExpenseReportsLinesRemoteFieldClassesListRequest = {}, 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, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.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.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 _response = await (this._options.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, + 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.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", - ); } /** @@ -614,84 +655,94 @@ export class ExpenseReportsClient { * pageSize: 1 * }) */ - public remoteFieldClassesList( + public async remoteFieldClassesList( request: Merge.accounting.ExpenseReportsRemoteFieldClassesListRequest = {}, requestOptions?: ExpenseReportsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); - } - - private async __remoteFieldClassesList( - request: Merge.accounting.ExpenseReportsRemoteFieldClassesListRequest = {}, - 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, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.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.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 _response = await (this._options.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, + 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.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", - ); } } 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/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..afe0fd558 100644 --- a/src/api/resources/accounting/resources/expenseReports/types/index.ts +++ b/src/api/resources/accounting/resources/expenseReports/types/index.ts @@ -1,3 +1,3 @@ -export * from "./ExpenseReportsLinesListRequestExpand"; -export * from "./ExpenseReportsListRequestExpand"; -export * from "./ExpenseReportsRetrieveRequestExpand"; +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..2b882f2ab 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,101 +47,121 @@ 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"); } /** @@ -233,7 +252,6 @@ export class ExpensesClient { * * @example * await client.accounting.expenses.retrieve("id", { - * expand: "account", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true @@ -254,12 +272,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 +335,36 @@ export class ExpensesClient { } /** - * Returns a list of `RemoteFieldClass` objects. + * Creates an `Expense` object with the given values. * - * @param {Merge.accounting.ExpensesLinesRemoteFieldClassesListRequest} request + * @param {Merge.accounting.ExpenseBulkRequest} request * @param {ExpensesClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.expenses.linesRemoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 + * await client.accounting.expenses.asyncBulkCreate({ + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: {} + * }] * }) */ - public linesRemoteFieldClassesList( - request: Merge.accounting.ExpensesLinesRemoteFieldClassesListRequest = {}, + public asyncBulkCreate( + request: Merge.accounting.ExpenseBulkRequest, requestOptions?: ExpensesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__linesRemoteFieldClassesList(request, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__asyncBulkCreate(request, requestOptions)); } - private async __linesRemoteFieldClassesList( - request: Merge.accounting.ExpensesLinesRemoteFieldClassesListRequest = {}, + private async __asyncBulkCreate( + request: Merge.accounting.ExpenseBulkRequest, requestOptions?: ExpensesClient.RequestOptions, - ): Promise> { - const { - cursor, - includeDeletedData, - includeRemoteData, - includeShellData, - isCommonModelField, - isCustom, - pageSize, - } = request; + ): Promise> { + const { isDebugMode, runAsync, ..._body } = 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, + is_debug_mode: isDebugMode, + run_async: runAsync, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -369,11 +378,14 @@ 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/async/bulk", ), - method: "GET", + method: "POST", headers: _headers, + 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, @@ -382,7 +394,7 @@ export class ExpensesClient { }); if (_response.ok) { return { - data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + data: serializers.accounting.ExpenseResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -404,9 +416,260 @@ export class ExpensesClient { return handleNonStatusCodeError( _response.error, _response.rawResponse, - "GET", - "/accounting/v1/expenses/lines/remote-field-classes", + "POST", + "/accounting/v1/expenses/async/bulk", + ); + } + + /** + * Returns a list of `Expense` objects. + * + * @param {string} batch_id + * @param {Merge.accounting.ExpensesBatchObjectsListRequest} request + * @param {ExpensesClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * 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") + * }) + */ + public async batchObjectsList( + batch_id: string, + request: Merge.accounting.ExpensesBatchObjectsListRequest = {}, + requestOptions?: ExpensesClient.RequestOptions, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.ExpensesBatchObjectsListRequest, + ): 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.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, + 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/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.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/batch/{batch_id}/objects", + ); + }, + ); + 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 a list of `RemoteFieldClass` objects. + * + * @param {Merge.accounting.ExpensesLinesRemoteFieldClassesListRequest} request + * @param {ExpensesClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.expenses.linesRemoteFieldClassesList({ + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * isCommonModelField: true, + * isCustom: true, + * pageSize: 1 + * }) + */ + public async linesRemoteFieldClassesList( + request: Merge.accounting.ExpensesLinesRemoteFieldClassesListRequest = {}, + requestOptions?: ExpensesClient.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)); + }, + }); } /** @@ -495,84 +758,94 @@ export class ExpensesClient { * pageSize: 1 * }) */ - public remoteFieldClassesList( + public async remoteFieldClassesList( request: Merge.accounting.ExpensesRemoteFieldClassesListRequest = {}, requestOptions?: ExpensesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); - } - - private async __remoteFieldClassesList( - request: Merge.accounting.ExpensesRemoteFieldClassesListRequest = {}, - 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, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.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.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 _response = await (this._options.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, + 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.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", - ); } } 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..8a66d212c --- /dev/null +++ b/src/api/resources/accounting/resources/expenses/client/requests/ExpenseBulkRequest.ts @@ -0,0 +1,22 @@ +// 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: {} + * }] + * } + */ +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/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/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..e2e3b87fa 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 { ExpenseBulkRequest } from "./ExpenseBulkRequest"; export type { ExpenseEndpointRequest } from "./ExpenseEndpointRequest"; +export type { ExpensesBatchObjectsListRequest } from "./ExpensesBatchObjectsListRequest"; 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..e06911676 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,8 @@ export interface CreateFieldMappingRequest { remoteUrlPath: string; /** The name of the Common Model that the remote field corresponds to in a given category. */ commonModelName: string; + /** DEPRECATED: Use 'advanced_mapping_expression' instead. */ + jmesPath?: string; + /** A JSONata expression used to transform the remote field data. */ + advancedMappingExpression?: 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..858cc891d 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,21 @@ /** * @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; + /** DEPRECATED: Use 'advanced_mapping_expression' instead. */ + jmesPath?: string; + /** A JSONata expression used to transform the remote field data. */ + advancedMappingExpression?: 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..92946810c 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"); } /** @@ -263,7 +282,6 @@ export class InvoicesClient { * * @example * await client.accounting.invoices.retrieve("id", { - * expand: "accounting_period", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true, @@ -287,12 +305,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 +459,38 @@ export class InvoicesClient { } /** - * Returns a list of `RemoteFieldClass` objects. + * 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 {Merge.accounting.InvoicesLineItemsRemoteFieldClassesListRequest} request + * + * @param {Merge.accounting.InvoiceBulkRequest} request * @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.invoices.lineItemsRemoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 + * await client.accounting.invoices.asyncBulkCreate({ + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: {} + * }] * }) */ - public lineItemsRemoteFieldClassesList( - request: Merge.accounting.InvoicesLineItemsRemoteFieldClassesListRequest = {}, + public asyncBulkCreate( + request: Merge.accounting.InvoiceBulkRequest, requestOptions?: InvoicesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__lineItemsRemoteFieldClassesList(request, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__asyncBulkCreate(request, requestOptions)); } - private async __lineItemsRemoteFieldClassesList( - request: Merge.accounting.InvoicesLineItemsRemoteFieldClassesListRequest = {}, + private async __asyncBulkCreate( + request: Merge.accounting.InvoiceBulkRequest, requestOptions?: InvoicesClient.RequestOptions, - ): Promise> { - const { - cursor, - includeDeletedData, - includeRemoteData, - includeShellData, - isCommonModelField, - isCustom, - pageSize, - } = request; + ): Promise> { + const { isDebugMode, runAsync, ..._body } = 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, + is_debug_mode: isDebugMode, + run_async: runAsync, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -493,11 +504,14 @@ 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/async/bulk", ), - method: "GET", + method: "POST", headers: _headers, + 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, @@ -506,7 +520,7 @@ export class InvoicesClient { }); if (_response.ok) { return { - data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + data: serializers.accounting.InvoiceResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -528,9 +542,288 @@ export class InvoicesClient { return handleNonStatusCodeError( _response.error, _response.rawResponse, - "GET", - "/accounting/v1/invoices/line-items/remote-field-classes", + "POST", + "/accounting/v1/invoices/async/bulk", + ); + } + + /** + * Returns a list of `Invoice` objects. + * + * @param {string} batch_id + * @param {Merge.accounting.InvoicesBatchObjectsListRequest} request + * @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * 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" + * }) + */ + public async batchObjectsList( + batch_id: string, + request: Merge.accounting.InvoicesBatchObjectsListRequest = {}, + requestOptions?: InvoicesClient.RequestOptions, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.InvoicesBatchObjectsListRequest, + ): 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.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, + 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( + _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/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.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/batch/{batch_id}/objects", + ); + }, ); + 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 a list of `RemoteFieldClass` objects. + * + * @param {Merge.accounting.InvoicesLineItemsRemoteFieldClassesListRequest} request + * @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.invoices.lineItemsRemoteFieldClassesList({ + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * isCommonModelField: true, + * isCustom: true, + * pageSize: 1 + * }) + */ + 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)); + }, + }); } /** @@ -691,84 +984,94 @@ export class InvoicesClient { * pageSize: 1 * }) */ - public remoteFieldClassesList( - request: Merge.accounting.InvoicesRemoteFieldClassesListRequest = {}, - requestOptions?: InvoicesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); - } - - private async __remoteFieldClassesList( + public async remoteFieldClassesList( request: Merge.accounting.InvoicesRemoteFieldClassesListRequest = {}, 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, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.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.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 _response = await (this._options.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, + 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.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", - ); } } 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..02f3c8cd3 --- /dev/null +++ b/src/api/resources/accounting/resources/invoices/client/requests/InvoiceBulkRequest.ts @@ -0,0 +1,22 @@ +// 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: {} + * }] + * } + */ +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/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/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..53b2ae418 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 { InvoiceBulkRequest } from "./InvoiceBulkRequest"; export type { InvoiceEndpointRequest } from "./InvoiceEndpointRequest"; +export type { InvoicesBatchObjectsListRequest } from "./InvoicesBatchObjectsListRequest"; 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..0a9cfd5cb --- /dev/null +++ b/src/api/resources/accounting/resources/itemFulfillments/client/Client.ts @@ -0,0 +1,836 @@ +// 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.ItemFulfillmentEndpointRequest} request + * @param {ItemFulfillmentsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.itemFulfillments.create({ + * isDebugMode: true, + * runAsync: true, + * model: {} + * }) + */ + public create( + request: Merge.accounting.ItemFulfillmentEndpointRequest, + requestOptions?: ItemFulfillmentsClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); + } + + private async __create( + request: Merge.accounting.ItemFulfillmentEndpointRequest, + 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", + ), + 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}", + ); + } + + /** + * 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: {} + * }] + * }) + */ + 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 `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 async batchObjectsList( + batch_id: string, + request: Merge.accounting.ItemFulfillmentsBatchObjectsListRequest = {}, + requestOptions?: ItemFulfillmentsClient.RequestOptions, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.ItemFulfillmentsBatchObjectsListRequest, + ): 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", + ); + }, + ); + 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 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..bd7c14a0a --- /dev/null +++ b/src/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentBulkRequest.ts @@ -0,0 +1,22 @@ +// 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: {} + * }] + * } + */ +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/ItemFulfillmentEndpointRequest.ts b/src/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentEndpointRequest.ts new file mode 100644 index 000000000..1619f545e --- /dev/null +++ b/src/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentEndpointRequest.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 ItemFulfillmentEndpointRequest { + /** 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.ItemFulfillmentRequestRequest; +} 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/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..846f819b3 --- /dev/null +++ b/src/api/resources/accounting/resources/itemFulfillments/client/requests/index.ts @@ -0,0 +1,7 @@ +export type { ItemFulfillmentBulkRequest } from "./ItemFulfillmentBulkRequest"; +export type { ItemFulfillmentEndpointRequest } from "./ItemFulfillmentEndpointRequest"; +export type { ItemFulfillmentsBatchObjectsListRequest } from "./ItemFulfillmentsBatchObjectsListRequest"; +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..c96f45366 100644 --- a/src/api/resources/accounting/resources/items/client/Client.ts +++ b/src/api/resources/accounting/resources/items/client/Client.ts @@ -35,111 +35,128 @@ 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)); - } - - private async __list( - request: Merge.accounting.ItemsListRequest = {}, - requestOptions?: ItemsClient.RequestOptions, - ): Promise> { - const { - companyId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - 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.ItemsListRequestExpand.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.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 _response = await (this._options.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, + 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.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"); } /** @@ -230,7 +247,6 @@ export class ItemsClient { * * @example * await client.accounting.items.retrieve("id", { - * expand: "company", * includeRemoteData: true, * includeShellData: true, * remoteFields: "status", @@ -252,12 +268,17 @@ export class ItemsClient { ): Promise> { const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.ItemsRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.ItemsRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.accounting.ItemsRetrieveRequestExpandItem.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/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/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..0abd34ea4 100644 --- a/src/api/resources/accounting/resources/items/types/index.ts +++ b/src/api/resources/accounting/resources/items/types/index.ts @@ -1,2 +1,2 @@ -export * from "./ItemsListRequestExpand"; -export * from "./ItemsRetrieveRequestExpand"; +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..45d114bfb 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,106 +47,121 @@ 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", - ); } /** @@ -245,7 +259,6 @@ export class JournalEntriesClient { * * @example * await client.accounting.journalEntries.retrieve("id", { - * expand: "accounting_period", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true @@ -266,12 +279,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, @@ -345,85 +363,95 @@ export class JournalEntriesClient { * pageSize: 1 * }) */ - public linesRemoteFieldClassesList( + public async linesRemoteFieldClassesList( request: Merge.accounting.JournalEntriesLinesRemoteFieldClassesListRequest = {}, requestOptions?: JournalEntriesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__linesRemoteFieldClassesList(request, requestOptions)); - } - - private async __linesRemoteFieldClassesList( - request: Merge.accounting.JournalEntriesLinesRemoteFieldClassesListRequest = {}, - 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, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.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.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 _response = await (this._options.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, + 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.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", - ); } /** @@ -512,84 +540,94 @@ export class JournalEntriesClient { * pageSize: 1 * }) */ - public remoteFieldClassesList( - request: Merge.accounting.JournalEntriesRemoteFieldClassesListRequest = {}, - requestOptions?: JournalEntriesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); - } - - private async __remoteFieldClassesList( + public async remoteFieldClassesList( request: Merge.accounting.JournalEntriesRemoteFieldClassesListRequest = {}, 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, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.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.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 _response = await (this._options.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, + 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.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", - ); } } 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/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..e01457a2a 100644 --- a/src/api/resources/accounting/resources/journalEntries/types/index.ts +++ b/src/api/resources/accounting/resources/journalEntries/types/index.ts @@ -1,2 +1,2 @@ -export * from "./JournalEntriesListRequestExpand"; -export * from "./JournalEntriesRetrieveRequestExpand"; +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/linkToken/client/requests/EndUserDetailsRequest.ts b/src/api/resources/accounting/resources/linkToken/client/requests/EndUserDetailsRequest.ts index 821552e52..851a54a39 100644 --- a/src/api/resources/accounting/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/api/resources/accounting/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -46,4 +46,14 @@ 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.accounting.EndUserDetailsRequestCompletedAccountInitialScreen; + /** The UUID of the linked destination that you want this Linked Account to be tied to. */ + linkedDestinationId?: string; + /** The id of the credential that you want this Linked Account to be tied to. */ + credentialId?: string; } diff --git a/src/api/resources/ticketing/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts b/src/api/resources/accounting/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts similarity index 86% rename from src/api/resources/ticketing/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts rename to src/api/resources/accounting/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts index e2f489eac..80c8d4b85 100644 --- a/src/api/resources/ticketing/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts +++ b/src/api/resources/accounting/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts @@ -8,5 +8,5 @@ import type * as Merge from "../../../../../index"; * * `SELECTIVE_SYNC` - SELECTIVE_SYNC */ export type EndUserDetailsRequestCompletedAccountInitialScreen = - | Merge.ticketing.CompletedAccountInitialScreenEnum + | Merge.accounting.CompletedAccountInitialScreenEnum | string; diff --git a/src/api/resources/accounting/resources/linkToken/types/index.ts b/src/api/resources/accounting/resources/linkToken/types/index.ts index c90e13c37..7aed25cb1 100644 --- a/src/api/resources/accounting/resources/linkToken/types/index.ts +++ b/src/api/resources/accounting/resources/linkToken/types/index.ts @@ -1 +1,2 @@ +export * from "./EndUserDetailsRequestCompletedAccountInitialScreen"; export * from "./EndUserDetailsRequestLanguage"; 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..fa6a93626 100644 --- a/src/api/resources/accounting/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts +++ b/src/api/resources/accounting/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts @@ -22,7 +22,7 @@ import type * as Merge from "../../../../../../index"; */ export interface LinkedAccountsListRequest { /** - * Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` + * Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `knowledgebase`, `mktg`, `ticketing` * * * `hris` - hris * * `ats` - ats @@ -31,6 +31,10 @@ export interface LinkedAccountsListRequest { * * `crm` - crm * * `mktg` - mktg * * `filestorage` - filestorage + * * `datawarehouse` - datawarehouse + * * `knowledgebase` - knowledgebase + * * `communication` - communication + * * `chat` - chat */ category?: Merge.accounting.LinkedAccountsListRequestCategory; /** The pagination cursor value. */ @@ -52,7 +56,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/linkedAccounts/types/LinkedAccountsListRequestCategory.ts b/src/api/resources/accounting/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts index 61bd028eb..cf88435b6 100644 --- a/src/api/resources/accounting/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts +++ b/src/api/resources/accounting/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts @@ -3,9 +3,13 @@ export const LinkedAccountsListRequestCategory = { Accounting: "accounting", Ats: "ats", + Chat: "chat", + Communication: "communication", Crm: "crm", + Datawarehouse: "datawarehouse", Filestorage: "filestorage", Hris: "hris", + Knowledgebase: "knowledgebase", Mktg: "mktg", Ticketing: "ticketing", } as const; 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/paymentMethods/client/requests/PaymentMethodsListRequest.ts b/src/api/resources/accounting/resources/paymentMethods/client/requests/PaymentMethodsListRequest.ts index 47b9dc777..bdbb400df 100644 --- a/src/api/resources/accounting/resources/paymentMethods/client/requests/PaymentMethodsListRequest.ts +++ b/src/api/resources/accounting/resources/paymentMethods/client/requests/PaymentMethodsListRequest.ts @@ -19,6 +19,6 @@ export interface PaymentMethodsListRequest { 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/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..9ac011aab 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,105 +49,125 @@ 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"); } /** @@ -239,7 +258,6 @@ export class PaymentsClient { * * @example * await client.accounting.payments.retrieve("id", { - * expand: "account", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true @@ -260,12 +278,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, @@ -423,85 +446,95 @@ export class PaymentsClient { * pageSize: 1 * }) */ - public lineItemsRemoteFieldClassesList( - request: Merge.accounting.PaymentsLineItemsRemoteFieldClassesListRequest = {}, - requestOptions?: PaymentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__lineItemsRemoteFieldClassesList(request, requestOptions)); - } - - private async __lineItemsRemoteFieldClassesList( + public async lineItemsRemoteFieldClassesList( request: Merge.accounting.PaymentsLineItemsRemoteFieldClassesListRequest = {}, 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, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.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.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 _response = await (this._options.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, + 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.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", - ); } /** @@ -662,84 +695,94 @@ export class PaymentsClient { * pageSize: 1 * }) */ - public remoteFieldClassesList( + public async remoteFieldClassesList( request: Merge.accounting.PaymentsRemoteFieldClassesListRequest = {}, requestOptions?: PaymentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); - } - - private async __remoteFieldClassesList( - request: Merge.accounting.PaymentsRemoteFieldClassesListRequest = {}, - 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, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.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.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 _response = await (this._options.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, + 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.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", - ); } } 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/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..3db8a923d 100644 --- a/src/api/resources/accounting/resources/payments/types/index.ts +++ b/src/api/resources/accounting/resources/payments/types/index.ts @@ -1,2 +1,2 @@ -export * from "./PaymentsListRequestExpand"; -export * from "./PaymentsRetrieveRequestExpand"; +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..72ebd3000 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,110 +49,125 @@ 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", - ); } /** @@ -251,7 +265,6 @@ export class PurchaseOrdersClient { * * @example * await client.accounting.purchaseOrders.retrieve("id", { - * expand: "accounting_period", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true, @@ -275,12 +288,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, @@ -356,85 +374,95 @@ export class PurchaseOrdersClient { * pageSize: 1 * }) */ - public lineItemsRemoteFieldClassesList( - request: Merge.accounting.PurchaseOrdersLineItemsRemoteFieldClassesListRequest = {}, - requestOptions?: PurchaseOrdersClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__lineItemsRemoteFieldClassesList(request, requestOptions)); - } - - private async __lineItemsRemoteFieldClassesList( + public async lineItemsRemoteFieldClassesList( request: Merge.accounting.PurchaseOrdersLineItemsRemoteFieldClassesListRequest = {}, 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, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.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.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 _response = await (this._options.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, + 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.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", - ); } /** @@ -523,84 +551,94 @@ export class PurchaseOrdersClient { * pageSize: 1 * }) */ - public remoteFieldClassesList( - request: Merge.accounting.PurchaseOrdersRemoteFieldClassesListRequest = {}, - requestOptions?: PurchaseOrdersClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); - } - - private async __remoteFieldClassesList( + public async remoteFieldClassesList( request: Merge.accounting.PurchaseOrdersRemoteFieldClassesListRequest = {}, 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, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.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.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 _response = await (this._options.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, + 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.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", - ); } } 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/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..75264d2f3 100644 --- a/src/api/resources/accounting/resources/purchaseOrders/types/index.ts +++ b/src/api/resources/accounting/resources/purchaseOrders/types/index.ts @@ -1,2 +1,2 @@ -export * from "./PurchaseOrdersListRequestExpand"; -export * from "./PurchaseOrdersRetrieveRequestExpand"; +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..031435e93 --- /dev/null +++ b/src/api/resources/accounting/resources/salesOrders/client/Client.ts @@ -0,0 +1,875 @@ +// 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.SalesOrderEndpointRequest} request + * @param {SalesOrdersClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.salesOrders.create({ + * isDebugMode: true, + * runAsync: true, + * model: {} + * }) + */ + public create( + request: Merge.accounting.SalesOrderEndpointRequest, + requestOptions?: SalesOrdersClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); + } + + private async __create( + request: Merge.accounting.SalesOrderEndpointRequest, + 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", + ), + 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}", + ); + } + + /** + * 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: {} + * }] + * }) + */ + 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 `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 async batchObjectsList( + batch_id: string, + request: Merge.accounting.SalesOrdersBatchObjectsListRequest = {}, + requestOptions?: SalesOrdersClient.RequestOptions, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.SalesOrdersBatchObjectsListRequest, + ): 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", + ); + }, + ); + 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 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..38fedaa95 --- /dev/null +++ b/src/api/resources/accounting/resources/salesOrders/client/requests/SalesOrderBulkRequest.ts @@ -0,0 +1,22 @@ +// 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: {} + * }] + * } + */ +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/SalesOrderEndpointRequest.ts b/src/api/resources/accounting/resources/salesOrders/client/requests/SalesOrderEndpointRequest.ts new file mode 100644 index 000000000..85d55e538 --- /dev/null +++ b/src/api/resources/accounting/resources/salesOrders/client/requests/SalesOrderEndpointRequest.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 SalesOrderEndpointRequest { + /** 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.SalesOrderRequestRequest; +} 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/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..8335fc70b --- /dev/null +++ b/src/api/resources/accounting/resources/salesOrders/client/requests/index.ts @@ -0,0 +1,7 @@ +export type { SalesOrderBulkRequest } from "./SalesOrderBulkRequest"; +export type { SalesOrderEndpointRequest } from "./SalesOrderEndpointRequest"; +export type { SalesOrdersBatchObjectsListRequest } from "./SalesOrdersBatchObjectsListRequest"; +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..895ece4d8 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,53 +46,248 @@ export class VendorCreditsClient { * transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") * }) */ - public list( + public async list( request: Merge.accounting.VendorCreditsListRequest = {}, requestOptions?: VendorCreditsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, 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)); + }, + }); } - private async __list( - request: Merge.accounting.VendorCreditsListRequest = {}, + /** + * Creates a `VendorCredit` object with the given values. + * + * @param {Merge.accounting.VendorCreditEndpointRequest} request + * @param {VendorCreditsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.vendorCredits.create({ + * isDebugMode: true, + * runAsync: true, + * model: {} + * }) + */ + public create( + request: Merge.accounting.VendorCreditEndpointRequest, + requestOptions?: VendorCreditsClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); + } + + private async __create( + request: Merge.accounting.VendorCreditEndpointRequest, + 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", + ), + 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, - ): Promise> { - const { - companyId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - transactionDateAfter, - transactionDateBefore, - } = request; + ): 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 = { - company_id: companyId, - 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.VendorCreditsRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, + }), + ) + : expand != null + ? serializers.accounting.VendorCreditsRetrieveRequestExpandItem.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_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( @@ -107,7 +301,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/${core.url.encodePathParam(id)}`, ), method: "GET", headers: _headers, @@ -120,7 +314,7 @@ export class VendorCreditsClient { }); if (_response.ok) { return { - data: serializers.accounting.PaginatedVendorCreditList.parseOrThrow(_response.body, { + data: serializers.accounting.VendorCredit.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -139,31 +333,39 @@ 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/{id}", + ); } /** - * Creates a `VendorCredit` object with the given values. + * Updates a `VendorCredit` object with the given `id`. * - * @param {Merge.accounting.VendorCreditEndpointRequest} request + * @param {string} id + * @param {Merge.accounting.PatchedVendorCreditEndpointRequest} request * @param {VendorCreditsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.vendorCredits.create({ + * await client.accounting.vendorCredits.partialUpdate("id", { * isDebugMode: true, * runAsync: true, * model: {} * }) */ - public create( - request: Merge.accounting.VendorCreditEndpointRequest, + public partialUpdate( + id: string, + request: Merge.accounting.PatchedVendorCreditEndpointRequest, requestOptions?: VendorCreditsClient.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.VendorCreditEndpointRequest, + private async __partialUpdate( + id: string, + request: Merge.accounting.PatchedVendorCreditEndpointRequest, requestOptions?: VendorCreditsClient.RequestOptions, ): Promise> { const { isDebugMode, runAsync, ..._body } = request; @@ -183,14 +385,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/${core.url.encodePathParam(id)}`, ), - method: "POST", + method: "PATCH", headers: _headers, contentType: "application/json", queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, requestType: "json", - body: serializers.accounting.VendorCreditEndpointRequest.jsonOrThrow(_body, { + body: serializers.accounting.PatchedVendorCreditEndpointRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip", }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -223,48 +425,43 @@ export class VendorCreditsClient { return handleNonStatusCodeError( _response.error, _response.rawResponse, - "POST", - "/accounting/v1/vendor-credits", + "PATCH", + "/accounting/v1/vendor-credits/{id}", ); } /** - * 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 +475,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 +493,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 +588,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/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..703fc6933 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,5 @@ +export type { ApplyVendorCreditRequest } from "./ApplyVendorCreditRequest"; +export type { PatchedVendorCreditEndpointRequest } from "./PatchedVendorCreditEndpointRequest"; export type { VendorCreditEndpointRequest } from "./VendorCreditEndpointRequest"; export type { VendorCreditsListRequest } from "./VendorCreditsListRequest"; export type { VendorCreditsRetrieveRequest } from "./VendorCreditsRetrieveRequest"; 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..3ac6b265f 100644 --- a/src/api/resources/accounting/resources/vendorCredits/types/index.ts +++ b/src/api/resources/accounting/resources/vendorCredits/types/index.ts @@ -1,2 +1,2 @@ -export * from "./VendorCreditsListRequestExpand"; -export * from "./VendorCreditsRetrieveRequestExpand"; +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/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/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/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/BankFeedAccount.ts b/src/api/resources/accounting/types/BankFeedAccount.ts index 108e94a09..794013f22 100644 --- a/src/api/resources/accounting/types/BankFeedAccount.ts +++ b/src/api/resources/accounting/types/BankFeedAccount.ts @@ -360,5 +360,5 @@ export interface BankFeedAccount { /** 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?: (Record | undefined)[]; + remoteData?: Merge.accounting.RemoteData[]; } diff --git a/src/api/resources/accounting/types/CategoriesEnum.ts b/src/api/resources/accounting/types/CategoriesEnum.ts index fadfd2764..f442eef79 100644 --- a/src/api/resources/accounting/types/CategoriesEnum.ts +++ b/src/api/resources/accounting/types/CategoriesEnum.ts @@ -8,6 +8,7 @@ * * `crm` - crm * * `mktg` - mktg * * `filestorage` - filestorage + * * `knowledgebase` - knowledgebase */ export const CategoriesEnum = { Hris: "hris", @@ -17,5 +18,6 @@ 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/accounting/types/CategoryEnum.ts b/src/api/resources/accounting/types/CategoryEnum.ts index f2cd1da08..02badbab2 100644 --- a/src/api/resources/accounting/types/CategoryEnum.ts +++ b/src/api/resources/accounting/types/CategoryEnum.ts @@ -8,6 +8,7 @@ * * `crm` - crm * * `mktg` - mktg * * `filestorage` - filestorage + * * `knowledgebase` - knowledgebase */ export const CategoryEnum = { Hris: "hris", @@ -17,5 +18,6 @@ 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/accounting/types/CompanyInfo.ts b/src/api/resources/accounting/types/CompanyInfo.ts index cfd881763..3fab4c33a 100644 --- a/src/api/resources/accounting/types/CompanyInfo.ts +++ b/src/api/resources/accounting/types/CompanyInfo.ts @@ -343,8 +343,8 @@ export interface CompanyInfo { remoteCreatedAt?: Date; /** The company's urls. */ urls?: (string | undefined)[]; - addresses?: Merge.accounting.Address[]; - phoneNumbers?: Merge.accounting.AccountingPhoneNumber[]; + addresses?: Merge.accounting.CompanyInfoAddressesItem[]; + phoneNumbers?: Merge.accounting.CompanyInfoPhoneNumbersItem[]; /** 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/RemoteFieldClassFieldType.ts b/src/api/resources/accounting/types/CompanyInfoAddressesItem.ts similarity index 60% rename from src/api/resources/crm/types/RemoteFieldClassFieldType.ts rename to src/api/resources/accounting/types/CompanyInfoAddressesItem.ts index 6e400d96c..da2198a25 100644 --- a/src/api/resources/crm/types/RemoteFieldClassFieldType.ts +++ b/src/api/resources/accounting/types/CompanyInfoAddressesItem.ts @@ -2,4 +2,4 @@ import type * as Merge from "../../../index"; -export type RemoteFieldClassFieldType = Merge.crm.FieldTypeEnum | string; +export type CompanyInfoAddressesItem = string | Merge.accounting.Address; diff --git a/src/api/resources/accounting/types/CompanyInfoPhoneNumbersItem.ts b/src/api/resources/accounting/types/CompanyInfoPhoneNumbersItem.ts new file mode 100644 index 000000000..60804bc2b --- /dev/null +++ b/src/api/resources/accounting/types/CompanyInfoPhoneNumbersItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type CompanyInfoPhoneNumbersItem = string | Merge.accounting.AccountingPhoneNumber; diff --git a/src/api/resources/hris/types/CompletedAccountInitialScreenEnum.ts b/src/api/resources/accounting/types/CompletedAccountInitialScreenEnum.ts similarity index 100% rename from src/api/resources/hris/types/CompletedAccountInitialScreenEnum.ts rename to src/api/resources/accounting/types/CompletedAccountInitialScreenEnum.ts diff --git a/src/api/resources/accounting/types/Contact.ts b/src/api/resources/accounting/types/Contact.ts index 3a0553407..f4061823e 100644 --- a/src/api/resources/accounting/types/Contact.ts +++ b/src/api/resources/accounting/types/Contact.ts @@ -42,11 +42,11 @@ export interface Contact { /** When the third party's contact was updated. */ remoteUpdatedAt?: Date; /** The company the contact belongs to. */ - company?: string; + company?: Merge.accounting.ContactCompany; /** `Address` object IDs for the given `Contacts` object. */ - addresses?: (Merge.accounting.ContactAddressesItem | undefined)[]; + addresses?: Merge.accounting.ContactAddressesItem[]; /** `AccountingPhoneNumber` object for the given `Contacts` object. */ - phoneNumbers?: Merge.accounting.AccountingPhoneNumber[]; + phoneNumbers?: Merge.accounting.ContactPhoneNumbersItem[]; /** 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/ContactCompany.ts b/src/api/resources/accounting/types/ContactCompany.ts new file mode 100644 index 000000000..94ded7567 --- /dev/null +++ b/src/api/resources/accounting/types/ContactCompany.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 contact belongs to. + */ +export type ContactCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/ContactPhoneNumbersItem.ts b/src/api/resources/accounting/types/ContactPhoneNumbersItem.ts new file mode 100644 index 000000000..d4659814c --- /dev/null +++ b/src/api/resources/accounting/types/ContactPhoneNumbersItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type ContactPhoneNumbersItem = string | Merge.accounting.AccountingPhoneNumber; diff --git a/src/api/resources/accounting/types/ContactRequest.ts b/src/api/resources/accounting/types/ContactRequest.ts index 901daa67e..d325a62a3 100644 --- a/src/api/resources/accounting/types/ContactRequest.ts +++ b/src/api/resources/accounting/types/ContactRequest.ts @@ -33,11 +33,11 @@ export interface ContactRequest { /** The currency the contact's transactions are in. */ currency?: string; /** The company the contact belongs to. */ - company?: string; + company?: Merge.accounting.ContactRequestCompany; /** `Address` object IDs for the given `Contacts` object. */ - addresses?: (Merge.accounting.ContactRequestAddressesItem | undefined)[]; + addresses?: Merge.accounting.ContactRequestAddressesItem[]; /** `AccountingPhoneNumber` object for the given `Contacts` object. */ - phoneNumbers?: Merge.accounting.AccountingPhoneNumberRequest[]; + phoneNumbers?: Merge.accounting.ContactRequestPhoneNumbersItem[]; integrationParams?: Record; linkedAccountParams?: Record; remoteFields?: Merge.accounting.RemoteFieldRequest[]; diff --git a/src/api/resources/accounting/types/ContactRequestCompany.ts b/src/api/resources/accounting/types/ContactRequestCompany.ts new file mode 100644 index 000000000..af785a686 --- /dev/null +++ b/src/api/resources/accounting/types/ContactRequestCompany.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 contact belongs to. + */ +export type ContactRequestCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/RemoteFieldRequestRemoteFieldClass.ts b/src/api/resources/accounting/types/ContactRequestPhoneNumbersItem.ts similarity index 54% rename from src/api/resources/accounting/types/RemoteFieldRequestRemoteFieldClass.ts rename to src/api/resources/accounting/types/ContactRequestPhoneNumbersItem.ts index d9c5ca6aa..4c6cf70ea 100644 --- a/src/api/resources/accounting/types/RemoteFieldRequestRemoteFieldClass.ts +++ b/src/api/resources/accounting/types/ContactRequestPhoneNumbersItem.ts @@ -2,4 +2,4 @@ import type * as Merge from "../../../index"; -export type RemoteFieldRequestRemoteFieldClass = string | Merge.accounting.RemoteFieldClass; +export type ContactRequestPhoneNumbersItem = string | Merge.accounting.AccountingPhoneNumber; diff --git a/src/api/resources/accounting/types/CreditNote.ts b/src/api/resources/accounting/types/CreditNote.ts index 9acb522e2..1f68ff339 100644 --- a/src/api/resources/accounting/types/CreditNote.ts +++ b/src/api/resources/accounting/types/CreditNote.ts @@ -42,7 +42,7 @@ export interface CreditNote { remainingCredit?: number; /** If the transaction is inclusive or exclusive of tax. `True` if inclusive, `False` if exclusive. */ inclusiveOfTax?: boolean; - lineItems?: Merge.accounting.CreditNoteLineItem[]; + lineItems?: Merge.accounting.CreditNoteLineItemsItem[]; trackingCategories?: (Merge.accounting.CreditNoteTrackingCategoriesItem | undefined)[]; /** * The credit note's currency. 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/PatchedContactRequestAddressesItem.ts b/src/api/resources/accounting/types/CreditNoteLineItemsItem.ts similarity index 57% rename from src/api/resources/accounting/types/PatchedContactRequestAddressesItem.ts rename to src/api/resources/accounting/types/CreditNoteLineItemsItem.ts index 7e350f14d..b3a7669b1 100644 --- a/src/api/resources/accounting/types/PatchedContactRequestAddressesItem.ts +++ b/src/api/resources/accounting/types/CreditNoteLineItemsItem.ts @@ -2,4 +2,4 @@ import type * as Merge from "../../../index"; -export type PatchedContactRequestAddressesItem = string | Merge.accounting.Address; +export type CreditNoteLineItemsItem = string | Merge.accounting.CreditNoteLineItem; diff --git a/src/api/resources/accounting/types/CreditNoteRequestLineItemsItem.ts b/src/api/resources/accounting/types/CreditNoteRequestLineItemsItem.ts index 1cbad2fd5..6aeda5e08 100644 --- a/src/api/resources/accounting/types/CreditNoteRequestLineItemsItem.ts +++ b/src/api/resources/accounting/types/CreditNoteRequestLineItemsItem.ts @@ -2,4 +2,4 @@ import type * as Merge from "../../../index"; -export type CreditNoteRequestLineItemsItem = string | Merge.accounting.CreditNoteLineItemRequest; +export type CreditNoteRequestLineItemsItem = string | Merge.accounting.CreditNoteLineItem; diff --git a/src/api/resources/accounting/types/DataPassthroughRequest.ts b/src/api/resources/accounting/types/DataPassthroughRequest.ts index c4883175a..a7c90a8cb 100644 --- a/src/api/resources/accounting/types/DataPassthroughRequest.ts +++ b/src/api/resources/accounting/types/DataPassthroughRequest.ts @@ -22,7 +22,7 @@ export interface DataPassthroughRequest { multipartFormData?: Merge.accounting.MultipartFormFieldRequest[]; /** The headers to use for the request (Merge will handle the account's authorization headers). `Content-Type` header is required for passthrough. Choose content type corresponding to expected format of receiving server. */ headers?: Record; - requestFormat?: Merge.accounting.RequestFormatEnum; + requestFormat?: Merge.accounting.DataPassthroughRequestRequestFormat; /** Optional. If true, the response will always be an object of the form `{"type": T, "value": ...}` where `T` will be one of `string, boolean, number, null, array, object`. */ normalizeResponse?: boolean; } diff --git a/src/api/resources/accounting/types/DataPassthroughRequestRequestFormat.ts b/src/api/resources/accounting/types/DataPassthroughRequestRequestFormat.ts new file mode 100644 index 000000000..a2afa477e --- /dev/null +++ b/src/api/resources/accounting/types/DataPassthroughRequestRequestFormat.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type DataPassthroughRequestRequestFormat = Merge.accounting.RequestFormatEnum | string; diff --git a/src/api/resources/accounting/types/ErrorValidationProblem.ts b/src/api/resources/accounting/types/ErrorValidationProblem.ts index 46b6e8cd2..e96cb0795 100644 --- a/src/api/resources/accounting/types/ErrorValidationProblem.ts +++ b/src/api/resources/accounting/types/ErrorValidationProblem.ts @@ -7,4 +7,5 @@ export interface ErrorValidationProblem { title: string; detail: string; problemType: string; + blockMergeLink?: boolean; } 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..1873d8e0a --- /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.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/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/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..10a208312 100644 --- a/src/api/resources/accounting/types/FieldMappingApiInstance.ts +++ b/src/api/resources/accounting/types/FieldMappingApiInstance.ts @@ -7,4 +7,6 @@ export interface FieldMappingApiInstance { isIntegrationWide?: boolean; targetField?: Merge.accounting.FieldMappingApiInstanceTargetField; remoteField?: Merge.accounting.FieldMappingApiInstanceRemoteField; + jmesPath?: string; + advancedMappingExpression?: 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/GeneralLedgerTransactionLine.ts b/src/api/resources/accounting/types/GeneralLedgerTransactionLine.ts index 7be17c8c0..cb3a84a74 100644 --- a/src/api/resources/accounting/types/GeneralLedgerTransactionLine.ts +++ b/src/api/resources/accounting/types/GeneralLedgerTransactionLine.ts @@ -650,7 +650,7 @@ export interface GeneralLedgerTransactionLine { exchangeRate?: string; /** A description of the line item. */ description?: string; - trackingCategories?: Merge.accounting.GeneralLedgerTransactionLineTrackingCategoriesItem[]; + trackingCategories?: Merge.accounting.TrackingCategory[]; debitAmount: string; creditAmount: string; item?: Merge.accounting.GeneralLedgerTransactionLineItem; diff --git a/src/api/resources/accounting/types/Invoice.ts b/src/api/resources/accounting/types/Invoice.ts index 58181f2e2..f77394600 100644 --- a/src/api/resources/accounting/types/Invoice.ts +++ b/src/api/resources/accounting/types/Invoice.ts @@ -386,11 +386,12 @@ 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. */ appliedPayments?: (Merge.accounting.InvoiceAppliedPaymentsItem | undefined)[]; - lineItems?: Merge.accounting.InvoiceLineItem[]; + lineItems?: Merge.accounting.InvoiceLineItemsItem[]; /** `CreditNoteApplyLines` applied to the Invoice. */ appliedCreditNotes?: Merge.accounting.InvoiceAppliedCreditNotesItem[]; /** `VendorCreditApplyLines` applied to the Invoice. */ diff --git a/src/api/resources/accounting/types/InvoiceBatchItemRequest.ts b/src/api/resources/accounting/types/InvoiceBatchItemRequest.ts new file mode 100644 index 000000000..9fda45cc3 --- /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.InvoiceRequest; +} diff --git a/src/api/resources/accounting/types/InvoiceLineItem.ts b/src/api/resources/accounting/types/InvoiceLineItem.ts index 2d7a25272..67eb09ef2 100644 --- a/src/api/resources/accounting/types/InvoiceLineItem.ts +++ b/src/api/resources/accounting/types/InvoiceLineItem.ts @@ -27,7 +27,7 @@ export interface InvoiceLineItem { /** The line item's total amount. */ totalAmount?: number; /** The employee this overall transaction relates to. */ - employee?: Merge.accounting.InvoiceLineItemEmployee; + employee?: string; project?: Merge.accounting.InvoiceLineItemProject; /** The invoice's contact. */ contact?: Merge.accounting.InvoiceLineItemContact; diff --git a/src/api/resources/accounting/types/InvoiceLineItemEmployee.ts b/src/api/resources/accounting/types/InvoiceLineItemEmployee.ts deleted file mode 100644 index e0c076307..000000000 --- a/src/api/resources/accounting/types/InvoiceLineItemEmployee.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The employee this overall transaction relates to. - */ -export type InvoiceLineItemEmployee = string | Merge.accounting.Employee; diff --git a/src/api/resources/accounting/types/InvoiceLineItemRequest.ts b/src/api/resources/accounting/types/InvoiceLineItemRequest.ts index bd1131ac2..df29419e7 100644 --- a/src/api/resources/accounting/types/InvoiceLineItemRequest.ts +++ b/src/api/resources/accounting/types/InvoiceLineItemRequest.ts @@ -22,7 +22,7 @@ export interface InvoiceLineItemRequest { /** The line item's total amount. */ totalAmount?: number; /** The employee this overall transaction relates to. */ - employee?: Merge.accounting.InvoiceLineItemRequestEmployee; + employee?: string; project?: Merge.accounting.InvoiceLineItemRequestProject; /** The invoice's contact. */ contact?: Merge.accounting.InvoiceLineItemRequestContact; diff --git a/src/api/resources/accounting/types/InvoiceLineItemRequestEmployee.ts b/src/api/resources/accounting/types/InvoiceLineItemRequestEmployee.ts deleted file mode 100644 index a238e838b..000000000 --- a/src/api/resources/accounting/types/InvoiceLineItemRequestEmployee.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The employee this overall transaction relates to. - */ -export type InvoiceLineItemRequestEmployee = string | Merge.accounting.Employee; diff --git a/src/api/resources/accounting/types/TaxRateTaxComponentsItem.ts b/src/api/resources/accounting/types/InvoiceLineItemsItem.ts similarity index 58% rename from src/api/resources/accounting/types/TaxRateTaxComponentsItem.ts rename to src/api/resources/accounting/types/InvoiceLineItemsItem.ts index 916f5412d..b750fc3b9 100644 --- a/src/api/resources/accounting/types/TaxRateTaxComponentsItem.ts +++ b/src/api/resources/accounting/types/InvoiceLineItemsItem.ts @@ -2,4 +2,4 @@ import type * as Merge from "../../../index"; -export type TaxRateTaxComponentsItem = string | Merge.accounting.TaxComponent; +export type InvoiceLineItemsItem = string | Merge.accounting.InvoiceLineItem; diff --git a/src/api/resources/accounting/types/InvoiceRequest.ts b/src/api/resources/accounting/types/InvoiceRequest.ts index bd0e3111c..b692e54ab 100644 --- a/src/api/resources/accounting/types/InvoiceRequest.ts +++ b/src/api/resources/accounting/types/InvoiceRequest.ts @@ -378,7 +378,9 @@ export interface InvoiceRequest { /** Array of `Payment` object IDs. */ payments?: (Merge.accounting.InvoiceRequestPaymentsItem | undefined)[]; trackingCategories?: (Merge.accounting.InvoiceRequestTrackingCategoriesItem | undefined)[]; - lineItems?: Merge.accounting.InvoiceLineItemRequest[]; + /** The accounting period that the Invoice was generated in. */ + accountingPeriod?: Merge.accounting.InvoiceRequestAccountingPeriod; + lineItems?: Merge.accounting.InvoiceRequestLineItemsItem[]; purchaseOrders?: (Merge.accounting.InvoiceRequestPurchaseOrdersItem | undefined)[]; integrationParams?: Record; linkedAccountParams?: Record; diff --git a/src/api/resources/accounting/types/InvoiceRequestAccountingPeriod.ts b/src/api/resources/accounting/types/InvoiceRequestAccountingPeriod.ts new file mode 100644 index 000000000..fd9ba9643 --- /dev/null +++ b/src/api/resources/accounting/types/InvoiceRequestAccountingPeriod.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 that the Invoice was generated in. + */ +export type InvoiceRequestAccountingPeriod = string | Merge.accounting.AccountingPeriod; diff --git a/src/api/resources/accounting/types/InvoiceRequestLineItemsItem.ts b/src/api/resources/accounting/types/InvoiceRequestLineItemsItem.ts new file mode 100644 index 000000000..9a498f0ed --- /dev/null +++ b/src/api/resources/accounting/types/InvoiceRequestLineItemsItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type InvoiceRequestLineItemsItem = string | Merge.accounting.InvoiceLineItem; diff --git a/src/api/resources/ticketing/types/RemoteFieldClassFieldType.ts b/src/api/resources/accounting/types/InvoiceSalesOrdersItem.ts similarity index 58% rename from src/api/resources/ticketing/types/RemoteFieldClassFieldType.ts rename to src/api/resources/accounting/types/InvoiceSalesOrdersItem.ts index 583add1ed..18479f57f 100644 --- a/src/api/resources/ticketing/types/RemoteFieldClassFieldType.ts +++ b/src/api/resources/accounting/types/InvoiceSalesOrdersItem.ts @@ -2,4 +2,4 @@ import type * as Merge from "../../../index"; -export type RemoteFieldClassFieldType = string | Merge.ticketing.FieldTypeEnum; +export type InvoiceSalesOrdersItem = string | Merge.accounting.SalesOrder; 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..578602bba --- /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.ItemFulfillmentRequestRequest; +} 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/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/RemoteFieldRemoteFieldClass.ts b/src/api/resources/accounting/types/ItemFulfillmentLinesItem.ts similarity index 56% rename from src/api/resources/accounting/types/RemoteFieldRemoteFieldClass.ts rename to src/api/resources/accounting/types/ItemFulfillmentLinesItem.ts index 9eaa23405..c86659b67 100644 --- a/src/api/resources/accounting/types/RemoteFieldRemoteFieldClass.ts +++ b/src/api/resources/accounting/types/ItemFulfillmentLinesItem.ts @@ -2,4 +2,4 @@ import type * as Merge from "../../../index"; -export type RemoteFieldRemoteFieldClass = string | Merge.accounting.RemoteFieldClass; +export type ItemFulfillmentLinesItem = string | Merge.accounting.ItemFulfillmentLine; diff --git a/src/api/resources/accounting/types/ItemFulfillmentRequestRequest.ts b/src/api/resources/accounting/types/ItemFulfillmentRequestRequest.ts new file mode 100644 index 000000000..c66638b0d --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentRequestRequest.ts @@ -0,0 +1,37 @@ +// 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 ItemFulfillmentRequestRequest { + /** The ID of the sales order that the item fulfillment originated from. */ + salesOrder?: Merge.accounting.ItemFulfillmentRequestRequestSalesOrder; + /** The date the fulfillment was created. */ + fulfillmentDate?: Date; + /** The customer associated with the item fulfillment. */ + customer?: Merge.accounting.ItemFulfillmentRequestRequestCustomer; + /** The subsidiary associated with the fulfillment. */ + company?: Merge.accounting.ItemFulfillmentRequestRequestCompany; + /** + * The status of the item fulfillment. + * + * * `DRAFT` - DRAFT + * * `IN_PROGRESS` - IN_PROGRESS + * * `SHIPPED` - SHIPPED + * * `CANCELLED` - CANCELLED + */ + status?: Merge.accounting.ItemFulfillmentRequestRequestStatus; + /** Comment attached to the fulfillment. */ + memo?: string; + lines?: Merge.accounting.ItemFulfillmentRequestRequestLinesItem[]; + integrationParams?: Record; + linkedAccountParams?: Record; + remoteFields?: Merge.accounting.RemoteFieldRequest[]; +} diff --git a/src/api/resources/accounting/types/ItemFulfillmentRequestRequestCompany.ts b/src/api/resources/accounting/types/ItemFulfillmentRequestRequestCompany.ts new file mode 100644 index 000000000..8c66739b5 --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentRequestRequestCompany.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 ItemFulfillmentRequestRequestCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/ItemFulfillmentRequestRequestCustomer.ts b/src/api/resources/accounting/types/ItemFulfillmentRequestRequestCustomer.ts new file mode 100644 index 000000000..5f6c099c3 --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentRequestRequestCustomer.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 ItemFulfillmentRequestRequestCustomer = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/ItemFulfillmentRequestRequestLinesItem.ts b/src/api/resources/accounting/types/ItemFulfillmentRequestRequestLinesItem.ts new file mode 100644 index 000000000..625fb8cd9 --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentRequestRequestLinesItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type ItemFulfillmentRequestRequestLinesItem = string | Merge.accounting.ItemFulfillmentLine; diff --git a/src/api/resources/accounting/types/ItemFulfillmentRequestRequestSalesOrder.ts b/src/api/resources/accounting/types/ItemFulfillmentRequestRequestSalesOrder.ts new file mode 100644 index 000000000..63666f6b0 --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentRequestRequestSalesOrder.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 ItemFulfillmentRequestRequestSalesOrder = string | Merge.accounting.SalesOrder; diff --git a/src/api/resources/accounting/types/ItemFulfillmentRequestRequestStatus.ts b/src/api/resources/accounting/types/ItemFulfillmentRequestRequestStatus.ts new file mode 100644 index 000000000..ce715faa7 --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentRequestRequestStatus.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 ItemFulfillmentRequestRequestStatus = 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/JournalEntry.ts b/src/api/resources/accounting/types/JournalEntry.ts index 7f263a4fa..cfe47b21e 100644 --- a/src/api/resources/accounting/types/JournalEntry.ts +++ b/src/api/resources/accounting/types/JournalEntry.ts @@ -347,7 +347,7 @@ export interface JournalEntry { company?: Merge.accounting.JournalEntryCompany; /** If the transaction is inclusive or exclusive of tax. `True` if inclusive, `False` if exclusive. */ inclusiveOfTax?: boolean; - lines?: Merge.accounting.JournalLine[]; + lines?: Merge.accounting.JournalEntryLinesItem[]; /** Reference number for identifying journal entries. */ journalNumber?: string; trackingCategories?: (Merge.accounting.JournalEntryTrackingCategoriesItem | undefined)[]; diff --git a/src/api/resources/accounting/types/JournalEntryLinesItem.ts b/src/api/resources/accounting/types/JournalEntryLinesItem.ts new file mode 100644 index 000000000..be9089b53 --- /dev/null +++ b/src/api/resources/accounting/types/JournalEntryLinesItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type JournalEntryLinesItem = string | Merge.accounting.JournalLine; diff --git a/src/api/resources/accounting/types/JournalEntryRequest.ts b/src/api/resources/accounting/types/JournalEntryRequest.ts index 789fd69f5..17ff4711c 100644 --- a/src/api/resources/accounting/types/JournalEntryRequest.ts +++ b/src/api/resources/accounting/types/JournalEntryRequest.ts @@ -335,7 +335,7 @@ export interface JournalEntryRequest { trackingCategories?: (Merge.accounting.JournalEntryRequestTrackingCategoriesItem | undefined)[]; /** If the transaction is inclusive or exclusive of tax. `True` if inclusive, `False` if exclusive. */ inclusiveOfTax?: boolean; - lines?: Merge.accounting.JournalLineRequest[]; + lines?: Merge.accounting.JournalEntryRequestLinesItem[]; /** Reference number for identifying journal entries. */ journalNumber?: string; /** diff --git a/src/api/resources/accounting/types/JournalEntryRequestLinesItem.ts b/src/api/resources/accounting/types/JournalEntryRequestLinesItem.ts new file mode 100644 index 000000000..157b98a9c --- /dev/null +++ b/src/api/resources/accounting/types/JournalEntryRequestLinesItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type JournalEntryRequestLinesItem = string | Merge.accounting.JournalLine; diff --git a/src/api/resources/accounting/types/MetaResponse.ts b/src/api/resources/accounting/types/MetaResponse.ts index 1ae901ada..6a1ac1c2e 100644 --- a/src/api/resources/accounting/types/MetaResponse.ts +++ b/src/api/resources/accounting/types/MetaResponse.ts @@ -4,8 +4,9 @@ import type * as Merge from "../../../index"; export interface MetaResponse { requestSchema: Record; - remoteFieldClasses?: Record; status?: Merge.accounting.LinkedAccountStatus; hasConditionalParams: boolean; hasRequiredLinkedAccountParams: boolean; + /** Remote field values to populate */ + remoteFields?: string[]; } 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/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/PatchedPaymentRequest.ts b/src/api/resources/accounting/types/PatchedPaymentRequest.ts index 9d8b8c208..daf8db949 100644 --- a/src/api/resources/accounting/types/PatchedPaymentRequest.ts +++ b/src/api/resources/accounting/types/PatchedPaymentRequest.ts @@ -14,11 +14,11 @@ export interface PatchedPaymentRequest { /** The payment's transaction date. */ transactionDate?: Date; /** The supplier, or customer involved in the payment. */ - contact?: Merge.accounting.PatchedPaymentRequestContact; + contact?: string; /** The supplier’s or customer’s account in which the payment is made. */ - account?: Merge.accounting.PatchedPaymentRequestAccount; + account?: string; /** The method which this payment was made by. */ - paymentMethod?: Merge.accounting.PatchedPaymentRequestPaymentMethod; + paymentMethod?: string; /** * The payment's currency. * @@ -333,7 +333,7 @@ export interface PatchedPaymentRequest { /** The payment's exchange rate. */ exchangeRate?: string; /** The company the payment belongs to. */ - company?: Merge.accounting.PatchedPaymentRequestCompany; + company?: string; /** The total amount of money being paid to the supplier, or customer, after taxes. */ totalAmount?: number; /** @@ -343,11 +343,11 @@ export interface PatchedPaymentRequest { * * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE */ type?: Merge.accounting.PatchedPaymentRequestType; - trackingCategories?: (Merge.accounting.PatchedPaymentRequestTrackingCategoriesItem | undefined)[]; + trackingCategories?: (string | undefined)[]; /** The accounting period that the Payment was generated in. */ - accountingPeriod?: Merge.accounting.PatchedPaymentRequestAccountingPeriod; + accountingPeriod?: string; /** A list of “Payment Applied to Lines” objects. */ - appliedToLines?: Merge.accounting.PatchedPaymentRequestAppliedToLinesItem[]; + appliedToLines?: Merge.accounting.PaymentLineItemRequest[]; integrationParams?: Record; linkedAccountParams?: Record; remoteFields?: Merge.accounting.RemoteFieldRequest[]; diff --git a/src/api/resources/accounting/types/PatchedPaymentRequestAccount.ts b/src/api/resources/accounting/types/PatchedPaymentRequestAccount.ts deleted file mode 100644 index abfeb05c1..000000000 --- a/src/api/resources/accounting/types/PatchedPaymentRequestAccount.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The supplier’s or customer’s account in which the payment is made. - */ -export type PatchedPaymentRequestAccount = string | Merge.accounting.Account; diff --git a/src/api/resources/accounting/types/PatchedPaymentRequestAccountingPeriod.ts b/src/api/resources/accounting/types/PatchedPaymentRequestAccountingPeriod.ts deleted file mode 100644 index 85c1c49bd..000000000 --- a/src/api/resources/accounting/types/PatchedPaymentRequestAccountingPeriod.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The accounting period that the Payment was generated in. - */ -export type PatchedPaymentRequestAccountingPeriod = string | Merge.accounting.AccountingPeriod; diff --git a/src/api/resources/accounting/types/PatchedPaymentRequestContact.ts b/src/api/resources/accounting/types/PatchedPaymentRequestContact.ts deleted file mode 100644 index 9f9485691..000000000 --- a/src/api/resources/accounting/types/PatchedPaymentRequestContact.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The supplier, or customer involved in the payment. - */ -export type PatchedPaymentRequestContact = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/PatchedPaymentRequestPaymentMethod.ts b/src/api/resources/accounting/types/PatchedPaymentRequestPaymentMethod.ts deleted file mode 100644 index d756cd96b..000000000 --- a/src/api/resources/accounting/types/PatchedPaymentRequestPaymentMethod.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The method which this payment was made by. - */ -export type PatchedPaymentRequestPaymentMethod = string | Merge.accounting.PaymentMethod; 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/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/PaymentRequestAppliedToLinesItem.ts b/src/api/resources/accounting/types/PaymentRequestAppliedToLinesItem.ts index b909039fb..616ab65f3 100644 --- a/src/api/resources/accounting/types/PaymentRequestAppliedToLinesItem.ts +++ b/src/api/resources/accounting/types/PaymentRequestAppliedToLinesItem.ts @@ -2,4 +2,4 @@ import type * as Merge from "../../../index"; -export type PaymentRequestAppliedToLinesItem = string | Merge.accounting.PaymentLineItemRequest; +export type PaymentRequestAppliedToLinesItem = string | Merge.accounting.PaymentLineItem; diff --git a/src/api/resources/accounting/types/PurchaseOrder.ts b/src/api/resources/accounting/types/PurchaseOrder.ts index b13b1eaee..afdcd6ff9 100644 --- a/src/api/resources/accounting/types/PurchaseOrder.ts +++ b/src/api/resources/accounting/types/PurchaseOrder.ts @@ -363,7 +363,7 @@ export interface PurchaseOrder { exchangeRate?: string; /** The payment term that applies to this transaction. */ paymentTerm?: Merge.accounting.PurchaseOrderPaymentTerm; - lineItems?: Merge.accounting.PurchaseOrderLineItem[]; + lineItems?: Merge.accounting.PurchaseOrderLineItemsItem[]; /** If the transaction is inclusive or exclusive of tax. `True` if inclusive, `False` if exclusive. */ inclusiveOfTax?: boolean; trackingCategories?: (Merge.accounting.PurchaseOrderTrackingCategoriesItem | undefined)[]; diff --git a/src/api/resources/accounting/types/PurchaseOrderLineItemsItem.ts b/src/api/resources/accounting/types/PurchaseOrderLineItemsItem.ts new file mode 100644 index 000000000..a40e9a26a --- /dev/null +++ b/src/api/resources/accounting/types/PurchaseOrderLineItemsItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type PurchaseOrderLineItemsItem = string | Merge.accounting.PurchaseOrderLineItem; diff --git a/src/api/resources/accounting/types/PurchaseOrderRequest.ts b/src/api/resources/accounting/types/PurchaseOrderRequest.ts index 721effc4d..b1b315dac 100644 --- a/src/api/resources/accounting/types/PurchaseOrderRequest.ts +++ b/src/api/resources/accounting/types/PurchaseOrderRequest.ts @@ -355,7 +355,7 @@ export interface PurchaseOrderRequest { /** The purchase order's exchange rate. */ exchangeRate?: string; trackingCategories?: (Merge.accounting.PurchaseOrderRequestTrackingCategoriesItem | undefined)[]; - lineItems?: Merge.accounting.PurchaseOrderLineItemRequest[]; + lineItems?: Merge.accounting.PurchaseOrderRequestLineItemsItem[]; integrationParams?: Record; linkedAccountParams?: Record; remoteFields?: Merge.accounting.RemoteFieldRequest[]; diff --git a/src/api/resources/accounting/types/PurchaseOrderRequestLineItemsItem.ts b/src/api/resources/accounting/types/PurchaseOrderRequestLineItemsItem.ts new file mode 100644 index 000000000..971420aae --- /dev/null +++ b/src/api/resources/accounting/types/PurchaseOrderRequestLineItemsItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type PurchaseOrderRequestLineItemsItem = string | Merge.accounting.PurchaseOrderLineItem; 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/RemoteField.ts b/src/api/resources/accounting/types/RemoteField.ts index 99a11cae3..5b2f53cbc 100644 --- a/src/api/resources/accounting/types/RemoteField.ts +++ b/src/api/resources/accounting/types/RemoteField.ts @@ -3,6 +3,6 @@ import type * as Merge from "../../../index"; export interface RemoteField { - remoteFieldClass: Merge.accounting.RemoteFieldRemoteFieldClass; - value?: unknown; + remoteFieldClass: Merge.accounting.RemoteFieldClass; + value?: Record; } diff --git a/src/api/resources/accounting/types/RemoteFieldApi.ts b/src/api/resources/accounting/types/RemoteFieldApi.ts index 65692ecd8..19ef9a728 100644 --- a/src/api/resources/accounting/types/RemoteFieldApi.ts +++ b/src/api/resources/accounting/types/RemoteFieldApi.ts @@ -7,6 +7,6 @@ export interface RemoteFieldApi { remoteKeyName: string; remoteEndpointInfo: Merge.accounting.RemoteEndpointInfo; exampleValues?: unknown[]; - advancedMetadata?: Merge.accounting.AdvancedMetadata; + advancedMetadata?: Merge.accounting.RemoteFieldApiAdvancedMetadata; coverage?: Merge.accounting.RemoteFieldApiCoverage; } diff --git a/src/api/resources/accounting/types/RemoteFieldApiAdvancedMetadata.ts b/src/api/resources/accounting/types/RemoteFieldApiAdvancedMetadata.ts new file mode 100644 index 000000000..fab53c117 --- /dev/null +++ b/src/api/resources/accounting/types/RemoteFieldApiAdvancedMetadata.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type RemoteFieldApiAdvancedMetadata = Merge.accounting.AdvancedMetadata | 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/RemoteFieldRequest.ts b/src/api/resources/accounting/types/RemoteFieldRequest.ts index cd70a0eb7..0444c0327 100644 --- a/src/api/resources/accounting/types/RemoteFieldRequest.ts +++ b/src/api/resources/accounting/types/RemoteFieldRequest.ts @@ -1,8 +1,6 @@ // This file was auto-generated by Fern from our API Definition. -import type * as Merge from "../../../index"; - export interface RemoteFieldRequest { - remoteFieldClass: Merge.accounting.RemoteFieldRequestRemoteFieldClass; - value?: unknown; + remoteFieldClass: string; + value?: Record; } diff --git a/src/api/resources/accounting/types/RemoteResponse.ts b/src/api/resources/accounting/types/RemoteResponse.ts index dc7edf9e7..3ebd1ae6b 100644 --- a/src/api/resources/accounting/types/RemoteResponse.ts +++ b/src/api/resources/accounting/types/RemoteResponse.ts @@ -16,6 +16,6 @@ export interface RemoteResponse { status: number; response?: unknown; responseHeaders?: Record; - responseType?: Merge.accounting.ResponseTypeEnum; + responseType?: Merge.accounting.RemoteResponseResponseType; headers?: Record; } diff --git a/src/api/resources/accounting/types/RemoteResponseResponseType.ts b/src/api/resources/accounting/types/RemoteResponseResponseType.ts new file mode 100644 index 000000000..3d0c57963 --- /dev/null +++ b/src/api/resources/accounting/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.accounting.ResponseTypeEnum | string; diff --git a/src/api/resources/accounting/types/ReportItem.ts b/src/api/resources/accounting/types/ReportItem.ts index 27e32e28d..66fcb2f4a 100644 --- a/src/api/resources/accounting/types/ReportItem.ts +++ b/src/api/resources/accounting/types/ReportItem.ts @@ -19,7 +19,7 @@ export interface ReportItem { name?: string; /** The report item's value. */ value?: number; - subItems?: Record[]; + subItems?: Record; /** The company the report item belongs to. */ company?: 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/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..8d8ec7079 --- /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.SalesOrderRequestRequest; +} 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/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/PatchedPaymentRequestCompany.ts b/src/api/resources/accounting/types/SalesOrderLineRequestCompany.ts similarity index 56% rename from src/api/resources/accounting/types/PatchedPaymentRequestCompany.ts rename to src/api/resources/accounting/types/SalesOrderLineRequestCompany.ts index e937c04ea..98ad78e64 100644 --- a/src/api/resources/accounting/types/PatchedPaymentRequestCompany.ts +++ b/src/api/resources/accounting/types/SalesOrderLineRequestCompany.ts @@ -3,6 +3,6 @@ import type * as Merge from "../../../index"; /** - * The company the payment belongs to. + * The subsidiary associated with the order. */ -export type PatchedPaymentRequestCompany = string | Merge.accounting.CompanyInfo; +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/PatchedPaymentRequestTrackingCategoriesItem.ts b/src/api/resources/accounting/types/SalesOrderLineRequestTrackingCategoriesItem.ts similarity index 70% rename from src/api/resources/accounting/types/PatchedPaymentRequestTrackingCategoriesItem.ts rename to src/api/resources/accounting/types/SalesOrderLineRequestTrackingCategoriesItem.ts index 714fc6fb1..b5b79dcdd 100644 --- a/src/api/resources/accounting/types/PatchedPaymentRequestTrackingCategoriesItem.ts +++ b/src/api/resources/accounting/types/SalesOrderLineRequestTrackingCategoriesItem.ts @@ -2,4 +2,4 @@ import type * as Merge from "../../../index"; -export type PatchedPaymentRequestTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; +export type SalesOrderLineRequestTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/GeneralLedgerTransactionLineTrackingCategoriesItem.ts b/src/api/resources/accounting/types/SalesOrderLineTaxRate.ts similarity index 50% rename from src/api/resources/accounting/types/GeneralLedgerTransactionLineTrackingCategoriesItem.ts rename to src/api/resources/accounting/types/SalesOrderLineTaxRate.ts index 3653c0cc9..944510383 100644 --- a/src/api/resources/accounting/types/GeneralLedgerTransactionLineTrackingCategoriesItem.ts +++ b/src/api/resources/accounting/types/SalesOrderLineTaxRate.ts @@ -2,4 +2,7 @@ import type * as Merge from "../../../index"; -export type GeneralLedgerTransactionLineTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; +/** + * 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/SalesOrderRequestRequest.ts b/src/api/resources/accounting/types/SalesOrderRequestRequest.ts new file mode 100644 index 000000000..ff90736bb --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderRequestRequest.ts @@ -0,0 +1,359 @@ +// 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 SalesOrderRequestRequest { + /** The customer associated with the sales order. */ + customer?: Merge.accounting.SalesOrderRequestRequestCustomer; + /** + * 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.SalesOrderRequestRequestCurrency; + /** The exchange rate applied if the order currency differs from the base currency. */ + exchangeRate?: string; + /** The subsidiary associated with the order. */ + company?: Merge.accounting.SalesOrderRequestRequestCompany; + /** + * 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.SalesOrderRequestRequestStatus; + /** The payment terms applied to this order. */ + paymentTerm?: Merge.accounting.SalesOrderRequestRequestPaymentTerm; + /** Notes or comments attached to the order. */ + memo?: string; + /** The shipping address for the order. */ + shippingAddress?: Merge.accounting.SalesOrderRequestRequestShippingAddress; + trackingCategories?: (Merge.accounting.SalesOrderRequestRequestTrackingCategoriesItem | 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.SalesOrderRequestRequestLinesItem[]; + integrationParams?: Record; + linkedAccountParams?: Record; + remoteFields?: Merge.accounting.RemoteFieldRequest[]; +} diff --git a/src/api/resources/accounting/types/SalesOrderRequestRequestCompany.ts b/src/api/resources/accounting/types/SalesOrderRequestRequestCompany.ts new file mode 100644 index 000000000..56a6a45b9 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderRequestRequestCompany.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 SalesOrderRequestRequestCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/SalesOrderRequestRequestCurrency.ts b/src/api/resources/accounting/types/SalesOrderRequestRequestCurrency.ts new file mode 100644 index 000000000..d303ef512 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderRequestRequestCurrency.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 SalesOrderRequestRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/SalesOrderRequestRequestCustomer.ts b/src/api/resources/accounting/types/SalesOrderRequestRequestCustomer.ts new file mode 100644 index 000000000..6dcea5a97 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderRequestRequestCustomer.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 SalesOrderRequestRequestCustomer = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/SalesOrderRequestRequestLinesItem.ts b/src/api/resources/accounting/types/SalesOrderRequestRequestLinesItem.ts new file mode 100644 index 000000000..e632fefff --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderRequestRequestLinesItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type SalesOrderRequestRequestLinesItem = string | Merge.accounting.SalesOrderLine; diff --git a/src/api/resources/accounting/types/SalesOrderRequestRequestPaymentTerm.ts b/src/api/resources/accounting/types/SalesOrderRequestRequestPaymentTerm.ts new file mode 100644 index 000000000..105b0991d --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderRequestRequestPaymentTerm.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 SalesOrderRequestRequestPaymentTerm = string | Merge.accounting.PaymentTerm; diff --git a/src/api/resources/accounting/types/SalesOrderRequestRequestShippingAddress.ts b/src/api/resources/accounting/types/SalesOrderRequestRequestShippingAddress.ts new file mode 100644 index 000000000..153fa59d2 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderRequestRequestShippingAddress.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 SalesOrderRequestRequestShippingAddress = string | Merge.accounting.Address; diff --git a/src/api/resources/accounting/types/SalesOrderRequestRequestStatus.ts b/src/api/resources/accounting/types/SalesOrderRequestRequestStatus.ts new file mode 100644 index 000000000..732c534e9 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderRequestRequestStatus.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 SalesOrderRequestRequestStatus = Merge.accounting.SalesOrderStatusEnum | string; diff --git a/src/api/resources/accounting/types/PatchedPaymentRequestAppliedToLinesItem.ts b/src/api/resources/accounting/types/SalesOrderRequestRequestTrackingCategoriesItem.ts similarity index 51% rename from src/api/resources/accounting/types/PatchedPaymentRequestAppliedToLinesItem.ts rename to src/api/resources/accounting/types/SalesOrderRequestRequestTrackingCategoriesItem.ts index 765c75a87..312b14f0a 100644 --- a/src/api/resources/accounting/types/PatchedPaymentRequestAppliedToLinesItem.ts +++ b/src/api/resources/accounting/types/SalesOrderRequestRequestTrackingCategoriesItem.ts @@ -2,4 +2,4 @@ import type * as Merge from "../../../index"; -export type PatchedPaymentRequestAppliedToLinesItem = string | Merge.accounting.PaymentLineItemRequest; +export type SalesOrderRequestRequestTrackingCategoriesItem = 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/TaxRate.ts b/src/api/resources/accounting/types/TaxRate.ts index b627a4df8..8c874c907 100644 --- a/src/api/resources/accounting/types/TaxRate.ts +++ b/src/api/resources/accounting/types/TaxRate.ts @@ -40,7 +40,7 @@ export interface TaxRate { /** The tax rate’s effective tax rate - total amount of tax with compounding. */ effectiveTaxRate?: number; /** The related tax components of the tax rate. */ - taxComponents?: Merge.accounting.TaxRateTaxComponentsItem[]; + taxComponents?: Merge.accounting.TaxComponent[]; /** 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/Transaction.ts b/src/api/resources/accounting/types/Transaction.ts index bb1c35254..4d82b1d69 100644 --- a/src/api/resources/accounting/types/Transaction.ts +++ b/src/api/resources/accounting/types/Transaction.ts @@ -353,9 +353,9 @@ 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[]; + lineItems?: Merge.accounting.TransactionLineItemsItem[]; /** 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 accounting period that the Transaction was generated in. */ 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/TransactionLineItemsItem.ts b/src/api/resources/accounting/types/TransactionLineItemsItem.ts new file mode 100644 index 000000000..c676b56a9 --- /dev/null +++ b/src/api/resources/accounting/types/TransactionLineItemsItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type TransactionLineItemsItem = string | Merge.accounting.TransactionLineItem; diff --git a/src/api/resources/accounting/types/VendorCredit.ts b/src/api/resources/accounting/types/VendorCredit.ts index 7c26775cd..862307e45 100644 --- a/src/api/resources/accounting/types/VendorCredit.ts +++ b/src/api/resources/accounting/types/VendorCredit.ts @@ -343,7 +343,7 @@ export interface VendorCredit { inclusiveOfTax?: boolean; /** The company the vendor credit belongs to. */ company?: Merge.accounting.VendorCreditCompany; - lines?: Merge.accounting.VendorCreditLine[]; + lines?: Merge.accounting.VendorCreditLinesItem[]; trackingCategories?: (Merge.accounting.VendorCreditTrackingCategoriesItem | undefined)[]; /** A list of VendorCredit Applied to Lines objects. */ appliedToLines?: Merge.accounting.VendorCreditApplyLineForVendorCredit[]; diff --git a/src/api/resources/accounting/types/VendorCreditLinesItem.ts b/src/api/resources/accounting/types/VendorCreditLinesItem.ts new file mode 100644 index 000000000..447a7579b --- /dev/null +++ b/src/api/resources/accounting/types/VendorCreditLinesItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type VendorCreditLinesItem = string | Merge.accounting.VendorCreditLine; diff --git a/src/api/resources/accounting/types/WarningValidationProblem.ts b/src/api/resources/accounting/types/WarningValidationProblem.ts index 54e2e5e63..5266700fe 100644 --- a/src/api/resources/accounting/types/WarningValidationProblem.ts +++ b/src/api/resources/accounting/types/WarningValidationProblem.ts @@ -7,4 +7,5 @@ export interface WarningValidationProblem { title: string; detail: string; problemType: string; + blockMergeLink?: boolean; } diff --git a/src/api/resources/accounting/types/index.ts b/src/api/resources/accounting/types/index.ts index 22194d0a9..233fc16c7 100644 --- a/src/api/resources/accounting/types/index.ts +++ b/src/api/resources/accounting/types/index.ts @@ -2,6 +2,7 @@ export * from "./Account"; export * from "./AccountAccountType"; export * from "./AccountAccountTypeEnum"; export * from "./AccountClassification"; +export * from "./AccountCompany"; export * from "./AccountCurrency"; export * from "./AccountDetails"; export * from "./AccountDetailsAndActions"; @@ -21,6 +22,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"; @@ -74,12 +76,19 @@ export * from "./ClassificationEnum"; export * from "./CommonModelScopeApi"; export * from "./CommonModelScopesBodyRequest"; export * from "./CompanyInfo"; +export * from "./CompanyInfoAddressesItem"; export * from "./CompanyInfoCurrency"; +export * from "./CompanyInfoPhoneNumbersItem"; +export * from "./CompletedAccountInitialScreenEnum"; export * from "./ComponentTypeEnum"; export * from "./Contact"; export * from "./ContactAddressesItem"; +export * from "./ContactCompany"; +export * from "./ContactPhoneNumbersItem"; export * from "./ContactRequest"; export * from "./ContactRequestAddressesItem"; +export * from "./ContactRequestCompany"; +export * from "./ContactRequestPhoneNumbersItem"; export * from "./ContactRequestStatus"; export * from "./ContactResponse"; export * from "./ContactStatus"; @@ -106,6 +115,7 @@ export * from "./CreditNoteLineItemRequestCompany"; export * from "./CreditNoteLineItemRequestContact"; export * from "./CreditNoteLineItemRequestItem"; export * from "./CreditNoteLineItemRequestProject"; +export * from "./CreditNoteLineItemsItem"; export * from "./CreditNotePaymentsItem"; export * from "./CreditNoteRequest"; export * from "./CreditNoteRequestAccountingPeriod"; @@ -124,6 +134,7 @@ export * from "./CreditNoteTrackingCategoriesItem"; export * from "./CreditOrDebitEnum"; export * from "./DataPassthroughRequest"; export * from "./DataPassthroughRequestMethod"; +export * from "./DataPassthroughRequestRequestFormat"; export * from "./DebugModeLog"; export * from "./DebugModelLogSummary"; export * from "./Employee"; @@ -136,6 +147,7 @@ export * from "./EventTypeEnum"; export * from "./Expense"; export * from "./ExpenseAccount"; export * from "./ExpenseAccountingPeriod"; +export * from "./ExpenseBatchItemRequest"; export * from "./ExpenseCompany"; export * from "./ExpenseContact"; export * from "./ExpenseCurrency"; @@ -159,25 +171,33 @@ export * from "./ExpenseLineRequestTrackingCategory"; export * from "./ExpenseLineTrackingCategoriesItem"; export * from "./ExpenseLineTrackingCategory"; export * from "./ExpenseReport"; +export * from "./ExpenseReportAccountingPeriod"; export * from "./ExpenseReportCompany"; +export * from "./ExpenseReportCurrency"; +export * from "./ExpenseReportEmployee"; 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"; @@ -216,7 +236,6 @@ export * from "./GeneralLedgerTransactionLineContact"; export * from "./GeneralLedgerTransactionLineEmployee"; export * from "./GeneralLedgerTransactionLineItem"; export * from "./GeneralLedgerTransactionLineProject"; -export * from "./GeneralLedgerTransactionLineTrackingCategoriesItem"; export * from "./GeneralLedgerTransactionLineTransactionCurrency"; export * from "./GeneralLedgerTransactionTrackingCategoriesItem"; export * from "./GeneralLedgerTransactionUnderlyingTransactionType"; @@ -230,6 +249,7 @@ export * from "./InvoiceAccountingPeriod"; export * from "./InvoiceAppliedCreditNotesItem"; export * from "./InvoiceAppliedPaymentsItem"; export * from "./InvoiceAppliedVendorCreditsItem"; +export * from "./InvoiceBatchItemRequest"; export * from "./InvoiceCompany"; export * from "./InvoiceContact"; export * from "./InvoiceCurrency"; @@ -238,28 +258,29 @@ export * from "./InvoiceLineItem"; export * from "./InvoiceLineItemAccount"; export * from "./InvoiceLineItemContact"; export * from "./InvoiceLineItemCurrency"; -export * from "./InvoiceLineItemEmployee"; export * from "./InvoiceLineItemItem"; export * from "./InvoiceLineItemProject"; export * from "./InvoiceLineItemRequest"; export * from "./InvoiceLineItemRequestAccount"; export * from "./InvoiceLineItemRequestContact"; export * from "./InvoiceLineItemRequestCurrency"; -export * from "./InvoiceLineItemRequestEmployee"; export * from "./InvoiceLineItemRequestItem"; export * from "./InvoiceLineItemRequestProject"; export * from "./InvoiceLineItemRequestTrackingCategoriesItem"; export * from "./InvoiceLineItemRequestTrackingCategory"; +export * from "./InvoiceLineItemsItem"; export * from "./InvoiceLineItemTrackingCategoriesItem"; export * from "./InvoiceLineItemTrackingCategory"; export * from "./InvoicePaymentsItem"; export * from "./InvoicePaymentTerm"; export * from "./InvoicePurchaseOrdersItem"; export * from "./InvoiceRequest"; +export * from "./InvoiceRequestAccountingPeriod"; export * from "./InvoiceRequestCompany"; export * from "./InvoiceRequestContact"; export * from "./InvoiceRequestCurrency"; export * from "./InvoiceRequestEmployee"; +export * from "./InvoiceRequestLineItemsItem"; export * from "./InvoiceRequestPaymentsItem"; export * from "./InvoiceRequestPaymentTerm"; export * from "./InvoiceRequestPurchaseOrdersItem"; @@ -267,6 +288,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"; @@ -278,6 +300,29 @@ export * from "./IssueStatusEnum"; export * from "./Item"; export * from "./ItemCompany"; export * from "./ItemFormatEnum"; +export * from "./ItemFulfillment"; +export * from "./ItemFulfillmentBatchItemRequest"; +export * from "./ItemFulfillmentCompany"; +export * from "./ItemFulfillmentCustomer"; +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 "./ItemFulfillmentRequestRequest"; +export * from "./ItemFulfillmentRequestRequestCompany"; +export * from "./ItemFulfillmentRequestRequestCustomer"; +export * from "./ItemFulfillmentRequestRequestLinesItem"; +export * from "./ItemFulfillmentRequestRequestSalesOrder"; +export * from "./ItemFulfillmentRequestRequestStatus"; +export * from "./ItemFulfillmentResponse"; +export * from "./ItemFulfillmentSalesOrder"; +export * from "./ItemFulfillmentStatus"; +export * from "./ItemFulfillmentStatusEnum"; export * from "./ItemPurchaseAccount"; export * from "./ItemPurchaseTaxRate"; export * from "./ItemRequestRequest"; @@ -300,11 +345,13 @@ export * from "./JournalEntryAccountingPeriod"; export * from "./JournalEntryAppliedPaymentsItem"; export * from "./JournalEntryCompany"; export * from "./JournalEntryCurrency"; +export * from "./JournalEntryLinesItem"; export * from "./JournalEntryPaymentsItem"; export * from "./JournalEntryPostingStatus"; export * from "./JournalEntryRequest"; export * from "./JournalEntryRequestCompany"; export * from "./JournalEntryRequestCurrency"; +export * from "./JournalEntryRequestLinesItem"; export * from "./JournalEntryRequestPaymentsItem"; export * from "./JournalEntryRequestPostingStatus"; export * from "./JournalEntryRequestTrackingCategoriesItem"; @@ -354,6 +401,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,26 +410,22 @@ 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"; export * from "./PatchedPaymentRequest"; -export * from "./PatchedPaymentRequestAccount"; -export * from "./PatchedPaymentRequestAccountingPeriod"; -export * from "./PatchedPaymentRequestAppliedToLinesItem"; -export * from "./PatchedPaymentRequestCompany"; -export * from "./PatchedPaymentRequestContact"; 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"; @@ -425,11 +469,13 @@ export * from "./PurchaseOrderLineItemItem"; export * from "./PurchaseOrderLineItemRequest"; export * from "./PurchaseOrderLineItemRequestCurrency"; export * from "./PurchaseOrderLineItemRequestItem"; +export * from "./PurchaseOrderLineItemsItem"; export * from "./PurchaseOrderPaymentTerm"; export * from "./PurchaseOrderRequest"; export * from "./PurchaseOrderRequestCompany"; export * from "./PurchaseOrderRequestCurrency"; export * from "./PurchaseOrderRequestDeliveryAddress"; +export * from "./PurchaseOrderRequestLineItemsItem"; export * from "./PurchaseOrderRequestPaymentTerm"; export * from "./PurchaseOrderRequestStatus"; export * from "./PurchaseOrderRequestTrackingCategoriesItem"; @@ -439,34 +485,66 @@ export * from "./PurchaseOrderStatus"; export * from "./PurchaseOrderStatusEnum"; export * from "./PurchaseOrderTrackingCategoriesItem"; export * from "./PurchaseOrderVendor"; +export * from "./RegenerateAccountToken"; export * from "./RemoteData"; export * from "./RemoteEndpointInfo"; export * from "./RemoteField"; export * from "./RemoteFieldApi"; +export * from "./RemoteFieldApiAdvancedMetadata"; export * from "./RemoteFieldApiCoverage"; export * from "./RemoteFieldApiResponse"; export * from "./RemoteFieldClass"; -export * from "./RemoteFieldRemoteFieldClass"; export * from "./RemoteFieldRequest"; -export * from "./RemoteFieldRequestRemoteFieldClass"; export * from "./RemoteKey"; export * from "./RemoteResponse"; +export * from "./RemoteResponseResponseType"; 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 "./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 "./SalesOrderRequestRequest"; +export * from "./SalesOrderRequestRequestCompany"; +export * from "./SalesOrderRequestRequestCurrency"; +export * from "./SalesOrderRequestRequestCustomer"; +export * from "./SalesOrderRequestRequestLinesItem"; +export * from "./SalesOrderRequestRequestPaymentTerm"; +export * from "./SalesOrderRequestRequestShippingAddress"; +export * from "./SalesOrderRequestRequestStatus"; +export * from "./SalesOrderRequestRequestTrackingCategoriesItem"; +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"; export * from "./TaxRate"; export * from "./TaxRateCompany"; export * from "./TaxRateStatus"; -export * from "./TaxRateTaxComponentsItem"; export * from "./TrackingCategory"; export * from "./TrackingCategoryCategoryType"; export * from "./TrackingCategoryCompany"; @@ -474,12 +552,14 @@ export * from "./TrackingCategoryStatus"; export * from "./Transaction"; export * from "./TransactionAccount"; export * from "./TransactionAccountingPeriod"; +export * from "./TransactionCompany"; export * from "./TransactionContact"; export * from "./TransactionCurrency"; export * from "./TransactionCurrencyEnum"; export * from "./TransactionLineItem"; export * from "./TransactionLineItemCurrency"; export * from "./TransactionLineItemItem"; +export * from "./TransactionLineItemsItem"; export * from "./TransactionTrackingCategoriesItem"; export * from "./Type2BbEnum"; export * from "./UnderlyingTransactionTypeEnum"; @@ -502,6 +582,7 @@ export * from "./VendorCreditLineRequest"; export * from "./VendorCreditLineRequestAccount"; export * from "./VendorCreditLineRequestContact"; export * from "./VendorCreditLineRequestProject"; +export * from "./VendorCreditLinesItem"; export * from "./VendorCreditRequest"; export * from "./VendorCreditRequestAccountingPeriod"; export * from "./VendorCreditRequestCompany"; 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/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/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/resources/candidates/client/requests/IgnoreCommonModelRequest.ts b/src/api/resources/ats/types/IgnoreCommonModelRequest.ts similarity index 57% rename from src/api/resources/ats/resources/candidates/client/requests/IgnoreCommonModelRequest.ts rename to src/api/resources/ats/types/IgnoreCommonModelRequest.ts index 545e610d1..9dfac706d 100644 --- a/src/api/resources/ats/resources/candidates/client/requests/IgnoreCommonModelRequest.ts +++ b/src/api/resources/ats/types/IgnoreCommonModelRequest.ts @@ -1,13 +1,7 @@ // This file was auto-generated by Fern from our API Definition. -import type * as Merge from "../../../../../../index"; +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/types/IgnoreCommonModelRequestReason.ts b/src/api/resources/ats/types/IgnoreCommonModelRequestReason.ts similarity index 73% rename from src/api/resources/ats/resources/candidates/types/IgnoreCommonModelRequestReason.ts rename to src/api/resources/ats/types/IgnoreCommonModelRequestReason.ts index 80eb9d0be..f0bbec653 100644 --- a/src/api/resources/ats/resources/candidates/types/IgnoreCommonModelRequestReason.ts +++ b/src/api/resources/ats/types/IgnoreCommonModelRequestReason.ts @@ -1,5 +1,5 @@ // This file was auto-generated by Fern from our API Definition. -import type * as Merge from "../../../../../index"; +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/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/RemoteFieldClassFieldFormat.ts b/src/api/resources/crm/types/RemoteResponseResponseType.ts similarity index 66% rename from src/api/resources/crm/types/RemoteFieldClassFieldFormat.ts rename to src/api/resources/crm/types/RemoteResponseResponseType.ts index 3f821dcdc..a75204556 100644 --- a/src/api/resources/crm/types/RemoteFieldClassFieldFormat.ts +++ b/src/api/resources/crm/types/RemoteResponseResponseType.ts @@ -2,4 +2,4 @@ import type * as Merge from "../../../index"; -export type RemoteFieldClassFieldFormat = Merge.crm.FieldFormatEnum | string; +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/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/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/resources/employees/client/requests/IgnoreCommonModelRequest.ts b/src/api/resources/hris/types/IgnoreCommonModelRequest.ts similarity index 57% rename from src/api/resources/hris/resources/employees/client/requests/IgnoreCommonModelRequest.ts rename to src/api/resources/hris/types/IgnoreCommonModelRequest.ts index e39d178bb..87a9c6069 100644 --- a/src/api/resources/hris/resources/employees/client/requests/IgnoreCommonModelRequest.ts +++ b/src/api/resources/hris/types/IgnoreCommonModelRequest.ts @@ -1,13 +1,7 @@ // This file was auto-generated by Fern from our API Definition. -import type * as Merge from "../../../../../../index"; +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/types/IgnoreCommonModelRequestReason.ts b/src/api/resources/hris/types/IgnoreCommonModelRequestReason.ts similarity index 73% rename from src/api/resources/hris/resources/employees/types/IgnoreCommonModelRequestReason.ts rename to src/api/resources/hris/types/IgnoreCommonModelRequestReason.ts index 5dd850bd3..8c2f367a1 100644 --- a/src/api/resources/hris/resources/employees/types/IgnoreCommonModelRequestReason.ts +++ b/src/api/resources/hris/types/IgnoreCommonModelRequestReason.ts @@ -1,5 +1,5 @@ // This file was auto-generated by Fern from our API Definition. -import type * as Merge from "../../../../../index"; +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/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/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/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/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..01ebd1a06 100644 --- a/src/serialization/resources/accounting/resources/contacts/types/index.ts +++ b/src/serialization/resources/accounting/resources/contacts/types/index.ts @@ -1,3 +1,3 @@ -export * from "./ContactsListRequestExpand"; +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/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..1d2f3e8aa 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 { ApplyCreditNoteRequest } from "./ApplyCreditNoteRequest"; export { CreditNoteEndpointRequest } from "./CreditNoteEndpointRequest"; +export { PatchedCreditNoteEndpointRequest } from "./PatchedCreditNoteEndpointRequest"; 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..a826d7419 100644 --- a/src/serialization/resources/accounting/resources/creditNotes/types/index.ts +++ b/src/serialization/resources/accounting/resources/creditNotes/types/index.ts @@ -1,6 +1,6 @@ -export * from "./CreditNotesListRequestExpand"; +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/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..afe0fd558 100644 --- a/src/serialization/resources/accounting/resources/expenseReports/types/index.ts +++ b/src/serialization/resources/accounting/resources/expenseReports/types/index.ts @@ -1,3 +1,3 @@ -export * from "./ExpenseReportsLinesListRequestExpand"; -export * from "./ExpenseReportsListRequestExpand"; -export * from "./ExpenseReportsRetrieveRequestExpand"; +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/index.ts b/src/serialization/resources/accounting/resources/expenses/client/requests/index.ts index bb1ef9330..7fd78ce30 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,2 @@ +export { ExpenseBulkRequest } from "./ExpenseBulkRequest"; export { ExpenseEndpointRequest } from "./ExpenseEndpointRequest"; 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..63a7d99e9 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,11 @@ 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()), + advancedMappingExpression: core.serialization.property( + "advanced_mapping_expression", + core.serialization.string().optional(), + ), }); export declare namespace CreateFieldMappingRequest { @@ -27,5 +32,7 @@ export declare namespace CreateFieldMappingRequest { remote_method: string; remote_url_path: string; common_model_name: string; + jmes_path?: string | null; + advanced_mapping_expression?: 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..72ca48bd1 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,11 @@ 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()), + advancedMappingExpression: core.serialization.property( + "advanced_mapping_expression", + core.serialization.string().optional(), + ), }); export declare namespace PatchedEditFieldMappingRequest { @@ -21,5 +26,7 @@ export declare namespace PatchedEditFieldMappingRequest { remote_field_traversal_path?: unknown[] | null; remote_method?: string | null; remote_url_path?: string | null; + jmes_path?: string | null; + advanced_mapping_expression?: 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/index.ts b/src/serialization/resources/accounting/resources/invoices/client/requests/index.ts index 71b7cdcff..42fd66fb2 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,3 @@ +export { InvoiceBulkRequest } from "./InvoiceBulkRequest"; export { InvoiceEndpointRequest } from "./InvoiceEndpointRequest"; 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/ItemFulfillmentEndpointRequest.ts b/src/serialization/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentEndpointRequest.ts new file mode 100644 index 000000000..76bd8bb0a --- /dev/null +++ b/src/serialization/resources/accounting/resources/itemFulfillments/client/requests/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 { ItemFulfillmentRequestRequest } from "../../../../types/ItemFulfillmentRequestRequest"; + +export const ItemFulfillmentEndpointRequest: core.serialization.Schema< + serializers.accounting.ItemFulfillmentEndpointRequest.Raw, + Omit +> = core.serialization.object({ + model: ItemFulfillmentRequestRequest, +}); + +export declare namespace ItemFulfillmentEndpointRequest { + export interface Raw { + model: ItemFulfillmentRequestRequest.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..ed4b91aef --- /dev/null +++ b/src/serialization/resources/accounting/resources/itemFulfillments/client/requests/index.ts @@ -0,0 +1,2 @@ +export { ItemFulfillmentBulkRequest } from "./ItemFulfillmentBulkRequest"; +export { ItemFulfillmentEndpointRequest } from "./ItemFulfillmentEndpointRequest"; 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/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..0abd34ea4 100644 --- a/src/serialization/resources/accounting/resources/items/types/index.ts +++ b/src/serialization/resources/accounting/resources/items/types/index.ts @@ -1,2 +1,2 @@ -export * from "./ItemsListRequestExpand"; -export * from "./ItemsRetrieveRequestExpand"; +export * from "./ItemsListRequestExpandItem"; +export * from "./ItemsRetrieveRequestExpandItem"; 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..e01457a2a 100644 --- a/src/serialization/resources/accounting/resources/journalEntries/types/index.ts +++ b/src/serialization/resources/accounting/resources/journalEntries/types/index.ts @@ -1,2 +1,2 @@ -export * from "./JournalEntriesListRequestExpand"; -export * from "./JournalEntriesRetrieveRequestExpand"; +export * from "./JournalEntriesListRequestExpandItem"; +export * from "./JournalEntriesRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/accounting/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/serialization/resources/accounting/resources/linkToken/client/requests/EndUserDetailsRequest.ts index e70cf9ec7..d7f0afd91 100644 --- a/src/serialization/resources/accounting/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/serialization/resources/accounting/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -6,6 +6,7 @@ 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< @@ -42,6 +43,12 @@ 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(), + ), + linkedDestinationId: core.serialization.property("linked_destination_id", core.serialization.string().optional()), + credentialId: core.serialization.property("credential_id", core.serialization.string().optional()), }); export declare namespace EndUserDetailsRequest { @@ -62,5 +69,8 @@ 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; + linked_destination_id?: string | null; + credential_id?: string | null; } } diff --git a/src/serialization/resources/hris/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts b/src/serialization/resources/accounting/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts similarity index 81% rename from src/serialization/resources/hris/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts rename to src/serialization/resources/accounting/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts index 47ba300af..170c3822c 100644 --- a/src/serialization/resources/hris/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts +++ b/src/serialization/resources/accounting/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts @@ -6,8 +6,8 @@ import type * as serializers from "../../../../../index"; import { CompletedAccountInitialScreenEnum } from "../../../types/CompletedAccountInitialScreenEnum"; export const EndUserDetailsRequestCompletedAccountInitialScreen: core.serialization.Schema< - serializers.hris.EndUserDetailsRequestCompletedAccountInitialScreen.Raw, - Merge.hris.EndUserDetailsRequestCompletedAccountInitialScreen + serializers.accounting.EndUserDetailsRequestCompletedAccountInitialScreen.Raw, + Merge.accounting.EndUserDetailsRequestCompletedAccountInitialScreen > = core.serialization.undiscriminatedUnion([CompletedAccountInitialScreenEnum, core.serialization.string()]); export declare namespace EndUserDetailsRequestCompletedAccountInitialScreen { diff --git a/src/serialization/resources/accounting/resources/linkToken/types/index.ts b/src/serialization/resources/accounting/resources/linkToken/types/index.ts index c90e13c37..7aed25cb1 100644 --- a/src/serialization/resources/accounting/resources/linkToken/types/index.ts +++ b/src/serialization/resources/accounting/resources/linkToken/types/index.ts @@ -1 +1,2 @@ +export * from "./EndUserDetailsRequestCompletedAccountInitialScreen"; export * from "./EndUserDetailsRequestLanguage"; diff --git a/src/serialization/resources/accounting/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts b/src/serialization/resources/accounting/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts index eaf531f8b..a8186ace1 100644 --- a/src/serialization/resources/accounting/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts +++ b/src/serialization/resources/accounting/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts @@ -7,8 +7,31 @@ import type * as serializers from "../../../../../index"; export const LinkedAccountsListRequestCategory: core.serialization.Schema< serializers.accounting.LinkedAccountsListRequestCategory.Raw, Merge.accounting.LinkedAccountsListRequestCategory -> = core.serialization.enum_(["accounting", "ats", "crm", "filestorage", "hris", "mktg", "ticketing"]); +> = core.serialization.enum_([ + "accounting", + "ats", + "chat", + "communication", + "crm", + "datawarehouse", + "filestorage", + "hris", + "knowledgebase", + "mktg", + "ticketing", +]); export declare namespace LinkedAccountsListRequestCategory { - export type Raw = "accounting" | "ats" | "crm" | "filestorage" | "hris" | "mktg" | "ticketing"; + export type Raw = + | "accounting" + | "ats" + | "chat" + | "communication" + | "crm" + | "datawarehouse" + | "filestorage" + | "hris" + | "knowledgebase" + | "mktg" + | "ticketing"; } 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..3db8a923d 100644 --- a/src/serialization/resources/accounting/resources/payments/types/index.ts +++ b/src/serialization/resources/accounting/resources/payments/types/index.ts @@ -1,2 +1,2 @@ -export * from "./PaymentsListRequestExpand"; -export * from "./PaymentsRetrieveRequestExpand"; +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/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..75264d2f3 100644 --- a/src/serialization/resources/accounting/resources/purchaseOrders/types/index.ts +++ b/src/serialization/resources/accounting/resources/purchaseOrders/types/index.ts @@ -1,2 +1,2 @@ -export * from "./PurchaseOrdersListRequestExpand"; -export * from "./PurchaseOrdersRetrieveRequestExpand"; +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/SalesOrderEndpointRequest.ts b/src/serialization/resources/accounting/resources/salesOrders/client/requests/SalesOrderEndpointRequest.ts new file mode 100644 index 000000000..3fb882609 --- /dev/null +++ b/src/serialization/resources/accounting/resources/salesOrders/client/requests/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 { SalesOrderRequestRequest } from "../../../../types/SalesOrderRequestRequest"; + +export const SalesOrderEndpointRequest: core.serialization.Schema< + serializers.accounting.SalesOrderEndpointRequest.Raw, + Omit +> = core.serialization.object({ + model: SalesOrderRequestRequest, +}); + +export declare namespace SalesOrderEndpointRequest { + export interface Raw { + model: SalesOrderRequestRequest.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..d367a0169 --- /dev/null +++ b/src/serialization/resources/accounting/resources/salesOrders/client/requests/index.ts @@ -0,0 +1,2 @@ +export { SalesOrderBulkRequest } from "./SalesOrderBulkRequest"; +export { SalesOrderEndpointRequest } from "./SalesOrderEndpointRequest"; 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/index.ts b/src/serialization/resources/accounting/resources/vendorCredits/client/requests/index.ts index be42ee1ac..6c26b3914 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 { ApplyVendorCreditRequest } from "./ApplyVendorCreditRequest"; +export { PatchedVendorCreditEndpointRequest } from "./PatchedVendorCreditEndpointRequest"; export { VendorCreditEndpointRequest } from "./VendorCreditEndpointRequest"; 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..3ac6b265f 100644 --- a/src/serialization/resources/accounting/resources/vendorCredits/types/index.ts +++ b/src/serialization/resources/accounting/resources/vendorCredits/types/index.ts @@ -1,2 +1,2 @@ -export * from "./VendorCreditsListRequestExpand"; -export * from "./VendorCreditsRetrieveRequestExpand"; +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/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/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/BankFeedAccount.ts b/src/serialization/resources/accounting/types/BankFeedAccount.ts index 1225f3068..dcf53cb4f 100644 --- a/src/serialization/resources/accounting/types/BankFeedAccount.ts +++ b/src/serialization/resources/accounting/types/BankFeedAccount.ts @@ -6,6 +6,7 @@ import type * as serializers from "../../../index"; import { BankFeedAccountAccountType } from "./BankFeedAccountAccountType"; import { BankFeedAccountCurrency } from "./BankFeedAccountCurrency"; import { BankFeedAccountFeedStatus } from "./BankFeedAccountFeedStatus"; +import { RemoteData } from "./RemoteData"; export const BankFeedAccount: core.serialization.ObjectSchema< serializers.accounting.BankFeedAccount.Raw, @@ -30,12 +31,7 @@ export const BankFeedAccount: core.serialization.ObjectSchema< "field_mappings", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), ), - remoteData: core.serialization.property( - "remote_data", - core.serialization - .list(core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()) - .optional(), - ), + remoteData: core.serialization.property("remote_data", core.serialization.list(RemoteData).optional()), }); export declare namespace BankFeedAccount { @@ -56,6 +52,6 @@ export declare namespace BankFeedAccount { account_type?: BankFeedAccountAccountType.Raw | null; remote_was_deleted?: boolean | null; field_mappings?: Record | null; - remote_data?: (Record | null | undefined)[] | null; + remote_data?: RemoteData.Raw[] | null; } } diff --git a/src/serialization/resources/accounting/types/CategoriesEnum.ts b/src/serialization/resources/accounting/types/CategoriesEnum.ts index c41907a72..61828bf5c 100644 --- a/src/serialization/resources/accounting/types/CategoriesEnum.ts +++ b/src/serialization/resources/accounting/types/CategoriesEnum.ts @@ -7,8 +7,8 @@ import type * as serializers from "../../../index"; export const CategoriesEnum: core.serialization.Schema< serializers.accounting.CategoriesEnum.Raw, Merge.accounting.CategoriesEnum -> = core.serialization.enum_(["hris", "ats", "accounting", "ticketing", "crm", "mktg", "filestorage"]); +> = core.serialization.enum_(["hris", "ats", "accounting", "ticketing", "crm", "mktg", "filestorage", "knowledgebase"]); export declare namespace CategoriesEnum { - export type Raw = "hris" | "ats" | "accounting" | "ticketing" | "crm" | "mktg" | "filestorage"; + export type Raw = "hris" | "ats" | "accounting" | "ticketing" | "crm" | "mktg" | "filestorage" | "knowledgebase"; } diff --git a/src/serialization/resources/accounting/types/CategoryEnum.ts b/src/serialization/resources/accounting/types/CategoryEnum.ts index ef053bdc9..01720a787 100644 --- a/src/serialization/resources/accounting/types/CategoryEnum.ts +++ b/src/serialization/resources/accounting/types/CategoryEnum.ts @@ -7,8 +7,8 @@ import type * as serializers from "../../../index"; export const CategoryEnum: core.serialization.Schema< serializers.accounting.CategoryEnum.Raw, Merge.accounting.CategoryEnum -> = core.serialization.enum_(["hris", "ats", "accounting", "ticketing", "crm", "mktg", "filestorage"]); +> = core.serialization.enum_(["hris", "ats", "accounting", "ticketing", "crm", "mktg", "filestorage", "knowledgebase"]); export declare namespace CategoryEnum { - export type Raw = "hris" | "ats" | "accounting" | "ticketing" | "crm" | "mktg" | "filestorage"; + export type Raw = "hris" | "ats" | "accounting" | "ticketing" | "crm" | "mktg" | "filestorage" | "knowledgebase"; } diff --git a/src/serialization/resources/accounting/types/CompanyInfo.ts b/src/serialization/resources/accounting/types/CompanyInfo.ts index 113d175b9..48cac8c90 100644 --- a/src/serialization/resources/accounting/types/CompanyInfo.ts +++ b/src/serialization/resources/accounting/types/CompanyInfo.ts @@ -3,9 +3,9 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; -import { AccountingPhoneNumber } from "./AccountingPhoneNumber"; -import { Address } from "./Address"; +import { CompanyInfoAddressesItem } from "./CompanyInfoAddressesItem"; import { CompanyInfoCurrency } from "./CompanyInfoCurrency"; +import { CompanyInfoPhoneNumbersItem } from "./CompanyInfoPhoneNumbersItem"; import { RemoteData } from "./RemoteData"; export const CompanyInfo: core.serialization.ObjectSchema< @@ -24,10 +24,10 @@ export const CompanyInfo: core.serialization.ObjectSchema< currency: CompanyInfoCurrency.optional(), remoteCreatedAt: core.serialization.property("remote_created_at", core.serialization.date().optional()), urls: core.serialization.list(core.serialization.string().optional()).optional(), - addresses: core.serialization.list(Address).optional(), + addresses: core.serialization.list(CompanyInfoAddressesItem).optional(), phoneNumbers: core.serialization.property( "phone_numbers", - core.serialization.list(AccountingPhoneNumber).optional(), + core.serialization.list(CompanyInfoPhoneNumbersItem).optional(), ), remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), fieldMappings: core.serialization.property( @@ -51,8 +51,8 @@ export declare namespace CompanyInfo { currency?: CompanyInfoCurrency.Raw | null; remote_created_at?: string | null; urls?: (string | null | undefined)[] | null; - addresses?: Address.Raw[] | null; - phone_numbers?: AccountingPhoneNumber.Raw[] | null; + addresses?: CompanyInfoAddressesItem.Raw[] | null; + phone_numbers?: CompanyInfoPhoneNumbersItem.Raw[] | null; remote_was_deleted?: boolean | null; field_mappings?: Record | null; remote_data?: RemoteData.Raw[] | null; diff --git a/src/serialization/resources/accounting/types/PatchedContactRequestAddressesItem.ts b/src/serialization/resources/accounting/types/CompanyInfoAddressesItem.ts similarity index 59% rename from src/serialization/resources/accounting/types/PatchedContactRequestAddressesItem.ts rename to src/serialization/resources/accounting/types/CompanyInfoAddressesItem.ts index d3f4d429e..99fe2a333 100644 --- a/src/serialization/resources/accounting/types/PatchedContactRequestAddressesItem.ts +++ b/src/serialization/resources/accounting/types/CompanyInfoAddressesItem.ts @@ -5,11 +5,11 @@ 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 +export const CompanyInfoAddressesItem: core.serialization.Schema< + serializers.accounting.CompanyInfoAddressesItem.Raw, + Merge.accounting.CompanyInfoAddressesItem > = core.serialization.undiscriminatedUnion([core.serialization.string(), Address]); -export declare namespace PatchedContactRequestAddressesItem { +export declare namespace CompanyInfoAddressesItem { export type Raw = string | Address.Raw; } diff --git a/src/serialization/resources/accounting/types/CompanyInfoPhoneNumbersItem.ts b/src/serialization/resources/accounting/types/CompanyInfoPhoneNumbersItem.ts new file mode 100644 index 000000000..1706a04c8 --- /dev/null +++ b/src/serialization/resources/accounting/types/CompanyInfoPhoneNumbersItem.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 { AccountingPhoneNumber } from "./AccountingPhoneNumber"; + +export const CompanyInfoPhoneNumbersItem: core.serialization.Schema< + serializers.accounting.CompanyInfoPhoneNumbersItem.Raw, + Merge.accounting.CompanyInfoPhoneNumbersItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), AccountingPhoneNumber]); + +export declare namespace CompanyInfoPhoneNumbersItem { + export type Raw = string | AccountingPhoneNumber.Raw; +} diff --git a/src/serialization/resources/ticketing/types/CompletedAccountInitialScreenEnum.ts b/src/serialization/resources/accounting/types/CompletedAccountInitialScreenEnum.ts similarity index 78% rename from src/serialization/resources/ticketing/types/CompletedAccountInitialScreenEnum.ts rename to src/serialization/resources/accounting/types/CompletedAccountInitialScreenEnum.ts index 026241e70..711b46d6a 100644 --- a/src/serialization/resources/ticketing/types/CompletedAccountInitialScreenEnum.ts +++ b/src/serialization/resources/accounting/types/CompletedAccountInitialScreenEnum.ts @@ -5,8 +5,8 @@ import * as core from "../../../../core"; import type * as serializers from "../../../index"; export const CompletedAccountInitialScreenEnum: core.serialization.Schema< - serializers.ticketing.CompletedAccountInitialScreenEnum.Raw, - Merge.ticketing.CompletedAccountInitialScreenEnum + serializers.accounting.CompletedAccountInitialScreenEnum.Raw, + Merge.accounting.CompletedAccountInitialScreenEnum > = core.serialization.stringLiteral("SELECTIVE_SYNC"); export declare namespace CompletedAccountInitialScreenEnum { diff --git a/src/serialization/resources/accounting/types/Contact.ts b/src/serialization/resources/accounting/types/Contact.ts index a877e7ef0..96e6d71f6 100644 --- a/src/serialization/resources/accounting/types/Contact.ts +++ b/src/serialization/resources/accounting/types/Contact.ts @@ -3,8 +3,9 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; -import { AccountingPhoneNumber } from "./AccountingPhoneNumber"; import { ContactAddressesItem } from "./ContactAddressesItem"; +import { ContactCompany } from "./ContactCompany"; +import { ContactPhoneNumbersItem } from "./ContactPhoneNumbersItem"; import { ContactStatus } from "./ContactStatus"; import { RemoteData } from "./RemoteData"; import { RemoteField } from "./RemoteField"; @@ -23,11 +24,11 @@ export const Contact: core.serialization.ObjectSchema | null; remote_data?: RemoteData.Raw[] | null; diff --git a/src/serialization/resources/accounting/types/ContactCompany.ts b/src/serialization/resources/accounting/types/ContactCompany.ts new file mode 100644 index 000000000..c996181ac --- /dev/null +++ b/src/serialization/resources/accounting/types/ContactCompany.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 ContactCompany: core.serialization.Schema< + serializers.accounting.ContactCompany.Raw, + Merge.accounting.ContactCompany +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); + +export declare namespace ContactCompany { + export type Raw = string | CompanyInfo.Raw; +} diff --git a/src/serialization/resources/accounting/types/ContactPhoneNumbersItem.ts b/src/serialization/resources/accounting/types/ContactPhoneNumbersItem.ts new file mode 100644 index 000000000..ec4f7f27b --- /dev/null +++ b/src/serialization/resources/accounting/types/ContactPhoneNumbersItem.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 { AccountingPhoneNumber } from "./AccountingPhoneNumber"; + +export const ContactPhoneNumbersItem: core.serialization.Schema< + serializers.accounting.ContactPhoneNumbersItem.Raw, + Merge.accounting.ContactPhoneNumbersItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), AccountingPhoneNumber]); + +export declare namespace ContactPhoneNumbersItem { + export type Raw = string | AccountingPhoneNumber.Raw; +} diff --git a/src/serialization/resources/accounting/types/ContactRequest.ts b/src/serialization/resources/accounting/types/ContactRequest.ts index c907d3c9a..1c26f632c 100644 --- a/src/serialization/resources/accounting/types/ContactRequest.ts +++ b/src/serialization/resources/accounting/types/ContactRequest.ts @@ -3,8 +3,9 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; -import { AccountingPhoneNumberRequest } from "./AccountingPhoneNumberRequest"; import { ContactRequestAddressesItem } from "./ContactRequestAddressesItem"; +import { ContactRequestCompany } from "./ContactRequestCompany"; +import { ContactRequestPhoneNumbersItem } from "./ContactRequestPhoneNumbersItem"; import { ContactRequestStatus } from "./ContactRequestStatus"; import { RemoteFieldRequest } from "./RemoteFieldRequest"; @@ -19,11 +20,11 @@ export const ContactRequest: core.serialization.ObjectSchema< taxNumber: core.serialization.property("tax_number", core.serialization.string().optional()), status: ContactRequestStatus.optional(), currency: core.serialization.string().optional(), - company: core.serialization.string().optional(), - addresses: core.serialization.list(ContactRequestAddressesItem.optional()).optional(), + company: ContactRequestCompany.optional(), + addresses: core.serialization.list(ContactRequestAddressesItem).optional(), phoneNumbers: core.serialization.property( "phone_numbers", - core.serialization.list(AccountingPhoneNumberRequest).optional(), + core.serialization.list(ContactRequestPhoneNumbersItem).optional(), ), integrationParams: core.serialization.property( "integration_params", @@ -45,9 +46,9 @@ export declare namespace ContactRequest { tax_number?: string | null; status?: ContactRequestStatus.Raw | null; currency?: string | null; - company?: string | null; - addresses?: (ContactRequestAddressesItem.Raw | null | undefined)[] | null; - phone_numbers?: AccountingPhoneNumberRequest.Raw[] | null; + company?: ContactRequestCompany.Raw | null; + addresses?: ContactRequestAddressesItem.Raw[] | null; + phone_numbers?: ContactRequestPhoneNumbersItem.Raw[] | null; integration_params?: Record | null; linked_account_params?: Record | null; remote_fields?: RemoteFieldRequest.Raw[] | null; diff --git a/src/serialization/resources/accounting/types/ContactRequestCompany.ts b/src/serialization/resources/accounting/types/ContactRequestCompany.ts new file mode 100644 index 000000000..f3d76cebd --- /dev/null +++ b/src/serialization/resources/accounting/types/ContactRequestCompany.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 ContactRequestCompany: core.serialization.Schema< + serializers.accounting.ContactRequestCompany.Raw, + Merge.accounting.ContactRequestCompany +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); + +export declare namespace ContactRequestCompany { + export type Raw = string | CompanyInfo.Raw; +} diff --git a/src/serialization/resources/accounting/types/ContactRequestPhoneNumbersItem.ts b/src/serialization/resources/accounting/types/ContactRequestPhoneNumbersItem.ts new file mode 100644 index 000000000..2572bdb37 --- /dev/null +++ b/src/serialization/resources/accounting/types/ContactRequestPhoneNumbersItem.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 { AccountingPhoneNumber } from "./AccountingPhoneNumber"; + +export const ContactRequestPhoneNumbersItem: core.serialization.Schema< + serializers.accounting.ContactRequestPhoneNumbersItem.Raw, + Merge.accounting.ContactRequestPhoneNumbersItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), AccountingPhoneNumber]); + +export declare namespace ContactRequestPhoneNumbersItem { + export type Raw = string | AccountingPhoneNumber.Raw; +} diff --git a/src/serialization/resources/accounting/types/CreditNote.ts b/src/serialization/resources/accounting/types/CreditNote.ts index d0d7c699f..f0811bc92 100644 --- a/src/serialization/resources/accounting/types/CreditNote.ts +++ b/src/serialization/resources/accounting/types/CreditNote.ts @@ -8,7 +8,7 @@ import { CreditNoteAppliedPaymentsItem } from "./CreditNoteAppliedPaymentsItem"; import { CreditNoteCompany } from "./CreditNoteCompany"; import { CreditNoteContact } from "./CreditNoteContact"; import { CreditNoteCurrency } from "./CreditNoteCurrency"; -import { CreditNoteLineItem } from "./CreditNoteLineItem"; +import { CreditNoteLineItemsItem } from "./CreditNoteLineItemsItem"; import { CreditNotePaymentsItem } from "./CreditNotePaymentsItem"; import { CreditNoteStatus } from "./CreditNoteStatus"; import { CreditNoteTrackingCategoriesItem } from "./CreditNoteTrackingCategoriesItem"; @@ -31,7 +31,7 @@ export const CreditNote: core.serialization.ObjectSchema< totalAmount: core.serialization.property("total_amount", core.serialization.number().optional()), remainingCredit: core.serialization.property("remaining_credit", core.serialization.number().optional()), inclusiveOfTax: core.serialization.property("inclusive_of_tax", core.serialization.boolean().optional()), - lineItems: core.serialization.property("line_items", core.serialization.list(CreditNoteLineItem).optional()), + lineItems: core.serialization.property("line_items", core.serialization.list(CreditNoteLineItemsItem).optional()), trackingCategories: core.serialization.property( "tracking_categories", core.serialization.list(CreditNoteTrackingCategoriesItem.optional()).optional(), @@ -74,7 +74,7 @@ export declare namespace CreditNote { total_amount?: number | null; remaining_credit?: number | null; inclusive_of_tax?: boolean | null; - line_items?: CreditNoteLineItem.Raw[] | null; + line_items?: CreditNoteLineItemsItem.Raw[] | null; tracking_categories?: (CreditNoteTrackingCategoriesItem.Raw | null | undefined)[] | null; currency?: CreditNoteCurrency.Raw | null; remote_created_at?: string | null; 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/CreditNoteLineItemsItem.ts b/src/serialization/resources/accounting/types/CreditNoteLineItemsItem.ts new file mode 100644 index 000000000..412fc4176 --- /dev/null +++ b/src/serialization/resources/accounting/types/CreditNoteLineItemsItem.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 { CreditNoteLineItem } from "./CreditNoteLineItem"; + +export const CreditNoteLineItemsItem: core.serialization.Schema< + serializers.accounting.CreditNoteLineItemsItem.Raw, + Merge.accounting.CreditNoteLineItemsItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CreditNoteLineItem]); + +export declare namespace CreditNoteLineItemsItem { + export type Raw = string | CreditNoteLineItem.Raw; +} diff --git a/src/serialization/resources/accounting/types/CreditNoteRequestLineItemsItem.ts b/src/serialization/resources/accounting/types/CreditNoteRequestLineItemsItem.ts index 384b163d5..d6afd6a22 100644 --- a/src/serialization/resources/accounting/types/CreditNoteRequestLineItemsItem.ts +++ b/src/serialization/resources/accounting/types/CreditNoteRequestLineItemsItem.ts @@ -3,13 +3,13 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; -import { CreditNoteLineItemRequest } from "./CreditNoteLineItemRequest"; +import { CreditNoteLineItem } from "./CreditNoteLineItem"; export const CreditNoteRequestLineItemsItem: core.serialization.Schema< serializers.accounting.CreditNoteRequestLineItemsItem.Raw, Merge.accounting.CreditNoteRequestLineItemsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CreditNoteLineItemRequest]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CreditNoteLineItem]); export declare namespace CreditNoteRequestLineItemsItem { - export type Raw = string | CreditNoteLineItemRequest.Raw; + export type Raw = string | CreditNoteLineItem.Raw; } diff --git a/src/serialization/resources/accounting/types/DataPassthroughRequest.ts b/src/serialization/resources/accounting/types/DataPassthroughRequest.ts index f7b6734c9..6acb4d9ff 100644 --- a/src/serialization/resources/accounting/types/DataPassthroughRequest.ts +++ b/src/serialization/resources/accounting/types/DataPassthroughRequest.ts @@ -4,8 +4,8 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; import { DataPassthroughRequestMethod } from "./DataPassthroughRequestMethod"; +import { DataPassthroughRequestRequestFormat } from "./DataPassthroughRequestRequestFormat"; import { MultipartFormFieldRequest } from "./MultipartFormFieldRequest"; -import { RequestFormatEnum } from "./RequestFormatEnum"; export const DataPassthroughRequest: core.serialization.ObjectSchema< serializers.accounting.DataPassthroughRequest.Raw, @@ -20,7 +20,7 @@ export const DataPassthroughRequest: core.serialization.ObjectSchema< core.serialization.list(MultipartFormFieldRequest).optional(), ), headers: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - requestFormat: core.serialization.property("request_format", RequestFormatEnum.optional()), + requestFormat: core.serialization.property("request_format", DataPassthroughRequestRequestFormat.optional()), normalizeResponse: core.serialization.property("normalize_response", core.serialization.boolean().optional()), }); @@ -32,7 +32,7 @@ export declare namespace DataPassthroughRequest { data?: string | null; multipart_form_data?: MultipartFormFieldRequest.Raw[] | null; headers?: Record | null; - request_format?: RequestFormatEnum.Raw | null; + request_format?: DataPassthroughRequestRequestFormat.Raw | null; normalize_response?: boolean | null; } } diff --git a/src/serialization/resources/accounting/types/DataPassthroughRequestRequestFormat.ts b/src/serialization/resources/accounting/types/DataPassthroughRequestRequestFormat.ts new file mode 100644 index 000000000..66a5758c7 --- /dev/null +++ b/src/serialization/resources/accounting/types/DataPassthroughRequestRequestFormat.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 { RequestFormatEnum } from "./RequestFormatEnum"; + +export const DataPassthroughRequestRequestFormat: core.serialization.Schema< + serializers.accounting.DataPassthroughRequestRequestFormat.Raw, + Merge.accounting.DataPassthroughRequestRequestFormat +> = core.serialization.undiscriminatedUnion([RequestFormatEnum, core.serialization.string()]); + +export declare namespace DataPassthroughRequestRequestFormat { + export type Raw = RequestFormatEnum.Raw | string; +} diff --git a/src/serialization/resources/accounting/types/ErrorValidationProblem.ts b/src/serialization/resources/accounting/types/ErrorValidationProblem.ts index bfaef8d71..c9b8c0f28 100644 --- a/src/serialization/resources/accounting/types/ErrorValidationProblem.ts +++ b/src/serialization/resources/accounting/types/ErrorValidationProblem.ts @@ -13,6 +13,7 @@ export const ErrorValidationProblem: core.serialization.ObjectSchema< title: core.serialization.string(), detail: core.serialization.string(), problemType: core.serialization.property("problem_type", core.serialization.string()), + blockMergeLink: core.serialization.property("block_merge_link", core.serialization.boolean().optional()), }); export declare namespace ErrorValidationProblem { @@ -21,5 +22,6 @@ export declare namespace ErrorValidationProblem { title: string; detail: string; problem_type: string; + block_merge_link?: boolean | null; } } diff --git a/src/serialization/resources/accounting/types/ExpenseBatchItemRequest.ts b/src/serialization/resources/accounting/types/ExpenseBatchItemRequest.ts new file mode 100644 index 000000000..3d2182cce --- /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 { ExpenseRequest } from "./ExpenseRequest"; + +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: ExpenseRequest, +}); + +export declare namespace ExpenseBatchItemRequest { + export interface Raw { + item_id: string; + payload: 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/PatchedPaymentRequestAccountingPeriod.ts b/src/serialization/resources/accounting/types/ExpenseReportAccountingPeriod.ts similarity index 60% rename from src/serialization/resources/accounting/types/PatchedPaymentRequestAccountingPeriod.ts rename to src/serialization/resources/accounting/types/ExpenseReportAccountingPeriod.ts index d775376df..bf1801b3c 100644 --- a/src/serialization/resources/accounting/types/PatchedPaymentRequestAccountingPeriod.ts +++ b/src/serialization/resources/accounting/types/ExpenseReportAccountingPeriod.ts @@ -5,11 +5,11 @@ import * as core from "../../../../core"; import type * as serializers from "../../../index"; import { AccountingPeriod } from "./AccountingPeriod"; -export const PatchedPaymentRequestAccountingPeriod: core.serialization.Schema< - serializers.accounting.PatchedPaymentRequestAccountingPeriod.Raw, - Merge.accounting.PatchedPaymentRequestAccountingPeriod +export const ExpenseReportAccountingPeriod: core.serialization.Schema< + serializers.accounting.ExpenseReportAccountingPeriod.Raw, + Merge.accounting.ExpenseReportAccountingPeriod > = core.serialization.undiscriminatedUnion([core.serialization.string(), AccountingPeriod]); -export declare namespace PatchedPaymentRequestAccountingPeriod { +export declare namespace ExpenseReportAccountingPeriod { export type Raw = string | AccountingPeriod.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/InvoiceLineItemEmployee.ts b/src/serialization/resources/accounting/types/ExpenseReportEmployee.ts similarity index 64% rename from src/serialization/resources/accounting/types/InvoiceLineItemEmployee.ts rename to src/serialization/resources/accounting/types/ExpenseReportEmployee.ts index 26c5f91ad..8f239b729 100644 --- a/src/serialization/resources/accounting/types/InvoiceLineItemEmployee.ts +++ b/src/serialization/resources/accounting/types/ExpenseReportEmployee.ts @@ -5,11 +5,11 @@ import * as core from "../../../../core"; import type * as serializers from "../../../index"; import { Employee } from "./Employee"; -export const InvoiceLineItemEmployee: core.serialization.Schema< - serializers.accounting.InvoiceLineItemEmployee.Raw, - Merge.accounting.InvoiceLineItemEmployee +export const ExpenseReportEmployee: core.serialization.Schema< + serializers.accounting.ExpenseReportEmployee.Raw, + Merge.accounting.ExpenseReportEmployee > = core.serialization.undiscriminatedUnion([core.serialization.string(), Employee]); -export declare namespace InvoiceLineItemEmployee { +export declare namespace ExpenseReportEmployee { export type Raw = string | Employee.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..1855ccd11 100644 --- a/src/serialization/resources/accounting/types/FieldMappingApiInstance.ts +++ b/src/serialization/resources/accounting/types/FieldMappingApiInstance.ts @@ -14,6 +14,11 @@ 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()), + advancedMappingExpression: core.serialization.property( + "advanced_mapping_expression", + core.serialization.string().optional(), + ), }); export declare namespace FieldMappingApiInstance { @@ -22,5 +27,7 @@ export declare namespace FieldMappingApiInstance { is_integration_wide?: boolean | null; target_field?: FieldMappingApiInstanceTargetField.Raw | null; remote_field?: FieldMappingApiInstanceRemoteField.Raw | null; + jmes_path?: string | null; + advanced_mapping_expression?: 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/GeneralLedgerTransactionLine.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLine.ts index e9c9eedc6..84684feb1 100644 --- a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLine.ts +++ b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLine.ts @@ -10,8 +10,8 @@ import { GeneralLedgerTransactionLineContact } from "./GeneralLedgerTransactionL import { GeneralLedgerTransactionLineEmployee } from "./GeneralLedgerTransactionLineEmployee"; import { GeneralLedgerTransactionLineItem } from "./GeneralLedgerTransactionLineItem"; import { GeneralLedgerTransactionLineProject } from "./GeneralLedgerTransactionLineProject"; -import { GeneralLedgerTransactionLineTrackingCategoriesItem } from "./GeneralLedgerTransactionLineTrackingCategoriesItem"; import { GeneralLedgerTransactionLineTransactionCurrency } from "./GeneralLedgerTransactionLineTransactionCurrency"; +import { TrackingCategory } from "./TrackingCategory"; export const GeneralLedgerTransactionLine: core.serialization.ObjectSchema< serializers.accounting.GeneralLedgerTransactionLine.Raw, @@ -35,7 +35,7 @@ export const GeneralLedgerTransactionLine: core.serialization.ObjectSchema< description: core.serialization.string().optional(), trackingCategories: core.serialization.property( "tracking_categories", - core.serialization.list(GeneralLedgerTransactionLineTrackingCategoriesItem).optional(), + core.serialization.list(TrackingCategory).optional(), ), debitAmount: core.serialization.property("debit_amount", core.serialization.string()), creditAmount: core.serialization.property("credit_amount", core.serialization.string()), @@ -64,7 +64,7 @@ export declare namespace GeneralLedgerTransactionLine { transaction_currency?: GeneralLedgerTransactionLineTransactionCurrency.Raw | null; exchange_rate?: string | null; description?: string | null; - tracking_categories?: GeneralLedgerTransactionLineTrackingCategoriesItem.Raw[] | null; + tracking_categories?: TrackingCategory.Raw[] | null; debit_amount: string; credit_amount: string; item?: GeneralLedgerTransactionLineItem.Raw | null; diff --git a/src/serialization/resources/accounting/types/Invoice.ts b/src/serialization/resources/accounting/types/Invoice.ts index 9a9405c23..701c68602 100644 --- a/src/serialization/resources/accounting/types/Invoice.ts +++ b/src/serialization/resources/accounting/types/Invoice.ts @@ -9,10 +9,11 @@ import { InvoiceCompany } from "./InvoiceCompany"; import { InvoiceContact } from "./InvoiceContact"; import { InvoiceCurrency } from "./InvoiceCurrency"; import { InvoiceEmployee } from "./InvoiceEmployee"; -import { InvoiceLineItem } from "./InvoiceLineItem"; +import { InvoiceLineItemsItem } from "./InvoiceLineItemsItem"; 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,12 +54,16 @@ export const Invoice: core.serialization.ObjectSchema = core.serialization.object({ + itemId: core.serialization.property("item_id", core.serialization.string()), + payload: InvoiceRequest, +}); + +export declare namespace InvoiceBatchItemRequest { + export interface Raw { + item_id: string; + payload: InvoiceRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/InvoiceLineItem.ts b/src/serialization/resources/accounting/types/InvoiceLineItem.ts index 884b7f3da..d4314789a 100644 --- a/src/serialization/resources/accounting/types/InvoiceLineItem.ts +++ b/src/serialization/resources/accounting/types/InvoiceLineItem.ts @@ -6,7 +6,6 @@ import type * as serializers from "../../../index"; import { InvoiceLineItemAccount } from "./InvoiceLineItemAccount"; import { InvoiceLineItemContact } from "./InvoiceLineItemContact"; import { InvoiceLineItemCurrency } from "./InvoiceLineItemCurrency"; -import { InvoiceLineItemEmployee } from "./InvoiceLineItemEmployee"; import { InvoiceLineItemItem } from "./InvoiceLineItemItem"; import { InvoiceLineItemProject } from "./InvoiceLineItemProject"; import { InvoiceLineItemTrackingCategoriesItem } from "./InvoiceLineItemTrackingCategoriesItem"; @@ -25,7 +24,7 @@ export const InvoiceLineItem: core.serialization.ObjectSchema< unitPrice: core.serialization.property("unit_price", core.serialization.number().optional()), quantity: core.serialization.number().optional(), totalAmount: core.serialization.property("total_amount", core.serialization.number().optional()), - employee: InvoiceLineItemEmployee.optional(), + employee: core.serialization.string().optional(), project: InvoiceLineItemProject.optional(), contact: InvoiceLineItemContact.optional(), currency: InvoiceLineItemCurrency.optional(), @@ -57,7 +56,7 @@ export declare namespace InvoiceLineItem { unit_price?: number | null; quantity?: number | null; total_amount?: number | null; - employee?: InvoiceLineItemEmployee.Raw | null; + employee?: string | null; project?: InvoiceLineItemProject.Raw | null; contact?: InvoiceLineItemContact.Raw | null; currency?: InvoiceLineItemCurrency.Raw | null; diff --git a/src/serialization/resources/accounting/types/InvoiceLineItemRequest.ts b/src/serialization/resources/accounting/types/InvoiceLineItemRequest.ts index 86006d8e5..eb99c7994 100644 --- a/src/serialization/resources/accounting/types/InvoiceLineItemRequest.ts +++ b/src/serialization/resources/accounting/types/InvoiceLineItemRequest.ts @@ -6,7 +6,6 @@ import type * as serializers from "../../../index"; import { InvoiceLineItemRequestAccount } from "./InvoiceLineItemRequestAccount"; import { InvoiceLineItemRequestContact } from "./InvoiceLineItemRequestContact"; import { InvoiceLineItemRequestCurrency } from "./InvoiceLineItemRequestCurrency"; -import { InvoiceLineItemRequestEmployee } from "./InvoiceLineItemRequestEmployee"; import { InvoiceLineItemRequestItem } from "./InvoiceLineItemRequestItem"; import { InvoiceLineItemRequestProject } from "./InvoiceLineItemRequestProject"; import { InvoiceLineItemRequestTrackingCategoriesItem } from "./InvoiceLineItemRequestTrackingCategoriesItem"; @@ -22,7 +21,7 @@ export const InvoiceLineItemRequest: core.serialization.ObjectSchema< unitPrice: core.serialization.property("unit_price", core.serialization.number().optional()), quantity: core.serialization.number().optional(), totalAmount: core.serialization.property("total_amount", core.serialization.number().optional()), - employee: InvoiceLineItemRequestEmployee.optional(), + employee: core.serialization.string().optional(), project: InvoiceLineItemRequestProject.optional(), contact: InvoiceLineItemRequestContact.optional(), currency: InvoiceLineItemRequestCurrency.optional(), @@ -57,7 +56,7 @@ export declare namespace InvoiceLineItemRequest { unit_price?: number | null; quantity?: number | null; total_amount?: number | null; - employee?: InvoiceLineItemRequestEmployee.Raw | null; + employee?: string | null; project?: InvoiceLineItemRequestProject.Raw | null; contact?: InvoiceLineItemRequestContact.Raw | null; currency?: InvoiceLineItemRequestCurrency.Raw | null; diff --git a/src/serialization/resources/accounting/types/InvoiceLineItemRequestEmployee.ts b/src/serialization/resources/accounting/types/InvoiceLineItemRequestEmployee.ts deleted file mode 100644 index 3e6d123a3..000000000 --- a/src/serialization/resources/accounting/types/InvoiceLineItemRequestEmployee.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 { Employee } from "./Employee"; - -export const InvoiceLineItemRequestEmployee: core.serialization.Schema< - serializers.accounting.InvoiceLineItemRequestEmployee.Raw, - Merge.accounting.InvoiceLineItemRequestEmployee -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Employee]); - -export declare namespace InvoiceLineItemRequestEmployee { - export type Raw = string | Employee.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceLineItemsItem.ts b/src/serialization/resources/accounting/types/InvoiceLineItemsItem.ts new file mode 100644 index 000000000..0d7d994ad --- /dev/null +++ b/src/serialization/resources/accounting/types/InvoiceLineItemsItem.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 { InvoiceLineItem } from "./InvoiceLineItem"; + +export const InvoiceLineItemsItem: core.serialization.Schema< + serializers.accounting.InvoiceLineItemsItem.Raw, + Merge.accounting.InvoiceLineItemsItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), InvoiceLineItem]); + +export declare namespace InvoiceLineItemsItem { + export type Raw = string | InvoiceLineItem.Raw; +} diff --git a/src/serialization/resources/accounting/types/InvoiceRequest.ts b/src/serialization/resources/accounting/types/InvoiceRequest.ts index d15e2cd32..ac2373fdc 100644 --- a/src/serialization/resources/accounting/types/InvoiceRequest.ts +++ b/src/serialization/resources/accounting/types/InvoiceRequest.ts @@ -3,11 +3,12 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; -import { InvoiceLineItemRequest } from "./InvoiceLineItemRequest"; +import { InvoiceRequestAccountingPeriod } from "./InvoiceRequestAccountingPeriod"; import { InvoiceRequestCompany } from "./InvoiceRequestCompany"; import { InvoiceRequestContact } from "./InvoiceRequestContact"; import { InvoiceRequestCurrency } from "./InvoiceRequestCurrency"; import { InvoiceRequestEmployee } from "./InvoiceRequestEmployee"; +import { InvoiceRequestLineItemsItem } from "./InvoiceRequestLineItemsItem"; import { InvoiceRequestPaymentsItem } from "./InvoiceRequestPaymentsItem"; import { InvoiceRequestPaymentTerm } from "./InvoiceRequestPaymentTerm"; import { InvoiceRequestPurchaseOrdersItem } from "./InvoiceRequestPurchaseOrdersItem"; @@ -44,7 +45,11 @@ export const InvoiceRequest: core.serialization.ObjectSchema< "tracking_categories", core.serialization.list(InvoiceRequestTrackingCategoriesItem.optional()).optional(), ), - lineItems: core.serialization.property("line_items", core.serialization.list(InvoiceLineItemRequest).optional()), + accountingPeriod: core.serialization.property("accounting_period", InvoiceRequestAccountingPeriod.optional()), + lineItems: core.serialization.property( + "line_items", + core.serialization.list(InvoiceRequestLineItemsItem).optional(), + ), purchaseOrders: core.serialization.property( "purchase_orders", core.serialization.list(InvoiceRequestPurchaseOrdersItem.optional()).optional(), @@ -83,7 +88,8 @@ export declare namespace InvoiceRequest { balance?: number | null; payments?: (InvoiceRequestPaymentsItem.Raw | null | undefined)[] | null; tracking_categories?: (InvoiceRequestTrackingCategoriesItem.Raw | null | undefined)[] | null; - line_items?: InvoiceLineItemRequest.Raw[] | null; + accounting_period?: InvoiceRequestAccountingPeriod.Raw | null; + line_items?: InvoiceRequestLineItemsItem.Raw[] | null; purchase_orders?: (InvoiceRequestPurchaseOrdersItem.Raw | null | undefined)[] | null; integration_params?: Record | null; linked_account_params?: Record | null; diff --git a/src/serialization/resources/accounting/types/InvoiceRequestAccountingPeriod.ts b/src/serialization/resources/accounting/types/InvoiceRequestAccountingPeriod.ts new file mode 100644 index 000000000..77ab60059 --- /dev/null +++ b/src/serialization/resources/accounting/types/InvoiceRequestAccountingPeriod.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 InvoiceRequestAccountingPeriod: core.serialization.Schema< + serializers.accounting.InvoiceRequestAccountingPeriod.Raw, + Merge.accounting.InvoiceRequestAccountingPeriod +> = core.serialization.undiscriminatedUnion([core.serialization.string(), AccountingPeriod]); + +export declare namespace InvoiceRequestAccountingPeriod { + export type Raw = string | AccountingPeriod.Raw; +} diff --git a/src/serialization/resources/accounting/types/InvoiceRequestLineItemsItem.ts b/src/serialization/resources/accounting/types/InvoiceRequestLineItemsItem.ts new file mode 100644 index 000000000..8f30b4a77 --- /dev/null +++ b/src/serialization/resources/accounting/types/InvoiceRequestLineItemsItem.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 { InvoiceLineItem } from "./InvoiceLineItem"; + +export const InvoiceRequestLineItemsItem: core.serialization.Schema< + serializers.accounting.InvoiceRequestLineItemsItem.Raw, + Merge.accounting.InvoiceRequestLineItemsItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), InvoiceLineItem]); + +export declare namespace InvoiceRequestLineItemsItem { + export type Raw = string | InvoiceLineItem.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/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..0ddd88044 --- /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 { ItemFulfillmentRequestRequest } from "./ItemFulfillmentRequestRequest"; + +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: ItemFulfillmentRequestRequest, +}); + +export declare namespace ItemFulfillmentBatchItemRequest { + export interface Raw { + item_id: string; + payload: ItemFulfillmentRequestRequest.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/PatchedPaymentRequestContact.ts b/src/serialization/resources/accounting/types/ItemFulfillmentCustomer.ts similarity index 61% rename from src/serialization/resources/accounting/types/PatchedPaymentRequestContact.ts rename to src/serialization/resources/accounting/types/ItemFulfillmentCustomer.ts index a10ecbc8d..b5d9f970b 100644 --- a/src/serialization/resources/accounting/types/PatchedPaymentRequestContact.ts +++ b/src/serialization/resources/accounting/types/ItemFulfillmentCustomer.ts @@ -5,11 +5,11 @@ import * as core from "../../../../core"; import type * as serializers from "../../../index"; import { Contact } from "./Contact"; -export const PatchedPaymentRequestContact: core.serialization.Schema< - serializers.accounting.PatchedPaymentRequestContact.Raw, - Merge.accounting.PatchedPaymentRequestContact +export const ItemFulfillmentCustomer: core.serialization.Schema< + serializers.accounting.ItemFulfillmentCustomer.Raw, + Merge.accounting.ItemFulfillmentCustomer > = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); -export declare namespace PatchedPaymentRequestContact { +export declare namespace ItemFulfillmentCustomer { export type Raw = string | Contact.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/GeneralLedgerTransactionLineTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/ItemFulfillmentLineRequestTrackingCategoriesItem.ts similarity index 56% rename from src/serialization/resources/accounting/types/GeneralLedgerTransactionLineTrackingCategoriesItem.ts rename to src/serialization/resources/accounting/types/ItemFulfillmentLineRequestTrackingCategoriesItem.ts index 7a512c649..940a04e1b 100644 --- a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineTrackingCategoriesItem.ts +++ b/src/serialization/resources/accounting/types/ItemFulfillmentLineRequestTrackingCategoriesItem.ts @@ -5,11 +5,11 @@ import * as core from "../../../../core"; import type * as serializers from "../../../index"; import { TrackingCategory } from "./TrackingCategory"; -export const GeneralLedgerTransactionLineTrackingCategoriesItem: core.serialization.Schema< - serializers.accounting.GeneralLedgerTransactionLineTrackingCategoriesItem.Raw, - Merge.accounting.GeneralLedgerTransactionLineTrackingCategoriesItem +export const ItemFulfillmentLineRequestTrackingCategoriesItem: core.serialization.Schema< + serializers.accounting.ItemFulfillmentLineRequestTrackingCategoriesItem.Raw, + Merge.accounting.ItemFulfillmentLineRequestTrackingCategoriesItem > = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); -export declare namespace GeneralLedgerTransactionLineTrackingCategoriesItem { +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/ItemFulfillmentRequestRequest.ts b/src/serialization/resources/accounting/types/ItemFulfillmentRequestRequest.ts new file mode 100644 index 000000000..01a6011e5 --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentRequestRequest.ts @@ -0,0 +1,48 @@ +// This file was auto-generated 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 { ItemFulfillmentRequestRequestCompany } from "./ItemFulfillmentRequestRequestCompany"; +import { ItemFulfillmentRequestRequestCustomer } from "./ItemFulfillmentRequestRequestCustomer"; +import { ItemFulfillmentRequestRequestLinesItem } from "./ItemFulfillmentRequestRequestLinesItem"; +import { ItemFulfillmentRequestRequestSalesOrder } from "./ItemFulfillmentRequestRequestSalesOrder"; +import { ItemFulfillmentRequestRequestStatus } from "./ItemFulfillmentRequestRequestStatus"; +import { RemoteFieldRequest } from "./RemoteFieldRequest"; + +export const ItemFulfillmentRequestRequest: core.serialization.ObjectSchema< + serializers.accounting.ItemFulfillmentRequestRequest.Raw, + Merge.accounting.ItemFulfillmentRequestRequest +> = core.serialization.object({ + salesOrder: core.serialization.property("sales_order", ItemFulfillmentRequestRequestSalesOrder.optional()), + fulfillmentDate: core.serialization.property("fulfillment_date", core.serialization.date().optional()), + customer: ItemFulfillmentRequestRequestCustomer.optional(), + company: ItemFulfillmentRequestRequestCompany.optional(), + status: ItemFulfillmentRequestRequestStatus.optional(), + memo: core.serialization.string().optional(), + lines: core.serialization.list(ItemFulfillmentRequestRequestLinesItem).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 ItemFulfillmentRequestRequest { + export interface Raw { + sales_order?: ItemFulfillmentRequestRequestSalesOrder.Raw | null; + fulfillment_date?: string | null; + customer?: ItemFulfillmentRequestRequestCustomer.Raw | null; + company?: ItemFulfillmentRequestRequestCompany.Raw | null; + status?: ItemFulfillmentRequestRequestStatus.Raw | null; + memo?: string | null; + lines?: ItemFulfillmentRequestRequestLinesItem.Raw[] | null; + integration_params?: Record | null; + linked_account_params?: Record | null; + remote_fields?: RemoteFieldRequest.Raw[] | null; + } +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentRequestRequestCompany.ts b/src/serialization/resources/accounting/types/ItemFulfillmentRequestRequestCompany.ts new file mode 100644 index 000000000..566312cf1 --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentRequestRequestCompany.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 ItemFulfillmentRequestRequestCompany: core.serialization.Schema< + serializers.accounting.ItemFulfillmentRequestRequestCompany.Raw, + Merge.accounting.ItemFulfillmentRequestRequestCompany +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); + +export declare namespace ItemFulfillmentRequestRequestCompany { + export type Raw = string | CompanyInfo.Raw; +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentRequestRequestCustomer.ts b/src/serialization/resources/accounting/types/ItemFulfillmentRequestRequestCustomer.ts new file mode 100644 index 000000000..239a9d321 --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentRequestRequestCustomer.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 ItemFulfillmentRequestRequestCustomer: core.serialization.Schema< + serializers.accounting.ItemFulfillmentRequestRequestCustomer.Raw, + Merge.accounting.ItemFulfillmentRequestRequestCustomer +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); + +export declare namespace ItemFulfillmentRequestRequestCustomer { + export type Raw = string | Contact.Raw; +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentRequestRequestLinesItem.ts b/src/serialization/resources/accounting/types/ItemFulfillmentRequestRequestLinesItem.ts new file mode 100644 index 000000000..c0e63e72a --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentRequestRequestLinesItem.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 ItemFulfillmentRequestRequestLinesItem: core.serialization.Schema< + serializers.accounting.ItemFulfillmentRequestRequestLinesItem.Raw, + Merge.accounting.ItemFulfillmentRequestRequestLinesItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), ItemFulfillmentLine]); + +export declare namespace ItemFulfillmentRequestRequestLinesItem { + export type Raw = string | ItemFulfillmentLine.Raw; +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentRequestRequestSalesOrder.ts b/src/serialization/resources/accounting/types/ItemFulfillmentRequestRequestSalesOrder.ts new file mode 100644 index 000000000..102bb5d52 --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentRequestRequestSalesOrder.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 ItemFulfillmentRequestRequestSalesOrder: core.serialization.Schema< + serializers.accounting.ItemFulfillmentRequestRequestSalesOrder.Raw, + Merge.accounting.ItemFulfillmentRequestRequestSalesOrder +> = core.serialization.undiscriminatedUnion([core.serialization.string(), SalesOrder]); + +export declare namespace ItemFulfillmentRequestRequestSalesOrder { + export type Raw = string | SalesOrder.Raw; +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentRequestRequestStatus.ts b/src/serialization/resources/accounting/types/ItemFulfillmentRequestRequestStatus.ts new file mode 100644 index 000000000..0e1500629 --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentRequestRequestStatus.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 ItemFulfillmentRequestRequestStatus: core.serialization.Schema< + serializers.accounting.ItemFulfillmentRequestRequestStatus.Raw, + Merge.accounting.ItemFulfillmentRequestRequestStatus +> = core.serialization.undiscriminatedUnion([ItemFulfillmentStatusEnum, core.serialization.string()]); + +export declare namespace ItemFulfillmentRequestRequestStatus { + 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/JournalEntry.ts b/src/serialization/resources/accounting/types/JournalEntry.ts index 920ee5893..41bf4248e 100644 --- a/src/serialization/resources/accounting/types/JournalEntry.ts +++ b/src/serialization/resources/accounting/types/JournalEntry.ts @@ -7,10 +7,10 @@ import { JournalEntryAccountingPeriod } from "./JournalEntryAccountingPeriod"; import { JournalEntryAppliedPaymentsItem } from "./JournalEntryAppliedPaymentsItem"; import { JournalEntryCompany } from "./JournalEntryCompany"; import { JournalEntryCurrency } from "./JournalEntryCurrency"; +import { JournalEntryLinesItem } from "./JournalEntryLinesItem"; import { JournalEntryPaymentsItem } from "./JournalEntryPaymentsItem"; import { JournalEntryPostingStatus } from "./JournalEntryPostingStatus"; import { JournalEntryTrackingCategoriesItem } from "./JournalEntryTrackingCategoriesItem"; -import { JournalLine } from "./JournalLine"; import { RemoteData } from "./RemoteData"; import { RemoteField } from "./RemoteField"; @@ -33,7 +33,7 @@ export const JournalEntry: core.serialization.ObjectSchema< exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), company: JournalEntryCompany.optional(), inclusiveOfTax: core.serialization.property("inclusive_of_tax", core.serialization.boolean().optional()), - lines: core.serialization.list(JournalLine).optional(), + lines: core.serialization.list(JournalEntryLinesItem).optional(), journalNumber: core.serialization.property("journal_number", core.serialization.string().optional()), trackingCategories: core.serialization.property( "tracking_categories", @@ -66,7 +66,7 @@ export declare namespace JournalEntry { exchange_rate?: string | null; company?: JournalEntryCompany.Raw | null; inclusive_of_tax?: boolean | null; - lines?: JournalLine.Raw[] | null; + lines?: JournalEntryLinesItem.Raw[] | null; journal_number?: string | null; tracking_categories?: (JournalEntryTrackingCategoriesItem.Raw | null | undefined)[] | null; remote_was_deleted?: boolean | null; diff --git a/src/serialization/resources/accounting/types/JournalEntryLinesItem.ts b/src/serialization/resources/accounting/types/JournalEntryLinesItem.ts new file mode 100644 index 000000000..b05f6a96f --- /dev/null +++ b/src/serialization/resources/accounting/types/JournalEntryLinesItem.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 { JournalLine } from "./JournalLine"; + +export const JournalEntryLinesItem: core.serialization.Schema< + serializers.accounting.JournalEntryLinesItem.Raw, + Merge.accounting.JournalEntryLinesItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), JournalLine]); + +export declare namespace JournalEntryLinesItem { + export type Raw = string | JournalLine.Raw; +} diff --git a/src/serialization/resources/accounting/types/JournalEntryRequest.ts b/src/serialization/resources/accounting/types/JournalEntryRequest.ts index e2ca2c6a4..65ae5bc6b 100644 --- a/src/serialization/resources/accounting/types/JournalEntryRequest.ts +++ b/src/serialization/resources/accounting/types/JournalEntryRequest.ts @@ -5,10 +5,10 @@ import * as core from "../../../../core"; import type * as serializers from "../../../index"; import { JournalEntryRequestCompany } from "./JournalEntryRequestCompany"; import { JournalEntryRequestCurrency } from "./JournalEntryRequestCurrency"; +import { JournalEntryRequestLinesItem } from "./JournalEntryRequestLinesItem"; import { JournalEntryRequestPaymentsItem } from "./JournalEntryRequestPaymentsItem"; import { JournalEntryRequestPostingStatus } from "./JournalEntryRequestPostingStatus"; import { JournalEntryRequestTrackingCategoriesItem } from "./JournalEntryRequestTrackingCategoriesItem"; -import { JournalLineRequest } from "./JournalLineRequest"; import { RemoteFieldRequest } from "./RemoteFieldRequest"; export const JournalEntryRequest: core.serialization.ObjectSchema< @@ -26,7 +26,7 @@ export const JournalEntryRequest: core.serialization.ObjectSchema< core.serialization.list(JournalEntryRequestTrackingCategoriesItem.optional()).optional(), ), inclusiveOfTax: core.serialization.property("inclusive_of_tax", core.serialization.boolean().optional()), - lines: core.serialization.list(JournalLineRequest).optional(), + lines: core.serialization.list(JournalEntryRequestLinesItem).optional(), journalNumber: core.serialization.property("journal_number", core.serialization.string().optional()), postingStatus: core.serialization.property("posting_status", JournalEntryRequestPostingStatus.optional()), integrationParams: core.serialization.property( @@ -50,7 +50,7 @@ export declare namespace JournalEntryRequest { company?: JournalEntryRequestCompany.Raw | null; tracking_categories?: (JournalEntryRequestTrackingCategoriesItem.Raw | null | undefined)[] | null; inclusive_of_tax?: boolean | null; - lines?: JournalLineRequest.Raw[] | null; + lines?: JournalEntryRequestLinesItem.Raw[] | null; journal_number?: string | null; posting_status?: JournalEntryRequestPostingStatus.Raw | null; integration_params?: Record | null; diff --git a/src/serialization/resources/accounting/types/JournalEntryRequestLinesItem.ts b/src/serialization/resources/accounting/types/JournalEntryRequestLinesItem.ts new file mode 100644 index 000000000..54adb3d6c --- /dev/null +++ b/src/serialization/resources/accounting/types/JournalEntryRequestLinesItem.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 { JournalLine } from "./JournalLine"; + +export const JournalEntryRequestLinesItem: core.serialization.Schema< + serializers.accounting.JournalEntryRequestLinesItem.Raw, + Merge.accounting.JournalEntryRequestLinesItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), JournalLine]); + +export declare namespace JournalEntryRequestLinesItem { + export type Raw = string | JournalLine.Raw; +} diff --git a/src/serialization/resources/accounting/types/MetaResponse.ts b/src/serialization/resources/accounting/types/MetaResponse.ts index 8eff11624..22ff7a49a 100644 --- a/src/serialization/resources/accounting/types/MetaResponse.ts +++ b/src/serialization/resources/accounting/types/MetaResponse.ts @@ -13,24 +13,24 @@ export const MetaResponse: core.serialization.ObjectSchema< "request_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()), ), - remoteFieldClasses: core.serialization.property( - "remote_field_classes", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), status: LinkedAccountStatus.optional(), hasConditionalParams: core.serialization.property("has_conditional_params", core.serialization.boolean()), hasRequiredLinkedAccountParams: core.serialization.property( "has_required_linked_account_params", core.serialization.boolean(), ), + remoteFields: core.serialization.property( + "remote_fields", + core.serialization.list(core.serialization.string()).optional(), + ), }); export declare namespace MetaResponse { export interface Raw { request_schema: Record; - remote_field_classes?: Record | null; status?: LinkedAccountStatus.Raw | null; has_conditional_params: boolean; has_required_linked_account_params: boolean; + remote_fields?: string[] | null; } } 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/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/PatchedPaymentRequest.ts b/src/serialization/resources/accounting/types/PatchedPaymentRequest.ts index 4cf160d22..0bfbb6f41 100644 --- a/src/serialization/resources/accounting/types/PatchedPaymentRequest.ts +++ b/src/serialization/resources/accounting/types/PatchedPaymentRequest.ts @@ -3,15 +3,9 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; -import { PatchedPaymentRequestAccount } from "./PatchedPaymentRequestAccount"; -import { PatchedPaymentRequestAccountingPeriod } from "./PatchedPaymentRequestAccountingPeriod"; -import { PatchedPaymentRequestAppliedToLinesItem } from "./PatchedPaymentRequestAppliedToLinesItem"; -import { PatchedPaymentRequestCompany } from "./PatchedPaymentRequestCompany"; -import { PatchedPaymentRequestContact } from "./PatchedPaymentRequestContact"; import { PatchedPaymentRequestCurrency } from "./PatchedPaymentRequestCurrency"; -import { PatchedPaymentRequestPaymentMethod } from "./PatchedPaymentRequestPaymentMethod"; -import { PatchedPaymentRequestTrackingCategoriesItem } from "./PatchedPaymentRequestTrackingCategoriesItem"; import { PatchedPaymentRequestType } from "./PatchedPaymentRequestType"; +import { PaymentLineItemRequest } from "./PaymentLineItemRequest"; import { RemoteFieldRequest } from "./RemoteFieldRequest"; export const PatchedPaymentRequest: core.serialization.ObjectSchema< @@ -19,25 +13,22 @@ export const PatchedPaymentRequest: core.serialization.ObjectSchema< Merge.accounting.PatchedPaymentRequest > = core.serialization.object({ transactionDate: core.serialization.property("transaction_date", core.serialization.date().optional()), - contact: PatchedPaymentRequestContact.optional(), - account: PatchedPaymentRequestAccount.optional(), - paymentMethod: core.serialization.property("payment_method", PatchedPaymentRequestPaymentMethod.optional()), + contact: core.serialization.string().optional(), + account: core.serialization.string().optional(), + paymentMethod: core.serialization.property("payment_method", core.serialization.string().optional()), currency: PatchedPaymentRequestCurrency.optional(), exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), - company: PatchedPaymentRequestCompany.optional(), + company: core.serialization.string().optional(), totalAmount: core.serialization.property("total_amount", core.serialization.number().optional()), type: PatchedPaymentRequestType.optional(), trackingCategories: core.serialization.property( "tracking_categories", - core.serialization.list(PatchedPaymentRequestTrackingCategoriesItem.optional()).optional(), - ), - accountingPeriod: core.serialization.property( - "accounting_period", - PatchedPaymentRequestAccountingPeriod.optional(), + core.serialization.list(core.serialization.string().optional()).optional(), ), + accountingPeriod: core.serialization.property("accounting_period", core.serialization.string().optional()), appliedToLines: core.serialization.property( "applied_to_lines", - core.serialization.list(PatchedPaymentRequestAppliedToLinesItem).optional(), + core.serialization.list(PaymentLineItemRequest).optional(), ), integrationParams: core.serialization.property( "integration_params", @@ -53,17 +44,17 @@ export const PatchedPaymentRequest: core.serialization.ObjectSchema< export declare namespace PatchedPaymentRequest { export interface Raw { transaction_date?: string | null; - contact?: PatchedPaymentRequestContact.Raw | null; - account?: PatchedPaymentRequestAccount.Raw | null; - payment_method?: PatchedPaymentRequestPaymentMethod.Raw | null; + contact?: string | null; + account?: string | null; + payment_method?: string | null; currency?: PatchedPaymentRequestCurrency.Raw | null; exchange_rate?: string | null; - company?: PatchedPaymentRequestCompany.Raw | null; + company?: string | null; total_amount?: number | null; type?: PatchedPaymentRequestType.Raw | null; - tracking_categories?: (PatchedPaymentRequestTrackingCategoriesItem.Raw | null | undefined)[] | null; - accounting_period?: PatchedPaymentRequestAccountingPeriod.Raw | null; - applied_to_lines?: PatchedPaymentRequestAppliedToLinesItem.Raw[] | null; + tracking_categories?: (string | null | undefined)[] | null; + accounting_period?: string | null; + applied_to_lines?: PaymentLineItemRequest.Raw[] | null; integration_params?: Record | null; linked_account_params?: Record | null; remote_fields?: RemoteFieldRequest.Raw[] | null; diff --git a/src/serialization/resources/accounting/types/PatchedPaymentRequestAccount.ts b/src/serialization/resources/accounting/types/PatchedPaymentRequestAccount.ts deleted file mode 100644 index 852e98281..000000000 --- a/src/serialization/resources/accounting/types/PatchedPaymentRequestAccount.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 { Account } from "./Account"; - -export const PatchedPaymentRequestAccount: core.serialization.Schema< - serializers.accounting.PatchedPaymentRequestAccount.Raw, - Merge.accounting.PatchedPaymentRequestAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace PatchedPaymentRequestAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/accounting/types/PatchedPaymentRequestAppliedToLinesItem.ts b/src/serialization/resources/accounting/types/PatchedPaymentRequestAppliedToLinesItem.ts deleted file mode 100644 index e064731ea..000000000 --- a/src/serialization/resources/accounting/types/PatchedPaymentRequestAppliedToLinesItem.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 { PaymentLineItemRequest } from "./PaymentLineItemRequest"; - -export const PatchedPaymentRequestAppliedToLinesItem: core.serialization.Schema< - serializers.accounting.PatchedPaymentRequestAppliedToLinesItem.Raw, - Merge.accounting.PatchedPaymentRequestAppliedToLinesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), PaymentLineItemRequest]); - -export declare namespace PatchedPaymentRequestAppliedToLinesItem { - export type Raw = string | PaymentLineItemRequest.Raw; -} diff --git a/src/serialization/resources/accounting/types/PatchedPaymentRequestPaymentMethod.ts b/src/serialization/resources/accounting/types/PatchedPaymentRequestPaymentMethod.ts deleted file mode 100644 index 3897cb66b..000000000 --- a/src/serialization/resources/accounting/types/PatchedPaymentRequestPaymentMethod.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 { PaymentMethod } from "./PaymentMethod"; - -export const PatchedPaymentRequestPaymentMethod: core.serialization.Schema< - serializers.accounting.PatchedPaymentRequestPaymentMethod.Raw, - Merge.accounting.PatchedPaymentRequestPaymentMethod -> = core.serialization.undiscriminatedUnion([core.serialization.string(), PaymentMethod]); - -export declare namespace PatchedPaymentRequestPaymentMethod { - export type Raw = string | PaymentMethod.Raw; -} 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/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/PaymentRequestAppliedToLinesItem.ts b/src/serialization/resources/accounting/types/PaymentRequestAppliedToLinesItem.ts index c8c25a108..e3f45b348 100644 --- a/src/serialization/resources/accounting/types/PaymentRequestAppliedToLinesItem.ts +++ b/src/serialization/resources/accounting/types/PaymentRequestAppliedToLinesItem.ts @@ -3,13 +3,13 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; -import { PaymentLineItemRequest } from "./PaymentLineItemRequest"; +import { PaymentLineItem } from "./PaymentLineItem"; export const PaymentRequestAppliedToLinesItem: core.serialization.Schema< serializers.accounting.PaymentRequestAppliedToLinesItem.Raw, Merge.accounting.PaymentRequestAppliedToLinesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), PaymentLineItemRequest]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), PaymentLineItem]); export declare namespace PaymentRequestAppliedToLinesItem { - export type Raw = string | PaymentLineItemRequest.Raw; + export type Raw = string | PaymentLineItem.Raw; } diff --git a/src/serialization/resources/accounting/types/PurchaseOrder.ts b/src/serialization/resources/accounting/types/PurchaseOrder.ts index d56c36d48..8a038eb00 100644 --- a/src/serialization/resources/accounting/types/PurchaseOrder.ts +++ b/src/serialization/resources/accounting/types/PurchaseOrder.ts @@ -7,7 +7,7 @@ import { PurchaseOrderAccountingPeriod } from "./PurchaseOrderAccountingPeriod"; import { PurchaseOrderCompany } from "./PurchaseOrderCompany"; import { PurchaseOrderCurrency } from "./PurchaseOrderCurrency"; import { PurchaseOrderDeliveryAddress } from "./PurchaseOrderDeliveryAddress"; -import { PurchaseOrderLineItem } from "./PurchaseOrderLineItem"; +import { PurchaseOrderLineItemsItem } from "./PurchaseOrderLineItemsItem"; import { PurchaseOrderPaymentTerm } from "./PurchaseOrderPaymentTerm"; import { PurchaseOrderStatus } from "./PurchaseOrderStatus"; import { PurchaseOrderTrackingCategoriesItem } from "./PurchaseOrderTrackingCategoriesItem"; @@ -36,7 +36,10 @@ export const PurchaseOrder: core.serialization.ObjectSchema< currency: PurchaseOrderCurrency.optional(), exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), paymentTerm: core.serialization.property("payment_term", PurchaseOrderPaymentTerm.optional()), - lineItems: core.serialization.property("line_items", core.serialization.list(PurchaseOrderLineItem).optional()), + lineItems: core.serialization.property( + "line_items", + core.serialization.list(PurchaseOrderLineItemsItem).optional(), + ), inclusiveOfTax: core.serialization.property("inclusive_of_tax", core.serialization.boolean().optional()), trackingCategories: core.serialization.property( "tracking_categories", @@ -73,7 +76,7 @@ export declare namespace PurchaseOrder { currency?: PurchaseOrderCurrency.Raw | null; exchange_rate?: string | null; payment_term?: PurchaseOrderPaymentTerm.Raw | null; - line_items?: PurchaseOrderLineItem.Raw[] | null; + line_items?: PurchaseOrderLineItemsItem.Raw[] | null; inclusive_of_tax?: boolean | null; tracking_categories?: (PurchaseOrderTrackingCategoriesItem.Raw | null | undefined)[] | null; accounting_period?: PurchaseOrderAccountingPeriod.Raw | null; diff --git a/src/serialization/resources/accounting/types/PurchaseOrderLineItemsItem.ts b/src/serialization/resources/accounting/types/PurchaseOrderLineItemsItem.ts new file mode 100644 index 000000000..4e887e53f --- /dev/null +++ b/src/serialization/resources/accounting/types/PurchaseOrderLineItemsItem.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 { PurchaseOrderLineItem } from "./PurchaseOrderLineItem"; + +export const PurchaseOrderLineItemsItem: core.serialization.Schema< + serializers.accounting.PurchaseOrderLineItemsItem.Raw, + Merge.accounting.PurchaseOrderLineItemsItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), PurchaseOrderLineItem]); + +export declare namespace PurchaseOrderLineItemsItem { + export type Raw = string | PurchaseOrderLineItem.Raw; +} diff --git a/src/serialization/resources/accounting/types/PurchaseOrderRequest.ts b/src/serialization/resources/accounting/types/PurchaseOrderRequest.ts index fd5015807..d20cb81d9 100644 --- a/src/serialization/resources/accounting/types/PurchaseOrderRequest.ts +++ b/src/serialization/resources/accounting/types/PurchaseOrderRequest.ts @@ -3,10 +3,10 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; -import { PurchaseOrderLineItemRequest } from "./PurchaseOrderLineItemRequest"; import { PurchaseOrderRequestCompany } from "./PurchaseOrderRequestCompany"; import { PurchaseOrderRequestCurrency } from "./PurchaseOrderRequestCurrency"; import { PurchaseOrderRequestDeliveryAddress } from "./PurchaseOrderRequestDeliveryAddress"; +import { PurchaseOrderRequestLineItemsItem } from "./PurchaseOrderRequestLineItemsItem"; import { PurchaseOrderRequestPaymentTerm } from "./PurchaseOrderRequestPaymentTerm"; import { PurchaseOrderRequestStatus } from "./PurchaseOrderRequestStatus"; import { PurchaseOrderRequestTrackingCategoriesItem } from "./PurchaseOrderRequestTrackingCategoriesItem"; @@ -36,7 +36,7 @@ export const PurchaseOrderRequest: core.serialization.ObjectSchema< ), lineItems: core.serialization.property( "line_items", - core.serialization.list(PurchaseOrderLineItemRequest).optional(), + core.serialization.list(PurchaseOrderRequestLineItemsItem).optional(), ), integrationParams: core.serialization.property( "integration_params", @@ -65,7 +65,7 @@ export declare namespace PurchaseOrderRequest { inclusive_of_tax?: boolean | null; exchange_rate?: string | null; tracking_categories?: (PurchaseOrderRequestTrackingCategoriesItem.Raw | null | undefined)[] | null; - line_items?: PurchaseOrderLineItemRequest.Raw[] | null; + line_items?: PurchaseOrderRequestLineItemsItem.Raw[] | null; integration_params?: Record | null; linked_account_params?: Record | null; remote_fields?: RemoteFieldRequest.Raw[] | null; diff --git a/src/serialization/resources/accounting/types/PurchaseOrderRequestLineItemsItem.ts b/src/serialization/resources/accounting/types/PurchaseOrderRequestLineItemsItem.ts new file mode 100644 index 000000000..a8fc3831a --- /dev/null +++ b/src/serialization/resources/accounting/types/PurchaseOrderRequestLineItemsItem.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 { PurchaseOrderLineItem } from "./PurchaseOrderLineItem"; + +export const PurchaseOrderRequestLineItemsItem: core.serialization.Schema< + serializers.accounting.PurchaseOrderRequestLineItemsItem.Raw, + Merge.accounting.PurchaseOrderRequestLineItemsItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), PurchaseOrderLineItem]); + +export declare namespace PurchaseOrderRequestLineItemsItem { + export type Raw = string | PurchaseOrderLineItem.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/RemoteField.ts b/src/serialization/resources/accounting/types/RemoteField.ts index 1f35b5312..a497af888 100644 --- a/src/serialization/resources/accounting/types/RemoteField.ts +++ b/src/serialization/resources/accounting/types/RemoteField.ts @@ -3,19 +3,19 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; -import { RemoteFieldRemoteFieldClass } from "./RemoteFieldRemoteFieldClass"; +import { RemoteFieldClass } from "./RemoteFieldClass"; export const RemoteField: core.serialization.ObjectSchema< serializers.accounting.RemoteField.Raw, Merge.accounting.RemoteField > = core.serialization.object({ - remoteFieldClass: core.serialization.property("remote_field_class", RemoteFieldRemoteFieldClass), - value: core.serialization.unknown().optional(), + remoteFieldClass: core.serialization.property("remote_field_class", RemoteFieldClass), + value: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), }); export declare namespace RemoteField { export interface Raw { - remote_field_class: RemoteFieldRemoteFieldClass.Raw; - value?: unknown | null; + remote_field_class: RemoteFieldClass.Raw; + value?: Record | null; } } diff --git a/src/serialization/resources/accounting/types/RemoteFieldApi.ts b/src/serialization/resources/accounting/types/RemoteFieldApi.ts index 5d37bb44c..3ee08d00b 100644 --- a/src/serialization/resources/accounting/types/RemoteFieldApi.ts +++ b/src/serialization/resources/accounting/types/RemoteFieldApi.ts @@ -3,8 +3,8 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; -import { AdvancedMetadata } from "./AdvancedMetadata"; import { RemoteEndpointInfo } from "./RemoteEndpointInfo"; +import { RemoteFieldApiAdvancedMetadata } from "./RemoteFieldApiAdvancedMetadata"; import { RemoteFieldApiCoverage } from "./RemoteFieldApiCoverage"; export const RemoteFieldApi: core.serialization.ObjectSchema< @@ -18,7 +18,7 @@ export const RemoteFieldApi: core.serialization.ObjectSchema< "example_values", core.serialization.list(core.serialization.unknown()).optional(), ), - advancedMetadata: core.serialization.property("advanced_metadata", AdvancedMetadata.optional()), + advancedMetadata: core.serialization.property("advanced_metadata", RemoteFieldApiAdvancedMetadata.optional()), coverage: RemoteFieldApiCoverage.optional(), }); @@ -28,7 +28,7 @@ export declare namespace RemoteFieldApi { remote_key_name: string; remote_endpoint_info: RemoteEndpointInfo.Raw; example_values?: unknown[] | null; - advanced_metadata?: AdvancedMetadata.Raw | null; + advanced_metadata?: RemoteFieldApiAdvancedMetadata.Raw | null; coverage?: RemoteFieldApiCoverage.Raw | null; } } diff --git a/src/serialization/resources/accounting/types/RemoteFieldApiAdvancedMetadata.ts b/src/serialization/resources/accounting/types/RemoteFieldApiAdvancedMetadata.ts new file mode 100644 index 000000000..75d615377 --- /dev/null +++ b/src/serialization/resources/accounting/types/RemoteFieldApiAdvancedMetadata.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 { AdvancedMetadata } from "./AdvancedMetadata"; + +export const RemoteFieldApiAdvancedMetadata: core.serialization.Schema< + serializers.accounting.RemoteFieldApiAdvancedMetadata.Raw, + Merge.accounting.RemoteFieldApiAdvancedMetadata +> = core.serialization.undiscriminatedUnion([AdvancedMetadata, core.serialization.string()]); + +export declare namespace RemoteFieldApiAdvancedMetadata { + export type Raw = AdvancedMetadata.Raw | 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/RemoteFieldRemoteFieldClass.ts b/src/serialization/resources/accounting/types/RemoteFieldRemoteFieldClass.ts deleted file mode 100644 index b92f0b411..000000000 --- a/src/serialization/resources/accounting/types/RemoteFieldRemoteFieldClass.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 { RemoteFieldClass } from "./RemoteFieldClass"; - -export const RemoteFieldRemoteFieldClass: core.serialization.Schema< - serializers.accounting.RemoteFieldRemoteFieldClass.Raw, - Merge.accounting.RemoteFieldRemoteFieldClass -> = core.serialization.undiscriminatedUnion([core.serialization.string(), RemoteFieldClass]); - -export declare namespace RemoteFieldRemoteFieldClass { - export type Raw = string | RemoteFieldClass.Raw; -} diff --git a/src/serialization/resources/accounting/types/RemoteFieldRequest.ts b/src/serialization/resources/accounting/types/RemoteFieldRequest.ts index 9ccdfd7b5..2fe44c3fb 100644 --- a/src/serialization/resources/accounting/types/RemoteFieldRequest.ts +++ b/src/serialization/resources/accounting/types/RemoteFieldRequest.ts @@ -3,19 +3,18 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; -import { RemoteFieldRequestRemoteFieldClass } from "./RemoteFieldRequestRemoteFieldClass"; export const RemoteFieldRequest: core.serialization.ObjectSchema< serializers.accounting.RemoteFieldRequest.Raw, Merge.accounting.RemoteFieldRequest > = core.serialization.object({ - remoteFieldClass: core.serialization.property("remote_field_class", RemoteFieldRequestRemoteFieldClass), - value: core.serialization.unknown().optional(), + remoteFieldClass: core.serialization.property("remote_field_class", core.serialization.string()), + value: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), }); export declare namespace RemoteFieldRequest { export interface Raw { - remote_field_class: RemoteFieldRequestRemoteFieldClass.Raw; - value?: unknown | null; + remote_field_class: string; + value?: Record | null; } } diff --git a/src/serialization/resources/accounting/types/RemoteFieldRequestRemoteFieldClass.ts b/src/serialization/resources/accounting/types/RemoteFieldRequestRemoteFieldClass.ts deleted file mode 100644 index e396fb7de..000000000 --- a/src/serialization/resources/accounting/types/RemoteFieldRequestRemoteFieldClass.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 { RemoteFieldClass } from "./RemoteFieldClass"; - -export const RemoteFieldRequestRemoteFieldClass: core.serialization.Schema< - serializers.accounting.RemoteFieldRequestRemoteFieldClass.Raw, - Merge.accounting.RemoteFieldRequestRemoteFieldClass -> = core.serialization.undiscriminatedUnion([core.serialization.string(), RemoteFieldClass]); - -export declare namespace RemoteFieldRequestRemoteFieldClass { - export type Raw = string | RemoteFieldClass.Raw; -} diff --git a/src/serialization/resources/accounting/types/RemoteResponse.ts b/src/serialization/resources/accounting/types/RemoteResponse.ts index 50f57c36e..a4dd60418 100644 --- a/src/serialization/resources/accounting/types/RemoteResponse.ts +++ b/src/serialization/resources/accounting/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.accounting.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/accounting/types/RemoteResponseResponseType.ts b/src/serialization/resources/accounting/types/RemoteResponseResponseType.ts new file mode 100644 index 000000000..ae692ac22 --- /dev/null +++ b/src/serialization/resources/accounting/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.accounting.RemoteResponseResponseType.Raw, + Merge.accounting.RemoteResponseResponseType +> = core.serialization.undiscriminatedUnion([ResponseTypeEnum, core.serialization.string()]); + +export declare namespace RemoteResponseResponseType { + export type Raw = ResponseTypeEnum.Raw | string; +} diff --git a/src/serialization/resources/accounting/types/ReportItem.ts b/src/serialization/resources/accounting/types/ReportItem.ts index 2824188d8..cc790a8b5 100644 --- a/src/serialization/resources/accounting/types/ReportItem.ts +++ b/src/serialization/resources/accounting/types/ReportItem.ts @@ -15,9 +15,7 @@ export const ReportItem: core.serialization.ObjectSchema< value: core.serialization.number().optional(), subItems: core.serialization.property( "sub_items", - core.serialization - .list(core.serialization.record(core.serialization.string(), core.serialization.unknown())) - .optional(), + core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), ), company: core.serialization.string().optional(), remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), @@ -30,7 +28,7 @@ export declare namespace ReportItem { modified_at?: string | null; name?: string | null; value?: number | null; - sub_items?: Record[] | null; + sub_items?: Record | null; company?: string | null; remote_was_deleted?: boolean | 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..856eafd42 --- /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 { SalesOrderRequestRequest } from "./SalesOrderRequestRequest"; + +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: SalesOrderRequestRequest, +}); + +export declare namespace SalesOrderBatchItemRequest { + export interface Raw { + item_id: string; + payload: SalesOrderRequestRequest.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/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/PatchedPaymentRequestCompany.ts b/src/serialization/resources/accounting/types/SalesOrderLineRequestCompany.ts similarity index 63% rename from src/serialization/resources/accounting/types/PatchedPaymentRequestCompany.ts rename to src/serialization/resources/accounting/types/SalesOrderLineRequestCompany.ts index 4e62bb74a..74c5b3fad 100644 --- a/src/serialization/resources/accounting/types/PatchedPaymentRequestCompany.ts +++ b/src/serialization/resources/accounting/types/SalesOrderLineRequestCompany.ts @@ -5,11 +5,11 @@ import * as core from "../../../../core"; import type * as serializers from "../../../index"; import { CompanyInfo } from "./CompanyInfo"; -export const PatchedPaymentRequestCompany: core.serialization.Schema< - serializers.accounting.PatchedPaymentRequestCompany.Raw, - Merge.accounting.PatchedPaymentRequestCompany +export const SalesOrderLineRequestCompany: core.serialization.Schema< + serializers.accounting.SalesOrderLineRequestCompany.Raw, + Merge.accounting.SalesOrderLineRequestCompany > = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); -export declare namespace PatchedPaymentRequestCompany { +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/PatchedPaymentRequestTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/SalesOrderLineRequestTrackingCategoriesItem.ts similarity index 64% rename from src/serialization/resources/accounting/types/PatchedPaymentRequestTrackingCategoriesItem.ts rename to src/serialization/resources/accounting/types/SalesOrderLineRequestTrackingCategoriesItem.ts index e0674d4fd..ac5a8350b 100644 --- a/src/serialization/resources/accounting/types/PatchedPaymentRequestTrackingCategoriesItem.ts +++ b/src/serialization/resources/accounting/types/SalesOrderLineRequestTrackingCategoriesItem.ts @@ -5,11 +5,11 @@ import * as core from "../../../../core"; import type * as serializers from "../../../index"; import { TrackingCategory } from "./TrackingCategory"; -export const PatchedPaymentRequestTrackingCategoriesItem: core.serialization.Schema< - serializers.accounting.PatchedPaymentRequestTrackingCategoriesItem.Raw, - Merge.accounting.PatchedPaymentRequestTrackingCategoriesItem +export const SalesOrderLineRequestTrackingCategoriesItem: core.serialization.Schema< + serializers.accounting.SalesOrderLineRequestTrackingCategoriesItem.Raw, + Merge.accounting.SalesOrderLineRequestTrackingCategoriesItem > = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); -export declare namespace PatchedPaymentRequestTrackingCategoriesItem { +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/SalesOrderRequestRequest.ts b/src/serialization/resources/accounting/types/SalesOrderRequestRequest.ts new file mode 100644 index 000000000..e93a17809 --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderRequestRequest.ts @@ -0,0 +1,69 @@ +// This file was auto-generated 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 { SalesOrderRequestRequestCompany } from "./SalesOrderRequestRequestCompany"; +import { SalesOrderRequestRequestCurrency } from "./SalesOrderRequestRequestCurrency"; +import { SalesOrderRequestRequestCustomer } from "./SalesOrderRequestRequestCustomer"; +import { SalesOrderRequestRequestLinesItem } from "./SalesOrderRequestRequestLinesItem"; +import { SalesOrderRequestRequestPaymentTerm } from "./SalesOrderRequestRequestPaymentTerm"; +import { SalesOrderRequestRequestShippingAddress } from "./SalesOrderRequestRequestShippingAddress"; +import { SalesOrderRequestRequestStatus } from "./SalesOrderRequestRequestStatus"; +import { SalesOrderRequestRequestTrackingCategoriesItem } from "./SalesOrderRequestRequestTrackingCategoriesItem"; + +export const SalesOrderRequestRequest: core.serialization.ObjectSchema< + serializers.accounting.SalesOrderRequestRequest.Raw, + Merge.accounting.SalesOrderRequestRequest +> = core.serialization.object({ + customer: SalesOrderRequestRequestCustomer.optional(), + currency: SalesOrderRequestRequestCurrency.optional(), + exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), + company: SalesOrderRequestRequestCompany.optional(), + status: SalesOrderRequestRequestStatus.optional(), + paymentTerm: core.serialization.property("payment_term", SalesOrderRequestRequestPaymentTerm.optional()), + memo: core.serialization.string().optional(), + shippingAddress: core.serialization.property( + "shipping_address", + SalesOrderRequestRequestShippingAddress.optional(), + ), + trackingCategories: core.serialization.property( + "tracking_categories", + core.serialization.list(SalesOrderRequestRequestTrackingCategoriesItem.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(SalesOrderRequestRequestLinesItem).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 SalesOrderRequestRequest { + export interface Raw { + customer?: SalesOrderRequestRequestCustomer.Raw | null; + currency?: SalesOrderRequestRequestCurrency.Raw | null; + exchange_rate?: string | null; + company?: SalesOrderRequestRequestCompany.Raw | null; + status?: SalesOrderRequestRequestStatus.Raw | null; + payment_term?: SalesOrderRequestRequestPaymentTerm.Raw | null; + memo?: string | null; + shipping_address?: SalesOrderRequestRequestShippingAddress.Raw | null; + tracking_categories?: (SalesOrderRequestRequestTrackingCategoriesItem.Raw | null | undefined)[] | null; + issue_date?: string | null; + transaction_number?: string | null; + total?: number | null; + lines?: SalesOrderRequestRequestLinesItem.Raw[] | null; + integration_params?: Record | null; + linked_account_params?: Record | null; + remote_fields?: RemoteFieldRequest.Raw[] | null; + } +} diff --git a/src/serialization/resources/accounting/types/SalesOrderRequestRequestCompany.ts b/src/serialization/resources/accounting/types/SalesOrderRequestRequestCompany.ts new file mode 100644 index 000000000..64d6f48e1 --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderRequestRequestCompany.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 SalesOrderRequestRequestCompany: core.serialization.Schema< + serializers.accounting.SalesOrderRequestRequestCompany.Raw, + Merge.accounting.SalesOrderRequestRequestCompany +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); + +export declare namespace SalesOrderRequestRequestCompany { + export type Raw = string | CompanyInfo.Raw; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderRequestRequestCurrency.ts b/src/serialization/resources/accounting/types/SalesOrderRequestRequestCurrency.ts new file mode 100644 index 000000000..2e74971e2 --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderRequestRequestCurrency.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 SalesOrderRequestRequestCurrency: core.serialization.Schema< + serializers.accounting.SalesOrderRequestRequestCurrency.Raw, + Merge.accounting.SalesOrderRequestRequestCurrency +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); + +export declare namespace SalesOrderRequestRequestCurrency { + export type Raw = TransactionCurrencyEnum.Raw | string; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderRequestRequestCustomer.ts b/src/serialization/resources/accounting/types/SalesOrderRequestRequestCustomer.ts new file mode 100644 index 000000000..19ee60148 --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderRequestRequestCustomer.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 SalesOrderRequestRequestCustomer: core.serialization.Schema< + serializers.accounting.SalesOrderRequestRequestCustomer.Raw, + Merge.accounting.SalesOrderRequestRequestCustomer +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); + +export declare namespace SalesOrderRequestRequestCustomer { + export type Raw = string | Contact.Raw; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderRequestRequestLinesItem.ts b/src/serialization/resources/accounting/types/SalesOrderRequestRequestLinesItem.ts new file mode 100644 index 000000000..0a636adcf --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderRequestRequestLinesItem.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 SalesOrderRequestRequestLinesItem: core.serialization.Schema< + serializers.accounting.SalesOrderRequestRequestLinesItem.Raw, + Merge.accounting.SalesOrderRequestRequestLinesItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), SalesOrderLine]); + +export declare namespace SalesOrderRequestRequestLinesItem { + export type Raw = string | SalesOrderLine.Raw; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderRequestRequestPaymentTerm.ts b/src/serialization/resources/accounting/types/SalesOrderRequestRequestPaymentTerm.ts new file mode 100644 index 000000000..a1f7bc0b8 --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderRequestRequestPaymentTerm.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 SalesOrderRequestRequestPaymentTerm: core.serialization.Schema< + serializers.accounting.SalesOrderRequestRequestPaymentTerm.Raw, + Merge.accounting.SalesOrderRequestRequestPaymentTerm +> = core.serialization.undiscriminatedUnion([core.serialization.string(), PaymentTerm]); + +export declare namespace SalesOrderRequestRequestPaymentTerm { + export type Raw = string | PaymentTerm.Raw; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderRequestRequestShippingAddress.ts b/src/serialization/resources/accounting/types/SalesOrderRequestRequestShippingAddress.ts new file mode 100644 index 000000000..bb38e54fc --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderRequestRequestShippingAddress.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 SalesOrderRequestRequestShippingAddress: core.serialization.Schema< + serializers.accounting.SalesOrderRequestRequestShippingAddress.Raw, + Merge.accounting.SalesOrderRequestRequestShippingAddress +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Address]); + +export declare namespace SalesOrderRequestRequestShippingAddress { + export type Raw = string | Address.Raw; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderRequestRequestStatus.ts b/src/serialization/resources/accounting/types/SalesOrderRequestRequestStatus.ts new file mode 100644 index 000000000..a94934669 --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderRequestRequestStatus.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 SalesOrderRequestRequestStatus: core.serialization.Schema< + serializers.accounting.SalesOrderRequestRequestStatus.Raw, + Merge.accounting.SalesOrderRequestRequestStatus +> = core.serialization.undiscriminatedUnion([SalesOrderStatusEnum, core.serialization.string()]); + +export declare namespace SalesOrderRequestRequestStatus { + export type Raw = SalesOrderStatusEnum.Raw | string; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderRequestRequestTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/SalesOrderRequestRequestTrackingCategoriesItem.ts new file mode 100644 index 000000000..5220ad121 --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderRequestRequestTrackingCategoriesItem.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 SalesOrderRequestRequestTrackingCategoriesItem: core.serialization.Schema< + serializers.accounting.SalesOrderRequestRequestTrackingCategoriesItem.Raw, + Merge.accounting.SalesOrderRequestRequestTrackingCategoriesItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); + +export declare namespace SalesOrderRequestRequestTrackingCategoriesItem { + 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/TaxRate.ts b/src/serialization/resources/accounting/types/TaxRate.ts index 8ca2c6326..f6a7794be 100644 --- a/src/serialization/resources/accounting/types/TaxRate.ts +++ b/src/serialization/resources/accounting/types/TaxRate.ts @@ -4,9 +4,9 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; import { RemoteData } from "./RemoteData"; +import { TaxComponent } from "./TaxComponent"; import { TaxRateCompany } from "./TaxRateCompany"; import { TaxRateStatus } from "./TaxRateStatus"; -import { TaxRateTaxComponentsItem } from "./TaxRateTaxComponentsItem"; export const TaxRate: core.serialization.ObjectSchema = core.serialization.object({ @@ -22,10 +22,7 @@ export const TaxRate: core.serialization.ObjectSchema | null; remote_data?: RemoteData.Raw[] | null; diff --git a/src/serialization/resources/accounting/types/TaxRateTaxComponentsItem.ts b/src/serialization/resources/accounting/types/TaxRateTaxComponentsItem.ts deleted file mode 100644 index e5b3faa14..000000000 --- a/src/serialization/resources/accounting/types/TaxRateTaxComponentsItem.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 { TaxComponent } from "./TaxComponent"; - -export const TaxRateTaxComponentsItem: core.serialization.Schema< - serializers.accounting.TaxRateTaxComponentsItem.Raw, - Merge.accounting.TaxRateTaxComponentsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TaxComponent]); - -export declare namespace TaxRateTaxComponentsItem { - export type Raw = string | TaxComponent.Raw; -} diff --git a/src/serialization/resources/accounting/types/Transaction.ts b/src/serialization/resources/accounting/types/Transaction.ts index f1fb2fe4a..bfd96906d 100644 --- a/src/serialization/resources/accounting/types/Transaction.ts +++ b/src/serialization/resources/accounting/types/Transaction.ts @@ -6,9 +6,10 @@ 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"; +import { TransactionLineItemsItem } from "./TransactionLineItemsItem"; import { TransactionTrackingCategoriesItem } from "./TransactionTrackingCategoriesItem"; export const Transaction: core.serialization.ObjectSchema< @@ -28,12 +29,12 @@ 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(), ), - lineItems: core.serialization.property("line_items", core.serialization.list(TransactionLineItem).optional()), + lineItems: core.serialization.property("line_items", core.serialization.list(TransactionLineItemsItem).optional()), remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), accountingPeriod: core.serialization.property("accounting_period", TransactionAccountingPeriod.optional()), fieldMappings: core.serialization.property( @@ -58,9 +59,9 @@ 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; + line_items?: TransactionLineItemsItem.Raw[] | null; remote_was_deleted?: boolean | null; accounting_period?: TransactionAccountingPeriod.Raw | null; field_mappings?: Record | 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/TransactionLineItemsItem.ts b/src/serialization/resources/accounting/types/TransactionLineItemsItem.ts new file mode 100644 index 000000000..19efe98a3 --- /dev/null +++ b/src/serialization/resources/accounting/types/TransactionLineItemsItem.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 { TransactionLineItem } from "./TransactionLineItem"; + +export const TransactionLineItemsItem: core.serialization.Schema< + serializers.accounting.TransactionLineItemsItem.Raw, + Merge.accounting.TransactionLineItemsItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionLineItem]); + +export declare namespace TransactionLineItemsItem { + export type Raw = string | TransactionLineItem.Raw; +} diff --git a/src/serialization/resources/accounting/types/VendorCredit.ts b/src/serialization/resources/accounting/types/VendorCredit.ts index 59c58a95d..2501bc653 100644 --- a/src/serialization/resources/accounting/types/VendorCredit.ts +++ b/src/serialization/resources/accounting/types/VendorCredit.ts @@ -7,7 +7,7 @@ import { RemoteData } from "./RemoteData"; import { VendorCreditAccountingPeriod } from "./VendorCreditAccountingPeriod"; import { VendorCreditCompany } from "./VendorCreditCompany"; import { VendorCreditCurrency } from "./VendorCreditCurrency"; -import { VendorCreditLine } from "./VendorCreditLine"; +import { VendorCreditLinesItem } from "./VendorCreditLinesItem"; import { VendorCreditTrackingCategoriesItem } from "./VendorCreditTrackingCategoriesItem"; import { VendorCreditVendor } from "./VendorCreditVendor"; @@ -27,7 +27,7 @@ export const VendorCredit: core.serialization.ObjectSchema< exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), inclusiveOfTax: core.serialization.property("inclusive_of_tax", core.serialization.boolean().optional()), company: VendorCreditCompany.optional(), - lines: core.serialization.list(VendorCreditLine).optional(), + lines: core.serialization.list(VendorCreditLinesItem).optional(), trackingCategories: core.serialization.property( "tracking_categories", core.serialization.list(VendorCreditTrackingCategoriesItem.optional()).optional(), @@ -61,7 +61,7 @@ export declare namespace VendorCredit { exchange_rate?: string | null; inclusive_of_tax?: boolean | null; company?: VendorCreditCompany.Raw | null; - lines?: VendorCreditLine.Raw[] | null; + lines?: VendorCreditLinesItem.Raw[] | null; tracking_categories?: (VendorCreditTrackingCategoriesItem.Raw | null | undefined)[] | null; applied_to_lines?: serializers.accounting.VendorCreditApplyLineForVendorCredit.Raw[] | null; remote_was_deleted?: boolean | null; diff --git a/src/serialization/resources/accounting/types/VendorCreditLinesItem.ts b/src/serialization/resources/accounting/types/VendorCreditLinesItem.ts new file mode 100644 index 000000000..41981325e --- /dev/null +++ b/src/serialization/resources/accounting/types/VendorCreditLinesItem.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 { VendorCreditLine } from "./VendorCreditLine"; + +export const VendorCreditLinesItem: core.serialization.Schema< + serializers.accounting.VendorCreditLinesItem.Raw, + Merge.accounting.VendorCreditLinesItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), VendorCreditLine]); + +export declare namespace VendorCreditLinesItem { + export type Raw = string | VendorCreditLine.Raw; +} diff --git a/src/serialization/resources/accounting/types/WarningValidationProblem.ts b/src/serialization/resources/accounting/types/WarningValidationProblem.ts index a30805753..cc2292f20 100644 --- a/src/serialization/resources/accounting/types/WarningValidationProblem.ts +++ b/src/serialization/resources/accounting/types/WarningValidationProblem.ts @@ -13,6 +13,7 @@ export const WarningValidationProblem: core.serialization.ObjectSchema< title: core.serialization.string(), detail: core.serialization.string(), problemType: core.serialization.property("problem_type", core.serialization.string()), + blockMergeLink: core.serialization.property("block_merge_link", core.serialization.boolean().optional()), }); export declare namespace WarningValidationProblem { @@ -21,5 +22,6 @@ export declare namespace WarningValidationProblem { title: string; detail: string; problem_type: string; + block_merge_link?: boolean | null; } } diff --git a/src/serialization/resources/accounting/types/index.ts b/src/serialization/resources/accounting/types/index.ts index 22194d0a9..233fc16c7 100644 --- a/src/serialization/resources/accounting/types/index.ts +++ b/src/serialization/resources/accounting/types/index.ts @@ -2,6 +2,7 @@ export * from "./Account"; export * from "./AccountAccountType"; export * from "./AccountAccountTypeEnum"; export * from "./AccountClassification"; +export * from "./AccountCompany"; export * from "./AccountCurrency"; export * from "./AccountDetails"; export * from "./AccountDetailsAndActions"; @@ -21,6 +22,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"; @@ -74,12 +76,19 @@ export * from "./ClassificationEnum"; export * from "./CommonModelScopeApi"; export * from "./CommonModelScopesBodyRequest"; export * from "./CompanyInfo"; +export * from "./CompanyInfoAddressesItem"; export * from "./CompanyInfoCurrency"; +export * from "./CompanyInfoPhoneNumbersItem"; +export * from "./CompletedAccountInitialScreenEnum"; export * from "./ComponentTypeEnum"; export * from "./Contact"; export * from "./ContactAddressesItem"; +export * from "./ContactCompany"; +export * from "./ContactPhoneNumbersItem"; export * from "./ContactRequest"; export * from "./ContactRequestAddressesItem"; +export * from "./ContactRequestCompany"; +export * from "./ContactRequestPhoneNumbersItem"; export * from "./ContactRequestStatus"; export * from "./ContactResponse"; export * from "./ContactStatus"; @@ -106,6 +115,7 @@ export * from "./CreditNoteLineItemRequestCompany"; export * from "./CreditNoteLineItemRequestContact"; export * from "./CreditNoteLineItemRequestItem"; export * from "./CreditNoteLineItemRequestProject"; +export * from "./CreditNoteLineItemsItem"; export * from "./CreditNotePaymentsItem"; export * from "./CreditNoteRequest"; export * from "./CreditNoteRequestAccountingPeriod"; @@ -124,6 +134,7 @@ export * from "./CreditNoteTrackingCategoriesItem"; export * from "./CreditOrDebitEnum"; export * from "./DataPassthroughRequest"; export * from "./DataPassthroughRequestMethod"; +export * from "./DataPassthroughRequestRequestFormat"; export * from "./DebugModeLog"; export * from "./DebugModelLogSummary"; export * from "./Employee"; @@ -136,6 +147,7 @@ export * from "./EventTypeEnum"; export * from "./Expense"; export * from "./ExpenseAccount"; export * from "./ExpenseAccountingPeriod"; +export * from "./ExpenseBatchItemRequest"; export * from "./ExpenseCompany"; export * from "./ExpenseContact"; export * from "./ExpenseCurrency"; @@ -159,25 +171,33 @@ export * from "./ExpenseLineRequestTrackingCategory"; export * from "./ExpenseLineTrackingCategoriesItem"; export * from "./ExpenseLineTrackingCategory"; export * from "./ExpenseReport"; +export * from "./ExpenseReportAccountingPeriod"; export * from "./ExpenseReportCompany"; +export * from "./ExpenseReportCurrency"; +export * from "./ExpenseReportEmployee"; 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"; @@ -216,7 +236,6 @@ export * from "./GeneralLedgerTransactionLineContact"; export * from "./GeneralLedgerTransactionLineEmployee"; export * from "./GeneralLedgerTransactionLineItem"; export * from "./GeneralLedgerTransactionLineProject"; -export * from "./GeneralLedgerTransactionLineTrackingCategoriesItem"; export * from "./GeneralLedgerTransactionLineTransactionCurrency"; export * from "./GeneralLedgerTransactionTrackingCategoriesItem"; export * from "./GeneralLedgerTransactionUnderlyingTransactionType"; @@ -230,6 +249,7 @@ export * from "./InvoiceAccountingPeriod"; export * from "./InvoiceAppliedCreditNotesItem"; export * from "./InvoiceAppliedPaymentsItem"; export * from "./InvoiceAppliedVendorCreditsItem"; +export * from "./InvoiceBatchItemRequest"; export * from "./InvoiceCompany"; export * from "./InvoiceContact"; export * from "./InvoiceCurrency"; @@ -238,28 +258,29 @@ export * from "./InvoiceLineItem"; export * from "./InvoiceLineItemAccount"; export * from "./InvoiceLineItemContact"; export * from "./InvoiceLineItemCurrency"; -export * from "./InvoiceLineItemEmployee"; export * from "./InvoiceLineItemItem"; export * from "./InvoiceLineItemProject"; export * from "./InvoiceLineItemRequest"; export * from "./InvoiceLineItemRequestAccount"; export * from "./InvoiceLineItemRequestContact"; export * from "./InvoiceLineItemRequestCurrency"; -export * from "./InvoiceLineItemRequestEmployee"; export * from "./InvoiceLineItemRequestItem"; export * from "./InvoiceLineItemRequestProject"; export * from "./InvoiceLineItemRequestTrackingCategoriesItem"; export * from "./InvoiceLineItemRequestTrackingCategory"; +export * from "./InvoiceLineItemsItem"; export * from "./InvoiceLineItemTrackingCategoriesItem"; export * from "./InvoiceLineItemTrackingCategory"; export * from "./InvoicePaymentsItem"; export * from "./InvoicePaymentTerm"; export * from "./InvoicePurchaseOrdersItem"; export * from "./InvoiceRequest"; +export * from "./InvoiceRequestAccountingPeriod"; export * from "./InvoiceRequestCompany"; export * from "./InvoiceRequestContact"; export * from "./InvoiceRequestCurrency"; export * from "./InvoiceRequestEmployee"; +export * from "./InvoiceRequestLineItemsItem"; export * from "./InvoiceRequestPaymentsItem"; export * from "./InvoiceRequestPaymentTerm"; export * from "./InvoiceRequestPurchaseOrdersItem"; @@ -267,6 +288,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"; @@ -278,6 +300,29 @@ export * from "./IssueStatusEnum"; export * from "./Item"; export * from "./ItemCompany"; export * from "./ItemFormatEnum"; +export * from "./ItemFulfillment"; +export * from "./ItemFulfillmentBatchItemRequest"; +export * from "./ItemFulfillmentCompany"; +export * from "./ItemFulfillmentCustomer"; +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 "./ItemFulfillmentRequestRequest"; +export * from "./ItemFulfillmentRequestRequestCompany"; +export * from "./ItemFulfillmentRequestRequestCustomer"; +export * from "./ItemFulfillmentRequestRequestLinesItem"; +export * from "./ItemFulfillmentRequestRequestSalesOrder"; +export * from "./ItemFulfillmentRequestRequestStatus"; +export * from "./ItemFulfillmentResponse"; +export * from "./ItemFulfillmentSalesOrder"; +export * from "./ItemFulfillmentStatus"; +export * from "./ItemFulfillmentStatusEnum"; export * from "./ItemPurchaseAccount"; export * from "./ItemPurchaseTaxRate"; export * from "./ItemRequestRequest"; @@ -300,11 +345,13 @@ export * from "./JournalEntryAccountingPeriod"; export * from "./JournalEntryAppliedPaymentsItem"; export * from "./JournalEntryCompany"; export * from "./JournalEntryCurrency"; +export * from "./JournalEntryLinesItem"; export * from "./JournalEntryPaymentsItem"; export * from "./JournalEntryPostingStatus"; export * from "./JournalEntryRequest"; export * from "./JournalEntryRequestCompany"; export * from "./JournalEntryRequestCurrency"; +export * from "./JournalEntryRequestLinesItem"; export * from "./JournalEntryRequestPaymentsItem"; export * from "./JournalEntryRequestPostingStatus"; export * from "./JournalEntryRequestTrackingCategoriesItem"; @@ -354,6 +401,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,26 +410,22 @@ 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"; export * from "./PatchedPaymentRequest"; -export * from "./PatchedPaymentRequestAccount"; -export * from "./PatchedPaymentRequestAccountingPeriod"; -export * from "./PatchedPaymentRequestAppliedToLinesItem"; -export * from "./PatchedPaymentRequestCompany"; -export * from "./PatchedPaymentRequestContact"; 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"; @@ -425,11 +469,13 @@ export * from "./PurchaseOrderLineItemItem"; export * from "./PurchaseOrderLineItemRequest"; export * from "./PurchaseOrderLineItemRequestCurrency"; export * from "./PurchaseOrderLineItemRequestItem"; +export * from "./PurchaseOrderLineItemsItem"; export * from "./PurchaseOrderPaymentTerm"; export * from "./PurchaseOrderRequest"; export * from "./PurchaseOrderRequestCompany"; export * from "./PurchaseOrderRequestCurrency"; export * from "./PurchaseOrderRequestDeliveryAddress"; +export * from "./PurchaseOrderRequestLineItemsItem"; export * from "./PurchaseOrderRequestPaymentTerm"; export * from "./PurchaseOrderRequestStatus"; export * from "./PurchaseOrderRequestTrackingCategoriesItem"; @@ -439,34 +485,66 @@ export * from "./PurchaseOrderStatus"; export * from "./PurchaseOrderStatusEnum"; export * from "./PurchaseOrderTrackingCategoriesItem"; export * from "./PurchaseOrderVendor"; +export * from "./RegenerateAccountToken"; export * from "./RemoteData"; export * from "./RemoteEndpointInfo"; export * from "./RemoteField"; export * from "./RemoteFieldApi"; +export * from "./RemoteFieldApiAdvancedMetadata"; export * from "./RemoteFieldApiCoverage"; export * from "./RemoteFieldApiResponse"; export * from "./RemoteFieldClass"; -export * from "./RemoteFieldRemoteFieldClass"; export * from "./RemoteFieldRequest"; -export * from "./RemoteFieldRequestRemoteFieldClass"; export * from "./RemoteKey"; export * from "./RemoteResponse"; +export * from "./RemoteResponseResponseType"; 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 "./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 "./SalesOrderRequestRequest"; +export * from "./SalesOrderRequestRequestCompany"; +export * from "./SalesOrderRequestRequestCurrency"; +export * from "./SalesOrderRequestRequestCustomer"; +export * from "./SalesOrderRequestRequestLinesItem"; +export * from "./SalesOrderRequestRequestPaymentTerm"; +export * from "./SalesOrderRequestRequestShippingAddress"; +export * from "./SalesOrderRequestRequestStatus"; +export * from "./SalesOrderRequestRequestTrackingCategoriesItem"; +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"; export * from "./TaxRate"; export * from "./TaxRateCompany"; export * from "./TaxRateStatus"; -export * from "./TaxRateTaxComponentsItem"; export * from "./TrackingCategory"; export * from "./TrackingCategoryCategoryType"; export * from "./TrackingCategoryCompany"; @@ -474,12 +552,14 @@ export * from "./TrackingCategoryStatus"; export * from "./Transaction"; export * from "./TransactionAccount"; export * from "./TransactionAccountingPeriod"; +export * from "./TransactionCompany"; export * from "./TransactionContact"; export * from "./TransactionCurrency"; export * from "./TransactionCurrencyEnum"; export * from "./TransactionLineItem"; export * from "./TransactionLineItemCurrency"; export * from "./TransactionLineItemItem"; +export * from "./TransactionLineItemsItem"; export * from "./TransactionTrackingCategoriesItem"; export * from "./Type2BbEnum"; export * from "./UnderlyingTransactionTypeEnum"; @@ -502,6 +582,7 @@ export * from "./VendorCreditLineRequest"; export * from "./VendorCreditLineRequestAccount"; export * from "./VendorCreditLineRequestContact"; export * from "./VendorCreditLineRequestProject"; +export * from "./VendorCreditLinesItem"; export * from "./VendorCreditRequest"; export * from "./VendorCreditRequestAccountingPeriod"; export * from "./VendorCreditRequestCompany"; 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/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/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/resources/candidates/client/requests/IgnoreCommonModelRequest.ts b/src/serialization/resources/ats/types/IgnoreCommonModelRequest.ts similarity index 58% rename from src/serialization/resources/ats/resources/candidates/client/requests/IgnoreCommonModelRequest.ts rename to src/serialization/resources/ats/types/IgnoreCommonModelRequest.ts index 946c7153b..b8c111d1b 100644 --- a/src/serialization/resources/ats/resources/candidates/client/requests/IgnoreCommonModelRequest.ts +++ b/src/serialization/resources/ats/types/IgnoreCommonModelRequest.ts @@ -1,11 +1,11 @@ // This file was auto-generated 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"; +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.Schema< +export const IgnoreCommonModelRequest: core.serialization.ObjectSchema< serializers.ats.IgnoreCommonModelRequest.Raw, Merge.ats.IgnoreCommonModelRequest > = core.serialization.object({ diff --git a/src/serialization/resources/ats/resources/candidates/types/IgnoreCommonModelRequestReason.ts b/src/serialization/resources/ats/types/IgnoreCommonModelRequestReason.ts similarity index 66% rename from src/serialization/resources/ats/resources/candidates/types/IgnoreCommonModelRequestReason.ts rename to src/serialization/resources/ats/types/IgnoreCommonModelRequestReason.ts index e03a87c4a..688f30582 100644 --- a/src/serialization/resources/ats/resources/candidates/types/IgnoreCommonModelRequestReason.ts +++ b/src/serialization/resources/ats/types/IgnoreCommonModelRequestReason.ts @@ -1,9 +1,9 @@ // This file was auto-generated 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"; +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, 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/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/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/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/resources/employees/client/requests/IgnoreCommonModelRequest.ts b/src/serialization/resources/hris/types/IgnoreCommonModelRequest.ts similarity index 58% rename from src/serialization/resources/hris/resources/employees/client/requests/IgnoreCommonModelRequest.ts rename to src/serialization/resources/hris/types/IgnoreCommonModelRequest.ts index dc99f68b3..819fc4d87 100644 --- a/src/serialization/resources/hris/resources/employees/client/requests/IgnoreCommonModelRequest.ts +++ b/src/serialization/resources/hris/types/IgnoreCommonModelRequest.ts @@ -1,11 +1,11 @@ // This file was auto-generated 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"; +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.Schema< +export const IgnoreCommonModelRequest: core.serialization.ObjectSchema< serializers.hris.IgnoreCommonModelRequest.Raw, Merge.hris.IgnoreCommonModelRequest > = core.serialization.object({ diff --git a/src/serialization/resources/hris/resources/employees/types/IgnoreCommonModelRequestReason.ts b/src/serialization/resources/hris/types/IgnoreCommonModelRequestReason.ts similarity index 66% rename from src/serialization/resources/hris/resources/employees/types/IgnoreCommonModelRequestReason.ts rename to src/serialization/resources/hris/types/IgnoreCommonModelRequestReason.ts index 7fb38d081..f1cb1a9d3 100644 --- a/src/serialization/resources/hris/resources/employees/types/IgnoreCommonModelRequestReason.ts +++ b/src/serialization/resources/hris/types/IgnoreCommonModelRequestReason.ts @@ -1,9 +1,9 @@ // This file was auto-generated 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"; +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, 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/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..4125bde54 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "3.0.1"; +export const SDK_VERSION = "3.0.3"; 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 similarity index 69% rename from tests/wire/ats/accountToken.test.ts rename to tests/wire/ATS/accountToken.test.ts index b4e867950..d15ccf2a5 100644 --- a/tests/wire/ats/accountToken.test.ts +++ b/tests/wire/ATS/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("/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 similarity index 98% rename from tests/wire/ats/attachments.test.ts rename to tests/wire/ATS/attachments.test.ts index 5f4000281..a5f8443b5 100644 --- a/tests/wire/ats/attachments.test.ts +++ b/tests/wire/ATS/attachments.test.ts @@ -36,30 +36,14 @@ describe("AttachmentsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -89,7 +73,27 @@ describe("AttachmentsClient", () => { ], }, ], + }; + 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 () => { @@ -255,7 +259,6 @@ describe("AttachmentsClient", () => { .build(); const response = await client.ats.attachments.retrieve("id", { - expand: "candidate", includeRemoteData: true, includeShellData: true, remoteFields: "attachment_type", diff --git a/tests/wire/ats/auditTrail.test.ts b/tests/wire/ATS/auditTrail.test.ts similarity index 87% rename from tests/wire/ats/auditTrail.test.ts rename to tests/wire/ATS/auditTrail.test.ts index a3cff831b..5edb57afc 100644 --- a/tests/wire/ats/auditTrail.test.ts +++ b/tests/wire/ATS/auditTrail.test.ts @@ -31,22 +31,14 @@ describe("AuditTrailClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + 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.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 similarity index 97% rename from tests/wire/ats/fieldMapping.test.ts rename to tests/wire/ATS/fieldMapping.test.ts index d90790a9a..ef128e1fc 100644 --- a/tests/wire/ats/fieldMapping.test.ts +++ b/tests/wire/ATS/fieldMapping.test.ts @@ -32,6 +32,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], Application: [ @@ -52,6 +53,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], Attachment: [ @@ -72,6 +74,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], Candidate: [ @@ -92,6 +95,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], Department: [ @@ -112,6 +116,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], EEOC: [ @@ -132,6 +137,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], ScheduledInterview: [ @@ -152,6 +158,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], Job: [ @@ -172,6 +179,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], JobPosting: [ @@ -192,6 +200,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], JobInterviewStage: [ @@ -212,6 +221,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], Offer: [ @@ -232,6 +242,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], Office: [ @@ -252,6 +263,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], RejectReason: [ @@ -272,6 +284,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], Scorecard: [ @@ -292,6 +305,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], Tag: [ @@ -312,6 +326,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], RemoteUser: [ @@ -332,6 +347,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], }; @@ -367,6 +383,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], application: [ @@ -389,6 +406,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], attachment: [ @@ -411,6 +429,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], candidate: [ @@ -433,6 +452,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], department: [ @@ -455,6 +475,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], eeoc: [ @@ -477,6 +498,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], scheduledInterview: [ @@ -499,6 +521,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], job: [ @@ -521,6 +544,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], jobPosting: [ @@ -543,6 +567,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], jobInterviewStage: [ @@ -565,6 +590,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], offer: [ @@ -587,6 +613,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], office: [ @@ -609,6 +636,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], rejectReason: [ @@ -631,6 +659,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], scorecard: [ @@ -653,6 +682,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], tag: [ @@ -675,6 +705,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], remoteUser: [ @@ -697,6 +728,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], }); @@ -736,6 +768,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, warnings: [ { @@ -803,6 +836,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, warnings: [ { @@ -865,6 +899,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, warnings: [ { @@ -923,6 +958,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, warnings: [ { @@ -985,6 +1021,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, warnings: [ { @@ -1023,7 +1060,9 @@ describe("FieldMappingClient", () => { .jsonBody(rawResponseBody) .build(); - const response = await client.ats.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); + const response = await client.ats.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + remoteDataIterationCount: 1, + }); expect(response).toEqual({ model: { id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", @@ -1044,6 +1083,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, warnings: [ { 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 similarity index 89% rename from tests/wire/ats/issues.test.ts rename to tests/wire/ATS/issues.test.ts index 6ebf9b39c..f6b288644 100644 --- a/tests/wire/ats/issues.test.ts +++ b/tests/wire/ATS/issues.test.ts @@ -29,25 +29,15 @@ describe("IssuesClient", () => { }, ], }; - server.mockEndpoint().get("/ats/v1/issues").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -64,7 +54,28 @@ describe("IssuesClient", () => { 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 () => { 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 similarity index 93% rename from tests/wire/ats/linkedAccounts.test.ts rename to tests/wire/ATS/linkedAccounts.test.ts index b8d173ea3..6a07e8be7 100644 --- a/tests/wire/ats/linkedAccounts.test.ts +++ b/tests/wire/ATS/linkedAccounts.test.ts @@ -50,29 +50,14 @@ describe("LinkedAccountsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -109,6 +94,26 @@ describe("LinkedAccountsClient", () => { }, }, ], + }; + 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 similarity index 86% rename from tests/wire/ats/syncStatus.test.ts rename to tests/wire/ATS/syncStatus.test.ts index 7fefb7080..18d51682b 100644 --- a/tests/wire/ats/syncStatus.test.ts +++ b/tests/wire/ATS/syncStatus.test.ts @@ -31,18 +31,14 @@ describe("SyncStatusClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -58,6 +54,15 @@ describe("SyncStatusClient", () => { 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 similarity index 85% rename from tests/wire/ats/tags.test.ts rename to tests/wire/ATS/tags.test.ts index 8aee34a45..6f509662f 100644 --- a/tests/wire/ats/tags.test.ts +++ b/tests/wire/ATS/tags.test.ts @@ -31,21 +31,15 @@ describe("TagsClient", () => { }, ], }; - server.mockEndpoint().get("/ats/v1/tags").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -71,6 +65,23 @@ describe("TagsClient", () => { ], }, ], + }; + 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 similarity index 92% rename from tests/wire/ats/users.test.ts rename to tests/wire/ATS/users.test.ts index 47221bdcc..2b2123644 100644 --- a/tests/wire/ats/users.test.ts +++ b/tests/wire/ATS/users.test.ts @@ -37,24 +37,15 @@ describe("UsersClient", () => { }, ], }; - server.mockEndpoint().get("/ats/v1/users").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -86,7 +77,27 @@ describe("UsersClient", () => { ], }, ], + }; + 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 () => { 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 similarity index 69% rename from tests/wire/accounting/accountToken.test.ts rename to tests/wire/Accounting/accountToken.test.ts index b2c44fe84..729f236bd 100644 --- a/tests/wire/accounting/accountToken.test.ts +++ b/tests/wire/Accounting/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("/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 similarity index 97% rename from tests/wire/accounting/accounts.test.ts rename to tests/wire/Accounting/accounts.test.ts index c40158350..efd1c3364 100644 --- a/tests/wire/accounting/accounts.test.ts +++ b/tests/wire/Accounting/accounts.test.ts @@ -32,7 +32,7 @@ describe("AccountsClient", () => { currency: "XUA", account_number: "X12Y9AB", parent_account: "22d92d6c-22f9-11ed-861d-0242ac120002", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + company: "company", remote_was_deleted: true, field_mappings: { organization_defined_targets: { custom_key: "custom_value" }, @@ -43,34 +43,14 @@ describe("AccountsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -89,7 +69,7 @@ describe("AccountsClient", () => { currency: "XUA", accountNumber: "X12Y9AB", parentAccount: "22d92d6c-22f9-11ed-861d-0242ac120002", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + company: "company", remoteWasDeleted: true, fieldMappings: { organization_defined_targets: { @@ -107,7 +87,31 @@ describe("AccountsClient", () => { ], }, ], + }; + 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 () => { @@ -135,7 +139,7 @@ describe("AccountsClient", () => { currency: "XUA", account_number: "X12Y9AB", parent_account: "22d92d6c-22f9-11ed-861d-0242ac120002", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + company: "company", remote_was_deleted: true, field_mappings: { organization_defined_targets: { custom_key: "custom_value" }, @@ -149,6 +153,7 @@ describe("AccountsClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problem_type: "UNRECOGNIZED_FIELD", + block_merge_link: true, }, ], errors: [ @@ -157,6 +162,7 @@ describe("AccountsClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, }, ], logs: [ @@ -201,7 +207,7 @@ describe("AccountsClient", () => { currency: "XUA", accountNumber: "X12Y9AB", parentAccount: "22d92d6c-22f9-11ed-861d-0242ac120002", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + company: "company", remoteWasDeleted: true, fieldMappings: { organization_defined_targets: { @@ -226,6 +232,7 @@ describe("AccountsClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problemType: "UNRECOGNIZED_FIELD", + blockMergeLink: true, }, ], errors: [ @@ -236,6 +243,7 @@ describe("AccountsClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, }, ], logs: [ @@ -276,7 +284,7 @@ describe("AccountsClient", () => { currency: "XUA", account_number: "X12Y9AB", parent_account: "22d92d6c-22f9-11ed-861d-0242ac120002", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + company: "company", remote_was_deleted: true, field_mappings: { organization_defined_targets: { custom_key: "custom_value" }, @@ -293,7 +301,6 @@ describe("AccountsClient", () => { .build(); const response = await client.accounting.accounts.retrieve("id", { - expand: "company", includeRemoteData: true, includeShellData: true, remoteFields: "classification", @@ -314,7 +321,7 @@ describe("AccountsClient", () => { currency: "XUA", accountNumber: "X12Y9AB", parentAccount: "22d92d6c-22f9-11ed-861d-0242ac120002", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + company: "company", remoteWasDeleted: true, fieldMappings: { organization_defined_targets: { @@ -504,10 +511,10 @@ describe("AccountsClient", () => { }, }, }, - 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() @@ -742,15 +749,13 @@ describe("AccountsClient", () => { }, }, }, - remoteFieldClasses: { - key: "value", - }, status: { linkedAccountStatus: "linked_account_status", canMakeRequest: true, }, hasConditionalParams: true, hasRequiredLinkedAccountParams: true, + remoteFields: ["remote_fields"], }); }); }); 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 similarity index 98% rename from tests/wire/accounting/attachments.test.ts rename to tests/wire/Accounting/attachments.test.ts index 009f8a317..fdd0cf445 100644 --- a/tests/wire/accounting/attachments.test.ts +++ b/tests/wire/Accounting/attachments.test.ts @@ -35,27 +35,14 @@ describe("AttachmentsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -84,7 +71,25 @@ describe("AttachmentsClient", () => { ], }, ], + }; + 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 () => { @@ -118,6 +123,7 @@ describe("AttachmentsClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problem_type: "UNRECOGNIZED_FIELD", + block_merge_link: true, }, ], errors: [ @@ -126,6 +132,7 @@ describe("AttachmentsClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, }, ], logs: [ @@ -187,6 +194,7 @@ describe("AttachmentsClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problemType: "UNRECOGNIZED_FIELD", + blockMergeLink: true, }, ], errors: [ @@ -197,6 +205,7 @@ describe("AttachmentsClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, }, ], logs: [ @@ -446,10 +455,10 @@ describe("AttachmentsClient", () => { }, }, }, - 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() @@ -684,15 +693,13 @@ describe("AttachmentsClient", () => { }, }, }, - remoteFieldClasses: { - key: "value", - }, status: { linkedAccountStatus: "linked_account_status", canMakeRequest: true, }, hasConditionalParams: true, hasRequiredLinkedAccountParams: true, + remoteFields: ["remote_fields"], }); }); }); diff --git a/tests/wire/accounting/auditTrail.test.ts b/tests/wire/Accounting/auditTrail.test.ts similarity index 87% rename from tests/wire/accounting/auditTrail.test.ts rename to tests/wire/Accounting/auditTrail.test.ts index 365ee5008..6ebca1566 100644 --- a/tests/wire/accounting/auditTrail.test.ts +++ b/tests/wire/Accounting/auditTrail.test.ts @@ -31,22 +31,14 @@ describe("AuditTrailClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + 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.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 70% rename from tests/wire/accounting/balanceSheets.test.ts rename to tests/wire/Accounting/balanceSheets.test.ts index b8a0dbd93..39dfb1e4f 100644 --- a/tests/wire/accounting/balanceSheets.test.ts +++ b/tests/wire/Accounting/balanceSheets.test.ts @@ -34,10 +34,7 @@ describe("BalanceSheetsClient", () => { modified_at: "2021-10-16T00:00:00Z", name: "Assets", value: 1000, - sub_items: [ - { remote_id: "10300", name: "Revenue - San Francisco", value: 500 }, - { remote_id: "10301", name: "Revenue - New York", value: 500 }, - ], + sub_items: { key: "value" }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", }, ], @@ -48,10 +45,7 @@ describe("BalanceSheetsClient", () => { modified_at: "2021-10-16T00:00:00Z", name: "Liabilities", value: 500, - sub_items: [ - { remote_id: "10300", name: "Revenue - San Francisco", value: 500 }, - { remote_id: "10301", name: "Revenue - New York", value: 500 }, - ], + sub_items: { key: "value" }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", }, ], @@ -62,10 +56,7 @@ describe("BalanceSheetsClient", () => { modified_at: "2021-10-16T00:00:00Z", name: "Equity", value: 500, - sub_items: [ - { remote_id: "10300", name: "Revenue - San Francisco", value: 500 }, - { remote_id: "10301", name: "Revenue - New York", value: 500 }, - ], + sub_items: { key: "value" }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", }, ], @@ -80,28 +71,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: [ @@ -122,18 +99,9 @@ describe("BalanceSheetsClient", () => { modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Assets", value: 1000, - subItems: [ - { - remote_id: "10300", - name: "Revenue - San Francisco", - value: 500, - }, - { - remote_id: "10301", - name: "Revenue - New York", - value: 500, - }, - ], + subItems: { + key: "value", + }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", }, ], @@ -144,18 +112,9 @@ describe("BalanceSheetsClient", () => { modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Liabilities", value: 500, - subItems: [ - { - remote_id: "10300", - name: "Revenue - San Francisco", - value: 500, - }, - { - remote_id: "10301", - name: "Revenue - New York", - value: 500, - }, - ], + subItems: { + key: "value", + }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", }, ], @@ -166,18 +125,9 @@ describe("BalanceSheetsClient", () => { modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Equity", value: 500, - subItems: [ - { - remote_id: "10300", - name: "Revenue - San Francisco", - value: 500, - }, - { - remote_id: "10301", - name: "Revenue - New York", - value: 500, - }, - ], + subItems: { + key: "value", + }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", }, ], @@ -199,7 +149,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 () => { @@ -228,10 +196,7 @@ describe("BalanceSheetsClient", () => { modified_at: "2021-10-16T00:00:00Z", name: "Assets", value: 1000, - sub_items: [ - { remote_id: "10300", name: "Revenue - San Francisco", value: 500 }, - { remote_id: "10301", name: "Revenue - New York", value: 500 }, - ], + sub_items: { key: "value" }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", remote_was_deleted: true, }, @@ -243,10 +208,7 @@ describe("BalanceSheetsClient", () => { modified_at: "2021-10-16T00:00:00Z", name: "Liabilities", value: 500, - sub_items: [ - { remote_id: "10300", name: "Revenue - San Francisco", value: 500 }, - { remote_id: "10301", name: "Revenue - New York", value: 500 }, - ], + sub_items: { key: "value" }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", remote_was_deleted: true, }, @@ -258,10 +220,7 @@ describe("BalanceSheetsClient", () => { modified_at: "2021-10-16T00:00:00Z", name: "Equity", value: 500, - sub_items: [ - { remote_id: "10300", name: "Revenue - San Francisco", value: 500 }, - { remote_id: "10301", name: "Revenue - New York", value: 500 }, - ], + sub_items: { key: "value" }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", remote_was_deleted: true, }, @@ -283,7 +242,6 @@ describe("BalanceSheetsClient", () => { .build(); const response = await client.accounting.balanceSheets.retrieve("id", { - expand: "company", includeRemoteData: true, includeShellData: true, }); @@ -304,18 +262,9 @@ describe("BalanceSheetsClient", () => { modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Assets", value: 1000, - subItems: [ - { - remote_id: "10300", - name: "Revenue - San Francisco", - value: 500, - }, - { - remote_id: "10301", - name: "Revenue - New York", - value: 500, - }, - ], + subItems: { + key: "value", + }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", remoteWasDeleted: true, }, @@ -327,18 +276,9 @@ describe("BalanceSheetsClient", () => { modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Liabilities", value: 500, - subItems: [ - { - remote_id: "10300", - name: "Revenue - San Francisco", - value: 500, - }, - { - remote_id: "10301", - name: "Revenue - New York", - value: 500, - }, - ], + subItems: { + key: "value", + }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", remoteWasDeleted: true, }, @@ -350,18 +290,9 @@ describe("BalanceSheetsClient", () => { modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Equity", value: 500, - subItems: [ - { - remote_id: "10300", - name: "Revenue - San Francisco", - value: 500, - }, - { - remote_id: "10301", - name: "Revenue - New York", - value: 500, - }, - ], + subItems: { + key: "value", + }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", remoteWasDeleted: true, }, diff --git a/tests/wire/accounting/bankFeedAccounts.test.ts b/tests/wire/Accounting/bankFeedAccounts.test.ts similarity index 96% rename from tests/wire/accounting/bankFeedAccounts.test.ts rename to tests/wire/Accounting/bankFeedAccounts.test.ts index 0de0abc45..c26e59769 100644 --- a/tests/wire/accounting/bankFeedAccounts.test.ts +++ b/tests/wire/Accounting/bankFeedAccounts.test.ts @@ -37,26 +37,19 @@ describe("BankFeedAccountsClient", () => { organization_defined_targets: { custom_key: "custom_value" }, linked_account_defined_targets: { custom_key: "custom_value" }, }, - remote_data: [], + remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], }, ], }; 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: [ @@ -84,10 +77,27 @@ describe("BankFeedAccountsClient", () => { custom_key: "custom_value", }, }, - remoteData: [], + remoteData: [ + { + path: "/platform-endpoint", + data: ["Varies by platform"], + }, + ], }, ], + }; + 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 () => { @@ -120,7 +130,7 @@ describe("BankFeedAccountsClient", () => { organization_defined_targets: { custom_key: "custom_value" }, linked_account_defined_targets: { custom_key: "custom_value" }, }, - remote_data: [{ key: "value" }], + remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], }, warnings: [ { @@ -128,6 +138,7 @@ describe("BankFeedAccountsClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problem_type: "UNRECOGNIZED_FIELD", + block_merge_link: true, }, ], errors: [ @@ -136,6 +147,7 @@ describe("BankFeedAccountsClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, }, ], logs: [ @@ -191,7 +203,8 @@ describe("BankFeedAccountsClient", () => { }, remoteData: [ { - key: "value", + path: "/platform-endpoint", + data: ["Varies by platform"], }, ], }, @@ -203,6 +216,7 @@ describe("BankFeedAccountsClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problemType: "UNRECOGNIZED_FIELD", + blockMergeLink: true, }, ], errors: [ @@ -213,6 +227,7 @@ describe("BankFeedAccountsClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, }, ], logs: [ @@ -258,7 +273,7 @@ describe("BankFeedAccountsClient", () => { organization_defined_targets: { custom_key: "custom_value" }, linked_account_defined_targets: { custom_key: "custom_value" }, }, - remote_data: [{ key: "value" }], + remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], }; server .mockEndpoint() @@ -298,7 +313,8 @@ describe("BankFeedAccountsClient", () => { }, remoteData: [ { - key: "value", + path: "/platform-endpoint", + data: ["Varies by platform"], }, ], }); @@ -475,10 +491,10 @@ describe("BankFeedAccountsClient", () => { }, }, }, - 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() @@ -713,15 +729,13 @@ describe("BankFeedAccountsClient", () => { }, }, }, - remoteFieldClasses: { - key: "value", - }, status: { linkedAccountStatus: "linked_account_status", canMakeRequest: true, }, hasConditionalParams: true, hasRequiredLinkedAccountParams: true, + remoteFields: ["remote_fields"], }); }); }); diff --git a/tests/wire/accounting/bankFeedTransactions.test.ts b/tests/wire/Accounting/bankFeedTransactions.test.ts similarity index 98% rename from tests/wire/accounting/bankFeedTransactions.test.ts rename to tests/wire/Accounting/bankFeedTransactions.test.ts index 97b99c349..7b3bb4e98 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 () => { @@ -116,6 +120,7 @@ describe("BankFeedTransactionsClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problem_type: "UNRECOGNIZED_FIELD", + block_merge_link: true, }, ], errors: [ @@ -124,6 +129,7 @@ describe("BankFeedTransactionsClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, }, ], logs: [ @@ -178,6 +184,7 @@ describe("BankFeedTransactionsClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problemType: "UNRECOGNIZED_FIELD", + blockMergeLink: true, }, ], errors: [ @@ -188,6 +195,7 @@ describe("BankFeedTransactionsClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, }, ], logs: [ @@ -239,7 +247,6 @@ describe("BankFeedTransactionsClient", () => { .build(); const response = await client.accounting.bankFeedTransactions.retrieve("id", { - expand: "bank_feed_account", includeRemoteData: true, includeShellData: true, }); @@ -433,10 +440,10 @@ describe("BankFeedTransactionsClient", () => { }, }, }, - 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() @@ -671,15 +678,13 @@ describe("BankFeedTransactionsClient", () => { }, }, }, - remoteFieldClasses: { - key: "value", - }, status: { linkedAccountStatus: "linked_account_status", canMakeRequest: true, }, hasConditionalParams: true, hasRequiredLinkedAccountParams: true, + remoteFields: ["remote_fields"], }); }); }); diff --git a/tests/wire/accounting/cashFlowStatements.test.ts b/tests/wire/Accounting/cashFlowStatements.test.ts similarity index 85% rename from tests/wire/accounting/cashFlowStatements.test.ts rename to tests/wire/Accounting/cashFlowStatements.test.ts index c7bfe3a0f..dbed522ab 100644 --- a/tests/wire/accounting/cashFlowStatements.test.ts +++ b/tests/wire/Accounting/cashFlowStatements.test.ts @@ -36,15 +36,15 @@ describe("CashFlowStatementsClient", () => { modified_at: "2021-09-18T00:00:00Z", name: "Operating Activities", value: 1000, - sub_items: [ - { + sub_items: { + "0": { remote_id: "23042938", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-09-18T00:00:00Z", name: "Net Income", value: 1097.13, }, - ], + }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", }, ], @@ -55,14 +55,14 @@ describe("CashFlowStatementsClient", () => { modified_at: "2021-11-18T00:00:00Z", name: "Equipment", value: 1000, - sub_items: [ - { + sub_items: { + "0": { created_at: "2021-11-15T00:00:00Z", modified_at: "2021-09-18T00:00:00Z", name: "Equipment", value: 1000, }, - ], + }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", }, ], @@ -73,10 +73,7 @@ describe("CashFlowStatementsClient", () => { modified_at: "2021-11-15T00:00:00Z", name: "Revenue", value: 1000, - sub_items: [ - { remote_id: "10300", name: "Revenue - San Francisco", value: 500 }, - { remote_id: "10301", name: "Revenue - New York", value: 500 }, - ], + sub_items: { key: "value" }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", }, ], @@ -91,28 +88,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: [ @@ -135,15 +118,15 @@ describe("CashFlowStatementsClient", () => { modifiedAt: new Date("2021-09-18T00:00:00.000Z"), name: "Operating Activities", value: 1000, - subItems: [ - { + subItems: { + "0": { remote_id: "23042938", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-09-18T00:00:00Z", name: "Net Income", value: 1097.13, }, - ], + }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", }, ], @@ -154,14 +137,14 @@ describe("CashFlowStatementsClient", () => { modifiedAt: new Date("2021-11-18T00:00:00.000Z"), name: "Equipment", value: 1000, - subItems: [ - { + subItems: { + "0": { created_at: "2021-11-15T00:00:00Z", modified_at: "2021-09-18T00:00:00Z", name: "Equipment", value: 1000, }, - ], + }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", }, ], @@ -172,18 +155,9 @@ describe("CashFlowStatementsClient", () => { modifiedAt: new Date("2021-11-15T00:00:00.000Z"), name: "Revenue", value: 1000, - subItems: [ - { - remote_id: "10300", - name: "Revenue - San Francisco", - value: 500, - }, - { - remote_id: "10301", - name: "Revenue - New York", - value: 500, - }, - ], + subItems: { + key: "value", + }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", }, ], @@ -205,7 +179,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 () => { @@ -236,15 +228,15 @@ describe("CashFlowStatementsClient", () => { modified_at: "2021-09-18T00:00:00Z", name: "Operating Activities", value: 1000, - sub_items: [ - { + sub_items: { + "0": { remote_id: "23042938", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-09-18T00:00:00Z", name: "Net Income", value: 1097.13, }, - ], + }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", remote_was_deleted: true, }, @@ -256,14 +248,14 @@ describe("CashFlowStatementsClient", () => { modified_at: "2021-11-18T00:00:00Z", name: "Equipment", value: 1000, - sub_items: [ - { + sub_items: { + "0": { created_at: "2021-11-15T00:00:00Z", modified_at: "2021-09-18T00:00:00Z", name: "Equipment", value: 1000, }, - ], + }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", remote_was_deleted: true, }, @@ -275,10 +267,7 @@ describe("CashFlowStatementsClient", () => { modified_at: "2021-11-15T00:00:00Z", name: "Revenue", value: 1000, - sub_items: [ - { remote_id: "10300", name: "Revenue - San Francisco", value: 500 }, - { remote_id: "10301", name: "Revenue - New York", value: 500 }, - ], + sub_items: { key: "value" }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", remote_was_deleted: true, }, @@ -300,7 +289,6 @@ describe("CashFlowStatementsClient", () => { .build(); const response = await client.accounting.cashFlowStatements.retrieve("id", { - expand: "company", includeRemoteData: true, includeShellData: true, }); @@ -323,15 +311,15 @@ describe("CashFlowStatementsClient", () => { modifiedAt: new Date("2021-09-18T00:00:00.000Z"), name: "Operating Activities", value: 1000, - subItems: [ - { + subItems: { + "0": { remote_id: "23042938", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-09-18T00:00:00Z", name: "Net Income", value: 1097.13, }, - ], + }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", remoteWasDeleted: true, }, @@ -343,14 +331,14 @@ describe("CashFlowStatementsClient", () => { modifiedAt: new Date("2021-11-18T00:00:00.000Z"), name: "Equipment", value: 1000, - subItems: [ - { + subItems: { + "0": { created_at: "2021-11-15T00:00:00Z", modified_at: "2021-09-18T00:00:00Z", name: "Equipment", value: 1000, }, - ], + }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", remoteWasDeleted: true, }, @@ -362,18 +350,9 @@ describe("CashFlowStatementsClient", () => { modifiedAt: new Date("2021-11-15T00:00:00.000Z"), name: "Revenue", value: 1000, - subItems: [ - { - remote_id: "10300", - name: "Revenue - San Francisco", - value: 500, - }, - { - remote_id: "10301", - name: "Revenue - New York", - value: 500, - }, - ], + subItems: { + key: "value", + }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", remoteWasDeleted: true, }, diff --git a/tests/wire/accounting/companyInfo.test.ts b/tests/wire/Accounting/companyInfo.test.ts similarity index 85% rename from tests/wire/accounting/companyInfo.test.ts rename to tests/wire/Accounting/companyInfo.test.ts index a4c42b11b..461e17db8 100644 --- a/tests/wire/accounting/companyInfo.test.ts +++ b/tests/wire/Accounting/companyInfo.test.ts @@ -43,14 +43,7 @@ describe("CompanyInfoClient", () => { zip_code: "10027", }, ], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - number: "+3198675309", - type: "Mobile", - }, - ], + phone_numbers: ["phone_numbers"], remote_was_deleted: true, field_mappings: { organization_defined_targets: { custom_key: "custom_value" }, @@ -61,27 +54,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: [ @@ -111,14 +91,7 @@ describe("CompanyInfoClient", () => { zipCode: "10027", }, ], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - number: "+3198675309", - type: "Mobile", - }, - ], + phoneNumbers: ["phone_numbers"], remoteWasDeleted: true, fieldMappings: { organization_defined_targets: { @@ -136,7 +109,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 () => { @@ -175,14 +166,7 @@ describe("CompanyInfoClient", () => { zip_code: "10027", }, ], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - number: "+3198675309", - type: "Mobile", - }, - ], + phone_numbers: ["phone_numbers"], remote_was_deleted: true, field_mappings: { organization_defined_targets: { custom_key: "custom_value" }, @@ -199,7 +183,6 @@ describe("CompanyInfoClient", () => { .build(); const response = await client.accounting.companyInfo.retrieve("id", { - expand: "addresses", includeRemoteData: true, includeShellData: true, }); @@ -230,14 +213,7 @@ describe("CompanyInfoClient", () => { zipCode: "10027", }, ], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - number: "+3198675309", - type: "Mobile", - }, - ], + phoneNumbers: ["phone_numbers"], remoteWasDeleted: true, fieldMappings: { organization_defined_targets: { diff --git a/tests/wire/accounting/contacts.test.ts b/tests/wire/Accounting/contacts.test.ts similarity index 96% rename from tests/wire/accounting/contacts.test.ts rename to tests/wire/Accounting/contacts.test.ts index 8d1f23295..7952f9a84 100644 --- a/tests/wire/accounting/contacts.test.ts +++ b/tests/wire/Accounting/contacts.test.ts @@ -30,7 +30,7 @@ describe("ContactsClient", () => { status: "ACTIVE", currency: "USD", remote_updated_at: "2020-03-31T00:00:00Z", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + company: "company", addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], phone_numbers: [ { @@ -46,41 +46,19 @@ describe("ContactsClient", () => { 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" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }, ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -97,7 +75,7 @@ describe("ContactsClient", () => { status: "ACTIVE", currency: "USD", remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + company: "company", addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], phoneNumbers: [ { @@ -124,13 +102,41 @@ describe("ContactsClient", () => { ], remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }, ], + }; + 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 () => { @@ -156,7 +162,7 @@ describe("ContactsClient", () => { status: "ACTIVE", currency: "USD", remote_updated_at: "2020-03-31T00:00:00Z", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + company: "company", addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], phone_numbers: [ { @@ -172,7 +178,7 @@ describe("ContactsClient", () => { 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" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }, warnings: [ { @@ -180,6 +186,7 @@ describe("ContactsClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problem_type: "UNRECOGNIZED_FIELD", + block_merge_link: true, }, ], errors: [ @@ -188,6 +195,7 @@ describe("ContactsClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, }, ], logs: [ @@ -230,7 +238,7 @@ describe("ContactsClient", () => { status: "ACTIVE", currency: "USD", remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + company: "company", addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], phoneNumbers: [ { @@ -257,8 +265,10 @@ describe("ContactsClient", () => { ], remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }, @@ -270,6 +280,7 @@ describe("ContactsClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problemType: "UNRECOGNIZED_FIELD", + blockMergeLink: true, }, ], errors: [ @@ -280,6 +291,7 @@ describe("ContactsClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, }, ], logs: [ @@ -318,7 +330,7 @@ describe("ContactsClient", () => { status: "ACTIVE", currency: "USD", remote_updated_at: "2020-03-31T00:00:00Z", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + company: "company", addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], phone_numbers: [ { @@ -334,7 +346,7 @@ describe("ContactsClient", () => { 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" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }; server .mockEndpoint() @@ -345,7 +357,6 @@ describe("ContactsClient", () => { .build(); const response = await client.accounting.contacts.retrieve("id", { - expand: "addresses", includeRemoteData: true, includeRemoteFields: true, includeShellData: true, @@ -365,7 +376,7 @@ describe("ContactsClient", () => { status: "ACTIVE", currency: "USD", remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + company: "company", addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], phoneNumbers: [ { @@ -392,8 +403,10 @@ describe("ContactsClient", () => { ], remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }); @@ -422,7 +435,7 @@ describe("ContactsClient", () => { status: "ACTIVE", currency: "USD", remote_updated_at: "2020-03-31T00:00:00Z", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + company: "company", addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], phone_numbers: [ { @@ -438,7 +451,7 @@ describe("ContactsClient", () => { 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" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }, warnings: [ { @@ -446,6 +459,7 @@ describe("ContactsClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problem_type: "UNRECOGNIZED_FIELD", + block_merge_link: true, }, ], errors: [ @@ -454,6 +468,7 @@ describe("ContactsClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, }, ], logs: [ @@ -496,7 +511,7 @@ describe("ContactsClient", () => { status: "ACTIVE", currency: "USD", remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + company: "company", addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], phoneNumbers: [ { @@ -523,8 +538,10 @@ describe("ContactsClient", () => { ], remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }, @@ -536,6 +553,7 @@ describe("ContactsClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problemType: "UNRECOGNIZED_FIELD", + blockMergeLink: true, }, ], errors: [ @@ -546,6 +564,7 @@ describe("ContactsClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, }, ], logs: [ @@ -733,10 +752,10 @@ describe("ContactsClient", () => { }, }, }, - 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() @@ -971,15 +990,13 @@ describe("ContactsClient", () => { }, }, }, - remoteFieldClasses: { - key: "value", - }, status: { linkedAccountStatus: "linked_account_status", canMakeRequest: true, }, hasConditionalParams: true, hasRequiredLinkedAccountParams: true, + remoteFields: ["remote_fields"], }); }); @@ -1154,10 +1171,10 @@ describe("ContactsClient", () => { }, }, }, - 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() @@ -1392,15 +1409,13 @@ describe("ContactsClient", () => { }, }, }, - remoteFieldClasses: { - key: "value", - }, status: { linkedAccountStatus: "linked_account_status", canMakeRequest: true, }, hasConditionalParams: true, hasRequiredLinkedAccountParams: true, + remoteFields: ["remote_fields"], }); }); @@ -1432,23 +1447,14 @@ describe("ContactsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -1465,6 +1471,20 @@ describe("ContactsClient", () => { 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..df418c06b --- /dev/null +++ b/tests/wire/Accounting/creditNotes.test.ts @@ -0,0 +1,1915 @@ +// 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: [ + { + 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: [ + { + 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: [ + { + 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", + block_merge_link: true, + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, + }, + ], + 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: [ + { + 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", + blockMergeLink: true, + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, + }, + ], + 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: "remote_id", + 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: "remote_id", + 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: [ + { + 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", + block_merge_link: true, + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, + }, + ], + 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: [ + { + 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", + blockMergeLink: true, + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, + }, + ], + 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: [ + { + 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", + block_merge_link: true, + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, + }, + ], + 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: [ + { + 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", + blockMergeLink: true, + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, + }, + ], + 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", + }, + }, + }, + }, + }, + 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("/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", + }, + }, + }, + }, + }, + status: { + linkedAccountStatus: "linked_account_status", + canMakeRequest: true, + }, + hasConditionalParams: true, + hasRequiredLinkedAccountParams: true, + remoteFields: ["remote_fields"], + }); + }); + + 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", + }, + }, + }, + }, + }, + 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("/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", + }, + }, + }, + }, + }, + status: { + linkedAccountStatus: "linked_account_status", + canMakeRequest: true, + }, + hasConditionalParams: true, + hasRequiredLinkedAccountParams: true, + remoteFields: ["remote_fields"], + }); + }); +}); 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 similarity index 94% rename from tests/wire/accounting/employees.test.ts rename to tests/wire/Accounting/employees.test.ts index c9499783c..9259c13d5 100644 --- a/tests/wire/accounting/employees.test.ts +++ b/tests/wire/Accounting/employees.test.ts @@ -39,28 +39,14 @@ describe("EmployeesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -93,7 +79,25 @@ describe("EmployeesClient", () => { ], }, ], + }; + 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 () => { @@ -133,7 +137,6 @@ describe("EmployeesClient", () => { .build(); const response = await client.accounting.employees.retrieve("id", { - expand: "company", includeRemoteData: true, includeShellData: true, }); diff --git a/tests/wire/accounting/expenseReports.test.ts b/tests/wire/Accounting/expenseReports.test.ts similarity index 93% rename from tests/wire/accounting/expenseReports.test.ts rename to tests/wire/Accounting/expenseReports.test.ts index 3ce433651..5912b64d0 100644 --- a/tests/wire/accounting/expenseReports.test.ts +++ b/tests/wire/Accounting/expenseReports.test.ts @@ -24,7 +24,7 @@ describe("ExpenseReportsClient", () => { 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", + employee: "employee", status: "DRAFT", total_amount: 150, lines: [ @@ -56,7 +56,7 @@ describe("ExpenseReportsClient", () => { ], currency: "XUA", description: "January 2024 Travel Expenses", - accounting_period: "7d793c67-9f72-4a6b-9256-3936f237b0d9", + accounting_period: "accounting_period", company: "company", tracking_categories: [ "a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", @@ -68,34 +68,19 @@ describe("ExpenseReportsClient", () => { 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" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }, ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -106,7 +91,7 @@ describe("ExpenseReportsClient", () => { 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", + employee: "employee", status: "DRAFT", totalAmount: 150, lines: [ @@ -138,7 +123,7 @@ describe("ExpenseReportsClient", () => { ], currency: "XUA", description: "January 2024 Travel Expenses", - accountingPeriod: "7d793c67-9f72-4a6b-9256-3936f237b0d9", + accountingPeriod: "accounting_period", company: "company", trackingCategories: [ "a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", @@ -161,13 +146,34 @@ describe("ExpenseReportsClient", () => { ], remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }, ], + }; + 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 () => { @@ -191,7 +197,7 @@ describe("ExpenseReportsClient", () => { 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", + employee: "employee", status: "DRAFT", total_amount: 150, lines: [ @@ -223,7 +229,7 @@ describe("ExpenseReportsClient", () => { ], currency: "XUA", description: "January 2024 Travel Expenses", - accounting_period: "7d793c67-9f72-4a6b-9256-3936f237b0d9", + accounting_period: "accounting_period", company: "company", tracking_categories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"], remote_was_deleted: true, @@ -232,7 +238,7 @@ describe("ExpenseReportsClient", () => { 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" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }, warnings: [ { @@ -240,6 +246,7 @@ describe("ExpenseReportsClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problem_type: "UNRECOGNIZED_FIELD", + block_merge_link: true, }, ], errors: [ @@ -248,6 +255,7 @@ describe("ExpenseReportsClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, }, ], logs: [ @@ -286,7 +294,7 @@ describe("ExpenseReportsClient", () => { 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", + employee: "employee", status: "DRAFT", totalAmount: 150, lines: [ @@ -318,7 +326,7 @@ describe("ExpenseReportsClient", () => { ], currency: "XUA", description: "January 2024 Travel Expenses", - accountingPeriod: "7d793c67-9f72-4a6b-9256-3936f237b0d9", + accountingPeriod: "accounting_period", company: "company", trackingCategories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"], remoteWasDeleted: true, @@ -338,8 +346,10 @@ describe("ExpenseReportsClient", () => { ], remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }, @@ -351,6 +361,7 @@ describe("ExpenseReportsClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problemType: "UNRECOGNIZED_FIELD", + blockMergeLink: true, }, ], errors: [ @@ -361,6 +372,7 @@ describe("ExpenseReportsClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, }, ], logs: [ @@ -414,28 +426,19 @@ describe("ExpenseReportsClient", () => { inclusive_of_tax: true, tax_rate: "tax_rate", remote_was_deleted: true, - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }, ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -465,13 +468,28 @@ describe("ExpenseReportsClient", () => { remoteWasDeleted: true, remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }, ], + }; + 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 () => { @@ -490,7 +508,7 @@ describe("ExpenseReportsClient", () => { 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", + employee: "employee", status: "DRAFT", total_amount: 150, lines: [ @@ -518,12 +536,12 @@ describe("ExpenseReportsClient", () => { inclusive_of_tax: false, tax_rate: "tax-1234", remote_was_deleted: false, - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }, ], currency: "XUA", description: "January 2024 Travel Expenses", - accounting_period: "7d793c67-9f72-4a6b-9256-3936f237b0d9", + accounting_period: "accounting_period", company: "company", tracking_categories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"], remote_was_deleted: true, @@ -532,7 +550,7 @@ describe("ExpenseReportsClient", () => { 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" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }; server .mockEndpoint() @@ -543,7 +561,6 @@ describe("ExpenseReportsClient", () => { .build(); const response = await client.accounting.expenseReports.retrieve("id", { - expand: "accounting_period", includeRemoteData: true, includeRemoteFields: true, includeShellData: true, @@ -555,7 +572,7 @@ describe("ExpenseReportsClient", () => { 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", + employee: "employee", status: "DRAFT", totalAmount: 150, lines: [ @@ -585,15 +602,17 @@ describe("ExpenseReportsClient", () => { remoteWasDeleted: false, remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }, ], currency: "XUA", description: "January 2024 Travel Expenses", - accountingPeriod: "7d793c67-9f72-4a6b-9256-3936f237b0d9", + accountingPeriod: "accounting_period", company: "company", trackingCategories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"], remoteWasDeleted: true, @@ -613,8 +632,10 @@ describe("ExpenseReportsClient", () => { ], remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }); @@ -648,23 +669,14 @@ describe("ExpenseReportsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -681,7 +693,21 @@ describe("ExpenseReportsClient", () => { 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 () => { @@ -855,10 +881,10 @@ describe("ExpenseReportsClient", () => { }, }, }, - 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() @@ -1093,15 +1119,13 @@ describe("ExpenseReportsClient", () => { }, }, }, - remoteFieldClasses: { - key: "value", - }, status: { linkedAccountStatus: "linked_account_status", canMakeRequest: true, }, hasConditionalParams: true, hasRequiredLinkedAccountParams: true, + remoteFields: ["remote_fields"], }); }); @@ -1133,23 +1157,14 @@ describe("ExpenseReportsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -1166,6 +1181,20 @@ describe("ExpenseReportsClient", () => { 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 similarity index 69% rename from tests/wire/accounting/expenses.test.ts rename to tests/wire/Accounting/expenses.test.ts index 6664d2db7..e9e35ce75 100644 --- a/tests/wire/accounting/expenses.test.ts +++ b/tests/wire/Accounting/expenses.test.ts @@ -19,7 +19,7 @@ describe("ExpensesClient", () => { results: [ { id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", + remote_id: "remote_id", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", transaction_date: "2024-01-15T09:30:00Z", @@ -91,42 +91,25 @@ describe("ExpensesClient", () => { 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" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }, ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ { id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", + remoteId: "remote_id", 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"), @@ -209,13 +192,36 @@ describe("ExpensesClient", () => { ], remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }, ], + }; + 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 () => { @@ -230,7 +236,7 @@ describe("ExpensesClient", () => { const rawResponseBody = { model: { id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", + remote_id: "remote_id", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", transaction_date: "2024-01-15T09:30:00Z", @@ -302,7 +308,7 @@ describe("ExpensesClient", () => { 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" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }, warnings: [ { @@ -310,6 +316,7 @@ describe("ExpensesClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problem_type: "UNRECOGNIZED_FIELD", + block_merge_link: true, }, ], errors: [ @@ -318,6 +325,7 @@ describe("ExpensesClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, }, ], logs: [ @@ -349,7 +357,7 @@ describe("ExpensesClient", () => { expect(response).toEqual({ model: { id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", + remoteId: "remote_id", 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"), @@ -432,8 +440,10 @@ describe("ExpensesClient", () => { ], remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }, @@ -445,6 +455,7 @@ describe("ExpensesClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problemType: "UNRECOGNIZED_FIELD", + blockMergeLink: true, }, ], errors: [ @@ -455,6 +466,7 @@ describe("ExpensesClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, }, ], logs: [ @@ -482,7 +494,7 @@ describe("ExpensesClient", () => { const rawResponseBody = { id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", + remote_id: "remote_id", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", transaction_date: "2024-01-15T09:30:00Z", @@ -562,7 +574,7 @@ describe("ExpensesClient", () => { 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" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }; server .mockEndpoint() @@ -573,14 +585,13 @@ describe("ExpensesClient", () => { .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", + remoteId: "remote_id", 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"), @@ -671,14 +682,16 @@ describe("ExpensesClient", () => { ], remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }); }); - test("linesRemoteFieldClassesList", async () => { + test("asyncBulkCreate", async () => { const server = mockServerPool.createServer(); const client = new MergeClient({ maxRetries: 0, @@ -686,111 +699,600 @@ describe("ExpensesClient", () => { accountToken: "test", environment: server.baseUrl, }); - + const rawRequestBody = { batch_items: [{ item_id: "item_id", payload: {} }] }; const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ + model: { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "remote_id", + 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: {}, value: { key: "value" } }], + }, + warnings: [ { - 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"], + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + block_merge_link: true, + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, + }, + ], + 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() - .get("/accounting/v1/expenses/lines/remote-field-classes") + .post("/accounting/v1/expenses/async/bulk") + .jsonBody(rawRequestBody) .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: [ + const response = await client.accounting.expenses.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [ { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: ["field_choices"], + itemId: "item_id", + payload: {}, }, ], }); - }); - - 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", + expect(response).toEqual({ + model: { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "remote_id", + 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", ], - 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: { + 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: {}, + value: { + key: "value", + }, + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + blockMergeLink: true, + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, + }, + ], + 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: "remote_id", + 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: {}, value: { key: "value" } }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/expenses/batch/batch_id/objects") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "remote_id", + 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: {}, + value: { + key: "value", + }, + }, + ], + }, + ], + }; + const page = 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(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + 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" }, @@ -913,10 +1415,10 @@ describe("ExpensesClient", () => { }, }, }, - 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() @@ -1151,15 +1653,13 @@ describe("ExpensesClient", () => { }, }, }, - remoteFieldClasses: { - key: "value", - }, status: { linkedAccountStatus: "linked_account_status", canMakeRequest: true, }, hasConditionalParams: true, hasRequiredLinkedAccountParams: true, + remoteFields: ["remote_fields"], }); }); @@ -1191,23 +1691,14 @@ describe("ExpensesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -1224,6 +1715,20 @@ describe("ExpensesClient", () => { 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 similarity index 86% rename from tests/wire/accounting/fieldMapping.test.ts rename to tests/wire/Accounting/fieldMapping.test.ts index 876cba868..c70a37801 100644 --- a/tests/wire/accounting/fieldMapping.test.ts +++ b/tests/wire/Accounting/fieldMapping.test.ts @@ -32,6 +32,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, ], AccountingAttachment: [ @@ -52,6 +54,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, ], BalanceSheet: [ @@ -72,6 +76,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, ], CashFlowStatement: [ @@ -92,6 +98,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, ], CompanyInfo: [ @@ -112,6 +120,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, ], Contact: [ @@ -132,6 +142,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, ], IncomeStatement: [ @@ -152,6 +164,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, ], CreditNote: [ @@ -172,6 +186,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, ], Item: [ @@ -192,6 +208,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, ], PurchaseOrder: [ @@ -212,6 +230,52 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", + }, + ], + 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", + advanced_mapping_expression: "$[0].example_jsonata", + }, + ], + 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", + advanced_mapping_expression: "$[0].example_jsonata", }, ], ExpenseReport: [ @@ -232,6 +296,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, ], TrackingCategory: [ @@ -252,6 +318,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, ], JournalEntry: [ @@ -272,6 +340,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, ], TaxRate: [ @@ -292,6 +362,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, ], Invoice: [ @@ -312,6 +384,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, ], Payment: [ @@ -332,6 +406,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, ], Expense: [ @@ -352,6 +428,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, ], VendorCredit: [ @@ -372,6 +450,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, ], Transaction: [ @@ -392,6 +472,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, ], AccountingPeriod: [ @@ -412,6 +494,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, ], GeneralLedgerTransaction: [ @@ -432,6 +516,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, ], BankFeedAccount: [ @@ -452,6 +538,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, ], Employee: [ @@ -472,6 +560,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, ], PaymentMethod: [ @@ -492,6 +582,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, ], Project: [ @@ -512,6 +604,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, ], PaymentTerm: [ @@ -532,6 +626,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, ], }; @@ -567,6 +663,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, ], accountingAttachment: [ @@ -589,6 +687,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, ], balanceSheet: [ @@ -611,6 +711,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, ], cashFlowStatement: [ @@ -633,6 +735,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, ], companyInfo: [ @@ -655,6 +759,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, ], contact: [ @@ -677,6 +783,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, ], incomeStatement: [ @@ -699,6 +807,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, ], creditNote: [ @@ -721,6 +831,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, ], item: [ @@ -743,6 +855,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, ], purchaseOrder: [ @@ -765,6 +879,56 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", + }, + ], + 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", + advancedMappingExpression: "$[0].example_jsonata", + }, + ], + 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", + advancedMappingExpression: "$[0].example_jsonata", }, ], expenseReport: [ @@ -787,6 +951,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, ], trackingCategory: [ @@ -809,6 +975,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, ], journalEntry: [ @@ -831,6 +999,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, ], taxRate: [ @@ -853,6 +1023,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, ], invoice: [ @@ -875,6 +1047,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, ], payment: [ @@ -897,6 +1071,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, ], expense: [ @@ -919,6 +1095,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, ], vendorCredit: [ @@ -941,6 +1119,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, ], transaction: [ @@ -963,6 +1143,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, ], accountingPeriod: [ @@ -985,6 +1167,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, ], generalLedgerTransaction: [ @@ -1007,6 +1191,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, ], bankFeedAccount: [ @@ -1029,6 +1215,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, ], employee: [ @@ -1051,6 +1239,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, ], paymentMethod: [ @@ -1073,6 +1263,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, ], project: [ @@ -1095,6 +1287,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, ], paymentTerm: [ @@ -1117,6 +1311,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, ], }); @@ -1156,6 +1352,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, warnings: [ { @@ -1163,6 +1361,7 @@ describe("FieldMappingClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problem_type: "UNRECOGNIZED_FIELD", + block_merge_link: true, }, ], errors: [ @@ -1171,6 +1370,7 @@ describe("FieldMappingClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, }, ], logs: [ @@ -1196,6 +1396,7 @@ describe("FieldMappingClient", () => { 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"], @@ -1223,6 +1424,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, warnings: [ { @@ -1232,6 +1435,7 @@ describe("FieldMappingClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problemType: "UNRECOGNIZED_FIELD", + blockMergeLink: true, }, ], errors: [ @@ -1242,6 +1446,7 @@ describe("FieldMappingClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, }, ], logs: [ @@ -1285,6 +1490,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, warnings: [ { @@ -1292,6 +1499,7 @@ describe("FieldMappingClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problem_type: "UNRECOGNIZED_FIELD", + block_merge_link: true, }, ], errors: [ @@ -1300,6 +1508,7 @@ describe("FieldMappingClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, }, ], logs: [ @@ -1343,6 +1552,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, warnings: [ { @@ -1352,6 +1563,7 @@ describe("FieldMappingClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problemType: "UNRECOGNIZED_FIELD", + blockMergeLink: true, }, ], errors: [ @@ -1362,6 +1574,7 @@ describe("FieldMappingClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, }, ], logs: [ @@ -1405,6 +1618,8 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", + advanced_mapping_expression: "$[0].example_jsonata", }, warnings: [ { @@ -1412,6 +1627,7 @@ describe("FieldMappingClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problem_type: "UNRECOGNIZED_FIELD", + block_merge_link: true, }, ], errors: [ @@ -1420,6 +1636,7 @@ describe("FieldMappingClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, }, ], logs: [ @@ -1443,7 +1660,9 @@ describe("FieldMappingClient", () => { .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); + const response = await client.accounting.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + remoteDataIterationCount: 1, + }); expect(response).toEqual({ model: { id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", @@ -1464,6 +1683,8 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", + advancedMappingExpression: "$[0].example_jsonata", }, warnings: [ { @@ -1473,6 +1694,7 @@ describe("FieldMappingClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problemType: "UNRECOGNIZED_FIELD", + blockMergeLink: true, }, ], errors: [ @@ -1483,6 +1705,7 @@ describe("FieldMappingClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, }, ], logs: [ @@ -1649,6 +1872,48 @@ describe("FieldMappingClient", () => { 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" }, @@ -2053,6 +2318,60 @@ describe("FieldMappingClient", () => { 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: { @@ -2406,6 +2725,20 @@ describe("FieldMappingClient", () => { 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", @@ -2599,6 +2932,20 @@ describe("FieldMappingClient", () => { 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", 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 57% rename from tests/wire/accounting/generalLedgerTransactions.test.ts rename to tests/wire/Accounting/generalLedgerTransactions.test.ts index e8316aac2..b79a83d4e 100644 --- a/tests/wire/accounting/generalLedgerTransactions.test.ts +++ b/tests/wire/Accounting/generalLedgerTransactions.test.ts @@ -48,9 +48,42 @@ describe("GeneralLedgerTransactionsClient", () => { exchange_rate: "exchange_rate", description: "Invoice created", tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "948201", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Marketing Department", + parent_category: "d25d609b-945f-4762-b55a-1c8fb220c43c", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "948201", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Marketing Department", + parent_category: "d25d609b-945f-4762-b55a-1c8fb220c43c", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "948201", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Marketing Department", + parent_category: "d25d609b-945f-4762-b55a-1c8fb220c43c", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + }, ], debit_amount: "debit_amount", credit_amount: "credit_amount", @@ -74,30 +107,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: [ @@ -132,9 +149,54 @@ describe("GeneralLedgerTransactionsClient", () => { exchangeRate: "exchange_rate", description: "Invoice created", trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "948201", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Marketing Department", + parentCategory: "d25d609b-945f-4762-b55a-1c8fb220c43c", + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "948201", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Marketing Department", + parentCategory: "d25d609b-945f-4762-b55a-1c8fb220c43c", + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "948201", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Marketing Department", + parentCategory: "d25d609b-945f-4762-b55a-1c8fb220c43c", + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + }, ], debitAmount: "debit_amount", creditAmount: "credit_amount", @@ -169,7 +231,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 () => { @@ -214,9 +296,42 @@ describe("GeneralLedgerTransactionsClient", () => { exchange_rate: "exchange_rate", description: "Invoice created", tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "948201", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Marketing Department", + parent_category: "d25d609b-945f-4762-b55a-1c8fb220c43c", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "948201", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Marketing Department", + parent_category: "d25d609b-945f-4762-b55a-1c8fb220c43c", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "948201", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Marketing Department", + parent_category: "d25d609b-945f-4762-b55a-1c8fb220c43c", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + }, ], debit_amount: "debit_amount", credit_amount: "credit_amount", @@ -246,7 +361,6 @@ describe("GeneralLedgerTransactionsClient", () => { .build(); const response = await client.accounting.generalLedgerTransactions.retrieve("id", { - expand: "accounting_period", includeRemoteData: true, includeShellData: true, }); @@ -283,9 +397,54 @@ describe("GeneralLedgerTransactionsClient", () => { exchangeRate: "exchange_rate", description: "Invoice created", trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "948201", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Marketing Department", + parentCategory: "d25d609b-945f-4762-b55a-1c8fb220c43c", + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "948201", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Marketing Department", + parentCategory: "d25d609b-945f-4762-b55a-1c8fb220c43c", + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "948201", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Marketing Department", + parentCategory: "d25d609b-945f-4762-b55a-1c8fb220c43c", + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + }, ], debitAmount: "debit_amount", creditAmount: "credit_amount", 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 77% rename from tests/wire/accounting/incomeStatements.test.ts rename to tests/wire/Accounting/incomeStatements.test.ts index d4a825201..09fbe8b30 100644 --- a/tests/wire/accounting/incomeStatements.test.ts +++ b/tests/wire/Accounting/incomeStatements.test.ts @@ -34,10 +34,10 @@ describe("IncomeStatementsClient", () => { modified_at: "2021-10-16T00:00:00Z", name: "Total Income", value: 325, - sub_items: [ - { remote_id: "10200", name: "Landscaping Services", value: 425 }, - { remote_id: "10201", name: "Pest Control Services", value: -100 }, - ], + sub_items: { + "0": { remote_id: "10200", name: "Landscaping Services", value: 425 }, + "1": { remote_id: "10201", name: "Pest Control Services", value: -100 }, + }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", }, ], @@ -48,7 +48,7 @@ describe("IncomeStatementsClient", () => { modified_at: "2021-10-16T00:00:00Z", name: "Total COGS", value: 25, - sub_items: [{ remote_id: "10200", name: "Supplies", value: 10 }], + sub_items: { "0": { remote_id: "10200", name: "Supplies", value: 10 } }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", }, ], @@ -60,10 +60,7 @@ describe("IncomeStatementsClient", () => { modified_at: "2021-10-16T00:00:00Z", name: "Total Operating Expenses", value: 100, - sub_items: [ - { remote_id: "10300", name: "Revenue - San Francisco", value: 500 }, - { remote_id: "10301", name: "Revenue - New York", value: 500 }, - ], + sub_items: { key: "value" }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", }, ], @@ -75,10 +72,7 @@ describe("IncomeStatementsClient", () => { modified_at: "2021-10-16T00:00:00Z", name: "Total Non-Operating Expenses", value: 100, - sub_items: [ - { remote_id: "10300", name: "Revenue - San Francisco", value: 500 }, - { remote_id: "10301", name: "Revenue - New York", value: 500 }, - ], + sub_items: { key: "value" }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", }, ], @@ -93,28 +87,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: [ @@ -135,18 +115,18 @@ describe("IncomeStatementsClient", () => { modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Total Income", value: 325, - subItems: [ - { + subItems: { + "0": { remote_id: "10200", name: "Landscaping Services", value: 425, }, - { + "1": { remote_id: "10201", name: "Pest Control Services", value: -100, }, - ], + }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", }, ], @@ -157,13 +137,13 @@ describe("IncomeStatementsClient", () => { modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Total COGS", value: 25, - subItems: [ - { + subItems: { + "0": { remote_id: "10200", name: "Supplies", value: 10, }, - ], + }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", }, ], @@ -175,18 +155,9 @@ describe("IncomeStatementsClient", () => { modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Total Operating Expenses", value: 100, - subItems: [ - { - remote_id: "10300", - name: "Revenue - San Francisco", - value: 500, - }, - { - remote_id: "10301", - name: "Revenue - New York", - value: 500, - }, - ], + subItems: { + key: "value", + }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", }, ], @@ -198,18 +169,9 @@ describe("IncomeStatementsClient", () => { modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Total Non-Operating Expenses", value: 100, - subItems: [ - { - remote_id: "10300", - name: "Revenue - San Francisco", - value: 500, - }, - { - remote_id: "10301", - name: "Revenue - New York", - value: 500, - }, - ], + subItems: { + key: "value", + }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", }, ], @@ -231,7 +193,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 () => { @@ -260,10 +240,10 @@ describe("IncomeStatementsClient", () => { modified_at: "2021-10-16T00:00:00Z", name: "Total Income", value: 325, - sub_items: [ - { remote_id: "10200", name: "Landscaping Services", value: 425 }, - { remote_id: "10201", name: "Pest Control Services", value: -100 }, - ], + sub_items: { + "0": { remote_id: "10200", name: "Landscaping Services", value: 425 }, + "1": { remote_id: "10201", name: "Pest Control Services", value: -100 }, + }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", remote_was_deleted: true, }, @@ -275,7 +255,7 @@ describe("IncomeStatementsClient", () => { modified_at: "2021-10-16T00:00:00Z", name: "Total COGS", value: 25, - sub_items: [{ remote_id: "10200", name: "Supplies", value: 10 }], + sub_items: { "0": { remote_id: "10200", name: "Supplies", value: 10 } }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", remote_was_deleted: true, }, @@ -288,10 +268,7 @@ describe("IncomeStatementsClient", () => { modified_at: "2021-10-16T00:00:00Z", name: "Total Operating Expenses", value: 100, - sub_items: [ - { remote_id: "10300", name: "Revenue - San Francisco", value: 500 }, - { remote_id: "10301", name: "Revenue - New York", value: 500 }, - ], + sub_items: { key: "value" }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", remote_was_deleted: true, }, @@ -304,10 +281,7 @@ describe("IncomeStatementsClient", () => { modified_at: "2021-10-16T00:00:00Z", name: "Total Non-Operating Expenses", value: 100, - sub_items: [ - { remote_id: "10300", name: "Revenue - San Francisco", value: 500 }, - { remote_id: "10301", name: "Revenue - New York", value: 500 }, - ], + sub_items: { key: "value" }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", remote_was_deleted: true, }, @@ -329,7 +303,6 @@ describe("IncomeStatementsClient", () => { .build(); const response = await client.accounting.incomeStatements.retrieve("id", { - expand: "company", includeRemoteData: true, includeShellData: true, }); @@ -350,18 +323,18 @@ describe("IncomeStatementsClient", () => { modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Total Income", value: 325, - subItems: [ - { + subItems: { + "0": { remote_id: "10200", name: "Landscaping Services", value: 425, }, - { + "1": { remote_id: "10201", name: "Pest Control Services", value: -100, }, - ], + }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", remoteWasDeleted: true, }, @@ -373,13 +346,13 @@ describe("IncomeStatementsClient", () => { modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Total COGS", value: 25, - subItems: [ - { + subItems: { + "0": { remote_id: "10200", name: "Supplies", value: 10, }, - ], + }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", remoteWasDeleted: true, }, @@ -392,18 +365,9 @@ describe("IncomeStatementsClient", () => { modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Total Operating Expenses", value: 100, - subItems: [ - { - remote_id: "10300", - name: "Revenue - San Francisco", - value: 500, - }, - { - remote_id: "10301", - name: "Revenue - New York", - value: 500, - }, - ], + subItems: { + key: "value", + }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", remoteWasDeleted: true, }, @@ -416,18 +380,9 @@ describe("IncomeStatementsClient", () => { modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Total Non-Operating Expenses", value: 100, - subItems: [ - { - remote_id: "10300", - name: "Revenue - San Francisco", - value: 500, - }, - { - remote_id: "10301", - name: "Revenue - New York", - value: 500, - }, - ], + subItems: { + key: "value", + }, company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", remoteWasDeleted: true, }, diff --git a/tests/wire/accounting/invoices.test.ts b/tests/wire/Accounting/invoices.test.ts similarity index 75% rename from tests/wire/accounting/invoices.test.ts rename to tests/wire/Accounting/invoices.test.ts index 929602226..dde73d2e2 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: [ @@ -86,7 +91,6 @@ describe("InvoicesClient", () => { ], 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", @@ -96,7 +100,6 @@ describe("InvoicesClient", () => { ], 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", @@ -111,42 +114,19 @@ describe("InvoicesClient", () => { 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" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }, ], }; 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 +165,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: [ @@ -223,7 +208,6 @@ 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", @@ -233,7 +217,6 @@ describe("InvoicesClient", () => { ], 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", @@ -259,13 +242,42 @@ describe("InvoicesClient", () => { ], remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }, ], + }; + 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 +325,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: [ @@ -347,7 +364,6 @@ describe("InvoicesClient", () => { ], 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", @@ -357,7 +373,6 @@ describe("InvoicesClient", () => { ], 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", @@ -372,7 +387,7 @@ describe("InvoicesClient", () => { 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" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }, warnings: [ { @@ -380,6 +395,7 @@ describe("InvoicesClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problem_type: "UNRECOGNIZED_FIELD", + block_merge_link: true, }, ], errors: [ @@ -388,6 +404,7 @@ describe("InvoicesClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, }, ], logs: [ @@ -452,6 +469,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: [ @@ -490,7 +512,6 @@ 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", @@ -500,7 +521,6 @@ describe("InvoicesClient", () => { ], 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", @@ -526,8 +546,10 @@ describe("InvoicesClient", () => { ], remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }, @@ -539,6 +561,7 @@ describe("InvoicesClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problemType: "UNRECOGNIZED_FIELD", + blockMergeLink: true, }, ], errors: [ @@ -549,6 +572,7 @@ describe("InvoicesClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, }, ], logs: [ @@ -609,6 +633,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: [ @@ -640,12 +669,12 @@ describe("InvoicesClient", () => { organization_defined_targets: { custom_key: "custom_value" }, linked_account_defined_targets: { custom_key: "custom_value" }, }, - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }, ], applied_credit_notes: [ { - remote_id: "088899", + remote_id: "remote_id", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", credit_note: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", @@ -656,7 +685,7 @@ describe("InvoicesClient", () => { ], applied_vendor_credits: [ { - remote_id: "088899", + remote_id: "remote_id", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", vendor_credit: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", @@ -672,7 +701,7 @@ describe("InvoicesClient", () => { 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" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }; server .mockEndpoint() @@ -683,7 +712,6 @@ describe("InvoicesClient", () => { .build(); const response = await client.accounting.invoices.retrieve("id", { - expand: "accounting_period", includeRemoteData: true, includeRemoteFields: true, includeShellData: true, @@ -725,6 +753,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: [ @@ -762,15 +795,17 @@ describe("InvoicesClient", () => { }, remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }, ], appliedCreditNotes: [ { - remoteId: "088899", + remoteId: "remote_id", createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), creditNote: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", @@ -781,7 +816,7 @@ describe("InvoicesClient", () => { ], appliedVendorCredits: [ { - remoteId: "088899", + remoteId: "remote_id", createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), vendorCredit: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", @@ -808,8 +843,10 @@ describe("InvoicesClient", () => { ], remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }); @@ -860,6 +897,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: [ @@ -894,7 +936,6 @@ describe("InvoicesClient", () => { ], 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", @@ -904,7 +945,6 @@ describe("InvoicesClient", () => { ], 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", @@ -919,7 +959,7 @@ describe("InvoicesClient", () => { 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" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }, warnings: [ { @@ -927,6 +967,7 @@ describe("InvoicesClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problem_type: "UNRECOGNIZED_FIELD", + block_merge_link: true, }, ], errors: [ @@ -935,6 +976,7 @@ describe("InvoicesClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, }, ], logs: [ @@ -999,6 +1041,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: [ @@ -1037,7 +1084,6 @@ 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", @@ -1047,7 +1093,6 @@ describe("InvoicesClient", () => { ], 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", @@ -1073,8 +1118,10 @@ describe("InvoicesClient", () => { ], remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }, @@ -1086,6 +1133,7 @@ describe("InvoicesClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problemType: "UNRECOGNIZED_FIELD", + blockMergeLink: true, }, ], errors: [ @@ -1096,6 +1144,7 @@ describe("InvoicesClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, }, ], logs: [ @@ -1112,7 +1161,7 @@ describe("InvoicesClient", () => { }); }); - test("lineItemsRemoteFieldClassesList", async () => { + test("asyncBulkCreate", async () => { const server = mockServerPool.createServer(); const client = new MergeClient({ maxRetries: 0, @@ -1120,72 +1169,667 @@ describe("InvoicesClient", () => { accountToken: "test", environment: server.baseUrl, }); - + const rawRequestBody = { batch_items: [{ item_id: "item_id", payload: {} }] }; const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ + 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: [ + { + 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: [ + { + 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: {}, value: { key: "value" } }], + }, + warnings: [ { - 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"], + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + block_merge_link: true, + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, + }, + ], + 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() - .get("/accounting/v1/invoices/line-items/remote-field-classes") + .post("/accounting/v1/invoices/async/bulk") + .jsonBody(rawRequestBody) .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ + const response = await client.accounting.invoices.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [ { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: ["field_choices"], + itemId: "item_id", + payload: {}, }, ], }); - }); - - test("metaPatchRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { + 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: [ + { + 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: [ + { + 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: {}, + value: { + key: "value", + }, + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + blockMergeLink: true, + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, + }, + ], + 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: [ + { + 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: [ + { + 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: {}, value: { key: "value" } }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/invoices/batch/batch_id/objects") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + 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: [ + { + 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: [ + { + 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: {}, + value: { + key: "value", + }, + }, + ], + }, + ], + }; + const page = 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(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + 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/invoices/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.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 () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { request_schema: { type: "object", properties: { @@ -1347,10 +1991,10 @@ describe("InvoicesClient", () => { }, }, }, - 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() @@ -1585,15 +2229,13 @@ describe("InvoicesClient", () => { }, }, }, - remoteFieldClasses: { - key: "value", - }, status: { linkedAccountStatus: "linked_account_status", canMakeRequest: true, }, hasConditionalParams: true, hasRequiredLinkedAccountParams: true, + remoteFields: ["remote_fields"], }); }); @@ -1768,10 +2410,10 @@ describe("InvoicesClient", () => { }, }, }, - 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() @@ -2006,15 +2648,13 @@ describe("InvoicesClient", () => { }, }, }, - remoteFieldClasses: { - key: "value", - }, status: { linkedAccountStatus: "linked_account_status", canMakeRequest: true, }, hasConditionalParams: true, hasRequiredLinkedAccountParams: true, + remoteFields: ["remote_fields"], }); }); @@ -2046,23 +2686,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 +2710,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 similarity index 92% rename from tests/wire/accounting/issues.test.ts rename to tests/wire/Accounting/issues.test.ts index c1f081d95..633d85110 100644 --- a/tests/wire/accounting/issues.test.ts +++ b/tests/wire/Accounting/issues.test.ts @@ -30,30 +30,14 @@ describe("IssuesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + 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.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 () => { diff --git a/tests/wire/accounting/creditNotes.test.ts b/tests/wire/Accounting/itemFulfillments.test.ts similarity index 61% rename from tests/wire/accounting/creditNotes.test.ts rename to tests/wire/Accounting/itemFulfillments.test.ts index f5de767b0..acf65535e 100644 --- a/tests/wire/accounting/creditNotes.test.ts +++ b/tests/wire/Accounting/itemFulfillments.test.ts @@ -3,7 +3,7 @@ import { MergeClient } from "../../../src/Client"; import { mockServerPool } from "../../mock-server/MockServerPool"; -describe("CreditNotesClient", () => { +describe("ItemFulfillmentsClient", () => { test("list", async () => { const server = mockServerPool.createServer(); const client = new MergeClient({ @@ -18,166 +18,55 @@ describe("CreditNotesClient", () => { previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ { - id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - remote_id: "123877", + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remote_id: "IF-12345", 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", + sales_order: "sales_order", + fulfillment_date: "2022-04-10T00:00:00Z", + customer: "customer", 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", + 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", - 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"] }], + remote_data: [{ path: "/actions", data: { field: "Varies by platform" } }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }, ], }; server - .mockEndpoint() - .get("/accounting/v1/credit-notes") + .mockEndpoint({ once: false }) + .get("/accounting/v1/item-fulfillments") .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ { - id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - remoteId: "123877", + 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"), - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - status: "SUBMITTED", - number: "CN-29", - contact: "contact", + salesOrder: "sales_order", + fulfillmentDate: new Date("2022-04-10T00:00:00.000Z"), + customer: "customer", 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", + 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"), - 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: { @@ -190,12 +79,37 @@ describe("CreditNotesClient", () => { remoteData: [ { path: "/actions", - data: ["Varies by platform"], + data: { + field: "Varies by platform", + }, + }, + ], + remoteFields: [ + { + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }, ], + }; + 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 () => { @@ -209,72 +123,26 @@ describe("CreditNotesClient", () => { const rawRequestBody = { model: {} }; const rawResponseBody = { model: { - id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - remote_id: "123877", + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remote_id: "IF-12345", 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", + sales_order: "sales_order", + fulfillment_date: "2022-04-10T00:00:00Z", + customer: "customer", 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", + 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", - 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"] }], + remote_data: [{ path: "/actions", data: { field: "Varies by platform" } }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }, warnings: [ { @@ -282,6 +150,7 @@ describe("CreditNotesClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problem_type: "UNRECOGNIZED_FIELD", + block_merge_link: true, }, ], errors: [ @@ -290,6 +159,7 @@ describe("CreditNotesClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, }, ], logs: [ @@ -306,80 +176,33 @@ describe("CreditNotesClient", () => { }; server .mockEndpoint() - .post("/accounting/v1/credit-notes") + .post("/accounting/v1/item-fulfillments") .jsonBody(rawRequestBody) .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.creditNotes.create({ + const response = await client.accounting.itemFulfillments.create({ isDebugMode: true, runAsync: true, model: {}, }); expect(response).toEqual({ model: { - id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - remoteId: "123877", + 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"), - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - status: "SUBMITTED", - number: "CN-29", - contact: "contact", + salesOrder: "sales_order", + fulfillmentDate: new Date("2022-04-10T00:00:00.000Z"), + customer: "customer", 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", + 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"), - 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: { @@ -392,7 +215,17 @@ describe("CreditNotesClient", () => { remoteData: [ { path: "/actions", - data: ["Varies by platform"], + data: { + field: "Varies by platform", + }, + }, + ], + remoteFields: [ + { + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }, @@ -404,6 +237,7 @@ describe("CreditNotesClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problemType: "UNRECOGNIZED_FIELD", + blockMergeLink: true, }, ], errors: [ @@ -414,6 +248,7 @@ describe("CreditNotesClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, }, ], logs: [ @@ -440,151 +275,56 @@ describe("CreditNotesClient", () => { }); const rawResponseBody = { - id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - remote_id: "123877", + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remote_id: "IF-12345", 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", + sales_order: "sales_order", + fulfillment_date: "2022-04-10T00:00:00Z", + customer: "customer", 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", + 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", - 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"] }], + remote_data: [{ path: "/actions", data: { field: "Varies by platform" } }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }; server .mockEndpoint() - .get("/accounting/v1/credit-notes/id") + .get("/accounting/v1/item-fulfillments/id") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.creditNotes.retrieve("id", { - expand: "accounting_period", + const response = await client.accounting.itemFulfillments.retrieve("id", { includeRemoteData: true, + includeRemoteFields: true, includeShellData: true, remoteFields: "status", showEnumOrigins: "status", }); expect(response).toEqual({ - id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - remoteId: "123877", + 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"), - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - status: "SUBMITTED", - number: "CN-29", - contact: "contact", + salesOrder: "sales_order", + fulfillmentDate: new Date("2022-04-10T00:00:00.000Z"), + customer: "customer", 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", + 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"), - 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: { @@ -597,12 +337,357 @@ describe("CreditNotesClient", () => { remoteData: [ { path: "/actions", - data: ["Varies by platform"], + data: { + field: "Varies by platform", + }, + }, + ], + remoteFields: [ + { + remoteFieldClass: {}, + value: { + key: "value", + }, + }, + ], + }); + }); + + 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: {} }] }; + 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: {}, value: { key: "value" } }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + block_merge_link: true, + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, + }, + ], + 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: {}, + }, + ], + }); + 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: {}, + value: { + key: "value", + }, + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + blockMergeLink: true, + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, + }, + ], + 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: "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: {}, value: { key: "value" } }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/item-fulfillments/batch/batch_id/objects") + .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: {}, + value: { + key: "value", + }, + }, + ], + }, + ], + }; + const page = await client.accounting.itemFulfillments.batchObjectsList("batch_id", { + 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("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({ @@ -774,20 +859,20 @@ describe("CreditNotesClient", () => { }, }, }, - 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("/accounting/v1/credit-notes/meta/post") + .get("/accounting/v1/item-fulfillments/meta/post") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.creditNotes.metaPostRetrieve(); + const response = await client.accounting.itemFulfillments.metaPostRetrieve(); expect(response).toEqual({ requestSchema: { type: "object", @@ -1012,15 +1097,82 @@ describe("CreditNotesClient", () => { }, }, }, - remoteFieldClasses: { - key: "value", - }, status: { linkedAccountStatus: "linked_account_status", canMakeRequest: true, }, hasConditionalParams: true, hasRequiredLinkedAccountParams: true, + remoteFields: ["remote_fields"], }); }); + + 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 98% rename from tests/wire/accounting/items.test.ts rename to tests/wire/Accounting/items.test.ts index ef3708dc8..df28e3d37 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 () => { @@ -145,6 +150,7 @@ describe("ItemsClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problem_type: "UNRECOGNIZED_FIELD", + block_merge_link: true, }, ], errors: [ @@ -153,6 +159,7 @@ describe("ItemsClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, }, ], logs: [ @@ -222,6 +229,7 @@ describe("ItemsClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problemType: "UNRECOGNIZED_FIELD", + blockMergeLink: true, }, ], errors: [ @@ -232,6 +240,7 @@ describe("ItemsClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, }, ], logs: [ @@ -289,7 +298,6 @@ describe("ItemsClient", () => { .build(); const response = await client.accounting.items.retrieve("id", { - expand: "company", includeRemoteData: true, includeShellData: true, remoteFields: "status", @@ -368,6 +376,7 @@ describe("ItemsClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problem_type: "UNRECOGNIZED_FIELD", + block_merge_link: true, }, ], errors: [ @@ -376,6 +385,7 @@ describe("ItemsClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, }, ], logs: [ @@ -445,6 +455,7 @@ describe("ItemsClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problemType: "UNRECOGNIZED_FIELD", + blockMergeLink: true, }, ], errors: [ @@ -455,6 +466,7 @@ describe("ItemsClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, }, ], logs: [ @@ -642,10 +654,10 @@ describe("ItemsClient", () => { }, }, }, - 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() @@ -880,15 +892,13 @@ describe("ItemsClient", () => { }, }, }, - remoteFieldClasses: { - key: "value", - }, status: { linkedAccountStatus: "linked_account_status", canMakeRequest: true, }, hasConditionalParams: true, hasRequiredLinkedAccountParams: true, + remoteFields: ["remote_fields"], }); }); @@ -1063,10 +1073,10 @@ describe("ItemsClient", () => { }, }, }, - 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() @@ -1301,15 +1311,13 @@ describe("ItemsClient", () => { }, }, }, - remoteFieldClasses: { - key: "value", - }, status: { linkedAccountStatus: "linked_account_status", canMakeRequest: true, }, hasConditionalParams: true, hasRequiredLinkedAccountParams: true, + remoteFields: ["remote_fields"], }); }); }); diff --git a/tests/wire/accounting/journalEntries.test.ts b/tests/wire/Accounting/journalEntries.test.ts similarity index 84% rename from tests/wire/accounting/journalEntries.test.ts rename to tests/wire/Accounting/journalEntries.test.ts index ad3c41642..697132eff 100644 --- a/tests/wire/accounting/journalEntries.test.ts +++ b/tests/wire/Accounting/journalEntries.test.ts @@ -19,7 +19,7 @@ describe("JournalEntriesClient", () => { results: [ { id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", + remote_id: "remote_id", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", transaction_date: "2020-03-31T00:00:00Z", @@ -52,25 +52,7 @@ describe("JournalEntriesClient", () => { 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", - }, + "lines", ], journal_number: "42", tracking_categories: [ @@ -88,42 +70,25 @@ describe("JournalEntriesClient", () => { 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" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }, ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ { id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", + remoteId: "remote_id", 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"), @@ -156,25 +121,7 @@ describe("JournalEntriesClient", () => { 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", - }, + "lines", ], journalNumber: "42", trackingCategories: [ @@ -203,13 +150,36 @@ describe("JournalEntriesClient", () => { ], remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }, ], + }; + 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 () => { @@ -224,7 +194,7 @@ describe("JournalEntriesClient", () => { const rawResponseBody = { model: { id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", + remote_id: "remote_id", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", transaction_date: "2020-03-31T00:00:00Z", @@ -257,25 +227,7 @@ describe("JournalEntriesClient", () => { 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", - }, + "lines", ], journal_number: "42", tracking_categories: [ @@ -293,7 +245,7 @@ describe("JournalEntriesClient", () => { 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" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }, warnings: [ { @@ -301,6 +253,7 @@ describe("JournalEntriesClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problem_type: "UNRECOGNIZED_FIELD", + block_merge_link: true, }, ], errors: [ @@ -309,6 +262,7 @@ describe("JournalEntriesClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, }, ], logs: [ @@ -340,7 +294,7 @@ describe("JournalEntriesClient", () => { expect(response).toEqual({ model: { id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", + remoteId: "remote_id", 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"), @@ -373,25 +327,7 @@ describe("JournalEntriesClient", () => { 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", - }, + "lines", ], journalNumber: "42", trackingCategories: [ @@ -420,8 +356,10 @@ describe("JournalEntriesClient", () => { ], remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }, @@ -433,6 +371,7 @@ describe("JournalEntriesClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problemType: "UNRECOGNIZED_FIELD", + blockMergeLink: true, }, ], errors: [ @@ -443,6 +382,7 @@ describe("JournalEntriesClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, }, ], logs: [ @@ -470,7 +410,7 @@ describe("JournalEntriesClient", () => { const rawResponseBody = { id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", + remote_id: "remote_id", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", transaction_date: "2020-03-31T00:00:00Z", @@ -503,31 +443,9 @@ describe("JournalEntriesClient", () => { 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" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }, + "lines", ], journal_number: "42", tracking_categories: [ @@ -545,7 +463,7 @@ describe("JournalEntriesClient", () => { 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" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }; server .mockEndpoint() @@ -556,14 +474,13 @@ describe("JournalEntriesClient", () => { .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", + remoteId: "remote_id", 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"), @@ -598,39 +515,14 @@ describe("JournalEntriesClient", () => { 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", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }, + "lines", ], journalNumber: "42", trackingCategories: [ @@ -659,8 +551,10 @@ describe("JournalEntriesClient", () => { ], remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }); @@ -694,23 +588,14 @@ describe("JournalEntriesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -727,7 +612,21 @@ describe("JournalEntriesClient", () => { 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 () => { @@ -901,10 +800,10 @@ describe("JournalEntriesClient", () => { }, }, }, - 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() @@ -1139,15 +1038,13 @@ describe("JournalEntriesClient", () => { }, }, }, - remoteFieldClasses: { - key: "value", - }, status: { linkedAccountStatus: "linked_account_status", canMakeRequest: true, }, hasConditionalParams: true, hasRequiredLinkedAccountParams: true, + remoteFields: ["remote_fields"], }); }); @@ -1179,23 +1076,14 @@ describe("JournalEntriesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -1212,6 +1100,20 @@ describe("JournalEntriesClient", () => { 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 similarity index 93% rename from tests/wire/accounting/linkedAccounts.test.ts rename to tests/wire/Accounting/linkedAccounts.test.ts index fbe46bcb1..21a04aeed 100644 --- a/tests/wire/accounting/linkedAccounts.test.ts +++ b/tests/wire/Accounting/linkedAccounts.test.ts @@ -50,29 +50,14 @@ describe("LinkedAccountsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -109,6 +94,26 @@ describe("LinkedAccountsClient", () => { }, }, ], + }; + 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 91% rename from tests/wire/accounting/paymentMethods.test.ts rename to tests/wire/Accounting/paymentMethods.test.ts index ee7f0c5e2..73a296aeb 100644 --- a/tests/wire/accounting/paymentMethods.test.ts +++ b/tests/wire/Accounting/paymentMethods.test.ts @@ -19,7 +19,7 @@ describe("PaymentMethodsClient", () => { results: [ { id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", + remote_id: "remote_id", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", method_type: "CREDIT_CARD", @@ -35,27 +35,20 @@ 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: [ { id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", + remoteId: "remote_id", createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), methodType: "CREDIT_CARD", @@ -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 () => { @@ -92,7 +97,7 @@ describe("PaymentMethodsClient", () => { const rawResponseBody = { id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", + remote_id: "remote_id", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", method_type: "CREDIT_CARD", @@ -119,7 +124,7 @@ describe("PaymentMethodsClient", () => { }); expect(response).toEqual({ id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", + remoteId: "remote_id", createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), methodType: "CREDIT_CARD", diff --git a/tests/wire/accounting/paymentTerms.test.ts b/tests/wire/Accounting/paymentTerms.test.ts similarity index 91% rename from tests/wire/accounting/paymentTerms.test.ts rename to tests/wire/Accounting/paymentTerms.test.ts index 7b05d7145..f69d6be78 100644 --- a/tests/wire/accounting/paymentTerms.test.ts +++ b/tests/wire/Accounting/paymentTerms.test.ts @@ -19,7 +19,7 @@ describe("PaymentTermsClient", () => { results: [ { id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", + remote_id: "remote_id", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", name: "Net 30", @@ -37,28 +37,20 @@ 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: [ { id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", + remoteId: "remote_id", createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Net 30", @@ -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 () => { @@ -97,7 +101,7 @@ describe("PaymentTermsClient", () => { const rawResponseBody = { id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", + remote_id: "remote_id", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", name: "Net 30", @@ -121,13 +125,12 @@ describe("PaymentTermsClient", () => { .build(); const response = await client.accounting.paymentTerms.retrieve("id", { - expand: "company", includeRemoteData: true, includeShellData: true, }); expect(response).toEqual({ id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", + remoteId: "remote_id", createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Net 30", diff --git a/tests/wire/accounting/payments.test.ts b/tests/wire/Accounting/payments.test.ts similarity index 96% rename from tests/wire/accounting/payments.test.ts rename to tests/wire/Accounting/payments.test.ts index d51a9570b..6493db780 100644 --- a/tests/wire/accounting/payments.test.ts +++ b/tests/wire/Accounting/payments.test.ts @@ -66,38 +66,19 @@ describe("PaymentsClient", () => { 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" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }, ], }; 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: [ @@ -161,13 +142,38 @@ describe("PaymentsClient", () => { ], remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }, ], + }; + 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 () => { @@ -229,7 +235,7 @@ describe("PaymentsClient", () => { 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" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }, warnings: [ { @@ -237,6 +243,7 @@ describe("PaymentsClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problem_type: "UNRECOGNIZED_FIELD", + block_merge_link: true, }, ], errors: [ @@ -245,6 +252,7 @@ describe("PaymentsClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, }, ], logs: [ @@ -334,8 +342,10 @@ describe("PaymentsClient", () => { ], remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }, @@ -347,6 +357,7 @@ describe("PaymentsClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problemType: "UNRECOGNIZED_FIELD", + blockMergeLink: true, }, ], errors: [ @@ -357,6 +368,7 @@ describe("PaymentsClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, }, ], logs: [ @@ -431,7 +443,7 @@ describe("PaymentsClient", () => { 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" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }; server .mockEndpoint() @@ -442,7 +454,6 @@ describe("PaymentsClient", () => { .build(); const response = await client.accounting.payments.retrieve("id", { - expand: "account", includeRemoteData: true, includeRemoteFields: true, includeShellData: true, @@ -507,8 +518,10 @@ describe("PaymentsClient", () => { ], remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }); @@ -573,7 +586,7 @@ describe("PaymentsClient", () => { 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" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }, warnings: [ { @@ -581,6 +594,7 @@ describe("PaymentsClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problem_type: "UNRECOGNIZED_FIELD", + block_merge_link: true, }, ], errors: [ @@ -589,6 +603,7 @@ describe("PaymentsClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, }, ], logs: [ @@ -678,8 +693,10 @@ describe("PaymentsClient", () => { ], remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }, @@ -691,6 +708,7 @@ describe("PaymentsClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problemType: "UNRECOGNIZED_FIELD", + blockMergeLink: true, }, ], errors: [ @@ -701,6 +719,7 @@ describe("PaymentsClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, }, ], logs: [ @@ -745,23 +764,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 +788,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 () => { @@ -952,10 +976,10 @@ describe("PaymentsClient", () => { }, }, }, - 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() @@ -1190,15 +1214,13 @@ describe("PaymentsClient", () => { }, }, }, - remoteFieldClasses: { - key: "value", - }, status: { linkedAccountStatus: "linked_account_status", canMakeRequest: true, }, hasConditionalParams: true, hasRequiredLinkedAccountParams: true, + remoteFields: ["remote_fields"], }); }); @@ -1373,10 +1395,10 @@ describe("PaymentsClient", () => { }, }, }, - 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() @@ -1611,15 +1633,13 @@ describe("PaymentsClient", () => { }, }, }, - remoteFieldClasses: { - key: "value", - }, status: { linkedAccountStatus: "linked_account_status", canMakeRequest: true, }, hasConditionalParams: true, hasRequiredLinkedAccountParams: true, + remoteFields: ["remote_fields"], }); }); @@ -1651,23 +1671,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 +1695,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 similarity index 91% rename from tests/wire/accounting/projects.test.ts rename to tests/wire/Accounting/projects.test.ts index ee68e23b7..93a426780 100644 --- a/tests/wire/accounting/projects.test.ts +++ b/tests/wire/Accounting/projects.test.ts @@ -19,7 +19,7 @@ describe("ProjectsClient", () => { results: [ { id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", + remote_id: "remote_id", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", name: "Permissions Mapping", @@ -35,34 +35,20 @@ describe("ProjectsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ { id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", + remoteId: "remote_id", createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Permissions Mapping", @@ -85,7 +71,25 @@ describe("ProjectsClient", () => { ], }, ], + }; + 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 () => { @@ -99,7 +103,7 @@ describe("ProjectsClient", () => { const rawResponseBody = { id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", + remote_id: "remote_id", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", name: "Permissions Mapping", @@ -121,13 +125,12 @@ describe("ProjectsClient", () => { .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", + remoteId: "remote_id", createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Permissions Mapping", diff --git a/tests/wire/accounting/purchaseOrders.test.ts b/tests/wire/Accounting/purchaseOrders.test.ts similarity index 95% rename from tests/wire/accounting/purchaseOrders.test.ts rename to tests/wire/Accounting/purchaseOrders.test.ts index 684e0fc4b..06d1db63f 100644 --- a/tests/wire/accounting/purchaseOrders.test.ts +++ b/tests/wire/Accounting/purchaseOrders.test.ts @@ -94,38 +94,19 @@ describe("PurchaseOrdersClient", () => { 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" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }, ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -217,13 +198,38 @@ describe("PurchaseOrdersClient", () => { ], remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }, ], + }; + 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 () => { @@ -313,7 +319,7 @@ describe("PurchaseOrdersClient", () => { 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" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }, warnings: [ { @@ -321,6 +327,7 @@ describe("PurchaseOrdersClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problem_type: "UNRECOGNIZED_FIELD", + block_merge_link: true, }, ], errors: [ @@ -329,6 +336,7 @@ describe("PurchaseOrdersClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, }, ], logs: [ @@ -446,8 +454,10 @@ describe("PurchaseOrdersClient", () => { ], remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }, @@ -459,6 +469,7 @@ describe("PurchaseOrdersClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problemType: "UNRECOGNIZED_FIELD", + blockMergeLink: true, }, ], errors: [ @@ -469,6 +480,7 @@ describe("PurchaseOrdersClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, }, ], logs: [ @@ -535,7 +547,7 @@ describe("PurchaseOrdersClient", () => { exchange_rate: "2.9", company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", remote_was_deleted: false, - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }, { id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", @@ -559,7 +571,7 @@ describe("PurchaseOrdersClient", () => { exchange_rate: "2.9", company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", remote_was_deleted: true, - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }, ], inclusive_of_tax: true, @@ -577,7 +589,7 @@ describe("PurchaseOrdersClient", () => { 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" }], + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }; server .mockEndpoint() @@ -588,7 +600,6 @@ describe("PurchaseOrdersClient", () => { .build(); const response = await client.accounting.purchaseOrders.retrieve("id", { - expand: "accounting_period", includeRemoteData: true, includeRemoteFields: true, includeShellData: true, @@ -638,8 +649,10 @@ describe("PurchaseOrdersClient", () => { remoteWasDeleted: false, remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }, @@ -667,8 +680,10 @@ describe("PurchaseOrdersClient", () => { remoteWasDeleted: true, remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }, @@ -699,8 +714,10 @@ describe("PurchaseOrdersClient", () => { ], remoteFields: [ { - remoteFieldClass: "remote_field_class", - value: "string", + remoteFieldClass: {}, + value: { + key: "value", + }, }, ], }); @@ -734,23 +751,14 @@ describe("PurchaseOrdersClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -767,7 +775,21 @@ describe("PurchaseOrdersClient", () => { 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 () => { @@ -941,10 +963,10 @@ describe("PurchaseOrdersClient", () => { }, }, }, - 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() @@ -1179,15 +1201,13 @@ describe("PurchaseOrdersClient", () => { }, }, }, - remoteFieldClasses: { - key: "value", - }, status: { linkedAccountStatus: "linked_account_status", canMakeRequest: true, }, hasConditionalParams: true, hasRequiredLinkedAccountParams: true, + remoteFields: ["remote_fields"], }); }); @@ -1219,23 +1239,14 @@ describe("PurchaseOrdersClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -1252,6 +1263,20 @@ describe("PurchaseOrdersClient", () => { 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/vendorCredits.test.ts b/tests/wire/Accounting/salesOrders.test.ts similarity index 58% rename from tests/wire/accounting/vendorCredits.test.ts rename to tests/wire/Accounting/salesOrders.test.ts index 36f2b1c46..2581b6e26 100644 --- a/tests/wire/accounting/vendorCredits.test.ts +++ b/tests/wire/Accounting/salesOrders.test.ts @@ -3,7 +3,7 @@ import { MergeClient } from "../../../src/Client"; import { mockServerPool } from "../../mock-server/MockServerPool"; -describe("VendorCreditsClient", () => { +describe("SalesOrdersClient", () => { test("list", async () => { const server = mockServerPool.createServer(); const client = new MergeClient({ @@ -18,179 +18,109 @@ describe("VendorCreditsClient", () => { previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remote_id: "SO-12345", 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, + customer: "customer", currency: "XUA", - exchange_rate: "2.9", - inclusive_of_tax: true, + 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", - 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", + description: "Premium subscription", + unit_price: "unit_price", + quantity: "quantity", + item: "0958cbc6-6040-430a-848e-aafacbadf4ae", 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", + "f1214c24-2702-4617-b74b-3ddecfc0d384", "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: false, }, + "lines", ], + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", 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: {}, value: { key: "value" } }], }, ], }; server - .mockEndpoint() - .get("/accounting/v1/vendor-credits") + .mockEndpoint({ once: false }) + .get("/accounting/v1/sales-orders") .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", + 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"), - number: "6", - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - vendor: "vendor", - totalAmount: 10000, + customer: "customer", currency: "XUA", - exchangeRate: "2.9", - inclusiveOfTax: true, + 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"), - 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", + description: "Premium subscription", + unitPrice: "unit_price", + quantity: "quantity", + item: "0958cbc6-6040-430a-848e-aafacbadf4ae", 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", + "f1214c24-2702-4617-b74b-3ddecfc0d384", "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: false, }, + "lines", ], + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), remoteWasDeleted: true, - accountingPeriod: "accounting_period", fieldMappings: { organization_defined_targets: { custom_key: "custom_value", @@ -205,9 +135,40 @@ describe("VendorCreditsClient", () => { data: ["Varies by platform"], }, ], + remoteFields: [ + { + remoteFieldClass: {}, + value: { + key: "value", + }, + }, + ], }, ], + }; + 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 () => { @@ -221,79 +182,51 @@ describe("VendorCreditsClient", () => { const rawRequestBody = { model: {} }; const rawResponseBody = { model: { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remote_id: "SO-12345", 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, + customer: "customer", currency: "XUA", - exchange_rate: "2.9", - inclusive_of_tax: true, + 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", - 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", + description: "Premium subscription", + unit_price: "unit_price", + quantity: "quantity", + item: "0958cbc6-6040-430a-848e-aafacbadf4ae", 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", + "f1214c24-2702-4617-b74b-3ddecfc0d384", "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: false, }, + "lines", ], + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", 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: {}, value: { key: "value" } }], }, warnings: [ { @@ -301,6 +234,7 @@ describe("VendorCreditsClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problem_type: "UNRECOGNIZED_FIELD", + block_merge_link: true, }, ], errors: [ @@ -309,6 +243,7 @@ describe("VendorCreditsClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, }, ], logs: [ @@ -325,88 +260,59 @@ describe("VendorCreditsClient", () => { }; server .mockEndpoint() - .post("/accounting/v1/vendor-credits") + .post("/accounting/v1/sales-orders") .jsonBody(rawRequestBody) .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.vendorCredits.create({ + const response = await client.accounting.salesOrders.create({ isDebugMode: true, runAsync: true, model: {}, }); expect(response).toEqual({ model: { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", + 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"), - number: "6", - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - vendor: "vendor", - totalAmount: 10000, + customer: "customer", currency: "XUA", - exchangeRate: "2.9", - inclusiveOfTax: true, + 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"), - 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", + description: "Premium subscription", + unitPrice: "unit_price", + quantity: "quantity", + item: "0958cbc6-6040-430a-848e-aafacbadf4ae", 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", + "f1214c24-2702-4617-b74b-3ddecfc0d384", "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: false, }, + "lines", ], + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), remoteWasDeleted: true, - accountingPeriod: "accounting_period", fieldMappings: { organization_defined_targets: { custom_key: "custom_value", @@ -421,6 +327,14 @@ describe("VendorCreditsClient", () => { data: ["Varies by platform"], }, ], + remoteFields: [ + { + remoteFieldClass: {}, + value: { + key: "value", + }, + }, + ], }, warnings: [ { @@ -430,6 +344,7 @@ describe("VendorCreditsClient", () => { title: "Unrecognized Field", detail: "An unrecognized field, age, was passed in with request data.", problemType: "UNRECOGNIZED_FIELD", + blockMergeLink: true, }, ], errors: [ @@ -440,6 +355,7 @@ describe("VendorCreditsClient", () => { title: "Missing Required Field", detail: "custom_fields is a required field on model.", problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, }, ], logs: [ @@ -466,170 +382,117 @@ describe("VendorCreditsClient", () => { }); const rawResponseBody = { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remote_id: "SO-12345", 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, + customer: "customer", currency: "XUA", - exchange_rate: "2.9", - inclusive_of_tax: true, + 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", - 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", + description: "Premium subscription", + unit_price: "unit_price", + quantity: "quantity", + item: "0958cbc6-6040-430a-848e-aafacbadf4ae", 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", + "f1214c24-2702-4617-b74b-3ddecfc0d384", "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_created_at: "2024-01-15T09:30:00Z", + remote_updated_at: "2024-01-15T09:30:00Z", + remote_was_deleted: false, + remote_fields: [{ remote_field_class: {}, value: { key: "value" } }], }, + "lines", ], + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", 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: {}, value: { key: "value" } }], }; server .mockEndpoint() - .get("/accounting/v1/vendor-credits/id") + .get("/accounting/v1/sales-orders/id") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.vendorCredits.retrieve("id", { - expand: "accounting_period", + const response = await client.accounting.salesOrders.retrieve("id", { includeRemoteData: true, + includeRemoteFields: true, includeShellData: true, + remoteFields: "status", + showEnumOrigins: "status", }); expect(response).toEqual({ - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", + 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"), - number: "6", - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - vendor: "vendor", - totalAmount: 10000, + customer: "customer", currency: "XUA", - exchangeRate: "2.9", - inclusiveOfTax: true, + 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"), - 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", + description: "Premium subscription", + unitPrice: "unit_price", + quantity: "quantity", + item: "0958cbc6-6040-430a-848e-aafacbadf4ae", taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchangeRate: "2.9", + 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, - }, - { - 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", + remoteFields: [ + { + remoteFieldClass: {}, + value: { + key: "value", + }, + }, ], - 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, }, + "lines", ], + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), remoteWasDeleted: true, - accountingPeriod: "accounting_period", fieldMappings: { organization_defined_targets: { custom_key: "custom_value", @@ -644,9 +507,459 @@ describe("VendorCreditsClient", () => { data: ["Varies by platform"], }, ], + remoteFields: [ + { + remoteFieldClass: {}, + value: { + key: "value", + }, + }, + ], }); }); + 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: {} }] }; + 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: {}, value: { key: "value" } }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + block_merge_link: true, + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, + }, + ], + 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: {}, + }, + ], + }); + 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: {}, + value: { + key: "value", + }, + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + blockMergeLink: true, + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, + }, + ], + 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: "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: {}, value: { key: "value" } }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/sales-orders/batch/batch_id/objects") + .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: {}, + value: { + key: "value", + }, + }, + ], + }, + ], + }; + const page = 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(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + 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({ @@ -818,20 +1131,20 @@ describe("VendorCreditsClient", () => { }, }, }, - 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("/accounting/v1/vendor-credits/meta/post") + .get("/accounting/v1/sales-orders/meta/post") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.vendorCredits.metaPostRetrieve(); + const response = await client.accounting.salesOrders.metaPostRetrieve(); expect(response).toEqual({ requestSchema: { type: "object", @@ -1056,15 +1369,82 @@ describe("VendorCreditsClient", () => { }, }, }, - remoteFieldClasses: { - key: "value", - }, status: { linkedAccountStatus: "linked_account_status", canMakeRequest: true, }, hasConditionalParams: true, hasRequiredLinkedAccountParams: true, + remoteFields: ["remote_fields"], }); }); + + 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 similarity index 86% rename from tests/wire/accounting/syncStatus.test.ts rename to tests/wire/Accounting/syncStatus.test.ts index 6af1e3c70..d8b1bd05d 100644 --- a/tests/wire/accounting/syncStatus.test.ts +++ b/tests/wire/Accounting/syncStatus.test.ts @@ -31,18 +31,14 @@ describe("SyncStatusClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -58,6 +54,15 @@ describe("SyncStatusClient", () => { 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 92% rename from tests/wire/accounting/taxRates.test.ts rename to tests/wire/Accounting/taxRates.test.ts index 4608c819e..3047964a4 100644 --- a/tests/wire/accounting/taxRates.test.ts +++ b/tests/wire/Accounting/taxRates.test.ts @@ -19,7 +19,7 @@ describe("TaxRatesClient", () => { results: [ { id: "b82302de-852e-4e60-b050-edf9da3b7c02", - remote_id: "039111", + remote_id: "remote_id", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", company: "company", @@ -33,7 +33,7 @@ describe("TaxRatesClient", () => { tax_components: [ { id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "039111", + remote_id: "remote_id", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", name: "Drink Tax Component", @@ -52,35 +52,20 @@ 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: [ { id: "b82302de-852e-4e60-b050-edf9da3b7c02", - remoteId: "039111", + remoteId: "remote_id", createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), company: "company", @@ -94,7 +79,7 @@ describe("TaxRatesClient", () => { taxComponents: [ { id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "039111", + remoteId: "remote_id", createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Drink Tax Component", @@ -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 () => { @@ -134,7 +138,7 @@ describe("TaxRatesClient", () => { const rawResponseBody = { id: "b82302de-852e-4e60-b050-edf9da3b7c02", - remote_id: "039111", + remote_id: "remote_id", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", company: "company", @@ -148,7 +152,7 @@ describe("TaxRatesClient", () => { tax_components: [ { id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "039111", + remote_id: "remote_id", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", name: "Drink Tax Component", @@ -174,13 +178,12 @@ describe("TaxRatesClient", () => { .build(); const response = await client.accounting.taxRates.retrieve("id", { - expand: "company", includeRemoteData: true, includeShellData: true, }); expect(response).toEqual({ id: "b82302de-852e-4e60-b050-edf9da3b7c02", - remoteId: "039111", + remoteId: "remote_id", createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), company: "company", @@ -194,7 +197,7 @@ describe("TaxRatesClient", () => { taxComponents: [ { id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "039111", + remoteId: "remote_id", createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Drink Tax Component", 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..711892214 --- /dev/null +++ b/tests/wire/Accounting/vendorCredits.test.ts @@ -0,0 +1,1987 @@ +// 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: "remote_id", + 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: [ + { + 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: "remote_id", + 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: [ + { + 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: "remote_id", + 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: [ + { + 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", + block_merge_link: true, + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, + }, + ], + 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: "remote_id", + 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: [ + { + 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", + blockMergeLink: true, + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, + }, + ], + 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: "remote_id", + 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: "remote_id", + 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: "remote_id", + 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: "remote_id", + 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: "remote_id", + 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: [ + { + 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", + block_merge_link: true, + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, + }, + ], + 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: "remote_id", + 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: [ + { + 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", + blockMergeLink: true, + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, + }, + ], + 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: "remote_id", + 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: [ + { + 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", + block_merge_link: true, + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + block_merge_link: true, + }, + ], + 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: "remote_id", + 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: [ + { + 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", + blockMergeLink: true, + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + blockMergeLink: true, + }, + ], + 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", + }, + }, + }, + }, + }, + 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("/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", + }, + }, + }, + }, + }, + status: { + linkedAccountStatus: "linked_account_status", + canMakeRequest: true, + }, + hasConditionalParams: true, + hasRequiredLinkedAccountParams: true, + remoteFields: ["remote_fields"], + }); + }); + + 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", + }, + }, + }, + }, + }, + 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("/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", + }, + }, + }, + }, + }, + status: { + linkedAccountStatus: "linked_account_status", + canMakeRequest: true, + }, + hasConditionalParams: true, + hasRequiredLinkedAccountParams: true, + remoteFields: ["remote_fields"], + }); + }); +}); 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 similarity index 69% rename from tests/wire/crm/accountToken.test.ts rename to tests/wire/CRM/accountToken.test.ts index fe76aa052..2ab2b09f1 100644 --- a/tests/wire/crm/accountToken.test.ts +++ b/tests/wire/CRM/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("/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 similarity index 98% rename from tests/wire/crm/accounts.test.ts rename to tests/wire/CRM/accounts.test.ts index 1b48deea4..5c21e8292 100644 --- a/tests/wire/crm/accounts.test.ts +++ b/tests/wire/CRM/accounts.test.ts @@ -62,25 +62,15 @@ describe("AccountsClient", () => { }, ], }; - server.mockEndpoint().get("/crm/v1/accounts").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -142,7 +132,27 @@ describe("AccountsClient", () => { ], }, ], + }; + 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 () => { @@ -393,7 +403,6 @@ describe("AccountsClient", () => { .build(); const response = await client.crm.accounts.retrieve("id", { - expand: "owner", includeRemoteData: true, includeRemoteFields: true, includeShellData: true, @@ -1514,24 +1523,14 @@ describe("AccountsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -1548,6 +1547,21 @@ describe("AccountsClient", () => { 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 similarity index 87% rename from tests/wire/crm/auditTrail.test.ts rename to tests/wire/CRM/auditTrail.test.ts index edae76d15..033448a4a 100644 --- a/tests/wire/crm/auditTrail.test.ts +++ b/tests/wire/CRM/auditTrail.test.ts @@ -31,22 +31,14 @@ describe("AuditTrailClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + 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.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 similarity index 98% rename from tests/wire/crm/contacts.test.ts rename to tests/wire/CRM/contacts.test.ts index f37b6a709..07888e1bf 100644 --- a/tests/wire/crm/contacts.test.ts +++ b/tests/wire/CRM/contacts.test.ts @@ -67,26 +67,15 @@ describe("ContactsClient", () => { }, ], }; - server.mockEndpoint().get("/crm/v1/contacts").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -153,7 +142,28 @@ describe("ContactsClient", () => { ], }, ], + }; + 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 () => { @@ -419,7 +429,6 @@ describe("ContactsClient", () => { .build(); const response = await client.crm.contacts.retrieve("id", { - expand: "account", includeRemoteData: true, includeRemoteFields: true, includeShellData: true, @@ -1579,24 +1588,14 @@ describe("ContactsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -1613,6 +1612,21 @@ describe("ContactsClient", () => { 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 similarity index 97% rename from tests/wire/crm/fieldMapping.test.ts rename to tests/wire/CRM/fieldMapping.test.ts index 9cc55e8ab..f47abf216 100644 --- a/tests/wire/crm/fieldMapping.test.ts +++ b/tests/wire/CRM/fieldMapping.test.ts @@ -32,6 +32,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], Contact: [ @@ -52,6 +53,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], Lead: [ @@ -72,6 +74,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], Note: [ @@ -92,6 +95,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], Opportunity: [ @@ -112,6 +116,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], Stage: [ @@ -132,6 +137,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], User: [ @@ -152,6 +158,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], Task: [ @@ -172,6 +179,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], Engagement: [ @@ -192,6 +200,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], }; @@ -227,6 +236,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], contact: [ @@ -249,6 +259,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], lead: [ @@ -271,6 +282,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], note: [ @@ -293,6 +305,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], opportunity: [ @@ -315,6 +328,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], stage: [ @@ -337,6 +351,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], user: [ @@ -359,6 +374,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], task: [ @@ -381,6 +397,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], engagement: [ @@ -403,6 +420,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], }); @@ -442,6 +460,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, warnings: [ { @@ -482,6 +501,7 @@ describe("FieldMappingClient", () => { 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"], @@ -509,6 +529,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, warnings: [ { @@ -571,6 +592,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, warnings: [ { @@ -629,6 +651,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, warnings: [ { @@ -691,6 +714,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, warnings: [ { @@ -729,7 +753,9 @@ describe("FieldMappingClient", () => { .jsonBody(rawResponseBody) .build(); - const response = await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); + const response = await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + remoteDataIterationCount: 1, + }); expect(response).toEqual({ model: { id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", @@ -750,6 +776,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, warnings: [ { 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 similarity index 89% rename from tests/wire/crm/issues.test.ts rename to tests/wire/CRM/issues.test.ts index ed98b91fc..f9c2cff88 100644 --- a/tests/wire/crm/issues.test.ts +++ b/tests/wire/CRM/issues.test.ts @@ -29,25 +29,15 @@ describe("IssuesClient", () => { }, ], }; - server.mockEndpoint().get("/crm/v1/issues").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -64,7 +54,28 @@ describe("IssuesClient", () => { 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 () => { 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 similarity index 86% rename from tests/wire/crm/syncStatus.test.ts rename to tests/wire/CRM/syncStatus.test.ts index f282a3b24..c0aa8552e 100644 --- a/tests/wire/crm/syncStatus.test.ts +++ b/tests/wire/CRM/syncStatus.test.ts @@ -31,18 +31,14 @@ describe("SyncStatusClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -58,6 +54,15 @@ describe("SyncStatusClient", () => { 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 similarity index 91% rename from tests/wire/crm/users.test.ts rename to tests/wire/CRM/users.test.ts index d9c314ef7..9cab50677 100644 --- a/tests/wire/crm/users.test.ts +++ b/tests/wire/CRM/users.test.ts @@ -35,23 +35,15 @@ describe("UsersClient", () => { }, ], }; - server.mockEndpoint().get("/crm/v1/users").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -86,7 +78,26 @@ describe("UsersClient", () => { ], }, ], + }; + 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 () => { @@ -205,24 +216,14 @@ describe("UsersClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -239,6 +240,21 @@ describe("UsersClient", () => { 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 similarity index 69% rename from tests/wire/hris/accountToken.test.ts rename to tests/wire/HRIS/accountToken.test.ts index a79f3e109..a0c0ce40a 100644 --- a/tests/wire/hris/accountToken.test.ts +++ b/tests/wire/HRIS/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("/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 similarity index 87% rename from tests/wire/hris/auditTrail.test.ts rename to tests/wire/HRIS/auditTrail.test.ts index 6ba0bd44e..51eef444b 100644 --- a/tests/wire/hris/auditTrail.test.ts +++ b/tests/wire/HRIS/auditTrail.test.ts @@ -31,22 +31,14 @@ describe("AuditTrailClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + 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.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 similarity index 98% rename from tests/wire/hris/employees.test.ts rename to tests/wire/HRIS/employees.test.ts index a41441cc1..1aad1f763 100644 --- a/tests/wire/hris/employees.test.ts +++ b/tests/wire/HRIS/employees.test.ts @@ -58,45 +58,15 @@ describe("EmployeesClient", () => { }, ], }; - server.mockEndpoint().get("/hris/v1/employees").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -151,7 +121,47 @@ describe("EmployeesClient", () => { ], }, ], + }; + 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 () => { @@ -387,7 +397,6 @@ describe("EmployeesClient", () => { .build(); const response = await client.hris.employees.retrieve("id", { - expand: "company", includeRemoteData: true, includeSensitiveFields: true, includeShellData: true, @@ -645,6 +654,7 @@ describe("EmployeesClient", () => { 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() @@ -888,6 +898,7 @@ describe("EmployeesClient", () => { }, 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 similarity index 99% rename from tests/wire/hris/fieldMapping.test.ts rename to tests/wire/HRIS/fieldMapping.test.ts index df1ba9eb3..8458b9dce 100644 --- a/tests/wire/hris/fieldMapping.test.ts +++ b/tests/wire/HRIS/fieldMapping.test.ts @@ -1060,7 +1060,9 @@ describe("FieldMappingClient", () => { .jsonBody(rawResponseBody) .build(); - const response = await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); + const response = await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + remoteDataIterationCount: 1, + }); expect(response).toEqual({ model: { id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", 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 similarity index 89% rename from tests/wire/hris/issues.test.ts rename to tests/wire/HRIS/issues.test.ts index d4b850c3a..1649699eb 100644 --- a/tests/wire/hris/issues.test.ts +++ b/tests/wire/HRIS/issues.test.ts @@ -29,25 +29,15 @@ describe("IssuesClient", () => { }, ], }; - server.mockEndpoint().get("/hris/v1/issues").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -64,7 +54,28 @@ describe("IssuesClient", () => { 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 () => { 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 similarity index 93% rename from tests/wire/hris/linkedAccounts.test.ts rename to tests/wire/HRIS/linkedAccounts.test.ts index 779d8a6f0..53378d34f 100644 --- a/tests/wire/hris/linkedAccounts.test.ts +++ b/tests/wire/HRIS/linkedAccounts.test.ts @@ -50,29 +50,14 @@ describe("LinkedAccountsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -109,6 +94,26 @@ describe("LinkedAccountsClient", () => { }, }, ], + }; + 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 similarity index 86% rename from tests/wire/hris/syncStatus.test.ts rename to tests/wire/HRIS/syncStatus.test.ts index 6b5715d63..2c0a64925 100644 --- a/tests/wire/hris/syncStatus.test.ts +++ b/tests/wire/HRIS/syncStatus.test.ts @@ -31,18 +31,14 @@ describe("SyncStatusClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -58,6 +54,15 @@ describe("SyncStatusClient", () => { 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 similarity index 91% rename from tests/wire/hris/teams.test.ts rename to tests/wire/HRIS/teams.test.ts index 287f1ce0e..c24afbe42 100644 --- a/tests/wire/hris/teams.test.ts +++ b/tests/wire/HRIS/teams.test.ts @@ -33,23 +33,15 @@ describe("TeamsClient", () => { }, ], }; - server.mockEndpoint().get("/hris/v1/teams").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -77,7 +69,25 @@ describe("TeamsClient", () => { ], }, ], + }; + 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 () => { @@ -106,7 +116,6 @@ describe("TeamsClient", () => { 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, }); 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 similarity index 69% rename from tests/wire/ticketing/accountToken.test.ts rename to tests/wire/Ticketing/accountToken.test.ts index ba4d2af27..caeb43822 100644 --- a/tests/wire/ticketing/accountToken.test.ts +++ b/tests/wire/Ticketing/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("/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 similarity index 94% rename from tests/wire/ticketing/accounts.test.ts rename to tests/wire/Ticketing/accounts.test.ts index 011262b99..052cd1a4c 100644 --- a/tests/wire/ticketing/accounts.test.ts +++ b/tests/wire/Ticketing/accounts.test.ts @@ -34,26 +34,14 @@ describe("AccountsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -81,7 +69,24 @@ describe("AccountsClient", () => { ], }, ], + }; + 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 () => { 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 similarity index 98% rename from tests/wire/ticketing/attachments.test.ts rename to tests/wire/Ticketing/attachments.test.ts index 811624dc8..8d61e25ab 100644 --- a/tests/wire/ticketing/attachments.test.ts +++ b/tests/wire/Ticketing/attachments.test.ts @@ -38,29 +38,14 @@ describe("AttachmentsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -92,7 +77,26 @@ describe("AttachmentsClient", () => { ], }, ], + }; + 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 () => { @@ -263,7 +267,6 @@ describe("AttachmentsClient", () => { .build(); const response = await client.ticketing.attachments.retrieve("id", { - expand: "ticket", includeRemoteData: true, includeShellData: true, }); diff --git a/tests/wire/ticketing/auditTrail.test.ts b/tests/wire/Ticketing/auditTrail.test.ts similarity index 87% rename from tests/wire/ticketing/auditTrail.test.ts rename to tests/wire/Ticketing/auditTrail.test.ts index d9e1553c3..629b805c6 100644 --- a/tests/wire/ticketing/auditTrail.test.ts +++ b/tests/wire/Ticketing/auditTrail.test.ts @@ -31,22 +31,14 @@ describe("AuditTrailClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + 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.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 similarity index 98% rename from tests/wire/ticketing/contacts.test.ts rename to tests/wire/Ticketing/contacts.test.ts index 5694f277e..ae9783968 100644 --- a/tests/wire/ticketing/contacts.test.ts +++ b/tests/wire/Ticketing/contacts.test.ts @@ -37,28 +37,14 @@ describe("ContactsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -89,7 +75,25 @@ describe("ContactsClient", () => { ], }, ], + }; + 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 () => { @@ -257,7 +261,6 @@ describe("ContactsClient", () => { .build(); const response = await client.ticketing.contacts.retrieve("id", { - expand: "account", includeRemoteData: true, includeShellData: 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 similarity index 99% rename from tests/wire/ticketing/fieldMapping.test.ts rename to tests/wire/Ticketing/fieldMapping.test.ts index bb4f64225..500bc3f9f 100644 --- a/tests/wire/ticketing/fieldMapping.test.ts +++ b/tests/wire/Ticketing/fieldMapping.test.ts @@ -589,6 +589,7 @@ describe("FieldMappingClient", () => { 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"], @@ -840,7 +841,9 @@ describe("FieldMappingClient", () => { .jsonBody(rawResponseBody) .build(); - const response = await client.ticketing.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); + const response = await client.ticketing.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + remoteDataIterationCount: 1, + }); expect(response).toEqual({ model: { id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", 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 similarity index 92% rename from tests/wire/ticketing/issues.test.ts rename to tests/wire/Ticketing/issues.test.ts index b8334c5e7..380585a3e 100644 --- a/tests/wire/ticketing/issues.test.ts +++ b/tests/wire/Ticketing/issues.test.ts @@ -30,30 +30,14 @@ describe("IssuesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + 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.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 () => { 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 similarity index 93% rename from tests/wire/ticketing/linkedAccounts.test.ts rename to tests/wire/Ticketing/linkedAccounts.test.ts index d5185a037..4f48aac2d 100644 --- a/tests/wire/ticketing/linkedAccounts.test.ts +++ b/tests/wire/Ticketing/linkedAccounts.test.ts @@ -50,29 +50,14 @@ describe("LinkedAccountsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -109,6 +94,26 @@ describe("LinkedAccountsClient", () => { }, }, ], + }; + 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 similarity index 92% rename from tests/wire/ticketing/projects.test.ts rename to tests/wire/Ticketing/projects.test.ts index 4ae21389f..f4c66080d 100644 --- a/tests/wire/ticketing/projects.test.ts +++ b/tests/wire/Ticketing/projects.test.ts @@ -34,26 +34,14 @@ describe("ProjectsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -81,7 +69,24 @@ describe("ProjectsClient", () => { ], }, ], + }; + 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 () => { @@ -178,22 +183,14 @@ describe("ProjectsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -225,6 +222,18 @@ describe("ProjectsClient", () => { ], }, ], + }; + 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 similarity index 86% rename from tests/wire/ticketing/syncStatus.test.ts rename to tests/wire/Ticketing/syncStatus.test.ts index f3f691f8f..a9c6a5c26 100644 --- a/tests/wire/ticketing/syncStatus.test.ts +++ b/tests/wire/Ticketing/syncStatus.test.ts @@ -31,18 +31,14 @@ describe("SyncStatusClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -58,6 +54,15 @@ describe("SyncStatusClient", () => { 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 similarity index 90% rename from tests/wire/ticketing/tags.test.ts rename to tests/wire/Ticketing/tags.test.ts index 2cc65a082..d80e41b72 100644 --- a/tests/wire/ticketing/tags.test.ts +++ b/tests/wire/Ticketing/tags.test.ts @@ -32,21 +32,15 @@ describe("TagsClient", () => { }, ], }; - server.mockEndpoint().get("/ticketing/v1/tags").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -73,7 +67,24 @@ describe("TagsClient", () => { ], }, ], + }; + 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 () => { diff --git a/tests/wire/ticketing/teams.test.ts b/tests/wire/Ticketing/teams.test.ts similarity index 94% rename from tests/wire/ticketing/teams.test.ts rename to tests/wire/Ticketing/teams.test.ts index 9fc07959d..a833ee0a7 100644 --- a/tests/wire/ticketing/teams.test.ts +++ b/tests/wire/Ticketing/teams.test.ts @@ -34,26 +34,14 @@ describe("TeamsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -81,7 +69,24 @@ describe("TeamsClient", () => { ], }, ], + }; + 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 () => { 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 similarity index 93% rename from tests/wire/ticketing/users.test.ts rename to tests/wire/Ticketing/users.test.ts index 50dbf5c94..57b5e2cb9 100644 --- a/tests/wire/ticketing/users.test.ts +++ b/tests/wire/Ticketing/users.test.ts @@ -38,29 +38,14 @@ describe("UsersClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .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({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -92,7 +77,29 @@ describe("UsersClient", () => { ], }, ], + }; + 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 () => { @@ -131,7 +138,6 @@ describe("UsersClient", () => { .build(); const response = await client.ticketing.users.retrieve("id", { - expand: "roles", includeRemoteData: true, includeShellData: true, }); 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/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/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 () => {