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..aa4896cb1 100644 --- a/reference.md +++ b/reference.md @@ -1,6 +1,6 @@ # Reference -## Ats AccountDetails -
client.ats.accountDetails.retrieve() -> Merge.AccountDetails +## Filestorage AccountDetails +
client.filestorage.accountDetails.retrieve() -> Merge.AccountDetails
@@ -27,7 +27,7 @@ Get details for a linked account.
```typescript -await client.ats.accountDetails.retrieve(); +await client.filestorage.accountDetails.retrieve(); ```
@@ -55,8 +55,8 @@ await client.ats.accountDetails.retrieve();
-## Ats AccountToken -
client.ats.accountToken.retrieve(public_token) -> Merge.AccountToken +## Filestorage AccountToken +
client.filestorage.accountToken.retrieve(public_token) -> Merge.AccountToken
@@ -83,7 +83,7 @@ Returns the account token for the end user with the provided public token.
```typescript -await client.ats.accountToken.retrieve("public_token"); +await client.filestorage.accountToken.retrieve("public_token"); ```
@@ -119,8 +119,7 @@ await client.ats.accountToken.retrieve("public_token");
-## Ats Activities -
client.ats.activities.list({ ...params }) -> Merge.PaginatedActivityList +
client.filestorage.accountToken.regenerateCreate() -> Merge.RegenerateAccountToken
@@ -132,7 +131,7 @@ await client.ats.accountToken.retrieve("public_token");
-Returns a list of `Activity` objects. +Exchange Linked Account account tokens.
@@ -147,22 +146,7 @@ Returns a list of `Activity` objects.
```typescript -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" -}); +await client.filestorage.accountToken.regenerateCreate(); ```
@@ -178,15 +162,7 @@ await client.ats.activities.list({
-**request:** `Merge.ats.ActivitiesListRequest` - -
-
- -
-
- -**requestOptions:** `ActivitiesClient.RequestOptions` +**requestOptions:** `AccountTokenClient.RequestOptions`
@@ -198,7 +174,8 @@ await client.ats.activities.list({
-
client.ats.activities.create({ ...params }) -> Merge.ActivityResponse +## Filestorage AsyncPassthrough +
client.filestorage.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept
@@ -210,7 +187,7 @@ await client.ats.activities.list({
-Creates an `Activity` object with the given values. +Asynchronously pull data from an endpoint not currently supported by Merge.
@@ -225,11 +202,9 @@ Creates an `Activity` object with the given values.
```typescript -await client.ats.activities.create({ - isDebugMode: true, - runAsync: true, - model: {}, - remoteUserId: "remote_user_id" +await client.filestorage.asyncPassthrough.create({ + method: "GET", + path: "/scooters" }); ``` @@ -246,7 +221,7 @@ await client.ats.activities.create({
-**request:** `Merge.ats.ActivityEndpointRequest` +**request:** `Merge.DataPassthroughRequest`
@@ -254,7 +229,7 @@ await client.ats.activities.create({
-**requestOptions:** `ActivitiesClient.RequestOptions` +**requestOptions:** `AsyncPassthroughClient.RequestOptions`
@@ -266,7 +241,7 @@ await client.ats.activities.create({
-
client.ats.activities.retrieve(id, { ...params }) -> Merge.Activity +
client.filestorage.asyncPassthrough.retrieve(async_passthrough_receipt_id) -> Merge.AsyncPassthroughRetrieveResponse
@@ -278,7 +253,7 @@ await client.ats.activities.create({
-Returns an `Activity` object with the given `id`. +Retrieves data from earlier async-passthrough POST request
@@ -293,13 +268,7 @@ Returns an `Activity` object with the given `id`.
```typescript -await client.ats.activities.retrieve("id", { - expand: "user", - includeRemoteData: true, - includeShellData: true, - remoteFields: "activity_type", - showEnumOrigins: "activity_type" -}); +await client.filestorage.asyncPassthrough.retrieve("async_passthrough_receipt_id"); ```
@@ -315,15 +284,7 @@ await client.ats.activities.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.ActivitiesRetrieveRequest` +**async_passthrough_receipt_id:** `string`
@@ -331,7 +292,7 @@ await client.ats.activities.retrieve("id", {
-**requestOptions:** `ActivitiesClient.RequestOptions` +**requestOptions:** `AsyncPassthroughClient.RequestOptions`
@@ -343,7 +304,8 @@ await client.ats.activities.retrieve("id", {
-
client.ats.activities.metaPostRetrieve() -> Merge.MetaResponse +## Filestorage AuditTrail +
client.filestorage.auditTrail.list({ ...params }) -> core.Page
@@ -355,7 +317,7 @@ await client.ats.activities.retrieve("id", {
-Returns metadata for `Activity` POSTs. +Gets a list of audit trail events.
@@ -370,7 +332,33 @@ Returns metadata for `Activity` POSTs.
```typescript -await client.ats.activities.metaPostRetrieve(); +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; ```
@@ -386,7 +374,15 @@ await client.ats.activities.metaPostRetrieve();
-**requestOptions:** `ActivitiesClient.RequestOptions` +**request:** `Merge.filestorage.AuditTrailListRequest` + +
+
+ +
+
+ +**requestOptions:** `AuditTrailClient.RequestOptions`
@@ -398,8 +394,8 @@ await client.ats.activities.metaPostRetrieve();
-## Ats Applications -
client.ats.applications.list({ ...params }) -> Merge.PaginatedApplicationList +## Filestorage AvailableActions +
client.filestorage.availableActions.retrieve() -> Merge.AvailableActions
@@ -411,7 +407,7 @@ await client.ats.activities.metaPostRetrieve();
-Returns a list of `Application` objects. +Returns a list of models and actions available for an account.
@@ -426,25 +422,7 @@ Returns a list of `Application` objects.
```typescript -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" -}); +await client.filestorage.availableActions.retrieve(); ```
@@ -460,15 +438,7 @@ await client.ats.applications.list({
-**request:** `Merge.ats.ApplicationsListRequest` - -
-
- -
-
- -**requestOptions:** `ApplicationsClient.RequestOptions` +**requestOptions:** `AvailableActionsClient.RequestOptions`
@@ -480,7 +450,8 @@ await client.ats.applications.list({
-
client.ats.applications.create({ ...params }) -> Merge.ApplicationResponse +## Filestorage Scopes +
client.filestorage.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -492,10 +463,7 @@ await client.ats.applications.list({
-Creates an `Application` object with the given values. -For certain integrations, but not all, our API detects duplicate candidates and will associate applications with existing records in the third-party. New candidates are created and automatically linked to the application. - -See our [Help Center article](https://help.merge.dev/en/articles/10012366-updates-to-post-applications-oct-2024) for detailed support per integration. +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).
@@ -510,12 +478,7 @@ See our [Help Center article](https://help.merge.dev/en/articles/10012366-update
```typescript -await client.ats.applications.create({ - isDebugMode: true, - runAsync: true, - model: {}, - remoteUserId: "remote_user_id" -}); +await client.filestorage.scopes.defaultScopesRetrieve(); ```
@@ -531,15 +494,7 @@ await client.ats.applications.create({
-**request:** `Merge.ats.ApplicationEndpointRequest` - -
-
- -
-
- -**requestOptions:** `ApplicationsClient.RequestOptions` +**requestOptions:** `ScopesClient.RequestOptions`
@@ -551,7 +506,7 @@ await client.ats.applications.create({
-
client.ats.applications.retrieve(id, { ...params }) -> Merge.Application +
client.filestorage.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -563,7 +518,7 @@ await client.ats.applications.create({
-Returns an `Application` object with the given `id`. +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).
@@ -578,11 +533,7 @@ Returns an `Application` object with the given `id`.
```typescript -await client.ats.applications.retrieve("id", { - expand: "candidate", - includeRemoteData: true, - includeShellData: true -}); +await client.filestorage.scopes.linkedAccountScopesRetrieve(); ```
@@ -598,23 +549,7 @@ await client.ats.applications.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.ApplicationsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `ApplicationsClient.RequestOptions` +**requestOptions:** `ScopesClient.RequestOptions`
@@ -626,7 +561,7 @@ await client.ats.applications.retrieve("id", {
-
client.ats.applications.changeStageCreate(id, { ...params }) -> Merge.ApplicationResponse +
client.filestorage.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi
@@ -638,7 +573,7 @@ await client.ats.applications.retrieve("id", {
-Updates the `current_stage` field of an `Application` object +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)
@@ -653,9 +588,29 @@ Updates the `current_stage` field of an `Application` object
```typescript -await client.ats.applications.changeStageCreate("id", { - isDebugMode: true, - runAsync: 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 + } + } + }] }); ``` @@ -672,15 +627,7 @@ await client.ats.applications.changeStageCreate("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.UpdateApplicationStageRequest` +**request:** `Merge.filestorage.LinkedAccountCommonModelScopeDeserializerRequest`
@@ -688,7 +635,7 @@ await client.ats.applications.changeStageCreate("id", {
-**requestOptions:** `ApplicationsClient.RequestOptions` +**requestOptions:** `ScopesClient.RequestOptions`
@@ -700,7 +647,8 @@ await client.ats.applications.changeStageCreate("id", {
-
client.ats.applications.metaPostRetrieve({ ...params }) -> Merge.MetaResponse +## Filestorage DeleteAccount +
client.filestorage.deleteAccount.delete() -> void
@@ -712,7 +660,7 @@ await client.ats.applications.changeStageCreate("id", {
-Returns metadata for `Application` POSTs. +Delete a linked account.
@@ -727,9 +675,7 @@ Returns metadata for `Application` POSTs.
```typescript -await client.ats.applications.metaPostRetrieve({ - applicationRemoteTemplateId: "application_remote_template_id" -}); +await client.filestorage.deleteAccount.delete(); ```
@@ -745,15 +691,7 @@ await client.ats.applications.metaPostRetrieve({
-**request:** `Merge.ats.ApplicationsMetaPostRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `ApplicationsClient.RequestOptions` +**requestOptions:** `DeleteAccountClient.RequestOptions`
@@ -765,8 +703,8 @@ await client.ats.applications.metaPostRetrieve({
-## Ats AsyncPassthrough -
client.ats.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept +## Filestorage Drives +
client.filestorage.drives.list({ ...params }) -> core.Page
@@ -778,7 +716,7 @@ await client.ats.applications.metaPostRetrieve({
-Asynchronously pull data from an endpoint not currently supported by Merge. +Returns a list of `Drive` objects.
@@ -793,10 +731,43 @@ Asynchronously pull data from an endpoint not currently supported by Merge.
```typescript -await client.ats.asyncPassthrough.create({ - method: "GET", - path: "/scooters" +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", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.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; ```
@@ -812,7 +783,7 @@ await client.ats.asyncPassthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**request:** `Merge.filestorage.DrivesListRequest`
@@ -820,7 +791,7 @@ await client.ats.asyncPassthrough.create({
-**requestOptions:** `AsyncPassthroughClient.RequestOptions` +**requestOptions:** `DrivesClient.RequestOptions`
@@ -832,7 +803,7 @@ await client.ats.asyncPassthrough.create({
-
client.ats.asyncPassthrough.retrieve(async_passthrough_receipt_id) -> Merge.AsyncPassthroughRetrieveResponse +
client.filestorage.drives.retrieve(id, { ...params }) -> Merge.Drive
@@ -844,7 +815,7 @@ await client.ats.asyncPassthrough.create({
-Retrieves data from earlier async-passthrough POST request +Returns a `Drive` object with the given `id`.
@@ -859,7 +830,10 @@ Retrieves data from earlier async-passthrough POST request
```typescript -await client.ats.asyncPassthrough.retrieve("async_passthrough_receipt_id"); +await client.filestorage.drives.retrieve("id", { + includeRemoteData: true, + includeShellData: true +}); ```
@@ -875,7 +849,7 @@ await client.ats.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-**async_passthrough_receipt_id:** `string` +**id:** `string`
@@ -883,7 +857,15 @@ await client.ats.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-**requestOptions:** `AsyncPassthroughClient.RequestOptions` +**request:** `Merge.filestorage.DrivesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `DrivesClient.RequestOptions`
@@ -895,8 +877,8 @@ await client.ats.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-## Ats Attachments -
client.ats.attachments.list({ ...params }) -> Merge.PaginatedAttachmentList +## Filestorage FieldMapping +
client.filestorage.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse
@@ -908,7 +890,7 @@ await client.ats.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-Returns a list of `Attachment` 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/).
@@ -923,21 +905,8 @@ Returns a list of `Attachment` objects.
```typescript -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" +await client.filestorage.fieldMapping.fieldMappingsRetrieve({ + excludeRemoteFieldMetadata: true }); ``` @@ -954,7 +923,7 @@ await client.ats.attachments.list({
-**request:** `Merge.ats.AttachmentsListRequest` +**request:** `Merge.filestorage.FieldMappingsRetrieveRequest`
@@ -962,7 +931,7 @@ await client.ats.attachments.list({
-**requestOptions:** `AttachmentsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -974,7 +943,7 @@ await client.ats.attachments.list({
-
client.ats.attachments.create({ ...params }) -> Merge.AttachmentResponse +
client.filestorage.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse
@@ -986,7 +955,7 @@ await client.ats.attachments.list({
-Creates an `Attachment` 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.
@@ -1001,11 +970,15 @@ Creates an `Attachment` object with the given values.
```typescript -await client.ats.attachments.create({ - isDebugMode: true, - runAsync: true, - model: {}, - remoteUserId: "remote_user_id" +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" }); ``` @@ -1022,7 +995,7 @@ await client.ats.attachments.create({
-**request:** `Merge.ats.AttachmentEndpointRequest` +**request:** `Merge.filestorage.CreateFieldMappingRequest`
@@ -1030,7 +1003,7 @@ await client.ats.attachments.create({
-**requestOptions:** `AttachmentsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -1042,7 +1015,7 @@ await client.ats.attachments.create({
-
client.ats.attachments.retrieve(id, { ...params }) -> Merge.Attachment +
client.filestorage.fieldMapping.fieldMappingsDestroy(field_mapping_id) -> Merge.FieldMappingInstanceResponse
@@ -1054,7 +1027,7 @@ await client.ats.attachments.create({
-Returns an `Attachment` 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.
@@ -1069,13 +1042,7 @@ Returns an `Attachment` object with the given `id`.
```typescript -await client.ats.attachments.retrieve("id", { - expand: "candidate", - includeRemoteData: true, - includeShellData: true, - remoteFields: "attachment_type", - showEnumOrigins: "attachment_type" -}); +await client.filestorage.fieldMapping.fieldMappingsDestroy("field_mapping_id"); ```
@@ -1091,15 +1058,7 @@ await client.ats.attachments.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.AttachmentsRetrieveRequest` +**field_mapping_id:** `string`
@@ -1107,7 +1066,7 @@ await client.ats.attachments.retrieve("id", {
-**requestOptions:** `AttachmentsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -1119,7 +1078,7 @@ await client.ats.attachments.retrieve("id", {
-
client.ats.attachments.metaPostRetrieve() -> Merge.MetaResponse +
client.filestorage.fieldMapping.fieldMappingsPartialUpdate(field_mapping_id, { ...params }) -> Merge.FieldMappingInstanceResponse
@@ -1131,7 +1090,7 @@ await client.ats.attachments.retrieve("id", {
-Returns metadata for `Attachment` 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.
@@ -1146,7 +1105,9 @@ Returns metadata for `Attachment` POSTs.
```typescript -await client.ats.attachments.metaPostRetrieve(); +await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + remoteDataIterationCount: 1 +}); ```
@@ -1162,7 +1123,23 @@ await client.ats.attachments.metaPostRetrieve();
-**requestOptions:** `AttachmentsClient.RequestOptions` +**field_mapping_id:** `string` + +
+
+ +
+
+ +**request:** `Merge.filestorage.PatchedEditFieldMappingRequest` + +
+
+ +
+
+ +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -1174,8 +1151,7 @@ await client.ats.attachments.metaPostRetrieve();
-## Ats AuditTrail -
client.ats.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList +
client.filestorage.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse
@@ -1187,7 +1163,7 @@ await client.ats.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/).
@@ -1202,13 +1178,9 @@ Gets a list of audit trail events.
```typescript -await client.ats.auditTrail.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - eventType: "event_type", - pageSize: 1, - startDate: "start_date", - userEmail: "user_email" +await client.filestorage.fieldMapping.remoteFieldsRetrieve({ + commonModels: "common_models", + includeExampleValues: "include_example_values" }); ``` @@ -1225,7 +1197,7 @@ await client.ats.auditTrail.list({
-**request:** `Merge.ats.AuditTrailListRequest` +**request:** `Merge.filestorage.RemoteFieldsRetrieveRequest`
@@ -1233,7 +1205,7 @@ await client.ats.auditTrail.list({
-**requestOptions:** `AuditTrailClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -1245,8 +1217,7 @@ await client.ats.auditTrail.list({
-## Ats AvailableActions -
client.ats.availableActions.retrieve() -> Merge.AvailableActions +
client.filestorage.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse
@@ -1258,7 +1229,7 @@ await client.ats.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/).
@@ -1273,7 +1244,7 @@ Returns a list of models and actions available for an account.
```typescript -await client.ats.availableActions.retrieve(); +await client.filestorage.fieldMapping.targetFieldsRetrieve(); ```
@@ -1289,7 +1260,7 @@ await client.ats.availableActions.retrieve();
-**requestOptions:** `AvailableActionsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -1301,8 +1272,8 @@ await client.ats.availableActions.retrieve();
-## Ats Candidates -
client.ats.candidates.list({ ...params }) -> Merge.PaginatedCandidateList +## Filestorage Files +
client.filestorage.files.list({ ...params }) -> core.Page
@@ -1314,7 +1285,7 @@ await client.ats.availableActions.retrieve();
-Returns a list of `Candidate` objects. +Returns a list of `File` objects.
@@ -1329,23 +1300,55 @@ Returns a list of `Candidate` objects.
```typescript -await client.ats.candidates.list({ +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", - emailAddresses: "email_addresses", - expand: "applications", - firstName: "first_name", + driveId: "drive_id", + folderId: "folder_id", includeDeletedData: true, includeRemoteData: true, includeShellData: true, - lastName: "last_name", + 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, - remoteId: "remote_id", - tags: "tags" + 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; ```
@@ -1361,7 +1364,7 @@ await client.ats.candidates.list({
-**request:** `Merge.ats.CandidatesListRequest` +**request:** `Merge.filestorage.FilesListRequest`
@@ -1369,7 +1372,7 @@ await client.ats.candidates.list({
-**requestOptions:** `CandidatesClient.RequestOptions` +**requestOptions:** `FilesClient.RequestOptions`
@@ -1381,7 +1384,7 @@ await client.ats.candidates.list({
-
client.ats.candidates.create({ ...params }) -> Merge.CandidateResponse +
client.filestorage.files.create({ ...params }) -> Merge.FileStorageFileResponse
@@ -1393,7 +1396,7 @@ await client.ats.candidates.list({
-Creates a `Candidate` object with the given values. +Creates a `File` object with the given values.
@@ -1408,11 +1411,10 @@ Creates a `Candidate` object with the given values.
```typescript -await client.ats.candidates.create({ +await client.filestorage.files.create({ isDebugMode: true, runAsync: true, - model: {}, - remoteUserId: "remote_user_id" + model: {} }); ``` @@ -1429,7 +1431,7 @@ await client.ats.candidates.create({
-**request:** `Merge.ats.CandidateEndpointRequest` +**request:** `Merge.filestorage.FileStorageFileEndpointRequest`
@@ -1437,7 +1439,7 @@ await client.ats.candidates.create({
-**requestOptions:** `CandidatesClient.RequestOptions` +**requestOptions:** `FilesClient.RequestOptions`
@@ -1449,7 +1451,7 @@ await client.ats.candidates.create({
-
client.ats.candidates.retrieve(id, { ...params }) -> Merge.Candidate +
client.filestorage.files.retrieve(id, { ...params }) -> Merge.File_
@@ -1461,7 +1463,7 @@ await client.ats.candidates.create({
-Returns a `Candidate` object with the given `id`. +Returns a `File` object with the given `id`.
@@ -1476,8 +1478,7 @@ Returns a `Candidate` object with the given `id`.
```typescript -await client.ats.candidates.retrieve("id", { - expand: "applications", +await client.filestorage.files.retrieve("id", { includeRemoteData: true, includeShellData: true }); @@ -1504,7 +1505,7 @@ await client.ats.candidates.retrieve("id", {
-**request:** `Merge.ats.CandidatesRetrieveRequest` +**request:** `Merge.filestorage.FilesRetrieveRequest`
@@ -1512,7 +1513,7 @@ await client.ats.candidates.retrieve("id", {
-**requestOptions:** `CandidatesClient.RequestOptions` +**requestOptions:** `FilesClient.RequestOptions`
@@ -1524,7 +1525,7 @@ await client.ats.candidates.retrieve("id", {
-
client.ats.candidates.partialUpdate(id, { ...params }) -> Merge.CandidateResponse +
client.filestorage.files.downloadRequestMetaRetrieve(id, { ...params }) -> Merge.DownloadRequestMeta
@@ -1536,7 +1537,7 @@ await client.ats.candidates.retrieve("id", {
-Updates a `Candidate` object with the given `id`. +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.
@@ -1551,11 +1552,8 @@ Updates a `Candidate` object with the given `id`.
```typescript -await client.ats.candidates.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {}, - remoteUserId: "remote_user_id" +await client.filestorage.files.downloadRequestMetaRetrieve("id", { + mimeType: "mime_type" }); ``` @@ -1580,7 +1578,7 @@ await client.ats.candidates.partialUpdate("id", {
-**request:** `Merge.ats.PatchedCandidateEndpointRequest` +**request:** `Merge.filestorage.FilesDownloadRequestMetaRetrieveRequest`
@@ -1588,7 +1586,7 @@ await client.ats.candidates.partialUpdate("id", {
-**requestOptions:** `CandidatesClient.RequestOptions` +**requestOptions:** `FilesClient.RequestOptions`
@@ -1600,7 +1598,7 @@ await client.ats.candidates.partialUpdate("id", {
-
client.ats.candidates.ignoreCreate(model_id, { ...params }) -> void +
client.filestorage.files.downloadRequestMetaList({ ...params }) -> core.Page
@@ -1612,7 +1610,7 @@ await client.ats.candidates.partialUpdate("id", {
-Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. +Returns metadata to construct authenticated file download requests, allowing you to download files directly from the third-party.
@@ -1627,9 +1625,39 @@ Ignores a specific row based on the `model_id` in the url. These records will ha
```typescript -await client.ats.candidates.ignoreCreate("model_id", { - reason: "GENERAL_CUSTOMER_REQUEST" +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; ```
@@ -1645,15 +1673,7 @@ await client.ats.candidates.ignoreCreate("model_id", {
-**model_id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.IgnoreCommonModelRequest` +**request:** `Merge.filestorage.FilesDownloadRequestMetaListRequest`
@@ -1661,7 +1681,7 @@ await client.ats.candidates.ignoreCreate("model_id", {
-**requestOptions:** `CandidatesClient.RequestOptions` +**requestOptions:** `FilesClient.RequestOptions`
@@ -1673,7 +1693,7 @@ await client.ats.candidates.ignoreCreate("model_id", {
-
client.ats.candidates.metaPatchRetrieve(id) -> Merge.MetaResponse +
client.filestorage.files.metaPostRetrieve() -> Merge.MetaResponse
@@ -1685,7 +1705,7 @@ await client.ats.candidates.ignoreCreate("model_id", {
-Returns metadata for `Candidate` PATCHs. +Returns metadata for `FileStorageFile` POSTs.
@@ -1700,7 +1720,7 @@ Returns metadata for `Candidate` PATCHs.
```typescript -await client.ats.candidates.metaPatchRetrieve("id"); +await client.filestorage.files.metaPostRetrieve(); ```
@@ -1716,15 +1736,7 @@ await client.ats.candidates.metaPatchRetrieve("id");
-**id:** `string` - -
-
- -
-
- -**requestOptions:** `CandidatesClient.RequestOptions` +**requestOptions:** `FilesClient.RequestOptions`
@@ -1736,7 +1748,8 @@ await client.ats.candidates.metaPatchRetrieve("id");
-
client.ats.candidates.metaPostRetrieve() -> Merge.MetaResponse +## Filestorage Folders +
client.filestorage.folders.list({ ...params }) -> core.Page
@@ -1748,7 +1761,7 @@ await client.ats.candidates.metaPatchRetrieve("id");
-Returns metadata for `Candidate` POSTs. +Returns a list of `Folder` objects.
@@ -1763,7 +1776,47 @@ Returns metadata for `Candidate` POSTs.
```typescript -await client.ats.candidates.metaPostRetrieve(); +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", + 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" +}); +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; ```
@@ -1779,7 +1832,15 @@ await client.ats.candidates.metaPostRetrieve();
-**requestOptions:** `CandidatesClient.RequestOptions` +**request:** `Merge.filestorage.FoldersListRequest` + +
+
+ +
+
+ +**requestOptions:** `FoldersClient.RequestOptions`
@@ -1791,8 +1852,7 @@ await client.ats.candidates.metaPostRetrieve();
-## Ats Scopes -
client.ats.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi +
client.filestorage.folders.create({ ...params }) -> Merge.FileStorageFolderResponse
@@ -1804,7 +1864,7 @@ await client.ats.candidates.metaPostRetrieve();
-Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Creates a `Folder` object with the given values.
@@ -1819,7 +1879,11 @@ Get the default permissions for Merge Common Models and fields across all Linked
```typescript -await client.ats.scopes.defaultScopesRetrieve(); +await client.filestorage.folders.create({ + isDebugMode: true, + runAsync: true, + model: {} +}); ```
@@ -1835,7 +1899,15 @@ await client.ats.scopes.defaultScopesRetrieve();
-**requestOptions:** `ScopesClient.RequestOptions` +**request:** `Merge.filestorage.FileStorageFolderEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `FoldersClient.RequestOptions`
@@ -1847,7 +1919,7 @@ await client.ats.scopes.defaultScopesRetrieve();
-
client.ats.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi +
client.filestorage.folders.retrieve(id, { ...params }) -> Merge.Folder
@@ -1859,7 +1931,7 @@ await client.ats.scopes.defaultScopesRetrieve();
-Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Returns a `Folder` object with the given `id`.
@@ -1874,7 +1946,10 @@ Get all available permissions for Merge Common Models and fields for a single Li
```typescript -await client.ats.scopes.linkedAccountScopesRetrieve(); +await client.filestorage.folders.retrieve("id", { + includeRemoteData: true, + includeShellData: true +}); ```
@@ -1890,7 +1965,23 @@ await client.ats.scopes.linkedAccountScopesRetrieve();
-**requestOptions:** `ScopesClient.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.filestorage.FoldersRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `FoldersClient.RequestOptions`
@@ -1902,7 +1993,7 @@ await client.ats.scopes.linkedAccountScopesRetrieve();
-
client.ats.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi +
client.filestorage.folders.metaPostRetrieve() -> Merge.MetaResponse
@@ -1914,7 +2005,7 @@ await client.ats.scopes.linkedAccountScopesRetrieve();
-Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) +Returns metadata for `FileStorageFolder` POSTs.
@@ -1929,30 +2020,7 @@ Update permissions for any Common Model or field for a single Linked Account. An
```typescript -await client.ats.scopes.linkedAccountScopesCreate({ - commonModels: [{ - modelName: "Employee", - modelPermissions: { - "READ": { - isEnabled: true - }, - "WRITE": { - isEnabled: false - } - }, - fieldPermissions: { - enabledFields: ["avatar", "home_location"], - disabledFields: ["work_location"] - } - }, { - modelName: "Benefit", - modelPermissions: { - "WRITE": { - isEnabled: false - } - } - }] -}); +await client.filestorage.folders.metaPostRetrieve(); ```
@@ -1968,15 +2036,7 @@ await client.ats.scopes.linkedAccountScopesCreate({
-**request:** `Merge.ats.LinkedAccountCommonModelScopeDeserializerRequest` - -
-
- -
-
- -**requestOptions:** `ScopesClient.RequestOptions` +**requestOptions:** `FoldersClient.RequestOptions`
@@ -1988,8 +2048,8 @@ await client.ats.scopes.linkedAccountScopesCreate({
-## Ats DeleteAccount -
client.ats.deleteAccount.delete() -> void +## Filestorage GenerateKey +
client.filestorage.generateKey.create({ ...params }) -> Merge.RemoteKey
@@ -2001,7 +2061,7 @@ await client.ats.scopes.linkedAccountScopesCreate({
-Delete a linked account. +Create a remote key.
@@ -2016,7 +2076,9 @@ Delete a linked account.
```typescript -await client.ats.deleteAccount.delete(); +await client.filestorage.generateKey.create({ + name: "Remote Deployment Key 1" +}); ```
@@ -2032,7 +2094,15 @@ await client.ats.deleteAccount.delete();
-**requestOptions:** `DeleteAccountClient.RequestOptions` +**request:** `Merge.filestorage.GenerateRemoteKeyRequest` + +
+
+ +
+
+ +**requestOptions:** `GenerateKeyClient.RequestOptions`
@@ -2044,8 +2114,8 @@ await client.ats.deleteAccount.delete();
-## Ats Departments -
client.ats.departments.list({ ...params }) -> Merge.PaginatedDepartmentList +## Filestorage Groups +
client.filestorage.groups.list({ ...params }) -> core.Page
@@ -2057,7 +2127,7 @@ await client.ats.deleteAccount.delete();
-Returns a list of `Department` objects. +Returns a list of `Group` objects.
@@ -2072,7 +2142,24 @@ Returns a list of `Department` objects.
```typescript -await client.ats.departments.list({ +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, + 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", @@ -2084,6 +2171,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; ```
@@ -2099,7 +2192,7 @@ await client.ats.departments.list({
-**request:** `Merge.ats.DepartmentsListRequest` +**request:** `Merge.filestorage.GroupsListRequest`
@@ -2107,7 +2200,7 @@ await client.ats.departments.list({
-**requestOptions:** `DepartmentsClient.RequestOptions` +**requestOptions:** `GroupsClient.RequestOptions`
@@ -2119,7 +2212,7 @@ await client.ats.departments.list({
-
client.ats.departments.retrieve(id, { ...params }) -> Merge.Department +
client.filestorage.groups.retrieve(id, { ...params }) -> Merge.Group
@@ -2131,7 +2224,7 @@ await client.ats.departments.list({
-Returns a `Department` object with the given `id`. +Returns a `Group` object with the given `id`.
@@ -2146,7 +2239,7 @@ Returns a `Department` object with the given `id`.
```typescript -await client.ats.departments.retrieve("id", { +await client.filestorage.groups.retrieve("id", { includeRemoteData: true, includeShellData: true }); @@ -2173,7 +2266,7 @@ await client.ats.departments.retrieve("id", {
-**request:** `Merge.ats.DepartmentsRetrieveRequest` +**request:** `Merge.filestorage.GroupsRetrieveRequest`
@@ -2181,7 +2274,7 @@ await client.ats.departments.retrieve("id", {
-**requestOptions:** `DepartmentsClient.RequestOptions` +**requestOptions:** `GroupsClient.RequestOptions`
@@ -2193,8 +2286,8 @@ await client.ats.departments.retrieve("id", {
-## Ats Eeocs -
client.ats.eeocs.list({ ...params }) -> Merge.PaginatedEeocList +## Filestorage Issues +
client.filestorage.issues.list({ ...params }) -> core.Page
@@ -2206,7 +2299,7 @@ await client.ats.departments.retrieve("id", {
-Returns a list of `EEOC` objects. +Gets all issues for Organization.
@@ -2221,22 +2314,49 @@ Returns a list of `EEOC` objects.
```typescript -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"), +const pageableResponse = await client.filestorage.issues.list({ + accountToken: "account_token", 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"), + 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, - remoteFields: "disability_status", - remoteId: "remote_id", - showEnumOrigins: "disability_status" + startDate: "start_date", + status: "ONGOING" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -2252,7 +2372,7 @@ await client.ats.eeocs.list({
-**request:** `Merge.ats.EeocsListRequest` +**request:** `Merge.filestorage.IssuesListRequest`
@@ -2260,7 +2380,7 @@ await client.ats.eeocs.list({
-**requestOptions:** `EeocsClient.RequestOptions` +**requestOptions:** `IssuesClient.RequestOptions`
@@ -2272,7 +2392,7 @@ await client.ats.eeocs.list({
-
client.ats.eeocs.retrieve(id, { ...params }) -> Merge.Eeoc +
client.filestorage.issues.retrieve(id) -> Merge.Issue
@@ -2284,7 +2404,7 @@ await client.ats.eeocs.list({
-Returns an `EEOC` object with the given `id`. +Get a specific issue.
@@ -2299,13 +2419,7 @@ Returns an `EEOC` object with the given `id`.
```typescript -await client.ats.eeocs.retrieve("id", { - expand: "candidate", - includeRemoteData: true, - includeShellData: true, - remoteFields: "disability_status", - showEnumOrigins: "disability_status" -}); +await client.filestorage.issues.retrieve("id"); ```
@@ -2329,15 +2443,7 @@ await client.ats.eeocs.retrieve("id", {
-**request:** `Merge.ats.EeocsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `EeocsClient.RequestOptions` +**requestOptions:** `IssuesClient.RequestOptions`
@@ -2349,8 +2455,8 @@ await client.ats.eeocs.retrieve("id", {
-## Ats FieldMapping -
client.ats.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse +## Filestorage LinkToken +
client.filestorage.linkToken.create({ ...params }) -> Merge.LinkToken
@@ -2362,7 +2468,7 @@ await client.ats.eeocs.retrieve("id", {
-Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). +Creates a link token to be used when linking a new end user. The link token expires after single use.
@@ -2377,8 +2483,11 @@ Get all Field Mappings for this Linked Account. Field Mappings are mappings betw
```typescript -await client.ats.fieldMapping.fieldMappingsRetrieve({ - excludeRemoteFieldMetadata: true +await client.filestorage.linkToken.create({ + endUserEmailAddress: "example@gmail.com", + endUserOrganizationName: "Test Organization", + endUserOriginId: "12345", + categories: ["hris", "ats"] }); ``` @@ -2395,7 +2504,7 @@ await client.ats.fieldMapping.fieldMappingsRetrieve({
-**request:** `Merge.ats.FieldMappingsRetrieveRequest` +**request:** `Merge.filestorage.EndUserDetailsRequest`
@@ -2403,7 +2512,7 @@ await client.ats.fieldMapping.fieldMappingsRetrieve({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `LinkTokenClient.RequestOptions`
@@ -2415,7 +2524,8 @@ await client.ats.fieldMapping.fieldMappingsRetrieve({
-
client.ats.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse +## Filestorage LinkedAccounts +
client.filestorage.linkedAccounts.list({ ...params }) -> core.Page
@@ -2427,7 +2537,7 @@ await client.ats.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. +List linked accounts for your organization.
@@ -2442,15 +2552,47 @@ Create new Field Mappings that will be available after the next scheduled sync.
```typescript -await client.ats.fieldMapping.fieldMappingsCreate({ - excludeRemoteFieldMetadata: true, - targetFieldName: "example_target_field_name", - targetFieldDescription: "this is a example description of the target field", - remoteFieldTraversalPath: ["example_remote_field"], - remoteMethod: "GET", - remoteUrlPath: "/example-url-path", - commonModelName: "ExampleCommonModel" +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; ```
@@ -2466,7 +2608,7 @@ await client.ats.fieldMapping.fieldMappingsCreate({
-**request:** `Merge.ats.CreateFieldMappingRequest` +**request:** `Merge.filestorage.LinkedAccountsListRequest`
@@ -2474,7 +2616,7 @@ await client.ats.fieldMapping.fieldMappingsCreate({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `LinkedAccountsClient.RequestOptions`
@@ -2486,7 +2628,8 @@ await client.ats.fieldMapping.fieldMappingsCreate({
-
client.ats.fieldMapping.fieldMappingsDestroy(field_mapping_id) -> Merge.FieldMappingInstanceResponse +## Filestorage Passthrough +
client.filestorage.passthrough.create({ ...params }) -> Merge.RemoteResponse
@@ -2498,7 +2641,7 @@ await client.ats.fieldMapping.fieldMappingsCreate({
-Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Pull data from an endpoint not currently supported by Merge.
@@ -2513,7 +2656,10 @@ Deletes Field Mappings for a Linked Account. All data related to this Field Mapp
```typescript -await client.ats.fieldMapping.fieldMappingsDestroy("field_mapping_id"); +await client.filestorage.passthrough.create({ + method: "GET", + path: "/scooters" +}); ```
@@ -2529,7 +2675,7 @@ await client.ats.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**field_mapping_id:** `string` +**request:** `Merge.DataPassthroughRequest`
@@ -2537,7 +2683,7 @@ await client.ats.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `PassthroughClient.RequestOptions`
@@ -2549,7 +2695,8 @@ await client.ats.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-
client.ats.fieldMapping.fieldMappingsPartialUpdate(field_mapping_id, { ...params }) -> Merge.FieldMappingInstanceResponse +## Filestorage RegenerateKey +
client.filestorage.regenerateKey.create({ ...params }) -> Merge.RemoteKey
@@ -2561,7 +2708,7 @@ await client.ats.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Exchange remote keys.
@@ -2576,7 +2723,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.filestorage.regenerateKey.create({ + name: "Remote Deployment Key 1" +}); ```
@@ -2592,15 +2741,7 @@ await client.ats.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-**field_mapping_id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.PatchedEditFieldMappingRequest` +**request:** `Merge.filestorage.RemoteKeyForRegenerationRequest`
@@ -2608,7 +2749,7 @@ await client.ats.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `RegenerateKeyClient.RequestOptions`
@@ -2620,7 +2761,8 @@ await client.ats.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-
client.ats.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse +## Filestorage SyncStatus +
client.filestorage.syncStatus.list({ ...params }) -> core.Page
@@ -2632,7 +2774,7 @@ await client.ats.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). +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).
@@ -2647,10 +2789,25 @@ Get all remote fields for a Linked Account. Remote fields are third-party fields
```typescript -await client.ats.fieldMapping.remoteFieldsRetrieve({ - commonModels: "common_models", - includeExampleValues: "include_example_values" +const pageableResponse = await client.filestorage.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.filestorage.syncStatus.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 1 }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -2666,7 +2823,7 @@ await client.ats.fieldMapping.remoteFieldsRetrieve({
-**request:** `Merge.ats.RemoteFieldsRetrieveRequest` +**request:** `Merge.filestorage.SyncStatusListRequest`
@@ -2674,7 +2831,7 @@ await client.ats.fieldMapping.remoteFieldsRetrieve({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `SyncStatusClient.RequestOptions`
@@ -2686,7 +2843,8 @@ await client.ats.fieldMapping.remoteFieldsRetrieve({
-
client.ats.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse +## Filestorage ForceResync +
client.filestorage.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[]
@@ -2698,7 +2856,7 @@ await client.ats.fieldMapping.remoteFieldsRetrieve({
-Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). +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.
@@ -2713,7 +2871,7 @@ Get all organization-wide Target Fields, this will not include any Linked Accoun
```typescript -await client.ats.fieldMapping.targetFieldsRetrieve(); +await client.filestorage.forceResync.syncStatusResyncCreate(); ```
@@ -2729,7 +2887,7 @@ await client.ats.fieldMapping.targetFieldsRetrieve();
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `ForceResyncClient.RequestOptions`
@@ -2741,8 +2899,8 @@ await client.ats.fieldMapping.targetFieldsRetrieve();
-## Ats GenerateKey -
client.ats.generateKey.create({ ...params }) -> Merge.RemoteKey +## Filestorage Users +
client.filestorage.users.list({ ...params }) -> core.Page
@@ -2754,7 +2912,7 @@ await client.ats.fieldMapping.targetFieldsRetrieve();
-Create a remote key. +Returns a list of `User` objects.
@@ -2769,30226 +2927,45 @@ Create a remote key.
```typescript -await client.ats.generateKey.create({ - name: "Remote Deployment Key 1" +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", + 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" }); +for await (const item of pageableResponse) { + console.log(item); +} -``` -
-
- - - -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ats.GenerateRemoteKeyRequest` - -
-
- -
-
- -**requestOptions:** `GenerateKeyClient.RequestOptions` - -
-
-
-
- - - - -
- -## Ats Interviews -
client.ats.interviews.list({ ...params }) -> Merge.PaginatedScheduledInterviewList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `ScheduledInterview` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ats.InterviewsListRequest` - -
-
- -
-
- -**requestOptions:** `InterviewsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ats.interviews.create({ ...params }) -> Merge.ScheduledInterviewResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a `ScheduledInterview` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ats.interviews.create({ - isDebugMode: true, - runAsync: true, - model: {}, - remoteUserId: "remote_user_id" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ats.ScheduledInterviewEndpointRequest` - -
-
- -
-
- -**requestOptions:** `InterviewsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ats.interviews.retrieve(id, { ...params }) -> Merge.ScheduledInterview -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `ScheduledInterview` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ats.interviews.retrieve("id", { - expand: "application", - includeRemoteData: true, - includeShellData: true, - remoteFields: "status", - showEnumOrigins: "status" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.InterviewsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `InterviewsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ats.interviews.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `ScheduledInterview` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ats.interviews.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `InterviewsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ats Issues -
client.ats.issues.list({ ...params }) -> Merge.PaginatedIssueList -
-
- -#### 📝 Description - -
-
- -
-
- -Gets all issues for Organization. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ats.IssuesListRequest` - -
-
- -
-
- -**requestOptions:** `IssuesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ats.issues.retrieve(id) -> Merge.Issue -
-
- -#### 📝 Description - -
-
- -
-
- -Get a specific issue. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ats.issues.retrieve("id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**requestOptions:** `IssuesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ats JobInterviewStages -
client.ats.jobInterviewStages.list({ ...params }) -> Merge.PaginatedJobInterviewStageList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `JobInterviewStage` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ats.JobInterviewStagesListRequest` - -
-
- -
-
- -**requestOptions:** `JobInterviewStagesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ats.jobInterviewStages.retrieve(id, { ...params }) -> Merge.JobInterviewStage -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `JobInterviewStage` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ats.jobInterviewStages.retrieve("id", { - expand: "job", - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.JobInterviewStagesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `JobInterviewStagesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ats JobPostings -
client.ats.jobPostings.list({ ...params }) -> Merge.PaginatedJobPostingList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `JobPosting` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ats.JobPostingsListRequest` - -
-
- -
-
- -**requestOptions:** `JobPostingsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ats.jobPostings.retrieve(id, { ...params }) -> Merge.JobPosting -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `JobPosting` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ats.jobPostings.retrieve("id", { - expand: "job", - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.JobPostingsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `JobPostingsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ats Jobs -
client.ats.jobs.list({ ...params }) -> Merge.PaginatedJobList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Job` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ats.JobsListRequest` - -
-
- -
-
- -**requestOptions:** `JobsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ats.jobs.retrieve(id, { ...params }) -> Merge.Job -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `Job` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ats.jobs.retrieve("id", { - expand: "departments", - includeRemoteData: true, - includeShellData: true, - remoteFields: "status", - showEnumOrigins: "status" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.JobsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `JobsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ats.jobs.screeningQuestionsList(job_id, { ...params }) -> Merge.PaginatedScreeningQuestionList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `ScreeningQuestion` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ats.jobs.screeningQuestionsList("job_id", { - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "job", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**job_id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.JobsScreeningQuestionsListRequest` - -
-
- -
-
- -**requestOptions:** `JobsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ats LinkToken -
client.ats.linkToken.create({ ...params }) -> Merge.LinkToken -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a link token to be used when linking a new end user. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ats.linkToken.create({ - endUserEmailAddress: "example@gmail.com", - endUserOrganizationName: "Test Organization", - endUserOriginId: "12345", - categories: ["hris", "ats"] -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ats.EndUserDetailsRequest` - -
-
- -
-
- -**requestOptions:** `LinkTokenClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ats LinkedAccounts -
client.ats.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList -
-
- -#### 📝 Description - -
-
- -
-
- -List linked accounts for your organization. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ats.LinkedAccountsListRequest` - -
-
- -
-
- -**requestOptions:** `LinkedAccountsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ats Offers -
client.ats.offers.list({ ...params }) -> Merge.PaginatedOfferList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Offer` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ats.OffersListRequest` - -
-
- -
-
- -**requestOptions:** `OffersClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ats.offers.retrieve(id, { ...params }) -> Merge.Offer -
-
- -#### 📝 Description - -
-
- -
-
- -Returns an `Offer` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ats.offers.retrieve("id", { - expand: "application", - includeRemoteData: true, - includeShellData: true, - remoteFields: "status", - showEnumOrigins: "status" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.OffersRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `OffersClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ats Offices -
client.ats.offices.list({ ...params }) -> Merge.PaginatedOfficeList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Office` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ats.OfficesListRequest` - -
-
- -
-
- -**requestOptions:** `OfficesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ats.offices.retrieve(id, { ...params }) -> Merge.Office -
-
- -#### 📝 Description - -
-
- -
-
- -Returns an `Office` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ats.offices.retrieve("id", { - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.OfficesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `OfficesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ats Passthrough -
client.ats.passthrough.create({ ...params }) -> Merge.RemoteResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Pull data from an endpoint not currently supported by Merge. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ats.passthrough.create({ - method: "GET", - path: "/scooters" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.DataPassthroughRequest` - -
-
- -
-
- -**requestOptions:** `PassthroughClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ats RegenerateKey -
client.ats.regenerateKey.create({ ...params }) -> Merge.RemoteKey -
-
- -#### 📝 Description - -
-
- -
-
- -Exchange remote keys. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ats.regenerateKey.create({ - name: "Remote Deployment Key 1" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ats.RemoteKeyForRegenerationRequest` - -
-
- -
-
- -**requestOptions:** `RegenerateKeyClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ats RejectReasons -
client.ats.rejectReasons.list({ ...params }) -> Merge.PaginatedRejectReasonList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RejectReason` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ats.RejectReasonsListRequest` - -
-
- -
-
- -**requestOptions:** `RejectReasonsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ats.rejectReasons.retrieve(id, { ...params }) -> Merge.RejectReason -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `RejectReason` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ats.rejectReasons.retrieve("id", { - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.RejectReasonsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `RejectReasonsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ats Scorecards -
client.ats.scorecards.list({ ...params }) -> Merge.PaginatedScorecardList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Scorecard` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ats.ScorecardsListRequest` - -
-
- -
-
- -**requestOptions:** `ScorecardsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ats.scorecards.retrieve(id, { ...params }) -> Merge.Scorecard -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `Scorecard` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ats.scorecards.retrieve("id", { - expand: "application", - includeRemoteData: true, - includeShellData: true, - remoteFields: "overall_recommendation", - showEnumOrigins: "overall_recommendation" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.ScorecardsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `ScorecardsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ats SyncStatus -
client.ats.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.ats.syncStatus.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ats.SyncStatusListRequest` - -
-
- -
-
- -**requestOptions:** `SyncStatusClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ats ForceResync -
client.ats.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[] -
-
- -#### 📝 Description - -
-
- -
-
- -Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ats.forceResync.syncStatusResyncCreate(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `ForceResyncClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ats Tags -
client.ats.tags.list({ ...params }) -> Merge.PaginatedTagList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Tag` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ats.TagsListRequest` - -
-
- -
-
- -**requestOptions:** `TagsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ats Users -
client.ats.users.list({ ...params }) -> Merge.PaginatedRemoteUserList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RemoteUser` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ats.UsersListRequest` - -
-
- -
-
- -**requestOptions:** `UsersClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ats.users.retrieve(id, { ...params }) -> Merge.RemoteUser -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `RemoteUser` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ats.users.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - remoteFields: "access_role", - showEnumOrigins: "access_role" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.UsersRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `UsersClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ats WebhookReceivers -
client.ats.webhookReceivers.list() -> Merge.WebhookReceiver[] -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `WebhookReceiver` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ats.webhookReceivers.list(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `WebhookReceiversClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ats.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a `WebhookReceiver` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ats.webhookReceivers.create({ - event: "event", - isActive: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ats.WebhookReceiverRequest` - -
-
- -
-
- -**requestOptions:** `WebhookReceiversClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm AccountDetails -
client.crm.accountDetails.retrieve() -> Merge.AccountDetails -
-
- -#### 📝 Description - -
-
- -
-
- -Get details for a linked account. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.accountDetails.retrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `AccountDetailsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm AccountToken -
client.crm.accountToken.retrieve(public_token) -> Merge.AccountToken -
-
- -#### 📝 Description - -
-
- -
-
- -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` - -
-
- -
-
- -**requestOptions:** `AccountTokenClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm Accounts -
client.crm.accounts.list({ ...params }) -> Merge.PaginatedAccountList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Account` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.AccountsListRequest` - -
-
- -
-
- -**requestOptions:** `AccountsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.accounts.create({ ...params }) -> Merge.CrmAccountResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates an `Account` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.accounts.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.CrmAccountEndpointRequest` - -
-
- -
-
- -**requestOptions:** `AccountsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.accounts.retrieve(id, { ...params }) -> Merge.Account -
-
- -#### 📝 Description - -
-
- -
-
- -Returns an `Account` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.accounts.retrieve("id", { - expand: "owner", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.AccountsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `AccountsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.accounts.partialUpdate(id, { ...params }) -> Merge.CrmAccountResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Updates an `Account` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.accounts.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.PatchedCrmAccountEndpointRequest` - -
-
- -
-
- -**requestOptions:** `AccountsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.accounts.metaPatchRetrieve(id) -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `CRMAccount` PATCHs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.accounts.metaPatchRetrieve("id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**requestOptions:** `AccountsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.accounts.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `CRMAccount` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.accounts.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `AccountsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.accounts.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.accounts.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.AccountsRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `AccountsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm AsyncPassthrough -
client.crm.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept -
-
- -#### 📝 Description - -
-
- -
-
- -Asynchronously pull data from an endpoint not currently supported by Merge. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.asyncPassthrough.create({ - method: "GET", - path: "/scooters" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.DataPassthroughRequest` - -
-
- -
-
- -**requestOptions:** `AsyncPassthroughClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.asyncPassthrough.retrieve(async_passthrough_receipt_id) -> Merge.AsyncPassthroughRetrieveResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieves data from earlier async-passthrough POST request -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.asyncPassthrough.retrieve("async_passthrough_receipt_id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**async_passthrough_receipt_id:** `string` - -
-
- -
-
- -**requestOptions:** `AsyncPassthroughClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm AuditTrail -
client.crm.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList -
-
- -#### 📝 Description - -
-
- -
-
- -Gets a list of audit trail events. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.auditTrail.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - eventType: "event_type", - pageSize: 1, - startDate: "start_date", - userEmail: "user_email" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.AuditTrailListRequest` - -
-
- -
-
- -**requestOptions:** `AuditTrailClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm AvailableActions -
client.crm.availableActions.retrieve() -> Merge.AvailableActions -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of models and actions available for an account. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.availableActions.retrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `AvailableActionsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm Contacts -
client.crm.contacts.list({ ...params }) -> Merge.PaginatedContactList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Contact` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.ContactsListRequest` - -
-
- -
-
- -**requestOptions:** `ContactsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.contacts.create({ ...params }) -> Merge.CrmContactResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a `Contact` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.contacts.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.CrmContactEndpointRequest` - -
-
- -
-
- -**requestOptions:** `ContactsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.contacts.retrieve(id, { ...params }) -> Merge.Contact -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `Contact` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.contacts.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.ContactsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `ContactsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.contacts.partialUpdate(id, { ...params }) -> Merge.CrmContactResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Updates a `Contact` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.contacts.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.PatchedCrmContactEndpointRequest` - -
-
- -
-
- -**requestOptions:** `ContactsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.contacts.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.contacts.ignoreCreate("model_id", { - reason: "GENERAL_CUSTOMER_REQUEST" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**model_id:** `string` - -
-
- -
-
- -**request:** `Merge.IgnoreCommonModelRequest` - -
-
- -
-
- -**requestOptions:** `ContactsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.contacts.metaPatchRetrieve(id) -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `CRMContact` PATCHs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.contacts.metaPatchRetrieve("id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**requestOptions:** `ContactsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.contacts.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `CRMContact` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.contacts.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `ContactsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.contacts.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.contacts.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.ContactsRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `ContactsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm CustomObjectClasses -
client.crm.customObjectClasses.list({ ...params }) -> Merge.PaginatedCustomObjectClassList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `CustomObjectClass` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.customObjectClasses.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "fields", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.CustomObjectClassesListRequest` - -
-
- -
-
- -**requestOptions:** `CustomObjectClassesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.customObjectClasses.retrieve(id, { ...params }) -> Merge.CustomObjectClass -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `CustomObjectClass` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.customObjectClasses.retrieve("id", { - expand: "fields", - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CustomObjectClassesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `CustomObjectClassesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm AssociationTypes -
client.crm.associationTypes.customObjectClassesAssociationTypesList(custom_object_class_id, { ...params }) -> Merge.PaginatedAssociationTypeList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `AssociationType` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.associationTypes.customObjectClassesAssociationTypesList("custom_object_class_id", { - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "target_object_classes", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**custom_object_class_id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CustomObjectClassesAssociationTypesListRequest` - -
-
- -
-
- -**requestOptions:** `AssociationTypesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.associationTypes.customObjectClassesAssociationTypesCreate(custom_object_class_id, { ...params }) -> Merge.CrmAssociationTypeResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates an `AssociationType` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.associationTypes.customObjectClassesAssociationTypesCreate("custom_object_class_id", { - isDebugMode: true, - runAsync: true, - model: { - sourceObjectClass: { - id: "id", - originType: "CUSTOM_OBJECT" - }, - targetObjectClasses: [{ - id: "id", - originType: "CUSTOM_OBJECT" - }], - remoteKeyName: "remote_key_name" - } -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**custom_object_class_id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CrmAssociationTypeEndpointRequest` - -
-
- -
-
- -**requestOptions:** `AssociationTypesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve(custom_object_class_id, id, { ...params }) -> Merge.AssociationType -
-
- -#### 📝 Description - -
-
- -
-
- -Returns an `AssociationType` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("custom_object_class_id", "id", { - expand: "target_object_classes", - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**custom_object_class_id:** `string` - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CustomObjectClassesAssociationTypesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `AssociationTypesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRetrieve(custom_object_class_id) -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `CRMAssociationType` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRetrieve("custom_object_class_id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**custom_object_class_id:** `string` - -
-
- -
-
- -**requestOptions:** `AssociationTypesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm CustomObjects -
client.crm.customObjects.customObjectClassesCustomObjectsList(custom_object_class_id, { ...params }) -> Merge.PaginatedCustomObjectList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `CustomObject` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_object_class_id", { - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**custom_object_class_id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CustomObjectClassesCustomObjectsListRequest` - -
-
- -
-
- -**requestOptions:** `CustomObjectsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.customObjects.customObjectClassesCustomObjectsCreate(custom_object_class_id, { ...params }) -> Merge.CrmCustomObjectResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a `CustomObject` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_object_class_id", { - isDebugMode: true, - runAsync: true, - model: { - fields: { - "test_field": "hello" - } - } -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**custom_object_class_id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CrmCustomObjectEndpointRequest` - -
-
- -
-
- -**requestOptions:** `CustomObjectsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.customObjects.customObjectClassesCustomObjectsRetrieve(custom_object_class_id, id, { ...params }) -> Merge.CustomObject -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `CustomObject` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve("custom_object_class_id", "id", { - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**custom_object_class_id:** `string` - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CustomObjectClassesCustomObjectsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `CustomObjectsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve(custom_object_class_id) -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `CRMCustomObject` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve("custom_object_class_id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**custom_object_class_id:** `string` - -
-
- -
-
- -**requestOptions:** `CustomObjectsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `CustomObjectsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm Associations -
client.crm.associations.customObjectClassesCustomObjectsAssociationsList(custom_object_class_id, object_id, { ...params }) -> Merge.PaginatedAssociationList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Association` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**custom_object_class_id:** `string` - -
-
- -
-
- -**object_id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CustomObjectClassesCustomObjectsAssociationsListRequest` - -
-
- -
-
- -**requestOptions:** `AssociationsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate(source_class_id, source_object_id, target_class_id, target_object_id, association_type_id, { ...params }) -> Merge.Association -
-
- -#### 📝 Description - -
-
- -
-
- -Creates an Association between `source_object_id` and `target_object_id` of type `association_type_id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**source_class_id:** `string` - -
-
- -
-
- -**source_object_id:** `string` - -
-
- -
-
- -**target_class_id:** `string` - -
-
- -
-
- -**target_object_id:** `string` - -
-
- -
-
- -**association_type_id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CustomObjectClassesCustomObjectsAssociationsUpdateRequest` - -
-
- -
-
- -**requestOptions:** `AssociationsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm Scopes -
client.crm.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.crm.scopes.defaultScopesRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `ScopesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.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.crm.scopes.linkedAccountScopesRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `ScopesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.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.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 - } - } - }] -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.LinkedAccountCommonModelScopeDeserializerRequest` - -
-
- -
-
- -**requestOptions:** `ScopesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm DeleteAccount -
client.crm.deleteAccount.delete() -> void -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a linked account. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.deleteAccount.delete(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `DeleteAccountClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm EngagementTypes -
client.crm.engagementTypes.list({ ...params }) -> Merge.PaginatedEngagementTypeList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `EngagementType` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.EngagementTypesListRequest` - -
-
- -
-
- -**requestOptions:** `EngagementTypesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.engagementTypes.retrieve(id, { ...params }) -> Merge.EngagementType -
-
- -#### 📝 Description - -
-
- -
-
- -Returns an `EngagementType` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.engagementTypes.retrieve("id", { - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.EngagementTypesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `EngagementTypesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.engagementTypes.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.engagementTypes.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.EngagementTypesRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `EngagementTypesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm Engagements -
client.crm.engagements.list({ ...params }) -> Merge.PaginatedEngagementList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Engagement` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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") -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.EngagementsListRequest` - -
-
- -
-
- -**requestOptions:** `EngagementsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.engagements.create({ ...params }) -> Merge.EngagementResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates an `Engagement` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.engagements.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.EngagementEndpointRequest` - -
-
- -
-
- -**requestOptions:** `EngagementsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.engagements.retrieve(id, { ...params }) -> Merge.Engagement -
-
- -#### 📝 Description - -
-
- -
-
- -Returns an `Engagement` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.engagements.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.EngagementsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `EngagementsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.engagements.partialUpdate(id, { ...params }) -> Merge.EngagementResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Updates an `Engagement` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.engagements.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.PatchedEngagementEndpointRequest` - -
-
- -
-
- -**requestOptions:** `EngagementsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.engagements.metaPatchRetrieve(id) -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `Engagement` PATCHs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.engagements.metaPatchRetrieve("id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**requestOptions:** `EngagementsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.engagements.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `Engagement` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.engagements.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `EngagementsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.engagements.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.engagements.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.EngagementsRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `EngagementsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm FieldMapping -
client.crm.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.fieldMapping.fieldMappingsRetrieve({ - excludeRemoteFieldMetadata: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.FieldMappingsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse -
-
- -#### 📝 Description - -
-
- -
-
- -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. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.CreateFieldMappingRequest` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.fieldMapping.fieldMappingsDestroy(field_mapping_id) -> Merge.FieldMappingInstanceResponse -
-
- -#### 📝 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` - -
-
-
-
- - -
-
-
- -
client.crm.fieldMapping.fieldMappingsPartialUpdate(field_mapping_id, { ...params }) -> Merge.FieldMappingInstanceResponse -
-
- -#### 📝 Description - -
-
- -
-
- -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. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**field_mapping_id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.PatchedEditFieldMappingRequest` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse -
-
- -#### 📝 Description - -
-
- -
-
- -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/). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.fieldMapping.remoteFieldsRetrieve({ - commonModels: "common_models", - includeExampleValues: "include_example_values" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.RemoteFieldsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse -
-
- -#### 📝 Description - -
-
- -
-
- -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/). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.fieldMapping.targetFieldsRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm GenerateKey -
client.crm.generateKey.create({ ...params }) -> Merge.RemoteKey -
-
- -#### 📝 Description - -
-
- -
-
- -Create a remote key. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.generateKey.create({ - name: "Remote Deployment Key 1" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.GenerateRemoteKeyRequest` - -
-
- -
-
- -**requestOptions:** `GenerateKeyClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm Issues -
client.crm.issues.list({ ...params }) -> Merge.PaginatedIssueList -
-
- -#### 📝 Description - -
-
- -
-
- -Gets all issues for Organization. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.issues.list({ - accountToken: "account_token", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - endUserOrganizationName: "end_user_organization_name", - firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - includeMuted: "include_muted", - integrationName: "integration_name", - lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - linkedAccountId: "linked_account_id", - pageSize: 1, - startDate: "start_date", - status: "ONGOING" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.IssuesListRequest` - -
-
- -
-
- -**requestOptions:** `IssuesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.issues.retrieve(id) -> Merge.Issue -
-
- -#### 📝 Description - -
-
- -
-
- -Get a specific issue. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.issues.retrieve("id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**requestOptions:** `IssuesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm Leads -
client.crm.leads.list({ ...params }) -> Merge.PaginatedLeadList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Lead` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.LeadsListRequest` - -
-
- -
-
- -**requestOptions:** `LeadsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.leads.create({ ...params }) -> Merge.LeadResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a `Lead` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.leads.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.LeadEndpointRequest` - -
-
- -
-
- -**requestOptions:** `LeadsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.leads.retrieve(id, { ...params }) -> Merge.Lead -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `Lead` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.leads.retrieve("id", { - expand: "converted_account", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.LeadsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `LeadsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.leads.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `Lead` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.leads.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `LeadsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.leads.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.leads.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.LeadsRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `LeadsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm LinkToken -
client.crm.linkToken.create({ ...params }) -> Merge.LinkToken -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a link token to be used when linking a new end user. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.linkToken.create({ - endUserEmailAddress: "example@gmail.com", - endUserOrganizationName: "Test Organization", - endUserOriginId: "12345", - categories: ["hris", "ats"] -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.EndUserDetailsRequest` - -
-
- -
-
- -**requestOptions:** `LinkTokenClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm LinkedAccounts -
client.crm.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList -
-
- -#### 📝 Description - -
-
- -
-
- -List linked accounts for your organization. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.linkedAccounts.list({ - category: "accounting", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endUserEmailAddress: "end_user_email_address", - endUserOrganizationName: "end_user_organization_name", - endUserOriginId: "end_user_origin_id", - endUserOriginIds: "end_user_origin_ids", - id: "id", - ids: "ids", - includeDuplicates: true, - integrationName: "integration_name", - isTestAccount: "is_test_account", - pageSize: 1, - status: "status" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.LinkedAccountsListRequest` - -
-
- -
-
- -**requestOptions:** `LinkedAccountsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm Notes -
client.crm.notes.list({ ...params }) -> Merge.PaginatedNoteList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Note` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.NotesListRequest` - -
-
- -
-
- -**requestOptions:** `NotesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.notes.create({ ...params }) -> Merge.NoteResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a `Note` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.notes.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.NoteEndpointRequest` - -
-
- -
-
- -**requestOptions:** `NotesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.notes.retrieve(id, { ...params }) -> Merge.Note -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `Note` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.notes.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.NotesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `NotesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.notes.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `Note` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.notes.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `NotesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.notes.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.notes.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.NotesRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `NotesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm Opportunities -
client.crm.opportunities.list({ ...params }) -> Merge.PaginatedOpportunityList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Opportunity` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.OpportunitiesListRequest` - -
-
- -
-
- -**requestOptions:** `OpportunitiesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.opportunities.create({ ...params }) -> Merge.OpportunityResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates an `Opportunity` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.opportunities.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.OpportunityEndpointRequest` - -
-
- -
-
- -**requestOptions:** `OpportunitiesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.opportunities.retrieve(id, { ...params }) -> Merge.Opportunity -
-
- -#### 📝 Description - -
-
- -
-
- -Returns an `Opportunity` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.opportunities.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - remoteFields: "status", - showEnumOrigins: "status" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.OpportunitiesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `OpportunitiesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.opportunities.partialUpdate(id, { ...params }) -> Merge.OpportunityResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Updates an `Opportunity` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.opportunities.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.PatchedOpportunityEndpointRequest` - -
-
- -
-
- -**requestOptions:** `OpportunitiesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.opportunities.metaPatchRetrieve(id) -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `Opportunity` PATCHs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.opportunities.metaPatchRetrieve("id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**requestOptions:** `OpportunitiesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.opportunities.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `Opportunity` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.opportunities.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `OpportunitiesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.opportunities.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.opportunities.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.OpportunitiesRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `OpportunitiesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm Passthrough -
client.crm.passthrough.create({ ...params }) -> Merge.RemoteResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Pull data from an endpoint not currently supported by Merge. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.passthrough.create({ - method: "GET", - path: "/scooters" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.DataPassthroughRequest` - -
-
- -
-
- -**requestOptions:** `PassthroughClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm RegenerateKey -
client.crm.regenerateKey.create({ ...params }) -> Merge.RemoteKey -
-
- -#### 📝 Description - -
-
- -
-
- -Exchange remote keys. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.regenerateKey.create({ - name: "Remote Deployment Key 1" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.RemoteKeyForRegenerationRequest` - -
-
- -
-
- -**requestOptions:** `RegenerateKeyClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm Stages -
client.crm.stages.list({ ...params }) -> Merge.PaginatedStageList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Stage` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.StagesListRequest` - -
-
- -
-
- -**requestOptions:** `StagesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.stages.retrieve(id, { ...params }) -> Merge.Stage -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `Stage` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.stages.retrieve("id", { - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.StagesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `StagesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.stages.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.stages.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.StagesRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `StagesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm SyncStatus -
client.crm.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.crm.syncStatus.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.SyncStatusListRequest` - -
-
- -
-
- -**requestOptions:** `SyncStatusClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm ForceResync -
client.crm.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[] -
-
- -#### 📝 Description - -
-
- -
-
- -Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.forceResync.syncStatusResyncCreate(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `ForceResyncClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm Tasks -
client.crm.tasks.list({ ...params }) -> Merge.PaginatedTaskList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Task` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.TasksListRequest` - -
-
- -
-
- -**requestOptions:** `TasksClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.tasks.create({ ...params }) -> Merge.TaskResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a `Task` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.tasks.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.TaskEndpointRequest` - -
-
- -
-
- -**requestOptions:** `TasksClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.tasks.retrieve(id, { ...params }) -> Merge.Task -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `Task` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.tasks.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.TasksRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `TasksClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.tasks.partialUpdate(id, { ...params }) -> Merge.TaskResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Updates a `Task` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.tasks.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.PatchedTaskEndpointRequest` - -
-
- -
-
- -**requestOptions:** `TasksClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.tasks.metaPatchRetrieve(id) -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `Task` PATCHs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.tasks.metaPatchRetrieve("id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**requestOptions:** `TasksClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.tasks.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `Task` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.tasks.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `TasksClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.crm.tasks.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.tasks.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.TasksRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `TasksClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Crm Users -
client.crm.users.list({ ...params }) -> Merge.PaginatedUserList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `User` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ 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 }) -> Merge.PaginatedRemoteFieldClassList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.users.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ 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` - -
-
-
-
- - -
-
-
- -## Filestorage AccountDetails -
client.filestorage.accountDetails.retrieve() -> Merge.AccountDetails -
-
- -#### 📝 Description - -
-
- -
-
- -Get details for a linked account. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.accountDetails.retrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `AccountDetailsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Filestorage AccountToken -
client.filestorage.accountToken.retrieve(public_token) -> Merge.AccountToken -
-
- -#### 📝 Description - -
-
- -
-
- -Returns the account token for the end user with the provided public token. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.accountToken.retrieve("public_token"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**public_token:** `string` - -
-
- -
-
- -**requestOptions:** `AccountTokenClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Filestorage AsyncPassthrough -
client.filestorage.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept -
-
- -#### 📝 Description - -
-
- -
-
- -Asynchronously pull data from an endpoint not currently supported by Merge. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.asyncPassthrough.create({ - method: "GET", - path: "/scooters" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.DataPassthroughRequest` - -
-
- -
-
- -**requestOptions:** `AsyncPassthroughClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.filestorage.asyncPassthrough.retrieve(async_passthrough_receipt_id) -> Merge.AsyncPassthroughRetrieveResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieves data from earlier async-passthrough POST request -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.asyncPassthrough.retrieve("async_passthrough_receipt_id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**async_passthrough_receipt_id:** `string` - -
-
- -
-
- -**requestOptions:** `AsyncPassthroughClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Filestorage AuditTrail -
client.filestorage.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList -
-
- -#### 📝 Description - -
-
- -
-
- -Gets a list of audit trail events. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.auditTrail.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - eventType: "event_type", - pageSize: 1, - startDate: "start_date", - userEmail: "user_email" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.filestorage.AuditTrailListRequest` - -
-
- -
-
- -**requestOptions:** `AuditTrailClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Filestorage AvailableActions -
client.filestorage.availableActions.retrieve() -> Merge.AvailableActions -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of models and actions available for an account. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.availableActions.retrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `AvailableActionsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Filestorage Scopes -
client.filestorage.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.filestorage.scopes.defaultScopesRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `ScopesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.filestorage.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.filestorage.scopes.linkedAccountScopesRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `ScopesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.filestorage.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.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 - } - } - }] -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.filestorage.LinkedAccountCommonModelScopeDeserializerRequest` - -
-
- -
-
- -**requestOptions:** `ScopesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Filestorage DeleteAccount -
client.filestorage.deleteAccount.delete() -> void -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a linked account. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.deleteAccount.delete(); - -``` -
-
-
-
- -#### ⚙️ 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"), - 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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.filestorage.DrivesListRequest` - -
-
- -
-
- -**requestOptions:** `DrivesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.filestorage.drives.retrieve(id, { ...params }) -> Merge.Drive -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `Drive` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.drives.retrieve("id", { - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.filestorage.DrivesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `DrivesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Filestorage FieldMapping -
client.filestorage.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.fieldMapping.fieldMappingsRetrieve({ - excludeRemoteFieldMetadata: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.filestorage.FieldMappingsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.filestorage.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse -
-
- -#### 📝 Description - -
-
- -
-
- -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. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.filestorage.CreateFieldMappingRequest` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.filestorage.fieldMapping.fieldMappingsDestroy(field_mapping_id) -> Merge.FieldMappingInstanceResponse -
-
- -#### 📝 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.filestorage.fieldMapping.fieldMappingsDestroy("field_mapping_id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**field_mapping_id:** `string` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.filestorage.fieldMapping.fieldMappingsPartialUpdate(field_mapping_id, { ...params }) -> Merge.FieldMappingInstanceResponse -
-
- -#### 📝 Description - -
-
- -
-
- -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. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**field_mapping_id:** `string` - -
-
- -
-
- -**request:** `Merge.filestorage.PatchedEditFieldMappingRequest` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.filestorage.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse -
-
- -#### 📝 Description - -
-
- -
-
- -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/). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.fieldMapping.remoteFieldsRetrieve({ - commonModels: "common_models", - includeExampleValues: "include_example_values" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.filestorage.RemoteFieldsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.filestorage.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse -
-
- -#### 📝 Description - -
-
- -
-
- -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/). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.fieldMapping.targetFieldsRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Filestorage Files -
client.filestorage.files.list({ ...params }) -> Merge.PaginatedFileList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `File` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.filestorage.FilesListRequest` - -
-
- -
-
- -**requestOptions:** `FilesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.filestorage.files.create({ ...params }) -> Merge.FileStorageFileResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a `File` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.files.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.filestorage.FileStorageFileEndpointRequest` - -
-
- -
-
- -**requestOptions:** `FilesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.filestorage.files.retrieve(id, { ...params }) -> Merge.File_ -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `File` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.files.retrieve("id", { - expand: "drive", - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.filestorage.FilesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `FilesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.filestorage.files.downloadRequestMetaRetrieve(id, { ...params }) -> Merge.DownloadRequestMeta -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata to construct an authenticated file download request for a singular file, allowing you to download file directly from the third-party. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.files.downloadRequestMetaRetrieve("id", { - mimeType: "mime_type" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.filestorage.FilesDownloadRequestMetaRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `FilesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.filestorage.files.downloadRequestMetaList({ ...params }) -> Merge.PaginatedDownloadRequestMetaList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata to construct authenticated file download requests, allowing you to download files directly from the third-party. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.files.downloadRequestMetaList({ - createdAfter: "created_after", - createdBefore: "created_before", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - mimeTypes: "mime_types", - modifiedAfter: "modified_after", - modifiedBefore: "modified_before", - orderBy: "-created_at", - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.filestorage.FilesDownloadRequestMetaListRequest` - -
-
- -
-
- -**requestOptions:** `FilesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.filestorage.files.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `FileStorageFile` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.files.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `FilesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Filestorage Folders -
client.filestorage.folders.list({ ...params }) -> Merge.PaginatedFolderList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Folder` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.filestorage.FoldersListRequest` - -
-
- -
-
- -**requestOptions:** `FoldersClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.filestorage.folders.create({ ...params }) -> Merge.FileStorageFolderResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a `Folder` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.folders.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.filestorage.FileStorageFolderEndpointRequest` - -
-
- -
-
- -**requestOptions:** `FoldersClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.filestorage.folders.retrieve(id, { ...params }) -> Merge.Folder -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `Folder` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.folders.retrieve("id", { - expand: "drive", - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.filestorage.FoldersRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `FoldersClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.filestorage.folders.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `FileStorageFolder` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.folders.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `FoldersClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## 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` - -
-
- -
-
- -**requestOptions:** `GenerateKeyClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Filestorage Groups -
client.filestorage.groups.list({ ...params }) -> Merge.PaginatedGroupList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Group` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.filestorage.GroupsListRequest` - -
-
- -
-
- -**requestOptions:** `GroupsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.filestorage.groups.retrieve(id, { ...params }) -> Merge.Group -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `Group` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.groups.retrieve("id", { - expand: "child_groups", - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.filestorage.GroupsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `GroupsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Filestorage Issues -
client.filestorage.issues.list({ ...params }) -> Merge.PaginatedIssueList -
-
- -#### 📝 Description - -
-
- -
-
- -Gets all issues for Organization. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.filestorage.IssuesListRequest` - -
-
- -
-
- -**requestOptions:** `IssuesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.filestorage.issues.retrieve(id) -> Merge.Issue -
-
- -#### 📝 Description - -
-
- -
-
- -Get a specific issue. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.issues.retrieve("id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**requestOptions:** `IssuesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Filestorage LinkToken -
client.filestorage.linkToken.create({ ...params }) -> Merge.LinkToken -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a link token to be used when linking a new end user. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.linkToken.create({ - endUserEmailAddress: "example@gmail.com", - endUserOrganizationName: "Test Organization", - endUserOriginId: "12345", - categories: ["hris", "ats"] -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.filestorage.EndUserDetailsRequest` - -
-
- -
-
- -**requestOptions:** `LinkTokenClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Filestorage LinkedAccounts -
client.filestorage.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList -
-
- -#### 📝 Description - -
-
- -
-
- -List linked accounts for your organization. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.filestorage.LinkedAccountsListRequest` - -
-
- -
-
- -**requestOptions:** `LinkedAccountsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Filestorage Passthrough -
client.filestorage.passthrough.create({ ...params }) -> Merge.RemoteResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Pull data from an endpoint not currently supported by Merge. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.passthrough.create({ - method: "GET", - path: "/scooters" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.DataPassthroughRequest` - -
-
- -
-
- -**requestOptions:** `PassthroughClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Filestorage RegenerateKey -
client.filestorage.regenerateKey.create({ ...params }) -> Merge.RemoteKey -
-
- -#### 📝 Description - -
-
- -
-
- -Exchange remote keys. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.regenerateKey.create({ - name: "Remote Deployment Key 1" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.filestorage.RemoteKeyForRegenerationRequest` - -
-
- -
-
- -**requestOptions:** `RegenerateKeyClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Filestorage SyncStatus -
client.filestorage.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.filestorage.syncStatus.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.filestorage.SyncStatusListRequest` - -
-
- -
-
- -**requestOptions:** `SyncStatusClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Filestorage ForceResync -
client.filestorage.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[] -
-
- -#### 📝 Description - -
-
- -
-
- -Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.forceResync.syncStatusResyncCreate(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `ForceResyncClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Filestorage Users -
client.filestorage.users.list({ ...params }) -> Merge.PaginatedUserList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `User` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.filestorage.UsersListRequest` - -
-
- -
-
- -**requestOptions:** `UsersClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.filestorage.users.retrieve(id, { ...params }) -> Merge.User -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `User` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.users.retrieve("id", { - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.filestorage.UsersRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `UsersClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Filestorage WebhookReceivers -
client.filestorage.webhookReceivers.list() -> Merge.WebhookReceiver[] -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `WebhookReceiver` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.webhookReceivers.list(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `WebhookReceiversClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.filestorage.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a `WebhookReceiver` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.filestorage.webhookReceivers.create({ - event: "event", - isActive: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.filestorage.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` - -
-
-
-
- - -
-
-
- -## 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 }) -> Merge.PaginatedAuditLogEventList -
-
- -#### 📝 Description - -
-
- -
-
- -Gets a list of audit trail events. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.auditTrail.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - eventType: "event_type", - pageSize: 1, - startDate: "start_date", - userEmail: "user_email" -}); - -``` -
-
-
-
- -#### ⚙️ 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 }) -> Merge.PaginatedBankInfoList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `BankInfo` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.bankInfo.list({ - accountType: "CHECKING", - bankName: "bank_name", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - 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" -}); - -``` -
-
-
-
- -#### ⚙️ 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", { - expand: "employee", - 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 }) -> Merge.PaginatedBenefitList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Benefit` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ 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", { - expand: "employee", - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.BenefitsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `BenefitsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Hris Companies -
client.hris.companies.list({ ...params }) -> Merge.PaginatedCompanyList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Company` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ 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 }) -> 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` - -
-
- -
-
- -**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 }) -> Merge.PaginatedEmployeePayrollRunList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `EmployeePayrollRun` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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") -}); - -``` -
-
-
-
- -#### ⚙️ 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", { - expand: "employee", - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.EmployeePayrollRunsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `EmployeePayrollRunsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Hris Employees -
client.hris.employees.list({ ...params }) -> Merge.PaginatedEmployeeList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Employee` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.hris.EmployeesListRequest` - -
-
- -
-
- -**requestOptions:** `EmployeesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.hris.employees.create({ ...params }) -> Merge.EmployeeResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates an `Employee` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.employees.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.hris.EmployeeEndpointRequest` - -
-
- -
-
- -**requestOptions:** `EmployeesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.hris.employees.retrieve(id, { ...params }) -> Merge.Employee -
-
- -#### 📝 Description - -
-
- -
-
- -Returns an `Employee` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.employees.retrieve("id", { - expand: "company", - 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.hris.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 }) -> Merge.PaginatedEmployerBenefitList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `EmployerBenefit` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.hris.EmployerBenefitsListRequest` - -
-
- -
-
- -**requestOptions:** `EmployerBenefitsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.hris.employerBenefits.retrieve(id, { ...params }) -> Merge.EmployerBenefit -
-
- -#### 📝 Description - -
-
- -
-
- -Returns an `EmployerBenefit` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.employerBenefits.retrieve("id", { - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.EmployerBenefitsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `EmployerBenefitsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Hris Employments -
client.hris.employments.list({ ...params }) -> Merge.PaginatedEmploymentList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Employment` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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, - 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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.hris.EmploymentsListRequest` - -
-
- -
-
- -**requestOptions:** `EmploymentsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.hris.employments.retrieve(id, { ...params }) -> Merge.Employment -
-
- -#### 📝 Description - -
-
- -
-
- -Returns an `Employment` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.employments.retrieve("id", { - expand: "employee", - includeRemoteData: true, - includeShellData: true, - remoteFields: "employment_type", - showEnumOrigins: "employment_type" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.EmploymentsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `EmploymentsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Hris FieldMapping -
client.hris.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.fieldMapping.fieldMappingsRetrieve({ - excludeRemoteFieldMetadata: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.hris.FieldMappingsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.hris.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse -
-
- -#### 📝 Description - -
-
- -
-
- -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. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.hris.CreateFieldMappingRequest` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.hris.fieldMapping.fieldMappingsDestroy(field_mapping_id) -> Merge.FieldMappingInstanceResponse -
-
- -#### 📝 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.hris.fieldMapping.fieldMappingsDestroy("field_mapping_id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**field_mapping_id:** `string` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.hris.fieldMapping.fieldMappingsPartialUpdate(field_mapping_id, { ...params }) -> Merge.FieldMappingInstanceResponse -
-
- -#### 📝 Description - -
-
- -
-
- -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. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**field_mapping_id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.PatchedEditFieldMappingRequest` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.hris.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse -
-
- -#### 📝 Description - -
-
- -
-
- -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/). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.fieldMapping.remoteFieldsRetrieve({ - commonModels: "common_models", - includeExampleValues: "include_example_values" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.hris.RemoteFieldsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.hris.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse -
-
- -#### 📝 Description - -
-
- -
-
- -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/). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.fieldMapping.targetFieldsRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Hris GenerateKey -
client.hris.generateKey.create({ ...params }) -> Merge.RemoteKey -
-
- -#### 📝 Description - -
-
- -
-
- -Create a remote key. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.generateKey.create({ - name: "Remote Deployment Key 1" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.hris.GenerateRemoteKeyRequest` - -
-
- -
-
- -**requestOptions:** `GenerateKeyClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Hris Groups -
client.hris.groups.list({ ...params }) -> Merge.PaginatedGroupList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Group` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.hris.GroupsListRequest` - -
-
- -
-
- -**requestOptions:** `GroupsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.hris.groups.retrieve(id, { ...params }) -> Merge.Group -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `Group` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.groups.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - remoteFields: "type", - showEnumOrigins: "type" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.GroupsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `GroupsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Hris Issues -
client.hris.issues.list({ ...params }) -> Merge.PaginatedIssueList -
-
- -#### 📝 Description - -
-
- -
-
- -Gets all issues for Organization. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.hris.IssuesListRequest` - -
-
- -
-
- -**requestOptions:** `IssuesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.hris.issues.retrieve(id) -> Merge.Issue -
-
- -#### 📝 Description - -
-
- -
-
- -Get a specific issue. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.issues.retrieve("id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**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` - -
-
- -
-
- -**requestOptions:** `LinkTokenClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Hris LinkedAccounts -
client.hris.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList -
-
- -#### 📝 Description - -
-
- -
-
- -List linked accounts for your organization. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.hris.LinkedAccountsListRequest` - -
-
- -
-
- -**requestOptions:** `LinkedAccountsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Hris Locations -
client.hris.locations.list({ ...params }) -> Merge.PaginatedLocationList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Location` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.hris.LocationsListRequest` - -
-
- -
-
- -**requestOptions:** `LocationsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.hris.locations.retrieve(id, { ...params }) -> Merge.Location -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `Location` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.locations.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - remoteFields: "country", - showEnumOrigins: "country" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.LocationsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `LocationsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Hris Passthrough -
client.hris.passthrough.create({ ...params }) -> Merge.RemoteResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Pull data from an endpoint not currently supported by Merge. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.passthrough.create({ - method: "GET", - path: "/scooters" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.DataPassthroughRequest` - -
-
- -
-
- -**requestOptions:** `PassthroughClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Hris PayGroups -
client.hris.payGroups.list({ ...params }) -> Merge.PaginatedPayGroupList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `PayGroup` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.payGroups.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.hris.PayGroupsListRequest` - -
-
- -
-
- -**requestOptions:** `PayGroupsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.hris.payGroups.retrieve(id, { ...params }) -> Merge.PayGroup -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `PayGroup` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.payGroups.retrieve("id", { - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.PayGroupsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `PayGroupsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Hris PayrollRuns -
client.hris.payrollRuns.list({ ...params }) -> Merge.PaginatedPayrollRunList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `PayrollRun` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.payrollRuns.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endedAfter: new Date("2024-01-15T09:30:00.000Z"), - endedBefore: new Date("2024-01-15T09:30:00.000Z"), - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteFields: "run_state", - remoteId: "remote_id", - runType: "CORRECTION", - showEnumOrigins: "run_state", - startedAfter: new Date("2024-01-15T09:30:00.000Z"), - startedBefore: new Date("2024-01-15T09:30:00.000Z") -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.hris.PayrollRunsListRequest` - -
-
- -
-
- -**requestOptions:** `PayrollRunsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.hris.payrollRuns.retrieve(id, { ...params }) -> Merge.PayrollRun -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `PayrollRun` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.payrollRuns.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - remoteFields: "run_state", - showEnumOrigins: "run_state" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.PayrollRunsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `PayrollRunsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Hris RegenerateKey -
client.hris.regenerateKey.create({ ...params }) -> Merge.RemoteKey -
-
- -#### 📝 Description - -
-
- -
-
- -Exchange remote keys. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.regenerateKey.create({ - name: "Remote Deployment Key 1" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.hris.RemoteKeyForRegenerationRequest` - -
-
- -
-
- -**requestOptions:** `RegenerateKeyClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## 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` - -
-
- -
-
- -**requestOptions:** `SyncStatusClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Hris ForceResync -
client.hris.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[] -
-
- -#### 📝 Description - -
-
- -
-
- -Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.forceResync.syncStatusResyncCreate(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `ForceResyncClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Hris Teams -
client.hris.teams.list({ ...params }) -> Merge.PaginatedTeamList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Team` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.teams.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "parent_team", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - parentTeamId: "parent_team_id", - remoteId: "remote_id" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.hris.TeamsListRequest` - -
-
- -
-
- -**requestOptions:** `TeamsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.hris.teams.retrieve(id, { ...params }) -> Merge.Team -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `Team` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.teams.retrieve("id", { - expand: "parent_team", - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.TeamsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `TeamsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Hris TimeOff -
client.hris.timeOff.list({ ...params }) -> Merge.PaginatedTimeOffList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `TimeOff` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.timeOff.list({ - approverId: "approver_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employeeId: "employee_id", - endedAfter: new Date("2024-01-15T09:30:00.000Z"), - endedBefore: new Date("2024-01-15T09:30:00.000Z"), - expand: "approver", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteFields: "request_type", - remoteId: "remote_id", - requestType: "BEREAVEMENT", - showEnumOrigins: "request_type", - startedAfter: new Date("2024-01-15T09:30:00.000Z"), - startedBefore: new Date("2024-01-15T09:30:00.000Z"), - status: "APPROVED" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.hris.TimeOffListRequest` - -
-
- -
-
- -**requestOptions:** `TimeOffClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.hris.timeOff.create({ ...params }) -> Merge.TimeOffResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a `TimeOff` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.timeOff.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.hris.TimeOffEndpointRequest` - -
-
- -
-
- -**requestOptions:** `TimeOffClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.hris.timeOff.retrieve(id, { ...params }) -> Merge.TimeOff -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `TimeOff` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.timeOff.retrieve("id", { - expand: "approver", - includeRemoteData: true, - includeShellData: true, - remoteFields: "request_type", - showEnumOrigins: "request_type" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.TimeOffRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `TimeOffClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.hris.timeOff.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `TimeOff` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.timeOff.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `TimeOffClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Hris TimeOffBalances -
client.hris.timeOffBalances.list({ ...params }) -> Merge.PaginatedTimeOffBalanceList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `TimeOffBalance` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.hris.TimeOffBalancesListRequest` - -
-
- -
-
- -**requestOptions:** `TimeOffBalancesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.hris.timeOffBalances.retrieve(id, { ...params }) -> Merge.TimeOffBalance -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `TimeOffBalance` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.timeOffBalances.retrieve("id", { - expand: "employee", - includeRemoteData: true, - includeShellData: true, - remoteFields: "policy_type", - showEnumOrigins: "policy_type" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.TimeOffBalancesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `TimeOffBalancesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Hris TimesheetEntries -
client.hris.timesheetEntries.list({ ...params }) -> Merge.PaginatedTimesheetEntryList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `TimesheetEntry` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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") -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.hris.TimesheetEntriesListRequest` - -
-
- -
-
- -**requestOptions:** `TimesheetEntriesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.hris.timesheetEntries.create({ ...params }) -> Merge.TimesheetEntryResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a `TimesheetEntry` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.timesheetEntries.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.hris.TimesheetEntryEndpointRequest` - -
-
- -
-
- -**requestOptions:** `TimesheetEntriesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.hris.timesheetEntries.retrieve(id, { ...params }) -> Merge.TimesheetEntry -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `TimesheetEntry` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.timesheetEntries.retrieve("id", { - expand: "employee", - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.TimesheetEntriesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `TimesheetEntriesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.hris.timesheetEntries.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `TimesheetEntry` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.timesheetEntries.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `TimesheetEntriesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Hris WebhookReceivers -
client.hris.webhookReceivers.list() -> Merge.WebhookReceiver[] -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `WebhookReceiver` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.webhookReceivers.list(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `WebhookReceiversClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.hris.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a `WebhookReceiver` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.webhookReceivers.create({ - event: "event", - isActive: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.hris.WebhookReceiverRequest` - -
-
- -
-
- -**requestOptions:** `WebhookReceiversClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ticketing AccountDetails -
client.ticketing.accountDetails.retrieve() -> Merge.AccountDetails -
-
- -#### 📝 Description - -
-
- -
-
- -Get details for a linked account. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.accountDetails.retrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `AccountDetailsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## 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 - -
-
- -
-
- -```typescript -await client.ticketing.accountToken.retrieve("public_token"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**public_token:** `string` - -
-
- -
-
- -**requestOptions:** `AccountTokenClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ticketing Accounts -
client.ticketing.accounts.list({ ...params }) -> Merge.PaginatedAccountList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Account` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.AccountsListRequest` - -
-
- -
-
- -**requestOptions:** `AccountsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.accounts.retrieve(id, { ...params }) -> Merge.Account -
-
- -#### 📝 Description - -
-
- -
-
- -Returns an `Account` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.accounts.retrieve("id", { - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.AccountsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `AccountsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ticketing AsyncPassthrough -
client.ticketing.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept -
-
- -#### 📝 Description - -
-
- -
-
- -Asynchronously pull data from an endpoint not currently supported by Merge. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.asyncPassthrough.create({ - method: "GET", - path: "/scooters" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.DataPassthroughRequest` - -
-
- -
-
- -**requestOptions:** `AsyncPassthroughClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.asyncPassthrough.retrieve(async_passthrough_receipt_id) -> Merge.AsyncPassthroughRetrieveResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieves data from earlier async-passthrough POST request -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.asyncPassthrough.retrieve("async_passthrough_receipt_id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**async_passthrough_receipt_id:** `string` - -
-
- -
-
- -**requestOptions:** `AsyncPassthroughClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ticketing Attachments -
client.ticketing.attachments.list({ ...params }) -> Merge.PaginatedAttachmentList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Attachment` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.AttachmentsListRequest` - -
-
- -
-
- -**requestOptions:** `AttachmentsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.attachments.create({ ...params }) -> Merge.TicketingAttachmentResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates an `Attachment` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.attachments.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.TicketingAttachmentEndpointRequest` - -
-
- -
-
- -**requestOptions:** `AttachmentsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.attachments.retrieve(id, { ...params }) -> Merge.Attachment -
-
- -#### 📝 Description - -
-
- -
-
- -Returns an `Attachment` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.attachments.retrieve("id", { - expand: "ticket", - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.AttachmentsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `AttachmentsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.attachments.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `TicketingAttachment` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.attachments.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `AttachmentsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ticketing AuditTrail -
client.ticketing.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList -
-
- -#### 📝 Description - -
-
- -
-
- -Gets a list of audit trail events. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.auditTrail.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - eventType: "event_type", - pageSize: 1, - startDate: "start_date", - userEmail: "user_email" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.AuditTrailListRequest` - -
-
- -
-
- -**requestOptions:** `AuditTrailClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ticketing AvailableActions -
client.ticketing.availableActions.retrieve() -> Merge.AvailableActions -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of models and actions available for an account. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.availableActions.retrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `AvailableActionsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ticketing Collections -
client.ticketing.collections.list({ ...params }) -> Merge.PaginatedCollectionList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Collection` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.CollectionsListRequest` - -
-
- -
-
- -**requestOptions:** `CollectionsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.collections.viewersList(collection_id, { ...params }) -> Merge.PaginatedViewerList -
-
- -#### 📝 Description - -
-
- -
-
- -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) -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.collections.viewersList("collection_id", { - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "team", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**collection_id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.CollectionsViewersListRequest` - -
-
- -
-
- -**requestOptions:** `CollectionsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.collections.retrieve(id, { ...params }) -> Merge.Collection -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `Collection` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.collections.retrieve("id", { - expand: "parent_collection", - includeRemoteData: true, - includeShellData: true, - remoteFields: "collection_type", - showEnumOrigins: "collection_type" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.CollectionsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `CollectionsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ticketing Comments -
client.ticketing.comments.list({ ...params }) -> Merge.PaginatedCommentList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Comment` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.CommentsListRequest` - -
-
- -
-
- -**requestOptions:** `CommentsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.comments.create({ ...params }) -> Merge.CommentResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a `Comment` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.comments.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.CommentEndpointRequest` - -
-
- -
-
- -**requestOptions:** `CommentsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.comments.retrieve(id, { ...params }) -> Merge.Comment -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `Comment` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.comments.retrieve("id", { - expand: "contact", - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.CommentsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `CommentsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.comments.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `Comment` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.comments.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `CommentsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ticketing Contacts -
client.ticketing.contacts.list({ ...params }) -> Merge.PaginatedContactList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Contact` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.contacts.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - emailAddress: "email_address", - expand: "account", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.ContactsListRequest` - -
-
- -
-
- -**requestOptions:** `ContactsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.contacts.create({ ...params }) -> Merge.TicketingContactResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a `Contact` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.contacts.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.TicketingContactEndpointRequest` - -
-
- -
-
- -**requestOptions:** `ContactsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.contacts.retrieve(id, { ...params }) -> Merge.Contact -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `Contact` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.contacts.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.ContactsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `ContactsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.contacts.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `TicketingContact` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.contacts.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `ContactsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ticketing Scopes -
client.ticketing.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi -
-
- -#### 📝 Description - -
-
- -
-
- -Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.scopes.defaultScopesRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `ScopesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.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.ticketing.scopes.linkedAccountScopesRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `ScopesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.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.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 - } - } - }] -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.LinkedAccountCommonModelScopeDeserializerRequest` - -
-
- -
-
- -**requestOptions:** `ScopesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ticketing DeleteAccount -
client.ticketing.deleteAccount.delete() -> void -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a linked account. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.deleteAccount.delete(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `DeleteAccountClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ticketing FieldMapping -
client.ticketing.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.fieldMapping.fieldMappingsRetrieve({ - excludeRemoteFieldMetadata: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.FieldMappingsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse -
-
- -#### 📝 Description - -
-
- -
-
- -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. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.CreateFieldMappingRequest` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.fieldMapping.fieldMappingsDestroy(field_mapping_id) -> Merge.FieldMappingInstanceResponse -
-
- -#### 📝 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.ticketing.fieldMapping.fieldMappingsDestroy("field_mapping_id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**field_mapping_id:** `string` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.fieldMapping.fieldMappingsPartialUpdate(field_mapping_id, { ...params }) -> Merge.FieldMappingInstanceResponse -
-
- -#### 📝 Description - -
-
- -
-
- -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. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**field_mapping_id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.PatchedEditFieldMappingRequest` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse -
-
- -#### 📝 Description - -
-
- -
-
- -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/). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.fieldMapping.remoteFieldsRetrieve({ - commonModels: "common_models", - includeExampleValues: "include_example_values" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.RemoteFieldsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse -
-
- -#### 📝 Description - -
-
- -
-
- -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/). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.fieldMapping.targetFieldsRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ticketing GenerateKey -
client.ticketing.generateKey.create({ ...params }) -> Merge.RemoteKey -
-
- -#### 📝 Description - -
-
- -
-
- -Create a remote key. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.generateKey.create({ - name: "Remote Deployment Key 1" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.GenerateRemoteKeyRequest` - -
-
- -
-
- -**requestOptions:** `GenerateKeyClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ticketing Issues -
client.ticketing.issues.list({ ...params }) -> Merge.PaginatedIssueList -
-
- -#### 📝 Description - -
-
- -
-
- -Gets all issues for Organization. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.IssuesListRequest` - -
-
- -
-
- -**requestOptions:** `IssuesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.issues.retrieve(id) -> Merge.Issue -
-
- -#### 📝 Description - -
-
- -
-
- -Get a specific issue. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.issues.retrieve("id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**requestOptions:** `IssuesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ticketing LinkToken -
client.ticketing.linkToken.create({ ...params }) -> Merge.LinkToken -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a link token to be used when linking a new end user. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.linkToken.create({ - endUserEmailAddress: "example@gmail.com", - endUserOrganizationName: "Test Organization", - endUserOriginId: "12345", - categories: ["hris", "ats"] -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.EndUserDetailsRequest` - -
-
- -
-
- -**requestOptions:** `LinkTokenClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ticketing LinkedAccounts -
client.ticketing.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList -
-
- -#### 📝 Description - -
-
- -
-
- -List linked accounts for your organization. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.LinkedAccountsListRequest` - -
-
- -
-
- -**requestOptions:** `LinkedAccountsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ticketing Passthrough -
client.ticketing.passthrough.create({ ...params }) -> Merge.RemoteResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Pull data from an endpoint not currently supported by Merge. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.passthrough.create({ - method: "GET", - path: "/scooters" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.DataPassthroughRequest` - -
-
- -
-
- -**requestOptions:** `PassthroughClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ticketing Projects -
client.ticketing.projects.list({ ...params }) -> Merge.PaginatedProjectList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Project` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.ProjectsListRequest` - -
-
- -
-
- -**requestOptions:** `ProjectsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.projects.retrieve(id, { ...params }) -> Merge.Project -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `Project` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.projects.retrieve("id", { - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.ProjectsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `ProjectsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.projects.usersList(parent_id, { ...params }) -> Merge.PaginatedUserList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `User` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.projects.usersList("parent_id", { - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "roles", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**parent_id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.ProjectsUsersListRequest` - -
-
- -
-
- -**requestOptions:** `ProjectsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ticketing RegenerateKey -
client.ticketing.regenerateKey.create({ ...params }) -> Merge.RemoteKey -
-
- -#### 📝 Description - -
-
- -
-
- -Exchange remote keys. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.regenerateKey.create({ - name: "Remote Deployment Key 1" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.RemoteKeyForRegenerationRequest` - -
-
- -
-
- -**requestOptions:** `RegenerateKeyClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ticketing Roles -
client.ticketing.roles.list({ ...params }) -> Merge.PaginatedRoleList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Role` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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, - 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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.RolesListRequest` - -
-
- -
-
- -**requestOptions:** `RolesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.roles.retrieve(id, { ...params }) -> Merge.Role -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `Role` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.roles.retrieve("id", { - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.RolesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `RolesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ticketing SyncStatus -
client.ticketing.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.ticketing.syncStatus.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.SyncStatusListRequest` - -
-
- -
-
- -**requestOptions:** `SyncStatusClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ticketing ForceResync -
client.ticketing.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[] -
-
- -#### 📝 Description - -
-
- -
-
- -Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.forceResync.syncStatusResyncCreate(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `ForceResyncClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ticketing Tags -
client.ticketing.tags.list({ ...params }) -> Merge.PaginatedTagList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Tag` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.TagsListRequest` - -
-
- -
-
- -**requestOptions:** `TagsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.tags.retrieve(id, { ...params }) -> Merge.Tag -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `Tag` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.tags.retrieve("id", { - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.TagsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `TagsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ticketing Teams -
client.ticketing.teams.list({ ...params }) -> Merge.PaginatedTeamList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Team` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.TeamsListRequest` - -
-
- -
-
- -**requestOptions:** `TeamsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.teams.retrieve(id, { ...params }) -> Merge.Team -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `Team` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.teams.retrieve("id", { - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.TeamsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `TeamsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ticketing Tickets -
client.ticketing.tickets.list({ ...params }) -> Merge.PaginatedTicketList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Ticket` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.TicketsListRequest` - -
-
- -
-
- -**requestOptions:** `TicketsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.tickets.create({ ...params }) -> Merge.TicketResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a `Ticket` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.tickets.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.TicketEndpointRequest` - -
-
- -
-
- -**requestOptions:** `TicketsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.tickets.retrieve(id, { ...params }) -> Merge.Ticket -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `Ticket` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.tickets.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - remoteFields: "priority", - showEnumOrigins: "priority" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.TicketsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `TicketsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.tickets.partialUpdate(id, { ...params }) -> Merge.TicketResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Updates a `Ticket` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.tickets.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.PatchedTicketEndpointRequest` - -
-
- -
-
- -**requestOptions:** `TicketsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.tickets.viewersList(ticket_id, { ...params }) -> Merge.PaginatedViewerList -
-
- -#### 📝 Description - -
-
- -
-
- -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) -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.tickets.viewersList("ticket_id", { - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "team", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**ticket_id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.TicketsViewersListRequest` - -
-
- -
-
- -**requestOptions:** `TicketsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.tickets.metaPatchRetrieve(id) -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `Ticket` PATCHs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.tickets.metaPatchRetrieve("id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**requestOptions:** `TicketsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.tickets.metaPostRetrieve({ ...params }) -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `Ticket` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.tickets.metaPostRetrieve({ - collectionId: "collection_id", - ticketType: "ticket_type" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.TicketsMetaPostRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `TicketsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.tickets.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.tickets.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - ids: "ids", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.TicketsRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `TicketsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Ticketing Users -
client.ticketing.users.list({ ...params }) -> Merge.PaginatedUserList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `User` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.UsersListRequest` - -
-
- -
-
- -**requestOptions:** `UsersClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.ticketing.users.retrieve(id, { ...params }) -> Merge.User -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `User` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.users.retrieve("id", { - expand: "roles", - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**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` - -
-
-
-
- - -
-
-
- -
client.ticketing.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a `WebhookReceiver` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.webhookReceivers.create({ - event: "event", - isActive: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.ticketing.WebhookReceiverRequest` - -
-
- -
-
- -**requestOptions:** `WebhookReceiversClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting AccountDetails -
client.accounting.accountDetails.retrieve() -> Merge.AccountDetails -
-
- -#### 📝 Description - -
-
- -
-
- -Get details for a linked account. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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 - -
-
- -
-
- -```typescript -await client.accounting.accountToken.retrieve("public_token"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**public_token:** `string` - -
-
- -
-
- -**requestOptions:** `AccountTokenClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting AccountingPeriods -
client.accounting.accountingPeriods.list({ ...params }) -> Merge.PaginatedAccountingPeriodList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `AccountingPeriod` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.accountingPeriods.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.AccountingPeriodsListRequest` - -
-
- -
-
- -**requestOptions:** `AccountingPeriodsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.accountingPeriods.retrieve(id, { ...params }) -> Merge.AccountingPeriod -
-
- -#### 📝 Description - -
-
- -
-
- -Returns an `AccountingPeriod` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.accountingPeriods.retrieve("id", { - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.AccountingPeriodsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `AccountingPeriodsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting Accounts -
client.accounting.accounts.list({ ...params }) -> Merge.PaginatedAccountList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Account` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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: "" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.AccountsListRequest` - -
-
- -
-
- -**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` - -
-
- -
-
- -**requestOptions:** `AccountsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.accounts.retrieve(id, { ...params }) -> Merge.Account -
-
- -#### 📝 Description - -
-
- -
-
- -Returns an `Account` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.accounts.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeShellData: true, - remoteFields: "classification", - showEnumOrigins: "classification" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.AccountsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `AccountsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.accounts.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `Account` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.accounts.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `AccountsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting Addresses -
client.accounting.addresses.retrieve(id, { ...params }) -> Merge.Address -
-
- -#### 📝 Description - -
-
- -
-
- -Returns an `Address` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.addresses.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - remoteFields: "type", - showEnumOrigins: "type" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.AddressesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `AddressesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting AsyncPassthrough -
client.accounting.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept -
-
- -#### 📝 Description - -
-
- -
-
- -Asynchronously pull data from an endpoint not currently supported by Merge. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.asyncPassthrough.create({ - method: "GET", - path: "/scooters" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.DataPassthroughRequest` - -
-
- -
-
- -**requestOptions:** `AsyncPassthroughClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.asyncPassthrough.retrieve(async_passthrough_receipt_id) -> Merge.AsyncPassthroughRetrieveResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieves data from earlier async-passthrough POST request -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.asyncPassthrough.retrieve("async_passthrough_receipt_id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**async_passthrough_receipt_id:** `string` - -
-
- -
-
- -**requestOptions:** `AsyncPassthroughClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting AsyncTasks -
client.accounting.asyncTasks.retrieve(id) -> Merge.AsyncPostTask -
-
- -#### 📝 Description - -
-
- -
-
- -Returns an `AsyncPostTask` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.asyncTasks.retrieve("id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**requestOptions:** `AsyncTasksClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting Attachments -
client.accounting.attachments.list({ ...params }) -> Merge.PaginatedAccountingAttachmentList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `AccountingAttachment` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.AttachmentsListRequest` - -
-
- -
-
- -**requestOptions:** `AttachmentsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.attachments.create({ ...params }) -> Merge.AccountingAttachmentResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates an `AccountingAttachment` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.attachments.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.AccountingAttachmentEndpointRequest` - -
-
- -
-
- -**requestOptions:** `AttachmentsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.attachments.retrieve(id, { ...params }) -> Merge.AccountingAttachment -
-
- -#### 📝 Description - -
-
- -
-
- -Returns an `AccountingAttachment` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.attachments.retrieve("id", { - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.AttachmentsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `AttachmentsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.attachments.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `AccountingAttachment` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.attachments.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `AttachmentsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting AuditTrail -
client.accounting.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList -
-
- -#### 📝 Description - -
-
- -
-
- -Gets a list of audit trail events. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.auditTrail.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - eventType: "event_type", - pageSize: 1, - startDate: "start_date", - userEmail: "user_email" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.AuditTrailListRequest` - -
-
- -
-
- -**requestOptions:** `AuditTrailClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting AvailableActions -
client.accounting.availableActions.retrieve() -> Merge.AvailableActions -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of models and actions available for an account. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.availableActions.retrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `AvailableActionsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting BalanceSheets -
client.accounting.balanceSheets.list({ ...params }) -> Merge.PaginatedBalanceSheetList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `BalanceSheet` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.BalanceSheetsListRequest` - -
-
- -
-
- -**requestOptions:** `BalanceSheetsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.balanceSheets.retrieve(id, { ...params }) -> Merge.BalanceSheet -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `BalanceSheet` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.balanceSheets.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.BalanceSheetsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `BalanceSheetsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting BankFeedAccounts -
client.accounting.bankFeedAccounts.list({ ...params }) -> Merge.PaginatedBankFeedAccountList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `BankFeedAccount` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.bankFeedAccounts.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.BankFeedAccountsListRequest` - -
-
- -
-
- -**requestOptions:** `BankFeedAccountsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.bankFeedAccounts.create({ ...params }) -> Merge.BankFeedAccountResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a `BankFeedAccount` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.bankFeedAccounts.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.BankFeedAccountEndpointRequest` - -
-
- -
-
- -**requestOptions:** `BankFeedAccountsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.bankFeedAccounts.retrieve(id, { ...params }) -> Merge.BankFeedAccount -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `BankFeedAccount` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.bankFeedAccounts.retrieve("id", { - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.BankFeedAccountsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `BankFeedAccountsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.bankFeedAccounts.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `BankFeedAccount` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.bankFeedAccounts.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `BankFeedAccountsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting BankFeedTransactions -
client.accounting.bankFeedTransactions.list({ ...params }) -> Merge.PaginatedBankFeedTransactionList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `BankFeedTransaction` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.BankFeedTransactionsListRequest` - -
-
- -
-
- -**requestOptions:** `BankFeedTransactionsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.bankFeedTransactions.create({ ...params }) -> Merge.BankFeedTransactionResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a `BankFeedTransaction` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.bankFeedTransactions.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.BankFeedTransactionEndpointRequest` - -
-
- -
-
- -**requestOptions:** `BankFeedTransactionsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.bankFeedTransactions.retrieve(id, { ...params }) -> Merge.BankFeedTransaction -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `BankFeedTransaction` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.bankFeedTransactions.retrieve("id", { - expand: "bank_feed_account", - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.BankFeedTransactionsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `BankFeedTransactionsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.bankFeedTransactions.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `BankFeedTransaction` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.bankFeedTransactions.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `BankFeedTransactionsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting CashFlowStatements -
client.accounting.cashFlowStatements.list({ ...params }) -> Merge.PaginatedCashFlowStatementList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `CashFlowStatement` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.CashFlowStatementsListRequest` - -
-
- -
-
- -**requestOptions:** `CashFlowStatementsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.cashFlowStatements.retrieve(id, { ...params }) -> Merge.CashFlowStatement -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `CashFlowStatement` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.cashFlowStatements.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.CashFlowStatementsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `CashFlowStatementsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting CompanyInfo -
client.accounting.companyInfo.list({ ...params }) -> Merge.PaginatedCompanyInfoList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `CompanyInfo` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.CompanyInfoListRequest` - -
-
- -
-
- -**requestOptions:** `CompanyInfoClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.companyInfo.retrieve(id, { ...params }) -> Merge.CompanyInfo -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `CompanyInfo` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.companyInfo.retrieve("id", { - expand: "addresses", - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.CompanyInfoRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `CompanyInfoClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting Contacts -
client.accounting.contacts.list({ ...params }) -> Merge.PaginatedContactList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Contact` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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: "" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.ContactsListRequest` - -
-
- -
-
- -**requestOptions:** `ContactsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.contacts.create({ ...params }) -> Merge.ContactResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a `Contact` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.contacts.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.ContactEndpointRequest` - -
-
- -
-
- -**requestOptions:** `ContactsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.contacts.retrieve(id, { ...params }) -> Merge.Contact -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `Contact` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.contacts.retrieve("id", { - expand: "addresses", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - remoteFields: "status", - showEnumOrigins: "status" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.ContactsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `ContactsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.contacts.partialUpdate(id, { ...params }) -> Merge.ContactResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Updates a `Contact` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.contacts.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.PatchedContactEndpointRequest` - -
-
- -
-
- -**requestOptions:** `ContactsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.contacts.metaPatchRetrieve(id) -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `Contact` PATCHs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.contacts.metaPatchRetrieve("id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**requestOptions:** `ContactsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.contacts.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `Contact` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.contacts.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `ContactsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.contacts.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.contacts.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.ContactsRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `ContactsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting CreditNotes -
client.accounting.creditNotes.list({ ...params }) -> Merge.PaginatedCreditNoteList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `CreditNote` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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, - 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") -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.CreditNotesListRequest` - -
-
- -
-
- -**requestOptions:** `CreditNotesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.creditNotes.create({ ...params }) -> Merge.CreditNoteResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a `CreditNote` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.creditNotes.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.CreditNoteEndpointRequest` - -
-
- -
-
- -**requestOptions:** `CreditNotesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.creditNotes.retrieve(id, { ...params }) -> Merge.CreditNote -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `CreditNote` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.creditNotes.retrieve("id", { - expand: "accounting_period", - includeRemoteData: true, - includeShellData: true, - remoteFields: "status", - showEnumOrigins: "status" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.CreditNotesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `CreditNotesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.creditNotes.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `CreditNote` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.creditNotes.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `CreditNotesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting Scopes -
client.accounting.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.accounting.scopes.defaultScopesRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `ScopesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.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.accounting.scopes.linkedAccountScopesRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `ScopesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.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.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 - } - } - }] -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.LinkedAccountCommonModelScopeDeserializerRequest` - -
-
- -
-
- -**requestOptions:** `ScopesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting DeleteAccount -
client.accounting.deleteAccount.delete() -> void -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a linked account. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.deleteAccount.delete(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `DeleteAccountClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting Employees -
client.accounting.employees.list({ ...params }) -> Merge.PaginatedEmployeeList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Employee` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.EmployeesListRequest` - -
-
- -
-
- -**requestOptions:** `EmployeesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.employees.retrieve(id, { ...params }) -> Merge.Employee -
-
- -#### 📝 Description - -
-
- -
-
- -Returns an `Employee` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.employees.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.EmployeesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `EmployeesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting ExpenseReports -
client.accounting.expenseReports.list({ ...params }) -> Merge.PaginatedExpenseReportList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `ExpenseReport` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.ExpenseReportsListRequest` - -
-
- -
-
- -**requestOptions:** `ExpenseReportsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.expenseReports.create({ ...params }) -> Merge.ExpenseReportResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates an `ExpenseReport` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.expenseReports.create({ - isDebugMode: true, - runAsync: true, - model: { - trackingCategories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"] - } -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.ExpenseReportEndpointRequest` - -
-
- -
-
- -**requestOptions:** `ExpenseReportsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.expenseReports.linesList(expense_report_id, { ...params }) -> Merge.PaginatedExpenseReportLineList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `ExpenseReportLine` objects that point to a `ExpenseReport` with the given id. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.expenseReports.linesList("expense_report_id", { - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "account", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**expense_report_id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.ExpenseReportsLinesListRequest` - -
-
- -
-
- -**requestOptions:** `ExpenseReportsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.expenseReports.retrieve(id, { ...params }) -> Merge.ExpenseReport -
-
- -#### 📝 Description - -
-
- -
-
- -Returns an `ExpenseReport` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.expenseReports.retrieve("id", { - expand: "accounting_period", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.ExpenseReportsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `ExpenseReportsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.expenseReports.linesRemoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.expenseReports.linesRemoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.ExpenseReportsLinesRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `ExpenseReportsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.expenseReports.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `ExpenseReport` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.expenseReports.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `ExpenseReportsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.expenseReports.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.expenseReports.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.ExpenseReportsRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `ExpenseReportsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting Expenses -
client.accounting.expenses.list({ ...params }) -> Merge.PaginatedExpenseList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Expense` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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") -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.ExpensesListRequest` - -
-
- -
-
- -**requestOptions:** `ExpensesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.expenses.create({ ...params }) -> Merge.ExpenseResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates an `Expense` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.expenses.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.ExpenseEndpointRequest` - -
-
- -
-
- -**requestOptions:** `ExpensesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.expenses.retrieve(id, { ...params }) -> Merge.Expense -
-
- -#### 📝 Description - -
-
- -
-
- -Returns an `Expense` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.expenses.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.ExpensesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `ExpensesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.expenses.linesRemoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.expenses.linesRemoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.ExpensesLinesRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `ExpensesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.expenses.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `Expense` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.expenses.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `ExpensesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.expenses.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.expenses.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.ExpensesRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `ExpensesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting FieldMapping -
client.accounting.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.fieldMapping.fieldMappingsRetrieve({ - excludeRemoteFieldMetadata: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.FieldMappingsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse -
-
- -#### 📝 Description - -
-
- -
-
- -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. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.CreateFieldMappingRequest` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.fieldMapping.fieldMappingsDestroy(field_mapping_id) -> Merge.FieldMappingInstanceResponse -
-
- -#### 📝 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.accounting.fieldMapping.fieldMappingsDestroy("field_mapping_id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**field_mapping_id:** `string` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.fieldMapping.fieldMappingsPartialUpdate(field_mapping_id, { ...params }) -> Merge.FieldMappingInstanceResponse -
-
- -#### 📝 Description - -
-
- -
-
- -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. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**field_mapping_id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.PatchedEditFieldMappingRequest` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse -
-
- -#### 📝 Description - -
-
- -
-
- -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/). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.fieldMapping.remoteFieldsRetrieve({ - commonModels: "common_models", - includeExampleValues: "include_example_values" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.RemoteFieldsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse -
-
- -#### 📝 Description - -
-
- -
-
- -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/). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.fieldMapping.targetFieldsRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting GeneralLedgerTransactions -
client.accounting.generalLedgerTransactions.list({ ...params }) -> Merge.PaginatedGeneralLedgerTransactionList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `GeneralLedgerTransaction` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.GeneralLedgerTransactionsListRequest` - -
-
- -
-
- -**requestOptions:** `GeneralLedgerTransactionsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.generalLedgerTransactions.retrieve(id, { ...params }) -> Merge.GeneralLedgerTransaction -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `GeneralLedgerTransaction` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.generalLedgerTransactions.retrieve("id", { - expand: "accounting_period", - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.GeneralLedgerTransactionsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `GeneralLedgerTransactionsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting GenerateKey -
client.accounting.generateKey.create({ ...params }) -> Merge.RemoteKey -
-
- -#### 📝 Description - -
-
- -
-
- -Create a remote key. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.generateKey.create({ - name: "Remote Deployment Key 1" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.GenerateRemoteKeyRequest` - -
-
- -
-
- -**requestOptions:** `GenerateKeyClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting IncomeStatements -
client.accounting.incomeStatements.list({ ...params }) -> Merge.PaginatedIncomeStatementList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `IncomeStatement` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.IncomeStatementsListRequest` - -
-
- -
-
- -**requestOptions:** `IncomeStatementsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.incomeStatements.retrieve(id, { ...params }) -> Merge.IncomeStatement -
-
- -#### 📝 Description - -
-
- -
-
- -Returns an `IncomeStatement` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.incomeStatements.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.IncomeStatementsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `IncomeStatementsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting Invoices -
client.accounting.invoices.list({ ...params }) -> Merge.PaginatedInvoiceList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Invoice` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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, - 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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.InvoicesListRequest` - -
-
- -
-
- -**requestOptions:** `InvoicesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.invoices.create({ ...params }) -> Merge.InvoiceResponse -
-
- -#### 📝 Description - -
-
- -
-
- -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). - -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.invoices.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.InvoiceEndpointRequest` - -
-
- -
-
- -**requestOptions:** `InvoicesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.invoices.retrieve(id, { ...params }) -> Merge.Invoice -
-
- -#### 📝 Description - -
-
- -
-
- -Returns an `Invoice` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.invoices.retrieve("id", { - expand: "accounting_period", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - remoteFields: "type", - showEnumOrigins: "type" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.InvoicesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `InvoicesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.invoices.partialUpdate(id, { ...params }) -> Merge.InvoiceResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Updates an `Invoice` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.invoices.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.PatchedInvoiceEndpointRequest` - -
-
- -
-
- -**requestOptions:** `InvoicesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.invoices.lineItemsRemoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.invoices.lineItemsRemoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.InvoicesLineItemsRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `InvoicesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.invoices.metaPatchRetrieve(id) -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `Invoice` PATCHs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.invoices.metaPatchRetrieve("id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**requestOptions:** `InvoicesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.invoices.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `Invoice` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.invoices.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `InvoicesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.invoices.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.invoices.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.InvoicesRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `InvoicesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## 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` - -
-
- -
-
- -**requestOptions:** `IssuesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.issues.retrieve(id) -> Merge.Issue -
-
- -#### 📝 Description - -
-
- -
-
- -Get a specific issue. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.issues.retrieve("id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**requestOptions:** `IssuesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting Items -
client.accounting.items.list({ ...params }) -> Merge.PaginatedItemList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Item` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.ItemsListRequest` - -
-
- -
-
- -**requestOptions:** `ItemsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.items.create({ ...params }) -> Merge.ItemResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates an `Item` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.items.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.ItemEndpointRequest` - -
-
- -
-
- -**requestOptions:** `ItemsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.items.retrieve(id, { ...params }) -> Merge.Item -
-
- -#### 📝 Description - -
-
- -
-
- -Returns an `Item` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.items.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeShellData: true, - remoteFields: "status", - showEnumOrigins: "status" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.ItemsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `ItemsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.items.partialUpdate(id, { ...params }) -> Merge.ItemResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Updates an `Item` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.items.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**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` - -
-
- -
-
- -**requestOptions:** `ItemsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.items.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `Item` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.items.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `ItemsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting JournalEntries -
client.accounting.journalEntries.list({ ...params }) -> Merge.PaginatedJournalEntryList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `JournalEntry` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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") -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.JournalEntriesListRequest` - -
-
- -
-
- -**requestOptions:** `JournalEntriesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.journalEntries.create({ ...params }) -> Merge.JournalEntryResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a `JournalEntry` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.journalEntries.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.JournalEntryEndpointRequest` - -
-
- -
-
- -**requestOptions:** `JournalEntriesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.journalEntries.retrieve(id, { ...params }) -> Merge.JournalEntry -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `JournalEntry` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.journalEntries.retrieve("id", { - expand: "accounting_period", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.JournalEntriesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `JournalEntriesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.journalEntries.linesRemoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.journalEntries.linesRemoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.JournalEntriesLinesRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `JournalEntriesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.journalEntries.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `JournalEntry` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.journalEntries.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `JournalEntriesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.journalEntries.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.journalEntries.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.JournalEntriesRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `JournalEntriesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting LinkToken -
client.accounting.linkToken.create({ ...params }) -> Merge.LinkToken -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a link token to be used when linking a new end user. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.linkToken.create({ - endUserEmailAddress: "example@gmail.com", - endUserOrganizationName: "Test Organization", - endUserOriginId: "12345", - categories: ["hris", "ats"] -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.EndUserDetailsRequest` - -
-
- -
-
- -**requestOptions:** `LinkTokenClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting LinkedAccounts -
client.accounting.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList -
-
- -#### 📝 Description - -
-
- -
-
- -List linked accounts for your organization. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.LinkedAccountsListRequest` - -
-
- -
-
- -**requestOptions:** `LinkedAccountsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting Passthrough -
client.accounting.passthrough.create({ ...params }) -> Merge.RemoteResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Pull data from an endpoint not currently supported by Merge. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.passthrough.create({ - method: "GET", - path: "/scooters" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.DataPassthroughRequest` - -
-
- -
-
- -**requestOptions:** `PassthroughClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting PaymentMethods -
client.accounting.paymentMethods.list({ ...params }) -> Merge.PaginatedPaymentMethodList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `PaymentMethod` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.paymentMethods.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.PaymentMethodsListRequest` - -
-
- -
-
- -**requestOptions:** `PaymentMethodsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.paymentMethods.retrieve(id, { ...params }) -> Merge.PaymentMethod -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `PaymentMethod` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.paymentMethods.retrieve("id", { - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.PaymentMethodsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `PaymentMethodsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting PaymentTerms -
client.accounting.paymentTerms.list({ ...params }) -> Merge.PaginatedPaymentTermList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `PaymentTerm` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.paymentTerms.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "company", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.PaymentTermsListRequest` - -
-
- -
-
- -**requestOptions:** `PaymentTermsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.paymentTerms.retrieve(id, { ...params }) -> Merge.PaymentTerm -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `PaymentTerm` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.paymentTerms.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.PaymentTermsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `PaymentTermsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting Payments -
client.accounting.payments.list({ ...params }) -> Merge.PaginatedPaymentList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Payment` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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") -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.PaymentsListRequest` - -
-
- -
-
- -**requestOptions:** `PaymentsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.payments.create({ ...params }) -> Merge.PaymentResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a `Payment` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.payments.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.PaymentEndpointRequest` - -
-
- -
-
- -**requestOptions:** `PaymentsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.payments.retrieve(id, { ...params }) -> Merge.Payment -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `Payment` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.payments.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.PaymentsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `PaymentsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.payments.partialUpdate(id, { ...params }) -> Merge.PaymentResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Updates a `Payment` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.payments.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.PatchedPaymentEndpointRequest` - -
-
- -
-
- -**requestOptions:** `PaymentsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.payments.lineItemsRemoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.payments.lineItemsRemoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.PaymentsLineItemsRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `PaymentsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.payments.metaPatchRetrieve(id) -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `Payment` PATCHs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.payments.metaPatchRetrieve("id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**requestOptions:** `PaymentsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.payments.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `Payment` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.payments.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `PaymentsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.payments.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.payments.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.PaymentsRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `PaymentsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting PhoneNumbers -
client.accounting.phoneNumbers.retrieve(id, { ...params }) -> Merge.AccountingPhoneNumber -
-
- -#### 📝 Description - -
-
- -
-
- -Returns an `AccountingPhoneNumber` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.phoneNumbers.retrieve("id", { - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.PhoneNumbersRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `PhoneNumbersClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting Projects -
client.accounting.projects.list({ ...params }) -> Merge.PaginatedProjectList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Project` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.ProjectsListRequest` - -
-
- -
-
- -**requestOptions:** `ProjectsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.projects.retrieve(id, { ...params }) -> Merge.Project -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `Project` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.projects.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.ProjectsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `ProjectsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting PurchaseOrders -
client.accounting.purchaseOrders.list({ ...params }) -> Merge.PaginatedPurchaseOrderList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `PurchaseOrder` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.PurchaseOrdersListRequest` - -
-
- -
-
- -**requestOptions:** `PurchaseOrdersClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.purchaseOrders.create({ ...params }) -> Merge.PurchaseOrderResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a `PurchaseOrder` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.purchaseOrders.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.PurchaseOrderEndpointRequest` - -
-
- -
-
- -**requestOptions:** `PurchaseOrdersClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.purchaseOrders.retrieve(id, { ...params }) -> Merge.PurchaseOrder -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `PurchaseOrder` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.purchaseOrders.retrieve("id", { - expand: "accounting_period", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - remoteFields: "status", - showEnumOrigins: "status" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.PurchaseOrdersRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `PurchaseOrdersClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.purchaseOrders.lineItemsRemoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.purchaseOrders.lineItemsRemoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.PurchaseOrdersLineItemsRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `PurchaseOrdersClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.purchaseOrders.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `PurchaseOrder` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.purchaseOrders.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `PurchaseOrdersClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.purchaseOrders.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `RemoteFieldClass` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.purchaseOrders.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.PurchaseOrdersRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `PurchaseOrdersClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting RegenerateKey -
client.accounting.regenerateKey.create({ ...params }) -> Merge.RemoteKey -
-
- -#### 📝 Description - -
-
- -
-
- -Exchange remote keys. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.regenerateKey.create({ - name: "Remote Deployment Key 1" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.RemoteKeyForRegenerationRequest` - -
-
- -
-
- -**requestOptions:** `RegenerateKeyClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting SyncStatus -
client.accounting.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.accounting.syncStatus.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - pageSize: 1 -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.SyncStatusListRequest` - -
-
- -
-
- -**requestOptions:** `SyncStatusClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting ForceResync -
client.accounting.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[] -
-
- -#### 📝 Description - -
-
- -
-
- -Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.forceResync.syncStatusResyncCreate(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `ForceResyncClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting TaxRates -
client.accounting.taxRates.list({ ...params }) -> Merge.PaginatedTaxRateList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `TaxRate` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.TaxRatesListRequest` - -
-
- -
-
- -**requestOptions:** `TaxRatesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.taxRates.retrieve(id, { ...params }) -> Merge.TaxRate -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `TaxRate` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.taxRates.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.TaxRatesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `TaxRatesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting TrackingCategories -
client.accounting.trackingCategories.list({ ...params }) -> Merge.PaginatedTrackingCategoryList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `TrackingCategory` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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: "" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.TrackingCategoriesListRequest` - -
-
- -
-
- -**requestOptions:** `TrackingCategoriesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.trackingCategories.retrieve(id, { ...params }) -> Merge.TrackingCategory -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `TrackingCategory` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.trackingCategories.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeShellData: true, - remoteFields: "status", - showEnumOrigins: "status" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.TrackingCategoriesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `TrackingCategoriesClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting Transactions -
client.accounting.transactions.list({ ...params }) -> Merge.PaginatedTransactionList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Transaction` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```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"), - 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") -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.TransactionsListRequest` - -
-
- -
-
- -**requestOptions:** `TransactionsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -
client.accounting.transactions.retrieve(id, { ...params }) -> Merge.Transaction -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a `Transaction` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.transactions.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeShellData: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.TransactionsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `TransactionsClient.RequestOptions` - -
-
-
-
- - -
-
-
- -## Accounting VendorCredits -
client.accounting.vendorCredits.list({ ...params }) -> Merge.PaginatedVendorCreditList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `VendorCredit` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.vendorCredits.list({ - companyId: "company_id", +// 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", - 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" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} -``` -
-
-
-
- -#### ⚙️ 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: {} -}); +// You can also access the underlying response +const response = page.response; ```
@@ -33004,7 +2981,7 @@ await client.accounting.vendorCredits.create({
-**request:** `Merge.accounting.VendorCreditEndpointRequest` +**request:** `Merge.filestorage.UsersListRequest`
@@ -33012,7 +2989,7 @@ await client.accounting.vendorCredits.create({
-**requestOptions:** `VendorCreditsClient.RequestOptions` +**requestOptions:** `UsersClient.RequestOptions`
@@ -33024,7 +3001,7 @@ await client.accounting.vendorCredits.create({
-
client.accounting.vendorCredits.retrieve(id, { ...params }) -> Merge.VendorCredit +
client.filestorage.users.retrieve(id, { ...params }) -> Merge.User
@@ -33036,7 +3013,7 @@ await client.accounting.vendorCredits.create({
-Returns a `VendorCredit` object with the given `id`. +Returns a `User` object with the given `id`.
@@ -33051,8 +3028,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 +3055,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 +3075,8 @@ await client.accounting.vendorCredits.metaPostRetrieve();
-## Accounting WebhookReceivers -
client.accounting.webhookReceivers.list() -> Merge.WebhookReceiver[] +## Filestorage WebhookReceivers +
client.filestorage.webhookReceivers.list() -> Merge.WebhookReceiver[]
@@ -33182,7 +3103,7 @@ Returns a list of `WebhookReceiver` objects.
```typescript -await client.accounting.webhookReceivers.list(); +await client.filestorage.webhookReceivers.list(); ```
@@ -33210,7 +3131,7 @@ await client.accounting.webhookReceivers.list();
-
client.accounting.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver +
client.filestorage.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver
@@ -33237,7 +3158,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 +3177,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 _crm: CrmClient | undefined; protected _filestorage: FilestorageClient | undefined; - protected _hris: HrisClient | undefined; - protected _ticketing: TicketingClient | undefined; - protected _accounting: AccountingClient | undefined; constructor(options: MergeClient.Options) { this._options = normalizeClientOptionsWithAuth(options); } - public get ats(): AtsClient { - return (this._ats ??= new AtsClient(this._options)); - } - - public get crm(): CrmClient { - return (this._crm ??= new CrmClient(this._options)); - } - public get filestorage(): FilestorageClient { return (this._filestorage ??= new FilestorageClient(this._options)); } - - public get hris(): HrisClient { - return (this._hris ??= new HrisClient(this._options)); - } - - public get ticketing(): TicketingClient { - return (this._ticketing ??= new TicketingClient(this._options)); - } - - public get accounting(): AccountingClient { - return (this._accounting ??= new AccountingClient(this._options)); - } } diff --git a/src/api/resources/accounting/client/Client.ts b/src/api/resources/accounting/client/Client.ts deleted file mode 100644 index db165bc34..000000000 --- a/src/api/resources/accounting/client/Client.ts +++ /dev/null @@ -1,298 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type { BaseClientOptions } from "../../../../BaseClient"; -import { type NormalizedClientOptionsWithAuth, normalizeClientOptionsWithAuth } from "../../../../BaseClient"; -import { AccountDetailsClient } from "../resources/accountDetails/client/Client"; -import { AccountingPeriodsClient } from "../resources/accountingPeriods/client/Client"; -import { AccountsClient } from "../resources/accounts/client/Client"; -import { AccountTokenClient } from "../resources/accountToken/client/Client"; -import { AddressesClient } from "../resources/addresses/client/Client"; -import { AsyncPassthroughClient } from "../resources/asyncPassthrough/client/Client"; -import { AsyncTasksClient } from "../resources/asyncTasks/client/Client"; -import { AttachmentsClient } from "../resources/attachments/client/Client"; -import { AuditTrailClient } from "../resources/auditTrail/client/Client"; -import { AvailableActionsClient } from "../resources/availableActions/client/Client"; -import { BalanceSheetsClient } from "../resources/balanceSheets/client/Client"; -import { BankFeedAccountsClient } from "../resources/bankFeedAccounts/client/Client"; -import { BankFeedTransactionsClient } from "../resources/bankFeedTransactions/client/Client"; -import { CashFlowStatementsClient } from "../resources/cashFlowStatements/client/Client"; -import { CompanyInfoClient } from "../resources/companyInfo/client/Client"; -import { ContactsClient } from "../resources/contacts/client/Client"; -import { CreditNotesClient } from "../resources/creditNotes/client/Client"; -import { DeleteAccountClient } from "../resources/deleteAccount/client/Client"; -import { EmployeesClient } from "../resources/employees/client/Client"; -import { ExpenseReportsClient } from "../resources/expenseReports/client/Client"; -import { ExpensesClient } from "../resources/expenses/client/Client"; -import { FieldMappingClient } from "../resources/fieldMapping/client/Client"; -import { ForceResyncClient } from "../resources/forceResync/client/Client"; -import { GeneralLedgerTransactionsClient } from "../resources/generalLedgerTransactions/client/Client"; -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 { ItemsClient } from "../resources/items/client/Client"; -import { JournalEntriesClient } from "../resources/journalEntries/client/Client"; -import { LinkedAccountsClient } from "../resources/linkedAccounts/client/Client"; -import { LinkTokenClient } from "../resources/linkToken/client/Client"; -import { PassthroughClient } from "../resources/passthrough/client/Client"; -import { PaymentMethodsClient } from "../resources/paymentMethods/client/Client"; -import { PaymentsClient } from "../resources/payments/client/Client"; -import { PaymentTermsClient } from "../resources/paymentTerms/client/Client"; -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 { ScopesClient } from "../resources/scopes/client/Client"; -import { SyncStatusClient } from "../resources/syncStatus/client/Client"; -import { TaxRatesClient } from "../resources/taxRates/client/Client"; -import { TrackingCategoriesClient } from "../resources/trackingCategories/client/Client"; -import { TransactionsClient } from "../resources/transactions/client/Client"; -import { VendorCreditsClient } from "../resources/vendorCredits/client/Client"; -import { WebhookReceiversClient } from "../resources/webhookReceivers/client/Client"; - -export declare namespace AccountingClient { - export type Options = BaseClientOptions; -} - -export class AccountingClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - protected _accountDetails: AccountDetailsClient | undefined; - protected _accountToken: AccountTokenClient | undefined; - protected _accountingPeriods: AccountingPeriodsClient | undefined; - protected _accounts: AccountsClient | undefined; - protected _addresses: AddressesClient | undefined; - protected _asyncPassthrough: AsyncPassthroughClient | undefined; - protected _asyncTasks: AsyncTasksClient | undefined; - protected _attachments: AttachmentsClient | undefined; - protected _auditTrail: AuditTrailClient | undefined; - protected _availableActions: AvailableActionsClient | undefined; - protected _balanceSheets: BalanceSheetsClient | undefined; - protected _bankFeedAccounts: BankFeedAccountsClient | undefined; - protected _bankFeedTransactions: BankFeedTransactionsClient | undefined; - protected _cashFlowStatements: CashFlowStatementsClient | undefined; - protected _companyInfo: CompanyInfoClient | undefined; - protected _contacts: ContactsClient | undefined; - protected _creditNotes: CreditNotesClient | undefined; - protected _scopes: ScopesClient | undefined; - protected _deleteAccount: DeleteAccountClient | undefined; - protected _employees: EmployeesClient | undefined; - protected _expenseReports: ExpenseReportsClient | undefined; - protected _expenses: ExpensesClient | undefined; - protected _fieldMapping: FieldMappingClient | undefined; - protected _generalLedgerTransactions: GeneralLedgerTransactionsClient | undefined; - protected _generateKey: GenerateKeyClient | undefined; - protected _incomeStatements: IncomeStatementsClient | undefined; - protected _invoices: InvoicesClient | undefined; - protected _issues: IssuesClient | undefined; - protected _items: ItemsClient | undefined; - protected _journalEntries: JournalEntriesClient | undefined; - protected _linkToken: LinkTokenClient | undefined; - protected _linkedAccounts: LinkedAccountsClient | undefined; - protected _passthrough: PassthroughClient | undefined; - protected _paymentMethods: PaymentMethodsClient | undefined; - protected _paymentTerms: PaymentTermsClient | undefined; - protected _payments: PaymentsClient | undefined; - protected _phoneNumbers: PhoneNumbersClient | undefined; - protected _projects: ProjectsClient | undefined; - protected _purchaseOrders: PurchaseOrdersClient | undefined; - protected _regenerateKey: RegenerateKeyClient | undefined; - protected _syncStatus: SyncStatusClient | undefined; - protected _forceResync: ForceResyncClient | undefined; - protected _taxRates: TaxRatesClient | undefined; - protected _trackingCategories: TrackingCategoriesClient | undefined; - protected _transactions: TransactionsClient | undefined; - protected _vendorCredits: VendorCreditsClient | undefined; - protected _webhookReceivers: WebhookReceiversClient | undefined; - - constructor(options: AccountingClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - public get accountDetails(): AccountDetailsClient { - return (this._accountDetails ??= new AccountDetailsClient(this._options)); - } - - public get accountToken(): AccountTokenClient { - return (this._accountToken ??= new AccountTokenClient(this._options)); - } - - public get accountingPeriods(): AccountingPeriodsClient { - return (this._accountingPeriods ??= new AccountingPeriodsClient(this._options)); - } - - public get accounts(): AccountsClient { - return (this._accounts ??= new AccountsClient(this._options)); - } - - public get addresses(): AddressesClient { - return (this._addresses ??= new AddressesClient(this._options)); - } - - public get asyncPassthrough(): AsyncPassthroughClient { - return (this._asyncPassthrough ??= new AsyncPassthroughClient(this._options)); - } - - public get asyncTasks(): AsyncTasksClient { - return (this._asyncTasks ??= new AsyncTasksClient(this._options)); - } - - public get attachments(): AttachmentsClient { - return (this._attachments ??= new AttachmentsClient(this._options)); - } - - public get auditTrail(): AuditTrailClient { - return (this._auditTrail ??= new AuditTrailClient(this._options)); - } - - public get availableActions(): AvailableActionsClient { - return (this._availableActions ??= new AvailableActionsClient(this._options)); - } - - public get balanceSheets(): BalanceSheetsClient { - return (this._balanceSheets ??= new BalanceSheetsClient(this._options)); - } - - public get bankFeedAccounts(): BankFeedAccountsClient { - return (this._bankFeedAccounts ??= new BankFeedAccountsClient(this._options)); - } - - public get bankFeedTransactions(): BankFeedTransactionsClient { - return (this._bankFeedTransactions ??= new BankFeedTransactionsClient(this._options)); - } - - public get cashFlowStatements(): CashFlowStatementsClient { - return (this._cashFlowStatements ??= new CashFlowStatementsClient(this._options)); - } - - public get companyInfo(): CompanyInfoClient { - return (this._companyInfo ??= new CompanyInfoClient(this._options)); - } - - public get contacts(): ContactsClient { - return (this._contacts ??= new ContactsClient(this._options)); - } - - public get creditNotes(): CreditNotesClient { - return (this._creditNotes ??= new CreditNotesClient(this._options)); - } - - public get scopes(): ScopesClient { - return (this._scopes ??= new ScopesClient(this._options)); - } - - public get deleteAccount(): DeleteAccountClient { - return (this._deleteAccount ??= new DeleteAccountClient(this._options)); - } - - public get employees(): EmployeesClient { - return (this._employees ??= new EmployeesClient(this._options)); - } - - public get expenseReports(): ExpenseReportsClient { - return (this._expenseReports ??= new ExpenseReportsClient(this._options)); - } - - public get expenses(): ExpensesClient { - return (this._expenses ??= new ExpensesClient(this._options)); - } - - public get fieldMapping(): FieldMappingClient { - return (this._fieldMapping ??= new FieldMappingClient(this._options)); - } - - public get generalLedgerTransactions(): GeneralLedgerTransactionsClient { - return (this._generalLedgerTransactions ??= new GeneralLedgerTransactionsClient(this._options)); - } - - public get generateKey(): GenerateKeyClient { - return (this._generateKey ??= new GenerateKeyClient(this._options)); - } - - public get incomeStatements(): IncomeStatementsClient { - return (this._incomeStatements ??= new IncomeStatementsClient(this._options)); - } - - public get invoices(): InvoicesClient { - return (this._invoices ??= new InvoicesClient(this._options)); - } - - public get issues(): IssuesClient { - return (this._issues ??= new IssuesClient(this._options)); - } - - public get items(): ItemsClient { - return (this._items ??= new ItemsClient(this._options)); - } - - public get journalEntries(): JournalEntriesClient { - return (this._journalEntries ??= new JournalEntriesClient(this._options)); - } - - public get linkToken(): LinkTokenClient { - return (this._linkToken ??= new LinkTokenClient(this._options)); - } - - public get linkedAccounts(): LinkedAccountsClient { - return (this._linkedAccounts ??= new LinkedAccountsClient(this._options)); - } - - public get passthrough(): PassthroughClient { - return (this._passthrough ??= new PassthroughClient(this._options)); - } - - public get paymentMethods(): PaymentMethodsClient { - return (this._paymentMethods ??= new PaymentMethodsClient(this._options)); - } - - public get paymentTerms(): PaymentTermsClient { - return (this._paymentTerms ??= new PaymentTermsClient(this._options)); - } - - public get payments(): PaymentsClient { - return (this._payments ??= new PaymentsClient(this._options)); - } - - public get phoneNumbers(): PhoneNumbersClient { - return (this._phoneNumbers ??= new PhoneNumbersClient(this._options)); - } - - public get projects(): ProjectsClient { - return (this._projects ??= new ProjectsClient(this._options)); - } - - public get purchaseOrders(): PurchaseOrdersClient { - return (this._purchaseOrders ??= new PurchaseOrdersClient(this._options)); - } - - public get regenerateKey(): RegenerateKeyClient { - return (this._regenerateKey ??= new RegenerateKeyClient(this._options)); - } - - public get syncStatus(): SyncStatusClient { - return (this._syncStatus ??= new SyncStatusClient(this._options)); - } - - public get forceResync(): ForceResyncClient { - return (this._forceResync ??= new ForceResyncClient(this._options)); - } - - public get taxRates(): TaxRatesClient { - return (this._taxRates ??= new TaxRatesClient(this._options)); - } - - public get trackingCategories(): TrackingCategoriesClient { - return (this._trackingCategories ??= new TrackingCategoriesClient(this._options)); - } - - public get transactions(): TransactionsClient { - return (this._transactions ??= new TransactionsClient(this._options)); - } - - public get vendorCredits(): VendorCreditsClient { - return (this._vendorCredits ??= new VendorCreditsClient(this._options)); - } - - public get webhookReceivers(): WebhookReceiversClient { - return (this._webhookReceivers ??= new WebhookReceiversClient(this._options)); - } -} diff --git a/src/api/resources/accounting/client/index.ts b/src/api/resources/accounting/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/accounting/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/accounting/exports.ts b/src/api/resources/accounting/exports.ts deleted file mode 100644 index fae8028ea..000000000 --- a/src/api/resources/accounting/exports.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AccountingClient } from "./client/Client"; -export * from "./client/index"; -export * from "./resources/index"; diff --git a/src/api/resources/accounting/index.ts b/src/api/resources/accounting/index.ts deleted file mode 100644 index fb00ab43d..000000000 --- a/src/api/resources/accounting/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./client"; -export * from "./resources"; -export * from "./types"; diff --git a/src/api/resources/accounting/resources/accountDetails/client/Client.ts b/src/api/resources/accounting/resources/accountDetails/client/Client.ts deleted file mode 100644 index e797792a0..000000000 --- a/src/api/resources/accounting/resources/accountDetails/client/Client.ts +++ /dev/null @@ -1,94 +0,0 @@ -// 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 AccountDetailsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AccountDetailsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AccountDetailsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Get details for a linked account. - * - * @param {AccountDetailsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.accountDetails.retrieve() - */ - public retrieve( - requestOptions?: AccountDetailsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(requestOptions)); - } - - private async __retrieve( - requestOptions?: AccountDetailsClient.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-details", - ), - 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.AccountDetails.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/account-details", - ); - } -} diff --git a/src/api/resources/accounting/resources/accountDetails/client/index.ts b/src/api/resources/accounting/resources/accountDetails/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/accounting/resources/accountDetails/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/accounting/resources/accountDetails/exports.ts b/src/api/resources/accounting/resources/accountDetails/exports.ts deleted file mode 100644 index 418f11a73..000000000 --- a/src/api/resources/accounting/resources/accountDetails/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AccountDetailsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/accountDetails/index.ts b/src/api/resources/accounting/resources/accountDetails/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/accountDetails/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/resources/accountToken/client/Client.ts b/src/api/resources/accounting/resources/accountToken/client/Client.ts deleted file mode 100644 index 743de724e..000000000 --- a/src/api/resources/accounting/resources/accountToken/client/Client.ts +++ /dev/null @@ -1,97 +0,0 @@ -// 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 AccountTokenClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AccountTokenClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AccountTokenClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns the account token for the end user with the provided public token. - * - * @param {string} public_token - * @param {AccountTokenClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.accountToken.retrieve("public_token") - */ - public retrieve( - public_token: string, - requestOptions?: AccountTokenClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(public_token, requestOptions)); - } - - private async __retrieve( - public_token: string, - 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/${core.url.encodePathParam(public_token)}`, - ), - 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.AccountToken.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/account-token/{public_token}", - ); - } -} diff --git a/src/api/resources/accounting/resources/accountToken/client/index.ts b/src/api/resources/accounting/resources/accountToken/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/accounting/resources/accountToken/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/accounting/resources/accountToken/exports.ts b/src/api/resources/accounting/resources/accountToken/exports.ts deleted file mode 100644 index 52f681c49..000000000 --- a/src/api/resources/accounting/resources/accountToken/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AccountTokenClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/accountToken/index.ts b/src/api/resources/accounting/resources/accountToken/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/accountToken/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/resources/accountingPeriods/client/Client.ts b/src/api/resources/accounting/resources/accountingPeriods/client/Client.ts deleted file mode 100644 index 20bae4385..000000000 --- a/src/api/resources/accounting/resources/accountingPeriods/client/Client.ts +++ /dev/null @@ -1,194 +0,0 @@ -// 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 AccountingPeriodsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AccountingPeriodsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AccountingPeriodsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `AccountingPeriod` objects. - * - * @param {Merge.accounting.AccountingPeriodsListRequest} request - * @param {AccountingPeriodsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.accountingPeriods.list({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * pageSize: 1 - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } - - /** - * Returns an `AccountingPeriod` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.AccountingPeriodsRetrieveRequest} request - * @param {AccountingPeriodsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.accountingPeriods.retrieve("id", { - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.AccountingPeriodsRetrieveRequest = {}, - requestOptions?: AccountingPeriodsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.AccountingPeriodsRetrieveRequest = {}, - requestOptions?: AccountingPeriodsClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `accounting/v1/accounting-periods/${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.AccountingPeriod.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}", - ); - } -} diff --git a/src/api/resources/accounting/resources/accountingPeriods/client/index.ts b/src/api/resources/accounting/resources/accountingPeriods/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/accountingPeriods/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/accountingPeriods/client/requests/AccountingPeriodsListRequest.ts b/src/api/resources/accounting/resources/accountingPeriods/client/requests/AccountingPeriodsListRequest.ts deleted file mode 100644 index 6c809f019..000000000 --- a/src/api/resources/accounting/resources/accountingPeriods/client/requests/AccountingPeriodsListRequest.ts +++ /dev/null @@ -1,24 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * pageSize: 1 - * } - */ -export interface AccountingPeriodsListRequest { - /** The pagination cursor value. */ - cursor?: string; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** Number of results to return per page. */ - pageSize?: number; -} diff --git a/src/api/resources/accounting/resources/accountingPeriods/client/requests/AccountingPeriodsRetrieveRequest.ts b/src/api/resources/accounting/resources/accountingPeriods/client/requests/AccountingPeriodsRetrieveRequest.ts deleted file mode 100644 index 86c766b2d..000000000 --- a/src/api/resources/accounting/resources/accountingPeriods/client/requests/AccountingPeriodsRetrieveRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * includeRemoteData: true, - * includeShellData: true - * } - */ -export interface AccountingPeriodsRetrieveRequest { - /** 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; -} diff --git a/src/api/resources/accounting/resources/accountingPeriods/client/requests/index.ts b/src/api/resources/accounting/resources/accountingPeriods/client/requests/index.ts deleted file mode 100644 index bddac70d0..000000000 --- a/src/api/resources/accounting/resources/accountingPeriods/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { AccountingPeriodsListRequest } from "./AccountingPeriodsListRequest"; -export type { AccountingPeriodsRetrieveRequest } from "./AccountingPeriodsRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/accountingPeriods/exports.ts b/src/api/resources/accounting/resources/accountingPeriods/exports.ts deleted file mode 100644 index 2e2f1d82d..000000000 --- a/src/api/resources/accounting/resources/accountingPeriods/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AccountingPeriodsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/accountingPeriods/index.ts b/src/api/resources/accounting/resources/accountingPeriods/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/accountingPeriods/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/resources/accounts/client/Client.ts b/src/api/resources/accounting/resources/accounts/client/Client.ts deleted file mode 100644 index 30804642d..000000000 --- a/src/api/resources/accounting/resources/accounts/client/Client.ts +++ /dev/null @@ -1,413 +0,0 @@ -// 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 AccountsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AccountsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AccountsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Account` objects. - * - * @param {Merge.accounting.AccountsListRequest} request - * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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: "" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Creates an `Account` object with the given values. - * - * @param {Merge.accounting.AccountEndpointRequest} request - * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.accounts.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public create( - request: Merge.accounting.AccountEndpointRequest, - requestOptions?: AccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.accounting.AccountEndpointRequest, - requestOptions?: AccountsClient.RequestOptions, - ): Promise> { - const { isDebugMode, runAsync, ..._body } = request; - const _queryParams: Record = { - is_debug_mode: isDebugMode, - run_async: runAsync, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/accounts", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.accounting.AccountEndpointRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, - }); - if (_response.ok) { - return { - data: serializers.accounting.AccountResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/accounting/v1/accounts"); - } - - /** - * Returns an `Account` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.AccountsRetrieveRequest} request - * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.accounts.retrieve("id", { - * expand: "company", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "classification", - * showEnumOrigins: "classification" - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.AccountsRetrieveRequest = {}, - requestOptions?: AccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.AccountsRetrieveRequest = {}, - requestOptions?: AccountsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; - const _queryParams: Record = { - expand: expand != null ? expand : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - remote_fields: - remoteFields != null - ? serializers.accounting.AccountsRetrieveRequestRemoteFields.jsonOrThrow(remoteFields, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - show_enum_origins: - showEnumOrigins != null - ? serializers.accounting.AccountsRetrieveRequestShowEnumOrigins.jsonOrThrow(showEnumOrigins, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/${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.Account.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } - - /** - * Returns metadata for `Account` POSTs. - * - * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.accounts.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: AccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: AccountsClient.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/accounts/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/accounts/meta/post", - ); - } -} diff --git a/src/api/resources/accounting/resources/accounts/client/index.ts b/src/api/resources/accounting/resources/accounts/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/accounts/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/accounts/client/requests/AccountEndpointRequest.ts b/src/api/resources/accounting/resources/accounts/client/requests/AccountEndpointRequest.ts deleted file mode 100644 index 994ac2176..000000000 --- a/src/api/resources/accounting/resources/accounts/client/requests/AccountEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface AccountEndpointRequest { - /** Whether to include debug fields (such as log file links) in the response. */ - isDebugMode?: boolean; - /** Whether or not third-party updates should be run asynchronously. */ - runAsync?: boolean; - model: Merge.accounting.AccountRequest; -} diff --git a/src/api/resources/accounting/resources/accounts/client/requests/AccountsListRequest.ts b/src/api/resources/accounting/resources/accounts/client/requests/AccountsListRequest.ts deleted file mode 100644 index 56602c1b4..000000000 --- a/src/api/resources/accounting/resources/accounts/client/requests/AccountsListRequest.ts +++ /dev/null @@ -1,65 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * accountType: "account_type", - * classification: "", - * companyId: "company_id", - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * 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: "" - * } - */ -export interface AccountsListRequest { - /** If provided, will only return accounts with the passed in enum. */ - accountType?: string; - /** If provided, will only return accounts with this classification. */ - classification?: Merge.accounting.AccountsListRequestClassification; - /** If provided, will only return accounts for this company. */ - companyId?: string; - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "company"; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** If provided, will only return Accounts with this name. */ - name?: string; - /** Number of results to return per page. */ - pageSize?: number; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: Merge.accounting.AccountsListRequestRemoteFields; - /** The API provider's ID for the given object. */ - remoteId?: string; - /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ - showEnumOrigins?: Merge.accounting.AccountsListRequestShowEnumOrigins; - /** If provided, will only return accounts with this status. */ - status?: Merge.accounting.AccountsListRequestStatus; -} diff --git a/src/api/resources/accounting/resources/accounts/client/requests/AccountsRetrieveRequest.ts b/src/api/resources/accounting/resources/accounts/client/requests/AccountsRetrieveRequest.ts deleted file mode 100644 index c7d64f6b4..000000000 --- a/src/api/resources/accounting/resources/accounts/client/requests/AccountsRetrieveRequest.ts +++ /dev/null @@ -1,26 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * expand: "company", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "classification", - * showEnumOrigins: "classification" - * } - */ -export interface AccountsRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "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). */ - includeShellData?: boolean; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: Merge.accounting.AccountsRetrieveRequestRemoteFields; - /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ - showEnumOrigins?: Merge.accounting.AccountsRetrieveRequestShowEnumOrigins; -} diff --git a/src/api/resources/accounting/resources/accounts/client/requests/index.ts b/src/api/resources/accounting/resources/accounts/client/requests/index.ts deleted file mode 100644 index 74bcb5814..000000000 --- a/src/api/resources/accounting/resources/accounts/client/requests/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type { AccountEndpointRequest } from "./AccountEndpointRequest"; -export type { AccountsListRequest } from "./AccountsListRequest"; -export type { AccountsRetrieveRequest } from "./AccountsRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/accounts/exports.ts b/src/api/resources/accounting/resources/accounts/exports.ts deleted file mode 100644 index 11698f7e4..000000000 --- a/src/api/resources/accounting/resources/accounts/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AccountsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/accounts/index.ts b/src/api/resources/accounting/resources/accounts/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/accounting/resources/accounts/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/accounting/resources/accounts/types/AccountsListRequestClassification.ts b/src/api/resources/accounting/resources/accounts/types/AccountsListRequestClassification.ts deleted file mode 100644 index c14242f76..000000000 --- a/src/api/resources/accounting/resources/accounts/types/AccountsListRequestClassification.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const AccountsListRequestClassification = { - Empty: "", - Asset: "ASSET", - Equity: "EQUITY", - Expense: "EXPENSE", - Liability: "LIABILITY", - Revenue: "REVENUE", -} as const; -export type AccountsListRequestClassification = - (typeof AccountsListRequestClassification)[keyof typeof AccountsListRequestClassification]; diff --git a/src/api/resources/accounting/resources/accounts/types/AccountsListRequestRemoteFields.ts b/src/api/resources/accounting/resources/accounts/types/AccountsListRequestRemoteFields.ts deleted file mode 100644 index b73c132f7..000000000 --- a/src/api/resources/accounting/resources/accounts/types/AccountsListRequestRemoteFields.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const AccountsListRequestRemoteFields = { - Classification: "classification", - ClassificationStatus: "classification,status", - Status: "status", -} as const; -export type AccountsListRequestRemoteFields = - (typeof AccountsListRequestRemoteFields)[keyof typeof AccountsListRequestRemoteFields]; diff --git a/src/api/resources/accounting/resources/accounts/types/AccountsListRequestShowEnumOrigins.ts b/src/api/resources/accounting/resources/accounts/types/AccountsListRequestShowEnumOrigins.ts deleted file mode 100644 index 9441adc79..000000000 --- a/src/api/resources/accounting/resources/accounts/types/AccountsListRequestShowEnumOrigins.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const AccountsListRequestShowEnumOrigins = { - Classification: "classification", - ClassificationStatus: "classification,status", - Status: "status", -} as const; -export type AccountsListRequestShowEnumOrigins = - (typeof AccountsListRequestShowEnumOrigins)[keyof typeof AccountsListRequestShowEnumOrigins]; diff --git a/src/api/resources/accounting/resources/accounts/types/AccountsListRequestStatus.ts b/src/api/resources/accounting/resources/accounts/types/AccountsListRequestStatus.ts deleted file mode 100644 index b933bb3ec..000000000 --- a/src/api/resources/accounting/resources/accounts/types/AccountsListRequestStatus.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const AccountsListRequestStatus = { - Empty: "", - Active: "ACTIVE", - Inactive: "INACTIVE", - Pending: "PENDING", -} as const; -export type AccountsListRequestStatus = (typeof AccountsListRequestStatus)[keyof typeof AccountsListRequestStatus]; diff --git a/src/api/resources/accounting/resources/accounts/types/AccountsRetrieveRequestRemoteFields.ts b/src/api/resources/accounting/resources/accounts/types/AccountsRetrieveRequestRemoteFields.ts deleted file mode 100644 index 1458c392f..000000000 --- a/src/api/resources/accounting/resources/accounts/types/AccountsRetrieveRequestRemoteFields.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const AccountsRetrieveRequestRemoteFields = { - Classification: "classification", - ClassificationStatus: "classification,status", - Status: "status", -} as const; -export type AccountsRetrieveRequestRemoteFields = - (typeof AccountsRetrieveRequestRemoteFields)[keyof typeof AccountsRetrieveRequestRemoteFields]; diff --git a/src/api/resources/accounting/resources/accounts/types/AccountsRetrieveRequestShowEnumOrigins.ts b/src/api/resources/accounting/resources/accounts/types/AccountsRetrieveRequestShowEnumOrigins.ts deleted file mode 100644 index 8fa8ba758..000000000 --- a/src/api/resources/accounting/resources/accounts/types/AccountsRetrieveRequestShowEnumOrigins.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const AccountsRetrieveRequestShowEnumOrigins = { - Classification: "classification", - ClassificationStatus: "classification,status", - Status: "status", -} as const; -export type AccountsRetrieveRequestShowEnumOrigins = - (typeof AccountsRetrieveRequestShowEnumOrigins)[keyof typeof AccountsRetrieveRequestShowEnumOrigins]; diff --git a/src/api/resources/accounting/resources/accounts/types/index.ts b/src/api/resources/accounting/resources/accounts/types/index.ts deleted file mode 100644 index 6e355c26c..000000000 --- a/src/api/resources/accounting/resources/accounts/types/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -export * from "./AccountsListRequestClassification"; -export * from "./AccountsListRequestRemoteFields"; -export * from "./AccountsListRequestShowEnumOrigins"; -export * from "./AccountsListRequestStatus"; -export * from "./AccountsRetrieveRequestRemoteFields"; -export * from "./AccountsRetrieveRequestShowEnumOrigins"; diff --git a/src/api/resources/accounting/resources/addresses/client/Client.ts b/src/api/resources/accounting/resources/addresses/client/Client.ts deleted file mode 100644 index 35494f766..000000000 --- a/src/api/resources/accounting/resources/addresses/client/Client.ts +++ /dev/null @@ -1,107 +0,0 @@ -// 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 AddressesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AddressesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AddressesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns an `Address` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.AddressesRetrieveRequest} request - * @param {AddressesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.addresses.retrieve("id", { - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "type", - * showEnumOrigins: "type" - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.AddressesRetrieveRequest = {}, - requestOptions?: AddressesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.AddressesRetrieveRequest = {}, - requestOptions?: AddressesClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeShellData, remoteFields, 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, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/addresses/${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.Address.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/addresses/{id}"); - } -} diff --git a/src/api/resources/accounting/resources/addresses/client/index.ts b/src/api/resources/accounting/resources/addresses/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/addresses/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/addresses/client/requests/AddressesRetrieveRequest.ts b/src/api/resources/accounting/resources/addresses/client/requests/AddressesRetrieveRequest.ts deleted file mode 100644 index 2048a6cbd..000000000 --- a/src/api/resources/accounting/resources/addresses/client/requests/AddressesRetrieveRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "type", - * showEnumOrigins: "type" - * } - */ -export interface AddressesRetrieveRequest { - /** 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; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: "type"; - /** 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"; -} diff --git a/src/api/resources/accounting/resources/addresses/client/requests/index.ts b/src/api/resources/accounting/resources/addresses/client/requests/index.ts deleted file mode 100644 index e050a0144..000000000 --- a/src/api/resources/accounting/resources/addresses/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { AddressesRetrieveRequest } from "./AddressesRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/addresses/exports.ts b/src/api/resources/accounting/resources/addresses/exports.ts deleted file mode 100644 index 83a5edbf1..000000000 --- a/src/api/resources/accounting/resources/addresses/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AddressesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/addresses/index.ts b/src/api/resources/accounting/resources/addresses/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/addresses/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/resources/asyncPassthrough/client/Client.ts b/src/api/resources/accounting/resources/asyncPassthrough/client/Client.ts deleted file mode 100644 index 3bb0809db..000000000 --- a/src/api/resources/accounting/resources/asyncPassthrough/client/Client.ts +++ /dev/null @@ -1,177 +0,0 @@ -// 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 AsyncPassthroughClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AsyncPassthroughClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AsyncPassthroughClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Asynchronously pull data from an endpoint not currently supported by Merge. - * - * @param {Merge.accounting.DataPassthroughRequest} request - * @param {AsyncPassthroughClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.asyncPassthrough.create({ - * method: "GET", - * path: "/scooters" - * }) - */ - public create( - request: Merge.accounting.DataPassthroughRequest, - requestOptions?: AsyncPassthroughClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.accounting.DataPassthroughRequest, - requestOptions?: AsyncPassthroughClient.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/async-passthrough", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.accounting.DataPassthroughRequest.jsonOrThrow(request, { - 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.AsyncPassthroughReciept.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/async-passthrough", - ); - } - - /** - * Retrieves data from earlier async-passthrough POST request - * - * @param {string} async_passthrough_receipt_id - * @param {AsyncPassthroughClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.asyncPassthrough.retrieve("async_passthrough_receipt_id") - */ - public retrieve( - async_passthrough_receipt_id: string, - requestOptions?: AsyncPassthroughClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(async_passthrough_receipt_id, requestOptions)); - } - - private async __retrieve( - async_passthrough_receipt_id: string, - requestOptions?: AsyncPassthroughClient.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/async-passthrough/${core.url.encodePathParam(async_passthrough_receipt_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.AsyncPassthroughRetrieveResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/async-passthrough/{async_passthrough_receipt_id}", - ); - } -} diff --git a/src/api/resources/accounting/resources/asyncPassthrough/client/index.ts b/src/api/resources/accounting/resources/asyncPassthrough/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/accounting/resources/asyncPassthrough/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/accounting/resources/asyncPassthrough/exports.ts b/src/api/resources/accounting/resources/asyncPassthrough/exports.ts deleted file mode 100644 index 559d07505..000000000 --- a/src/api/resources/accounting/resources/asyncPassthrough/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AsyncPassthroughClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/asyncPassthrough/index.ts b/src/api/resources/accounting/resources/asyncPassthrough/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/accounting/resources/asyncPassthrough/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/accounting/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.ts b/src/api/resources/accounting/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.ts deleted file mode 100644 index b9dc82687..000000000 --- a/src/api/resources/accounting/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.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 AsyncPassthroughRetrieveResponse = Merge.accounting.RemoteResponse | string; diff --git a/src/api/resources/accounting/resources/asyncPassthrough/types/index.ts b/src/api/resources/accounting/resources/asyncPassthrough/types/index.ts deleted file mode 100644 index f2b2d0e21..000000000 --- a/src/api/resources/accounting/resources/asyncPassthrough/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./AsyncPassthroughRetrieveResponse"; diff --git a/src/api/resources/accounting/resources/asyncTasks/client/Client.ts b/src/api/resources/accounting/resources/asyncTasks/client/Client.ts deleted file mode 100644 index 1e0ba85d7..000000000 --- a/src/api/resources/accounting/resources/asyncTasks/client/Client.ts +++ /dev/null @@ -1,97 +0,0 @@ -// 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 AsyncTasksClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AsyncTasksClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AsyncTasksClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns an `AsyncPostTask` object with the given `id`. - * - * @param {string} id - * @param {AsyncTasksClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.asyncTasks.retrieve("id") - */ - public retrieve( - id: string, - requestOptions?: AsyncTasksClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, requestOptions)); - } - - private async __retrieve( - id: string, - requestOptions?: AsyncTasksClient.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/async-tasks/${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.AsyncPostTask.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/async-tasks/{id}", - ); - } -} diff --git a/src/api/resources/accounting/resources/asyncTasks/client/index.ts b/src/api/resources/accounting/resources/asyncTasks/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/accounting/resources/asyncTasks/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/accounting/resources/asyncTasks/exports.ts b/src/api/resources/accounting/resources/asyncTasks/exports.ts deleted file mode 100644 index 961059998..000000000 --- a/src/api/resources/accounting/resources/asyncTasks/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AsyncTasksClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/asyncTasks/index.ts b/src/api/resources/accounting/resources/asyncTasks/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/asyncTasks/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/resources/attachments/client/Client.ts b/src/api/resources/accounting/resources/attachments/client/Client.ts deleted file mode 100644 index 7e527d8e8..000000000 --- a/src/api/resources/accounting/resources/attachments/client/Client.ts +++ /dev/null @@ -1,363 +0,0 @@ -// 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 AttachmentsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AttachmentsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AttachmentsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `AccountingAttachment` objects. - * - * @param {Merge.accounting.AttachmentsListRequest} request - * @param {AttachmentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Creates an `AccountingAttachment` object with the given values. - * - * @param {Merge.accounting.AccountingAttachmentEndpointRequest} request - * @param {AttachmentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.attachments.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public create( - request: Merge.accounting.AccountingAttachmentEndpointRequest, - requestOptions?: AttachmentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.accounting.AccountingAttachmentEndpointRequest, - requestOptions?: AttachmentsClient.RequestOptions, - ): Promise> { - const { isDebugMode, runAsync, ..._body } = request; - const _queryParams: Record = { - is_debug_mode: isDebugMode, - run_async: runAsync, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/attachments", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.accounting.AccountingAttachmentEndpointRequest.jsonOrThrow(_body, { - unrecognizedObjectKeys: "strip", - }), - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, - }); - if (_response.ok) { - return { - data: serializers.accounting.AccountingAttachmentResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/accounting/v1/attachments"); - } - - /** - * Returns an `AccountingAttachment` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.AttachmentsRetrieveRequest} request - * @param {AttachmentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.attachments.retrieve("id", { - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.AttachmentsRetrieveRequest = {}, - requestOptions?: AttachmentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.AttachmentsRetrieveRequest = {}, - requestOptions?: AttachmentsClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `accounting/v1/attachments/${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.AccountingAttachment.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}", - ); - } - - /** - * Returns metadata for `AccountingAttachment` POSTs. - * - * @param {AttachmentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.attachments.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: AttachmentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: AttachmentsClient.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/attachments/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/attachments/meta/post", - ); - } -} diff --git a/src/api/resources/accounting/resources/attachments/client/index.ts b/src/api/resources/accounting/resources/attachments/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/attachments/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/attachments/client/requests/AccountingAttachmentEndpointRequest.ts b/src/api/resources/accounting/resources/attachments/client/requests/AccountingAttachmentEndpointRequest.ts deleted file mode 100644 index f9c602317..000000000 --- a/src/api/resources/accounting/resources/attachments/client/requests/AccountingAttachmentEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface AccountingAttachmentEndpointRequest { - /** Whether to include debug fields (such as log file links) in the response. */ - isDebugMode?: boolean; - /** Whether or not third-party updates should be run asynchronously. */ - runAsync?: boolean; - model: Merge.accounting.AccountingAttachmentRequest; -} diff --git a/src/api/resources/accounting/resources/attachments/client/requests/AttachmentsListRequest.ts b/src/api/resources/accounting/resources/attachments/client/requests/AttachmentsListRequest.ts deleted file mode 100644 index ed7c9aa8d..000000000 --- a/src/api/resources/accounting/resources/attachments/client/requests/AttachmentsListRequest.ts +++ /dev/null @@ -1,42 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * companyId: "company_id", - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - * pageSize: 1, - * remoteId: "remote_id" - * } - */ -export interface AttachmentsListRequest { - /** If provided, will only return accounting attachments for this company. */ - companyId?: string; - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - pageSize?: number; - /** The API provider's ID for the given object. */ - remoteId?: string; -} diff --git a/src/api/resources/accounting/resources/attachments/client/requests/AttachmentsRetrieveRequest.ts b/src/api/resources/accounting/resources/attachments/client/requests/AttachmentsRetrieveRequest.ts deleted file mode 100644 index 4242812a9..000000000 --- a/src/api/resources/accounting/resources/attachments/client/requests/AttachmentsRetrieveRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * includeRemoteData: true, - * includeShellData: true - * } - */ -export interface AttachmentsRetrieveRequest { - /** 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; -} diff --git a/src/api/resources/accounting/resources/attachments/client/requests/index.ts b/src/api/resources/accounting/resources/attachments/client/requests/index.ts deleted file mode 100644 index fbcf4a827..000000000 --- a/src/api/resources/accounting/resources/attachments/client/requests/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type { AccountingAttachmentEndpointRequest } from "./AccountingAttachmentEndpointRequest"; -export type { AttachmentsListRequest } from "./AttachmentsListRequest"; -export type { AttachmentsRetrieveRequest } from "./AttachmentsRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/attachments/exports.ts b/src/api/resources/accounting/resources/attachments/exports.ts deleted file mode 100644 index cdb3146a3..000000000 --- a/src/api/resources/accounting/resources/attachments/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AttachmentsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/attachments/index.ts b/src/api/resources/accounting/resources/attachments/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/attachments/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/resources/auditTrail/client/Client.ts b/src/api/resources/accounting/resources/auditTrail/client/Client.ts deleted file mode 100644 index f71839bfa..000000000 --- a/src/api/resources/accounting/resources/auditTrail/client/Client.ts +++ /dev/null @@ -1,108 +0,0 @@ -// 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 AuditTrailClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AuditTrailClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AuditTrailClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Gets a list of audit trail events. - * - * @param {Merge.accounting.AuditTrailListRequest} request - * @param {AuditTrailClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.auditTrail.list({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * endDate: "end_date", - * eventType: "event_type", - * pageSize: 1, - * startDate: "start_date", - * userEmail: "user_email" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } -} diff --git a/src/api/resources/accounting/resources/auditTrail/client/index.ts b/src/api/resources/accounting/resources/auditTrail/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/auditTrail/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/auditTrail/client/requests/AuditTrailListRequest.ts b/src/api/resources/accounting/resources/auditTrail/client/requests/AuditTrailListRequest.ts deleted file mode 100644 index 65216f96c..000000000 --- a/src/api/resources/accounting/resources/auditTrail/client/requests/AuditTrailListRequest.ts +++ /dev/null @@ -1,27 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * endDate: "end_date", - * eventType: "event_type", - * pageSize: 1, - * startDate: "start_date", - * userEmail: "user_email" - * } - */ -export interface AuditTrailListRequest { - /** The pagination cursor value. */ - cursor?: string; - /** If included, will only include audit trail events that occurred before this time */ - 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. */ - pageSize?: number; - /** If included, will only include audit trail events that occurred after this time */ - startDate?: string; - /** If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. */ - userEmail?: string; -} diff --git a/src/api/resources/accounting/resources/auditTrail/client/requests/index.ts b/src/api/resources/accounting/resources/auditTrail/client/requests/index.ts deleted file mode 100644 index 1878598de..000000000 --- a/src/api/resources/accounting/resources/auditTrail/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { AuditTrailListRequest } from "./AuditTrailListRequest"; diff --git a/src/api/resources/accounting/resources/auditTrail/exports.ts b/src/api/resources/accounting/resources/auditTrail/exports.ts deleted file mode 100644 index 0a7d225a1..000000000 --- a/src/api/resources/accounting/resources/auditTrail/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AuditTrailClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/auditTrail/index.ts b/src/api/resources/accounting/resources/auditTrail/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/auditTrail/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/resources/availableActions/client/Client.ts b/src/api/resources/accounting/resources/availableActions/client/Client.ts deleted file mode 100644 index b838348a9..000000000 --- a/src/api/resources/accounting/resources/availableActions/client/Client.ts +++ /dev/null @@ -1,94 +0,0 @@ -// 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 AvailableActionsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AvailableActionsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AvailableActionsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of models and actions available for an account. - * - * @param {AvailableActionsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.availableActions.retrieve() - */ - public retrieve( - requestOptions?: AvailableActionsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(requestOptions)); - } - - private async __retrieve( - requestOptions?: AvailableActionsClient.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/available-actions", - ), - 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.AvailableActions.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/available-actions", - ); - } -} diff --git a/src/api/resources/accounting/resources/availableActions/client/index.ts b/src/api/resources/accounting/resources/availableActions/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/accounting/resources/availableActions/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/accounting/resources/availableActions/exports.ts b/src/api/resources/accounting/resources/availableActions/exports.ts deleted file mode 100644 index 660bd32af..000000000 --- a/src/api/resources/accounting/resources/availableActions/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AvailableActionsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/availableActions/index.ts b/src/api/resources/accounting/resources/availableActions/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/availableActions/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/resources/balanceSheets/client/Client.ts b/src/api/resources/accounting/resources/balanceSheets/client/Client.ts deleted file mode 100644 index 889501585..000000000 --- a/src/api/resources/accounting/resources/balanceSheets/client/Client.ts +++ /dev/null @@ -1,218 +0,0 @@ -// 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 BalanceSheetsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class BalanceSheetsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: BalanceSheetsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `BalanceSheet` objects. - * - * @param {Merge.accounting.BalanceSheetsListRequest} request - * @param {BalanceSheetsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `BalanceSheet` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.BalanceSheetsRetrieveRequest} request - * @param {BalanceSheetsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.balanceSheets.retrieve("id", { - * expand: "company", - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.BalanceSheetsRetrieveRequest = {}, - requestOptions?: BalanceSheetsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.BalanceSheetsRetrieveRequest = {}, - requestOptions?: BalanceSheetsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - expand: expand != null ? expand : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/${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.BalanceSheet.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}", - ); - } -} diff --git a/src/api/resources/accounting/resources/balanceSheets/client/index.ts b/src/api/resources/accounting/resources/balanceSheets/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/balanceSheets/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/balanceSheets/client/requests/BalanceSheetsListRequest.ts b/src/api/resources/accounting/resources/balanceSheets/client/requests/BalanceSheetsListRequest.ts deleted file mode 100644 index 3bfad6d23..000000000 --- a/src/api/resources/accounting/resources/balanceSheets/client/requests/BalanceSheetsListRequest.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * companyId: "company_id", - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * 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" - * } - */ -export interface BalanceSheetsListRequest { - /** If provided, will only return balance sheets for this company. */ - companyId?: string; - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "company"; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - 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 deleted file mode 100644 index 5d04e464f..000000000 --- a/src/api/resources/accounting/resources/balanceSheets/client/requests/BalanceSheetsRetrieveRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @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"; - /** 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; -} diff --git a/src/api/resources/accounting/resources/balanceSheets/client/requests/index.ts b/src/api/resources/accounting/resources/balanceSheets/client/requests/index.ts deleted file mode 100644 index 3e73d0cc2..000000000 --- a/src/api/resources/accounting/resources/balanceSheets/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { BalanceSheetsListRequest } from "./BalanceSheetsListRequest"; -export type { BalanceSheetsRetrieveRequest } from "./BalanceSheetsRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/balanceSheets/exports.ts b/src/api/resources/accounting/resources/balanceSheets/exports.ts deleted file mode 100644 index 1b2cc9052..000000000 --- a/src/api/resources/accounting/resources/balanceSheets/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { BalanceSheetsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/balanceSheets/index.ts b/src/api/resources/accounting/resources/balanceSheets/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/balanceSheets/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/resources/bankFeedAccounts/client/Client.ts b/src/api/resources/accounting/resources/bankFeedAccounts/client/Client.ts deleted file mode 100644 index e307789f3..000000000 --- a/src/api/resources/accounting/resources/bankFeedAccounts/client/Client.ts +++ /dev/null @@ -1,349 +0,0 @@ -// 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 BankFeedAccountsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class BankFeedAccountsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: BankFeedAccountsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `BankFeedAccount` objects. - * - * @param {Merge.accounting.BankFeedAccountsListRequest} request - * @param {BankFeedAccountsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.bankFeedAccounts.list({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * pageSize: 1 - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } - - /** - * Creates a `BankFeedAccount` object with the given values. - * - * @param {Merge.accounting.BankFeedAccountEndpointRequest} request - * @param {BankFeedAccountsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.bankFeedAccounts.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public create( - request: Merge.accounting.BankFeedAccountEndpointRequest, - requestOptions?: BankFeedAccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.accounting.BankFeedAccountEndpointRequest, - requestOptions?: BankFeedAccountsClient.RequestOptions, - ): Promise> { - const { isDebugMode, runAsync, ..._body } = request; - const _queryParams: Record = { - is_debug_mode: isDebugMode, - run_async: runAsync, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/bank-feed-accounts", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.accounting.BankFeedAccountEndpointRequest.jsonOrThrow(_body, { - unrecognizedObjectKeys: "strip", - }), - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, - }); - if (_response.ok) { - return { - data: serializers.accounting.BankFeedAccountResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "POST", - "/accounting/v1/bank-feed-accounts", - ); - } - - /** - * Returns a `BankFeedAccount` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.BankFeedAccountsRetrieveRequest} request - * @param {BankFeedAccountsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.bankFeedAccounts.retrieve("id", { - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.BankFeedAccountsRetrieveRequest = {}, - requestOptions?: BankFeedAccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.BankFeedAccountsRetrieveRequest = {}, - requestOptions?: BankFeedAccountsClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `accounting/v1/bank-feed-accounts/${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.BankFeedAccount.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}", - ); - } - - /** - * Returns metadata for `BankFeedAccount` POSTs. - * - * @param {BankFeedAccountsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.bankFeedAccounts.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: BankFeedAccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: BankFeedAccountsClient.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/bank-feed-accounts/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/bank-feed-accounts/meta/post", - ); - } -} diff --git a/src/api/resources/accounting/resources/bankFeedAccounts/client/index.ts b/src/api/resources/accounting/resources/bankFeedAccounts/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/bankFeedAccounts/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountEndpointRequest.ts b/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountEndpointRequest.ts deleted file mode 100644 index 2a39e86dd..000000000 --- a/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface BankFeedAccountEndpointRequest { - /** Whether to include debug fields (such as log file links) in the response. */ - isDebugMode?: boolean; - /** Whether or not third-party updates should be run asynchronously. */ - runAsync?: boolean; - model: Merge.accounting.BankFeedAccountRequest; -} diff --git a/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountsListRequest.ts b/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountsListRequest.ts deleted file mode 100644 index 115922f41..000000000 --- a/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountsListRequest.ts +++ /dev/null @@ -1,24 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * pageSize: 1 - * } - */ -export interface BankFeedAccountsListRequest { - /** The pagination cursor value. */ - cursor?: string; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** Number of results to return per page. */ - pageSize?: number; -} diff --git a/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountsRetrieveRequest.ts b/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountsRetrieveRequest.ts deleted file mode 100644 index f5b772c52..000000000 --- a/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountsRetrieveRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * includeRemoteData: true, - * includeShellData: true - * } - */ -export interface BankFeedAccountsRetrieveRequest { - /** 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; -} diff --git a/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/index.ts b/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/index.ts deleted file mode 100644 index ee23ab2eb..000000000 --- a/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type { BankFeedAccountEndpointRequest } from "./BankFeedAccountEndpointRequest"; -export type { BankFeedAccountsListRequest } from "./BankFeedAccountsListRequest"; -export type { BankFeedAccountsRetrieveRequest } from "./BankFeedAccountsRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/bankFeedAccounts/exports.ts b/src/api/resources/accounting/resources/bankFeedAccounts/exports.ts deleted file mode 100644 index 9b1aa8e8e..000000000 --- a/src/api/resources/accounting/resources/bankFeedAccounts/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { BankFeedAccountsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/bankFeedAccounts/index.ts b/src/api/resources/accounting/resources/bankFeedAccounts/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/bankFeedAccounts/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/resources/bankFeedTransactions/client/Client.ts b/src/api/resources/accounting/resources/bankFeedTransactions/client/Client.ts deleted file mode 100644 index 3ceb0de41..000000000 --- a/src/api/resources/accounting/resources/bankFeedTransactions/client/Client.ts +++ /dev/null @@ -1,378 +0,0 @@ -// 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 BankFeedTransactionsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class BankFeedTransactionsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: BankFeedTransactionsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `BankFeedTransaction` objects. - * - * @param {Merge.accounting.BankFeedTransactionsListRequest} request - * @param {BankFeedTransactionsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } - - /** - * Creates a `BankFeedTransaction` object with the given values. - * - * @param {Merge.accounting.BankFeedTransactionEndpointRequest} request - * @param {BankFeedTransactionsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.bankFeedTransactions.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public create( - request: Merge.accounting.BankFeedTransactionEndpointRequest, - requestOptions?: BankFeedTransactionsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.accounting.BankFeedTransactionEndpointRequest, - requestOptions?: BankFeedTransactionsClient.RequestOptions, - ): Promise> { - const { isDebugMode, runAsync, ..._body } = request; - const _queryParams: Record = { - is_debug_mode: isDebugMode, - run_async: runAsync, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/bank-feed-transactions", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.accounting.BankFeedTransactionEndpointRequest.jsonOrThrow(_body, { - unrecognizedObjectKeys: "strip", - }), - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, - }); - if (_response.ok) { - return { - data: serializers.accounting.BankFeedTransactionResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "POST", - "/accounting/v1/bank-feed-transactions", - ); - } - - /** - * Returns a `BankFeedTransaction` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.BankFeedTransactionsRetrieveRequest} request - * @param {BankFeedTransactionsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.bankFeedTransactions.retrieve("id", { - * expand: "bank_feed_account", - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.BankFeedTransactionsRetrieveRequest = {}, - requestOptions?: BankFeedTransactionsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.BankFeedTransactionsRetrieveRequest = {}, - requestOptions?: BankFeedTransactionsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - expand: expand != null ? expand : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/${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.BankFeedTransaction.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}", - ); - } - - /** - * Returns metadata for `BankFeedTransaction` POSTs. - * - * @param {BankFeedTransactionsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.bankFeedTransactions.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: BankFeedTransactionsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: BankFeedTransactionsClient.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/bank-feed-transactions/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/bank-feed-transactions/meta/post", - ); - } -} diff --git a/src/api/resources/accounting/resources/bankFeedTransactions/client/index.ts b/src/api/resources/accounting/resources/bankFeedTransactions/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/bankFeedTransactions/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionEndpointRequest.ts b/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionEndpointRequest.ts deleted file mode 100644 index bab200892..000000000 --- a/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface BankFeedTransactionEndpointRequest { - /** Whether to include debug fields (such as log file links) in the response. */ - isDebugMode?: boolean; - /** Whether or not third-party updates should be run asynchronously. */ - runAsync?: boolean; - model: Merge.accounting.BankFeedTransactionRequestRequest; -} diff --git a/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionsListRequest.ts b/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionsListRequest.ts deleted file mode 100644 index 707d1e2ef..000000000 --- a/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionsListRequest.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * 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" - * } - */ -export interface BankFeedTransactionsListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "bank_feed_account"; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, will only return bank feed transactions with this is_processed value */ - isProcessed?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - 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 deleted file mode 100644 index e62d97162..000000000 --- a/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionsRetrieveRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @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"; - /** 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; -} diff --git a/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/index.ts b/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/index.ts deleted file mode 100644 index fb01fc4c8..000000000 --- a/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type { BankFeedTransactionEndpointRequest } from "./BankFeedTransactionEndpointRequest"; -export type { BankFeedTransactionsListRequest } from "./BankFeedTransactionsListRequest"; -export type { BankFeedTransactionsRetrieveRequest } from "./BankFeedTransactionsRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/bankFeedTransactions/exports.ts b/src/api/resources/accounting/resources/bankFeedTransactions/exports.ts deleted file mode 100644 index 22f377bae..000000000 --- a/src/api/resources/accounting/resources/bankFeedTransactions/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { BankFeedTransactionsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/bankFeedTransactions/index.ts b/src/api/resources/accounting/resources/bankFeedTransactions/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/bankFeedTransactions/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/resources/cashFlowStatements/client/Client.ts b/src/api/resources/accounting/resources/cashFlowStatements/client/Client.ts deleted file mode 100644 index adfb4163c..000000000 --- a/src/api/resources/accounting/resources/cashFlowStatements/client/Client.ts +++ /dev/null @@ -1,223 +0,0 @@ -// 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 CashFlowStatementsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class CashFlowStatementsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: CashFlowStatementsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `CashFlowStatement` objects. - * - * @param {Merge.accounting.CashFlowStatementsListRequest} request - * @param {CashFlowStatementsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } - - /** - * Returns a `CashFlowStatement` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.CashFlowStatementsRetrieveRequest} request - * @param {CashFlowStatementsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.cashFlowStatements.retrieve("id", { - * expand: "company", - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.CashFlowStatementsRetrieveRequest = {}, - requestOptions?: CashFlowStatementsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.CashFlowStatementsRetrieveRequest = {}, - requestOptions?: CashFlowStatementsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - expand: expand != null ? expand : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/${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.CashFlowStatement.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}", - ); - } -} diff --git a/src/api/resources/accounting/resources/cashFlowStatements/client/index.ts b/src/api/resources/accounting/resources/cashFlowStatements/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/cashFlowStatements/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/cashFlowStatements/client/requests/CashFlowStatementsListRequest.ts b/src/api/resources/accounting/resources/cashFlowStatements/client/requests/CashFlowStatementsListRequest.ts deleted file mode 100644 index 105782d1f..000000000 --- a/src/api/resources/accounting/resources/cashFlowStatements/client/requests/CashFlowStatementsListRequest.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * companyId: "company_id", - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * 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" - * } - */ -export interface CashFlowStatementsListRequest { - /** If provided, will only return cash flow statements for this company. */ - companyId?: string; - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "company"; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - 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 deleted file mode 100644 index b8c9fea3d..000000000 --- a/src/api/resources/accounting/resources/cashFlowStatements/client/requests/CashFlowStatementsRetrieveRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @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"; - /** 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; -} diff --git a/src/api/resources/accounting/resources/cashFlowStatements/client/requests/index.ts b/src/api/resources/accounting/resources/cashFlowStatements/client/requests/index.ts deleted file mode 100644 index dff0703d9..000000000 --- a/src/api/resources/accounting/resources/cashFlowStatements/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { CashFlowStatementsListRequest } from "./CashFlowStatementsListRequest"; -export type { CashFlowStatementsRetrieveRequest } from "./CashFlowStatementsRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/cashFlowStatements/exports.ts b/src/api/resources/accounting/resources/cashFlowStatements/exports.ts deleted file mode 100644 index 167b5f87d..000000000 --- a/src/api/resources/accounting/resources/cashFlowStatements/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { CashFlowStatementsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/cashFlowStatements/index.ts b/src/api/resources/accounting/resources/cashFlowStatements/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/cashFlowStatements/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/resources/companyInfo/client/Client.ts b/src/api/resources/accounting/resources/companyInfo/client/Client.ts deleted file mode 100644 index 78648d8ed..000000000 --- a/src/api/resources/accounting/resources/companyInfo/client/Client.ts +++ /dev/null @@ -1,225 +0,0 @@ -// 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 CompanyInfoClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class CompanyInfoClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: CompanyInfoClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `CompanyInfo` objects. - * - * @param {Merge.accounting.CompanyInfoListRequest} request - * @param {CompanyInfoClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `CompanyInfo` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.CompanyInfoRetrieveRequest} request - * @param {CompanyInfoClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.companyInfo.retrieve("id", { - * expand: "addresses", - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.CompanyInfoRetrieveRequest = {}, - requestOptions?: CompanyInfoClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.CompanyInfoRetrieveRequest = {}, - requestOptions?: CompanyInfoClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.CompanyInfoRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `accounting/v1/company-info/${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.CompanyInfo.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}", - ); - } -} diff --git a/src/api/resources/accounting/resources/companyInfo/client/index.ts b/src/api/resources/accounting/resources/companyInfo/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/companyInfo/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/companyInfo/client/requests/CompanyInfoListRequest.ts b/src/api/resources/accounting/resources/companyInfo/client/requests/CompanyInfoListRequest.ts deleted file mode 100644 index 3f8a20ccc..000000000 --- a/src/api/resources/accounting/resources/companyInfo/client/requests/CompanyInfoListRequest.ts +++ /dev/null @@ -1,44 +0,0 @@ -// 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: "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" - * } - */ -export interface CompanyInfoListRequest { - /** 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.CompanyInfoListRequestExpand; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - 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 deleted file mode 100644 index 81ce63415..000000000 --- a/src/api/resources/accounting/resources/companyInfo/client/requests/CompanyInfoRetrieveRequest.ts +++ /dev/null @@ -1,20 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -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; - /** 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; -} diff --git a/src/api/resources/accounting/resources/companyInfo/client/requests/index.ts b/src/api/resources/accounting/resources/companyInfo/client/requests/index.ts deleted file mode 100644 index 3cb682afc..000000000 --- a/src/api/resources/accounting/resources/companyInfo/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { CompanyInfoListRequest } from "./CompanyInfoListRequest"; -export type { CompanyInfoRetrieveRequest } from "./CompanyInfoRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/companyInfo/exports.ts b/src/api/resources/accounting/resources/companyInfo/exports.ts deleted file mode 100644 index f0cdd59dc..000000000 --- a/src/api/resources/accounting/resources/companyInfo/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { CompanyInfoClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/companyInfo/index.ts b/src/api/resources/accounting/resources/companyInfo/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/accounting/resources/companyInfo/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/api/resources/accounting/resources/companyInfo/types/index.ts deleted file mode 100644 index 8f0d30c91..000000000 --- a/src/api/resources/accounting/resources/companyInfo/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./CompanyInfoListRequestExpand"; -export * from "./CompanyInfoRetrieveRequestExpand"; diff --git a/src/api/resources/accounting/resources/contacts/client/Client.ts b/src/api/resources/accounting/resources/contacts/client/Client.ts deleted file mode 100644 index d1a4ab0c2..000000000 --- a/src/api/resources/accounting/resources/contacts/client/Client.ts +++ /dev/null @@ -1,666 +0,0 @@ -// 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 ContactsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class ContactsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: ContactsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Contact` objects. - * - * @param {Merge.accounting.ContactsListRequest} request - * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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: "" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Creates a `Contact` object with the given values. - * - * @param {Merge.accounting.ContactEndpointRequest} request - * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.contacts.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public create( - request: Merge.accounting.ContactEndpointRequest, - requestOptions?: ContactsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.accounting.ContactEndpointRequest, - requestOptions?: ContactsClient.RequestOptions, - ): Promise> { - const { isDebugMode, runAsync, ..._body } = request; - const _queryParams: Record = { - is_debug_mode: isDebugMode, - run_async: runAsync, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/contacts", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.accounting.ContactEndpointRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, - }); - if (_response.ok) { - return { - data: serializers.accounting.ContactResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/accounting/v1/contacts"); - } - - /** - * Returns a `Contact` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.ContactsRetrieveRequest} request - * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.contacts.retrieve("id", { - * expand: "addresses", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * remoteFields: "status", - * showEnumOrigins: "status" - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.ContactsRetrieveRequest = {}, - requestOptions?: ContactsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.ContactsRetrieveRequest = {}, - requestOptions?: ContactsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeRemoteFields, includeShellData, remoteFields, showEnumOrigins } = - request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.ContactsRetrieveRequestExpand.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/contacts/${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.Contact.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } - - /** - * Updates a `Contact` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.PatchedContactEndpointRequest} request - * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.contacts.partialUpdate("id", { - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public partialUpdate( - id: string, - request: Merge.accounting.PatchedContactEndpointRequest, - requestOptions?: ContactsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__partialUpdate(id, request, requestOptions)); - } - - private async __partialUpdate( - id: string, - request: Merge.accounting.PatchedContactEndpointRequest, - requestOptions?: ContactsClient.RequestOptions, - ): Promise> { - const { isDebugMode, runAsync, ..._body } = request; - const _queryParams: Record = { - is_debug_mode: isDebugMode, - run_async: runAsync, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `accounting/v1/contacts/${core.url.encodePathParam(id)}`, - ), - method: "PATCH", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.accounting.PatchedContactEndpointRequest.jsonOrThrow(_body, { - unrecognizedObjectKeys: "strip", - }), - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, - }); - if (_response.ok) { - return { - data: serializers.accounting.ContactResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "PATCH", - "/accounting/v1/contacts/{id}", - ); - } - - /** - * Returns metadata for `Contact` PATCHs. - * - * @param {string} id - * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.contacts.metaPatchRetrieve("id") - */ - public metaPatchRetrieve( - id: string, - requestOptions?: ContactsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPatchRetrieve(id, requestOptions)); - } - - private async __metaPatchRetrieve( - id: string, - requestOptions?: ContactsClient.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/contacts/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, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/meta/patch/{id}", - ); - } - - /** - * Returns metadata for `Contact` POSTs. - * - * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.contacts.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: ContactsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: ContactsClient.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/contacts/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/contacts/meta/post", - ); - } - - /** - * Returns a list of `RemoteFieldClass` objects. - * - * @param {Merge.accounting.ContactsRemoteFieldClassesListRequest} request - * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.contacts.remoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } -} diff --git a/src/api/resources/accounting/resources/contacts/client/index.ts b/src/api/resources/accounting/resources/contacts/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/contacts/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/contacts/client/requests/ContactEndpointRequest.ts b/src/api/resources/accounting/resources/contacts/client/requests/ContactEndpointRequest.ts deleted file mode 100644 index e95231398..000000000 --- a/src/api/resources/accounting/resources/contacts/client/requests/ContactEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface ContactEndpointRequest { - /** Whether to include debug fields (such as log file links) in the response. */ - isDebugMode?: boolean; - /** Whether or not third-party updates should be run asynchronously. */ - runAsync?: boolean; - model: Merge.accounting.ContactRequest; -} diff --git a/src/api/resources/accounting/resources/contacts/client/requests/ContactsListRequest.ts b/src/api/resources/accounting/resources/contacts/client/requests/ContactsListRequest.ts deleted file mode 100644 index 585914e5d..000000000 --- a/src/api/resources/accounting/resources/contacts/client/requests/ContactsListRequest.ts +++ /dev/null @@ -1,71 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * companyId: "company_id", - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * emailAddress: "email_address", - * 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: "" - * } - */ -export interface ContactsListRequest { - /** If provided, will only return contacts for this company. */ - companyId?: string; - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** If provided, will only return Contacts that match this email. */ - emailAddress?: string; - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.ContactsListRequestExpand; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ - includeRemoteFields?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, will only return Contacts that are denoted as customers. */ - isCustomer?: string; - /** If provided, will only return Contacts that are denoted as suppliers. */ - isSupplier?: string; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** If provided, will only return Contacts that match this name. */ - name?: string; - /** Number of results to return per page. */ - pageSize?: number; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: "status"; - /** The API provider's ID for the given object. */ - remoteId?: string; - /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ - showEnumOrigins?: "status"; - /** If provided, will only return Contacts that match this status. */ - status?: Merge.accounting.ContactsListRequestStatus; -} diff --git a/src/api/resources/accounting/resources/contacts/client/requests/ContactsRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/contacts/client/requests/ContactsRemoteFieldClassesListRequest.ts deleted file mode 100644 index 75d7eb29a..000000000 --- a/src/api/resources/accounting/resources/contacts/client/requests/ContactsRemoteFieldClassesListRequest.ts +++ /dev/null @@ -1,30 +0,0 @@ -// 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 ContactsRemoteFieldClassesListRequest { - /** 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. */ - 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 deleted file mode 100644 index 3a48f7835..000000000 --- a/src/api/resources/accounting/resources/contacts/client/requests/ContactsRetrieveRequest.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * expand: "addresses", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * remoteFields: "status", - * showEnumOrigins: "status" - * } - */ -export interface ContactsRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.ContactsRetrieveRequestExpand; - /** 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/contacts/client/requests/PatchedContactEndpointRequest.ts b/src/api/resources/accounting/resources/contacts/client/requests/PatchedContactEndpointRequest.ts deleted file mode 100644 index 4e5b8f168..000000000 --- a/src/api/resources/accounting/resources/contacts/client/requests/PatchedContactEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface PatchedContactEndpointRequest { - /** 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.PatchedContactRequest; -} diff --git a/src/api/resources/accounting/resources/contacts/client/requests/index.ts b/src/api/resources/accounting/resources/contacts/client/requests/index.ts deleted file mode 100644 index cd7bbf5ba..000000000 --- a/src/api/resources/accounting/resources/contacts/client/requests/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type { ContactEndpointRequest } from "./ContactEndpointRequest"; -export type { ContactsListRequest } from "./ContactsListRequest"; -export type { ContactsRemoteFieldClassesListRequest } from "./ContactsRemoteFieldClassesListRequest"; -export type { ContactsRetrieveRequest } from "./ContactsRetrieveRequest"; -export type { PatchedContactEndpointRequest } from "./PatchedContactEndpointRequest"; diff --git a/src/api/resources/accounting/resources/contacts/exports.ts b/src/api/resources/accounting/resources/contacts/exports.ts deleted file mode 100644 index d5052718a..000000000 --- a/src/api/resources/accounting/resources/contacts/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { ContactsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/contacts/index.ts b/src/api/resources/accounting/resources/contacts/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/accounting/resources/contacts/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/ContactsListRequestStatus.ts b/src/api/resources/accounting/resources/contacts/types/ContactsListRequestStatus.ts deleted file mode 100644 index 6c0cca3c0..000000000 --- a/src/api/resources/accounting/resources/contacts/types/ContactsListRequestStatus.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const ContactsListRequestStatus = { - Empty: "", - Active: "ACTIVE", - Archived: "ARCHIVED", -} as const; -export type ContactsListRequestStatus = (typeof ContactsListRequestStatus)[keyof typeof ContactsListRequestStatus]; 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/index.ts b/src/api/resources/accounting/resources/contacts/types/index.ts deleted file mode 100644 index 97a5d68db..000000000 --- a/src/api/resources/accounting/resources/contacts/types/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./ContactsListRequestExpand"; -export * from "./ContactsListRequestStatus"; -export * from "./ContactsRetrieveRequestExpand"; diff --git a/src/api/resources/accounting/resources/creditNotes/client/Client.ts b/src/api/resources/accounting/resources/creditNotes/client/Client.ts deleted file mode 100644 index 520f8003d..000000000 --- a/src/api/resources/accounting/resources/creditNotes/client/Client.ts +++ /dev/null @@ -1,414 +0,0 @@ -// 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 CreditNotesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class CreditNotesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: CreditNotesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `CreditNote` objects. - * - * @param {Merge.accounting.CreditNotesListRequest} request - * @param {CreditNotesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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") - * }) - */ - public list( - request: Merge.accounting.CreditNotesListRequest = {}, - requestOptions?: CreditNotesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.accounting.CreditNotesListRequest = {}, - requestOptions?: CreditNotesClient.RequestOptions, - ): 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: - expand != null - ? serializers.accounting.CreditNotesListRequestExpand.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"); - } - - /** - * 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 { isDebugMode, runAsync, ..._body } = request; - const _queryParams: Record = { - is_debug_mode: isDebugMode, - run_async: runAsync, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/credit-notes", - ), - 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", { - * expand: "accounting_period", - * 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: - 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, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `accounting/v1/credit-notes/${core.url.encodePathParam(id)}`, - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, - }); - if (_response.ok) { - return { - data: serializers.accounting.CreditNote.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/accounting/v1/credit-notes/{id}", - ); - } - - /** - * Returns metadata for `CreditNote` POSTs. - * - * @param {CreditNotesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.creditNotes.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: CreditNotesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - 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/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/credit-notes/meta/post", - ); - } -} diff --git a/src/api/resources/accounting/resources/creditNotes/client/index.ts b/src/api/resources/accounting/resources/creditNotes/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/creditNotes/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNoteEndpointRequest.ts b/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNoteEndpointRequest.ts deleted file mode 100644 index 4772c38e1..000000000 --- a/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNoteEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface CreditNoteEndpointRequest { - /** Whether to include debug fields (such as log file links) in the response. */ - isDebugMode?: boolean; - /** Whether or not third-party updates should be run asynchronously. */ - runAsync?: boolean; - model: Merge.accounting.CreditNoteRequest; -} diff --git a/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNotesListRequest.ts b/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNotesListRequest.ts deleted file mode 100644 index 70e082fc5..000000000 --- a/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNotesListRequest.ts +++ /dev/null @@ -1,59 +0,0 @@ -// 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", - * 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") - * } - */ -export interface CreditNotesListRequest { - /** If provided, will only return credit notes for this company. */ - companyId?: string; - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.CreditNotesListRequestExpand; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - pageSize?: number; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: Merge.accounting.CreditNotesListRequestRemoteFields; - /** The API provider's ID for the given object. */ - remoteId?: string; - /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ - showEnumOrigins?: Merge.accounting.CreditNotesListRequestShowEnumOrigins; - /** If provided, will only return objects created after this datetime. */ - transactionDateAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - transactionDateBefore?: Date; -} diff --git a/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNotesRetrieveRequest.ts b/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNotesRetrieveRequest.ts deleted file mode 100644 index 6fe2a7acd..000000000 --- a/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNotesRetrieveRequest.ts +++ /dev/null @@ -1,26 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * expand: "accounting_period", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "status", - * showEnumOrigins: "status" - * } - */ -export interface CreditNotesRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.CreditNotesRetrieveRequestExpand; - /** 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; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: Merge.accounting.CreditNotesRetrieveRequestRemoteFields; - /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ - showEnumOrigins?: Merge.accounting.CreditNotesRetrieveRequestShowEnumOrigins; -} diff --git a/src/api/resources/accounting/resources/creditNotes/client/requests/index.ts b/src/api/resources/accounting/resources/creditNotes/client/requests/index.ts deleted file mode 100644 index 1952c5fff..000000000 --- a/src/api/resources/accounting/resources/creditNotes/client/requests/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type { CreditNoteEndpointRequest } from "./CreditNoteEndpointRequest"; -export type { CreditNotesListRequest } from "./CreditNotesListRequest"; -export type { CreditNotesRetrieveRequest } from "./CreditNotesRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/creditNotes/exports.ts b/src/api/resources/accounting/resources/creditNotes/exports.ts deleted file mode 100644 index c2365900d..000000000 --- a/src/api/resources/accounting/resources/creditNotes/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { CreditNotesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/creditNotes/index.ts b/src/api/resources/accounting/resources/creditNotes/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/accounting/resources/creditNotes/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/CreditNotesListRequestRemoteFields.ts b/src/api/resources/accounting/resources/creditNotes/types/CreditNotesListRequestRemoteFields.ts deleted file mode 100644 index acc4acd47..000000000 --- a/src/api/resources/accounting/resources/creditNotes/types/CreditNotesListRequestRemoteFields.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const CreditNotesListRequestRemoteFields = { - Status: "status", - StatusType: "status,type", - Type: "type", -} as const; -export type CreditNotesListRequestRemoteFields = - (typeof CreditNotesListRequestRemoteFields)[keyof typeof CreditNotesListRequestRemoteFields]; diff --git a/src/api/resources/accounting/resources/creditNotes/types/CreditNotesListRequestShowEnumOrigins.ts b/src/api/resources/accounting/resources/creditNotes/types/CreditNotesListRequestShowEnumOrigins.ts deleted file mode 100644 index 0e1361f6f..000000000 --- a/src/api/resources/accounting/resources/creditNotes/types/CreditNotesListRequestShowEnumOrigins.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const CreditNotesListRequestShowEnumOrigins = { - Status: "status", - StatusType: "status,type", - Type: "type", -} as const; -export type CreditNotesListRequestShowEnumOrigins = - (typeof CreditNotesListRequestShowEnumOrigins)[keyof typeof CreditNotesListRequestShowEnumOrigins]; 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/CreditNotesRetrieveRequestRemoteFields.ts b/src/api/resources/accounting/resources/creditNotes/types/CreditNotesRetrieveRequestRemoteFields.ts deleted file mode 100644 index 50560d00b..000000000 --- a/src/api/resources/accounting/resources/creditNotes/types/CreditNotesRetrieveRequestRemoteFields.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const CreditNotesRetrieveRequestRemoteFields = { - Status: "status", - StatusType: "status,type", - Type: "type", -} as const; -export type CreditNotesRetrieveRequestRemoteFields = - (typeof CreditNotesRetrieveRequestRemoteFields)[keyof typeof CreditNotesRetrieveRequestRemoteFields]; diff --git a/src/api/resources/accounting/resources/creditNotes/types/CreditNotesRetrieveRequestShowEnumOrigins.ts b/src/api/resources/accounting/resources/creditNotes/types/CreditNotesRetrieveRequestShowEnumOrigins.ts deleted file mode 100644 index a3b4673c6..000000000 --- a/src/api/resources/accounting/resources/creditNotes/types/CreditNotesRetrieveRequestShowEnumOrigins.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const CreditNotesRetrieveRequestShowEnumOrigins = { - Status: "status", - StatusType: "status,type", - Type: "type", -} as const; -export type CreditNotesRetrieveRequestShowEnumOrigins = - (typeof CreditNotesRetrieveRequestShowEnumOrigins)[keyof typeof CreditNotesRetrieveRequestShowEnumOrigins]; diff --git a/src/api/resources/accounting/resources/creditNotes/types/index.ts b/src/api/resources/accounting/resources/creditNotes/types/index.ts deleted file mode 100644 index 87be1efa5..000000000 --- a/src/api/resources/accounting/resources/creditNotes/types/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -export * from "./CreditNotesListRequestExpand"; -export * from "./CreditNotesListRequestRemoteFields"; -export * from "./CreditNotesListRequestShowEnumOrigins"; -export * from "./CreditNotesRetrieveRequestExpand"; -export * from "./CreditNotesRetrieveRequestRemoteFields"; -export * from "./CreditNotesRetrieveRequestShowEnumOrigins"; diff --git a/src/api/resources/accounting/resources/deleteAccount/client/Client.ts b/src/api/resources/accounting/resources/deleteAccount/client/Client.ts deleted file mode 100644 index 712dc4d5c..000000000 --- a/src/api/resources/accounting/resources/deleteAccount/client/Client.ts +++ /dev/null @@ -1,79 +0,0 @@ -// 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"; - -export declare namespace DeleteAccountClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class DeleteAccountClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: DeleteAccountClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Delete a linked account. - * - * @param {DeleteAccountClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.deleteAccount.delete() - */ - public delete(requestOptions?: DeleteAccountClient.RequestOptions): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__delete(requestOptions)); - } - - private async __delete(requestOptions?: DeleteAccountClient.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/delete-account", - ), - 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: undefined, rawResponse: _response.rawResponse }; - } - - if (_response.error.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/delete-account", - ); - } -} diff --git a/src/api/resources/accounting/resources/deleteAccount/client/index.ts b/src/api/resources/accounting/resources/deleteAccount/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/accounting/resources/deleteAccount/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/accounting/resources/deleteAccount/exports.ts b/src/api/resources/accounting/resources/deleteAccount/exports.ts deleted file mode 100644 index b2e5e49b6..000000000 --- a/src/api/resources/accounting/resources/deleteAccount/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { DeleteAccountClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/deleteAccount/index.ts b/src/api/resources/accounting/resources/deleteAccount/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/deleteAccount/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/resources/employees/client/Client.ts b/src/api/resources/accounting/resources/employees/client/Client.ts deleted file mode 100644 index 2d26f382d..000000000 --- a/src/api/resources/accounting/resources/employees/client/Client.ts +++ /dev/null @@ -1,213 +0,0 @@ -// 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 EmployeesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class EmployeesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: EmployeesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Employee` objects. - * - * @param {Merge.accounting.EmployeesListRequest} request - * @param {EmployeesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns an `Employee` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.EmployeesRetrieveRequest} request - * @param {EmployeesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.employees.retrieve("id", { - * expand: "company", - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.EmployeesRetrieveRequest = {}, - requestOptions?: EmployeesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.EmployeesRetrieveRequest = {}, - requestOptions?: EmployeesClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - expand: expand != null ? expand : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/${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.Employee.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/accounting/resources/employees/client/index.ts b/src/api/resources/accounting/resources/employees/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/employees/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/employees/client/requests/EmployeesListRequest.ts b/src/api/resources/accounting/resources/employees/client/requests/EmployeesListRequest.ts deleted file mode 100644 index a0953801c..000000000 --- a/src/api/resources/accounting/resources/employees/client/requests/EmployeesListRequest.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * companyId: "company_id", - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * 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" - * } - */ -export interface EmployeesListRequest { - /** If provided, will only return employees for this company. */ - companyId?: string; - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "company"; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - 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 deleted file mode 100644 index 244030e1e..000000000 --- a/src/api/resources/accounting/resources/employees/client/requests/EmployeesRetrieveRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @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"; - /** 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; -} diff --git a/src/api/resources/accounting/resources/employees/client/requests/index.ts b/src/api/resources/accounting/resources/employees/client/requests/index.ts deleted file mode 100644 index 79a532070..000000000 --- a/src/api/resources/accounting/resources/employees/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { EmployeesListRequest } from "./EmployeesListRequest"; -export type { EmployeesRetrieveRequest } from "./EmployeesRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/employees/exports.ts b/src/api/resources/accounting/resources/employees/exports.ts deleted file mode 100644 index d2ce07706..000000000 --- a/src/api/resources/accounting/resources/employees/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { EmployeesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/employees/index.ts b/src/api/resources/accounting/resources/employees/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/employees/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/resources/expenseReports/client/Client.ts b/src/api/resources/accounting/resources/expenseReports/client/Client.ts deleted file mode 100644 index cd0cab743..000000000 --- a/src/api/resources/accounting/resources/expenseReports/client/Client.ts +++ /dev/null @@ -1,697 +0,0 @@ -// 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 ExpenseReportsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class ExpenseReportsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: ExpenseReportsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `ExpenseReport` objects. - * - * @param {Merge.accounting.ExpenseReportsListRequest} request - * @param {ExpenseReportsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } - - /** - * Creates an `ExpenseReport` object with the given values. - * - * @param {Merge.accounting.ExpenseReportEndpointRequest} request - * @param {ExpenseReportsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.expenseReports.create({ - * isDebugMode: true, - * runAsync: true, - * model: { - * trackingCategories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"] - * } - * }) - */ - public create( - request: Merge.accounting.ExpenseReportEndpointRequest, - requestOptions?: ExpenseReportsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.accounting.ExpenseReportEndpointRequest, - requestOptions?: ExpenseReportsClient.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/expense-reports", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.accounting.ExpenseReportEndpointRequest.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.ExpenseReportResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/expense-reports", - ); - } - - /** - * Returns a list of `ExpenseReportLine` objects that point to a `ExpenseReport` with the given id. - * - * @param {string} expense_report_id - * @param {Merge.accounting.ExpenseReportsLinesListRequest} request - * @param {ExpenseReportsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.expenseReports.linesList("expense_report_id", { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "account", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * 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( - 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, - ); - const _response = await (this._options.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", - ); - } - - /** - * Returns an `ExpenseReport` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.ExpenseReportsRetrieveRequest} request - * @param {ExpenseReportsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.expenseReports.retrieve("id", { - * expand: "accounting_period", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.ExpenseReportsRetrieveRequest = {}, - requestOptions?: ExpenseReportsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.ExpenseReportsRetrieveRequest = {}, - requestOptions?: ExpenseReportsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeRemoteFields, includeShellData } = request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.ExpenseReportsRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `accounting/v1/expense-reports/${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.ExpenseReport.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}", - ); - } - - /** - * Returns a list of `RemoteFieldClass` objects. - * - * @param {Merge.accounting.ExpenseReportsLinesRemoteFieldClassesListRequest} request - * @param {ExpenseReportsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.expenseReports.linesRemoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * }) - */ - public linesRemoteFieldClassesList( - request: Merge.accounting.ExpenseReportsLinesRemoteFieldClassesListRequest = {}, - requestOptions?: ExpenseReportsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__linesRemoteFieldClassesList(request, requestOptions)); - } - - private 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, - ); - const _response = await (this._options.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", - ); - } - - /** - * Returns metadata for `ExpenseReport` POSTs. - * - * @param {ExpenseReportsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.expenseReports.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: ExpenseReportsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: ExpenseReportsClient.RequestOptions, - ): Promise> { - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/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/expense-reports/meta/post", - ); - } - - /** - * Returns a list of `RemoteFieldClass` objects. - * - * @param {Merge.accounting.ExpenseReportsRemoteFieldClassesListRequest} request - * @param {ExpenseReportsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.expenseReports.remoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } -} diff --git a/src/api/resources/accounting/resources/expenseReports/client/index.ts b/src/api/resources/accounting/resources/expenseReports/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/expenseReports/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportEndpointRequest.ts b/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportEndpointRequest.ts deleted file mode 100644 index 8b8b732a4..000000000 --- a/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportEndpointRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: { - * trackingCategories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"] - * } - * } - */ -export interface ExpenseReportEndpointRequest { - /** Whether to include debug fields (such as log file links) in the response. */ - isDebugMode?: boolean; - /** Whether or not third-party updates should be run asynchronously. */ - runAsync?: boolean; - model: Merge.accounting.ExpenseReportRequest; -} diff --git a/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsLinesListRequest.ts b/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsLinesListRequest.ts deleted file mode 100644 index 8167f0407..000000000 --- a/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsLinesListRequest.ts +++ /dev/null @@ -1,32 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "account", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * pageSize: 1 - * } - */ -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; - /** 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. */ - 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 deleted file mode 100644 index 3020486b5..000000000 --- a/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsLinesRemoteFieldClassesListRequest.ts +++ /dev/null @@ -1,30 +0,0 @@ -// 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 ExpenseReportsLinesRemoteFieldClassesListRequest { - /** 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. */ - 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 deleted file mode 100644 index 4059ea572..000000000 --- a/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsListRequest.ts +++ /dev/null @@ -1,50 +0,0 @@ -// 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", - * 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" - * } - */ -export interface ExpenseReportsListRequest { - /** If provided, will only return expense reports for this company. */ - companyId?: string; - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.ExpenseReportsListRequestExpand; - /** 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. */ - 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 deleted file mode 100644 index 351af2ffc..000000000 --- a/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsRemoteFieldClassesListRequest.ts +++ /dev/null @@ -1,30 +0,0 @@ -// 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 ExpenseReportsRemoteFieldClassesListRequest { - /** 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. */ - 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 deleted file mode 100644 index 57b230f8e..000000000 --- a/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsRetrieveRequest.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * expand: "accounting_period", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * } - */ -export interface ExpenseReportsRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.ExpenseReportsRetrieveRequestExpand; - /** 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; -} diff --git a/src/api/resources/accounting/resources/expenseReports/client/requests/index.ts b/src/api/resources/accounting/resources/expenseReports/client/requests/index.ts deleted file mode 100644 index 34e983061..000000000 --- a/src/api/resources/accounting/resources/expenseReports/client/requests/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -export type { ExpenseReportEndpointRequest } from "./ExpenseReportEndpointRequest"; -export type { ExpenseReportsLinesListRequest } from "./ExpenseReportsLinesListRequest"; -export type { ExpenseReportsLinesRemoteFieldClassesListRequest } from "./ExpenseReportsLinesRemoteFieldClassesListRequest"; -export type { ExpenseReportsListRequest } from "./ExpenseReportsListRequest"; -export type { ExpenseReportsRemoteFieldClassesListRequest } from "./ExpenseReportsRemoteFieldClassesListRequest"; -export type { ExpenseReportsRetrieveRequest } from "./ExpenseReportsRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/expenseReports/exports.ts b/src/api/resources/accounting/resources/expenseReports/exports.ts deleted file mode 100644 index 86083814a..000000000 --- a/src/api/resources/accounting/resources/expenseReports/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { ExpenseReportsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/expenseReports/index.ts b/src/api/resources/accounting/resources/expenseReports/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/accounting/resources/expenseReports/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/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/index.ts b/src/api/resources/accounting/resources/expenseReports/types/index.ts deleted file mode 100644 index 9dd83d9ba..000000000 --- a/src/api/resources/accounting/resources/expenseReports/types/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./ExpenseReportsLinesListRequestExpand"; -export * from "./ExpenseReportsListRequestExpand"; -export * from "./ExpenseReportsRetrieveRequestExpand"; diff --git a/src/api/resources/accounting/resources/expenses/client/Client.ts b/src/api/resources/accounting/resources/expenses/client/Client.ts deleted file mode 100644 index be90d9323..000000000 --- a/src/api/resources/accounting/resources/expenses/client/Client.ts +++ /dev/null @@ -1,578 +0,0 @@ -// 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 ExpensesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class ExpensesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: ExpensesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Expense` objects. - * - * @param {Merge.accounting.ExpensesListRequest} request - * @param {ExpensesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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") - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Creates an `Expense` object with the given values. - * - * @param {Merge.accounting.ExpenseEndpointRequest} request - * @param {ExpensesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.expenses.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public create( - request: Merge.accounting.ExpenseEndpointRequest, - requestOptions?: ExpensesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.accounting.ExpenseEndpointRequest, - requestOptions?: ExpensesClient.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/expenses", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.accounting.ExpenseEndpointRequest.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.ExpenseResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/expenses"); - } - - /** - * Returns an `Expense` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.ExpensesRetrieveRequest} request - * @param {ExpensesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.expenses.retrieve("id", { - * expand: "account", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.ExpensesRetrieveRequest = {}, - requestOptions?: ExpensesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.ExpensesRetrieveRequest = {}, - requestOptions?: ExpensesClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeRemoteFields, includeShellData } = request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.ExpensesRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `accounting/v1/expenses/${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.Expense.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } - - /** - * 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 linesRemoteFieldClassesList( - request: Merge.accounting.ExpensesLinesRemoteFieldClassesListRequest = {}, - requestOptions?: ExpensesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__linesRemoteFieldClassesList(request, requestOptions)); - } - - private async __linesRemoteFieldClassesList( - request: Merge.accounting.ExpensesLinesRemoteFieldClassesListRequest = {}, - 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, - ); - const _response = await (this._options.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", - ); - } - - /** - * Returns metadata for `Expense` POSTs. - * - * @param {ExpensesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.expenses.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: ExpensesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: ExpensesClient.RequestOptions, - ): Promise> { - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/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/expenses/meta/post", - ); - } - - /** - * Returns a list of `RemoteFieldClass` objects. - * - * @param {Merge.accounting.ExpensesRemoteFieldClassesListRequest} request - * @param {ExpensesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.expenses.remoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } -} diff --git a/src/api/resources/accounting/resources/expenses/client/index.ts b/src/api/resources/accounting/resources/expenses/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/expenses/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/expenses/client/requests/ExpenseEndpointRequest.ts b/src/api/resources/accounting/resources/expenses/client/requests/ExpenseEndpointRequest.ts deleted file mode 100644 index 43e2a4697..000000000 --- a/src/api/resources/accounting/resources/expenses/client/requests/ExpenseEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface ExpenseEndpointRequest { - /** Whether to include debug fields (such as log file links) in the response. */ - isDebugMode?: boolean; - /** Whether or not third-party updates should be run asynchronously. */ - runAsync?: boolean; - model: Merge.accounting.ExpenseRequest; -} diff --git a/src/api/resources/accounting/resources/expenses/client/requests/ExpensesLinesRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/expenses/client/requests/ExpensesLinesRemoteFieldClassesListRequest.ts deleted file mode 100644 index 9b4833125..000000000 --- a/src/api/resources/accounting/resources/expenses/client/requests/ExpensesLinesRemoteFieldClassesListRequest.ts +++ /dev/null @@ -1,30 +0,0 @@ -// 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 ExpensesLinesRemoteFieldClassesListRequest { - /** 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. */ - 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 deleted file mode 100644 index c5af2dd41..000000000 --- a/src/api/resources/accounting/resources/expenses/client/requests/ExpensesListRequest.ts +++ /dev/null @@ -1,56 +0,0 @@ -// 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", - * 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") - * } - */ -export interface ExpensesListRequest { - /** 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.ExpensesListRequestExpand; - /** 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. */ - 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/ExpensesRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/expenses/client/requests/ExpensesRemoteFieldClassesListRequest.ts deleted file mode 100644 index 2185b8f00..000000000 --- a/src/api/resources/accounting/resources/expenses/client/requests/ExpensesRemoteFieldClassesListRequest.ts +++ /dev/null @@ -1,30 +0,0 @@ -// 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 ExpensesRemoteFieldClassesListRequest { - /** 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. */ - 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 deleted file mode 100644 index 02b7d25be..000000000 --- a/src/api/resources/accounting/resources/expenses/client/requests/ExpensesRetrieveRequest.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * expand: "account", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * } - */ -export interface ExpensesRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.ExpensesRetrieveRequestExpand; - /** 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; -} diff --git a/src/api/resources/accounting/resources/expenses/client/requests/index.ts b/src/api/resources/accounting/resources/expenses/client/requests/index.ts deleted file mode 100644 index 2ebb45939..000000000 --- a/src/api/resources/accounting/resources/expenses/client/requests/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type { ExpenseEndpointRequest } from "./ExpenseEndpointRequest"; -export type { ExpensesLinesRemoteFieldClassesListRequest } from "./ExpensesLinesRemoteFieldClassesListRequest"; -export type { ExpensesListRequest } from "./ExpensesListRequest"; -export type { ExpensesRemoteFieldClassesListRequest } from "./ExpensesRemoteFieldClassesListRequest"; -export type { ExpensesRetrieveRequest } from "./ExpensesRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/expenses/exports.ts b/src/api/resources/accounting/resources/expenses/exports.ts deleted file mode 100644 index 6206905dd..000000000 --- a/src/api/resources/accounting/resources/expenses/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { ExpensesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/expenses/index.ts b/src/api/resources/accounting/resources/expenses/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/accounting/resources/expenses/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/api/resources/accounting/resources/expenses/types/index.ts deleted file mode 100644 index 2a53835eb..000000000 --- a/src/api/resources/accounting/resources/expenses/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./ExpensesListRequestExpand"; -export * from "./ExpensesRetrieveRequestExpand"; diff --git a/src/api/resources/accounting/resources/fieldMapping/client/Client.ts b/src/api/resources/accounting/resources/fieldMapping/client/Client.ts deleted file mode 100644 index ed351dd21..000000000 --- a/src/api/resources/accounting/resources/fieldMapping/client/Client.ts +++ /dev/null @@ -1,480 +0,0 @@ -// 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 FieldMappingClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class FieldMappingClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: FieldMappingClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * 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/). - * - * @param {Merge.accounting.FieldMappingsRetrieveRequest} request - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.fieldMapping.fieldMappingsRetrieve({ - * excludeRemoteFieldMetadata: true - * }) - */ - public fieldMappingsRetrieve( - request: Merge.accounting.FieldMappingsRetrieveRequest = {}, - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__fieldMappingsRetrieve(request, requestOptions)); - } - - private async __fieldMappingsRetrieve( - request: Merge.accounting.FieldMappingsRetrieveRequest = {}, - requestOptions?: FieldMappingClient.RequestOptions, - ): Promise> { - const { excludeRemoteFieldMetadata } = request; - const _queryParams: Record = { - exclude_remote_field_metadata: excludeRemoteFieldMetadata, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/field-mappings", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 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.FieldMappingApiInstanceResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/field-mappings"); - } - - /** - * 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. - * - * @param {Merge.accounting.CreateFieldMappingRequest} request - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public fieldMappingsCreate( - request: Merge.accounting.CreateFieldMappingRequest, - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__fieldMappingsCreate(request, requestOptions)); - } - - private async __fieldMappingsCreate( - request: Merge.accounting.CreateFieldMappingRequest, - requestOptions?: FieldMappingClient.RequestOptions, - ): Promise> { - const { excludeRemoteFieldMetadata, ..._body } = request; - const _queryParams: Record = { - exclude_remote_field_metadata: excludeRemoteFieldMetadata, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/field-mappings", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.accounting.CreateFieldMappingRequest.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.FieldMappingInstanceResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/field-mappings", - ); - } - - /** - * 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. - * - * @param {string} field_mapping_id - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.fieldMapping.fieldMappingsDestroy("field_mapping_id") - */ - public fieldMappingsDestroy( - field_mapping_id: string, - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__fieldMappingsDestroy(field_mapping_id, requestOptions)); - } - - private async __fieldMappingsDestroy( - field_mapping_id: string, - requestOptions?: FieldMappingClient.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/field-mappings/${core.url.encodePathParam(field_mapping_id)}`, - ), - method: "DELETE", - 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.FieldMappingInstanceResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "DELETE", - "/accounting/v1/field-mappings/{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. - * - * @param {string} field_mapping_id - * @param {Merge.accounting.PatchedEditFieldMappingRequest} request - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id") - */ - public fieldMappingsPartialUpdate( - field_mapping_id: string, - request: Merge.accounting.PatchedEditFieldMappingRequest = {}, - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise( - this.__fieldMappingsPartialUpdate(field_mapping_id, request, requestOptions), - ); - } - - private async __fieldMappingsPartialUpdate( - field_mapping_id: string, - request: Merge.accounting.PatchedEditFieldMappingRequest = {}, - requestOptions?: FieldMappingClient.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/field-mappings/${core.url.encodePathParam(field_mapping_id)}`, - ), - method: "PATCH", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.accounting.PatchedEditFieldMappingRequest.jsonOrThrow(request, { - 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.FieldMappingInstanceResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "PATCH", - "/accounting/v1/field-mappings/{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/). - * - * @param {Merge.accounting.RemoteFieldsRetrieveRequest} request - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.fieldMapping.remoteFieldsRetrieve({ - * commonModels: "common_models", - * includeExampleValues: "include_example_values" - * }) - */ - public remoteFieldsRetrieve( - request: Merge.accounting.RemoteFieldsRetrieveRequest = {}, - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldsRetrieve(request, requestOptions)); - } - - private async __remoteFieldsRetrieve( - request: Merge.accounting.RemoteFieldsRetrieveRequest = {}, - requestOptions?: FieldMappingClient.RequestOptions, - ): Promise> { - const { commonModels, includeExampleValues } = request; - const _queryParams: Record = { - common_models: commonModels, - include_example_values: includeExampleValues, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/remote-fields", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 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.RemoteFieldApiResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/remote-fields"); - } - - /** - * 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/). - * - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.fieldMapping.targetFieldsRetrieve() - */ - public targetFieldsRetrieve( - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__targetFieldsRetrieve(requestOptions)); - } - - private async __targetFieldsRetrieve( - requestOptions?: FieldMappingClient.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/target-fields", - ), - 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.ExternalTargetFieldApiResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/target-fields"); - } -} diff --git a/src/api/resources/accounting/resources/fieldMapping/client/index.ts b/src/api/resources/accounting/resources/fieldMapping/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/fieldMapping/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/api/resources/accounting/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts deleted file mode 100644 index e711ea5fc..000000000 --- a/src/api/resources/accounting/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ /dev/null @@ -1,30 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * 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" - * } - */ -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; - /** 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. */ - targetFieldDescription: string; - /** 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; - /** The name of the Common Model that the remote field corresponds to in a given category. */ - commonModelName: string; -} diff --git a/src/api/resources/accounting/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts b/src/api/resources/accounting/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts deleted file mode 100644 index 7235c6e26..000000000 --- a/src/api/resources/accounting/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * excludeRemoteFieldMetadata: true - * } - */ -export interface FieldMappingsRetrieveRequest { - /** 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; -} diff --git a/src/api/resources/accounting/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts b/src/api/resources/accounting/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts deleted file mode 100644 index 0efe65466..000000000 --- a/src/api/resources/accounting/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * {} - */ -export interface PatchedEditFieldMappingRequest { - /** 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; -} diff --git a/src/api/resources/accounting/resources/fieldMapping/client/requests/RemoteFieldsRetrieveRequest.ts b/src/api/resources/accounting/resources/fieldMapping/client/requests/RemoteFieldsRetrieveRequest.ts deleted file mode 100644 index 99718436d..000000000 --- a/src/api/resources/accounting/resources/fieldMapping/client/requests/RemoteFieldsRetrieveRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * commonModels: "common_models", - * includeExampleValues: "include_example_values" - * } - */ -export interface RemoteFieldsRetrieveRequest { - /** A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. */ - commonModels?: string; - /** If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. */ - includeExampleValues?: string; -} diff --git a/src/api/resources/accounting/resources/fieldMapping/client/requests/index.ts b/src/api/resources/accounting/resources/fieldMapping/client/requests/index.ts deleted file mode 100644 index 1b7bf82f2..000000000 --- a/src/api/resources/accounting/resources/fieldMapping/client/requests/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export type { CreateFieldMappingRequest } from "./CreateFieldMappingRequest"; -export type { FieldMappingsRetrieveRequest } from "./FieldMappingsRetrieveRequest"; -export type { PatchedEditFieldMappingRequest } from "./PatchedEditFieldMappingRequest"; -export type { RemoteFieldsRetrieveRequest } from "./RemoteFieldsRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/fieldMapping/exports.ts b/src/api/resources/accounting/resources/fieldMapping/exports.ts deleted file mode 100644 index 62e814785..000000000 --- a/src/api/resources/accounting/resources/fieldMapping/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { FieldMappingClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/fieldMapping/index.ts b/src/api/resources/accounting/resources/fieldMapping/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/fieldMapping/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/resources/forceResync/client/Client.ts b/src/api/resources/accounting/resources/forceResync/client/Client.ts deleted file mode 100644 index 73a3adef1..000000000 --- a/src/api/resources/accounting/resources/forceResync/client/Client.ts +++ /dev/null @@ -1,94 +0,0 @@ -// 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 ForceResyncClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class ForceResyncClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: ForceResyncClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * 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. - * - * @param {ForceResyncClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.forceResync.syncStatusResyncCreate() - */ - public syncStatusResyncCreate( - requestOptions?: ForceResyncClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__syncStatusResyncCreate(requestOptions)); - } - - private async __syncStatusResyncCreate( - requestOptions?: ForceResyncClient.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/sync-status/resync", - ), - 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.forceResync.syncStatusResyncCreate.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/sync-status/resync", - ); - } -} diff --git a/src/api/resources/accounting/resources/forceResync/client/index.ts b/src/api/resources/accounting/resources/forceResync/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/accounting/resources/forceResync/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/accounting/resources/forceResync/exports.ts b/src/api/resources/accounting/resources/forceResync/exports.ts deleted file mode 100644 index e9e97915f..000000000 --- a/src/api/resources/accounting/resources/forceResync/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { ForceResyncClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/forceResync/index.ts b/src/api/resources/accounting/resources/forceResync/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/forceResync/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/resources/generalLedgerTransactions/client/Client.ts b/src/api/resources/accounting/resources/generalLedgerTransactions/client/Client.ts deleted file mode 100644 index 7a475e586..000000000 --- a/src/api/resources/accounting/resources/generalLedgerTransactions/client/Client.ts +++ /dev/null @@ -1,239 +0,0 @@ -// 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 GeneralLedgerTransactionsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class GeneralLedgerTransactionsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: GeneralLedgerTransactionsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `GeneralLedgerTransaction` objects. - * - * @param {Merge.accounting.GeneralLedgerTransactionsListRequest} request - * @param {GeneralLedgerTransactionsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } - - /** - * Returns a `GeneralLedgerTransaction` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.GeneralLedgerTransactionsRetrieveRequest} request - * @param {GeneralLedgerTransactionsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.generalLedgerTransactions.retrieve("id", { - * expand: "accounting_period", - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.GeneralLedgerTransactionsRetrieveRequest = {}, - requestOptions?: GeneralLedgerTransactionsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.GeneralLedgerTransactionsRetrieveRequest = {}, - requestOptions?: GeneralLedgerTransactionsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.GeneralLedgerTransactionsRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `accounting/v1/general-ledger-transactions/${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.GeneralLedgerTransaction.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}", - ); - } -} diff --git a/src/api/resources/accounting/resources/generalLedgerTransactions/client/index.ts b/src/api/resources/accounting/resources/generalLedgerTransactions/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/generalLedgerTransactions/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/generalLedgerTransactions/client/requests/GeneralLedgerTransactionsListRequest.ts b/src/api/resources/accounting/resources/generalLedgerTransactions/client/requests/GeneralLedgerTransactionsListRequest.ts deleted file mode 100644 index cc65774fd..000000000 --- a/src/api/resources/accounting/resources/generalLedgerTransactions/client/requests/GeneralLedgerTransactionsListRequest.ts +++ /dev/null @@ -1,53 +0,0 @@ -// 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", - * 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" - * } - */ -export interface GeneralLedgerTransactionsListRequest { - /** If provided, will only return general ledger transactions 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.GeneralLedgerTransactionsListRequestExpand; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - pageSize?: number; - /** If provided, will only return objects posted after this datetime. */ - postedDateAfter?: Date; - /** If provided, will only return objects posted before this datetime. */ - postedDateBefore?: Date; - /** The API provider's ID for the given object. */ - remoteId?: string; -} diff --git a/src/api/resources/accounting/resources/generalLedgerTransactions/client/requests/GeneralLedgerTransactionsRetrieveRequest.ts b/src/api/resources/accounting/resources/generalLedgerTransactions/client/requests/GeneralLedgerTransactionsRetrieveRequest.ts deleted file mode 100644 index 8107472a3..000000000 --- a/src/api/resources/accounting/resources/generalLedgerTransactions/client/requests/GeneralLedgerTransactionsRetrieveRequest.ts +++ /dev/null @@ -1,20 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -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; - /** 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; -} diff --git a/src/api/resources/accounting/resources/generalLedgerTransactions/client/requests/index.ts b/src/api/resources/accounting/resources/generalLedgerTransactions/client/requests/index.ts deleted file mode 100644 index 33112d702..000000000 --- a/src/api/resources/accounting/resources/generalLedgerTransactions/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { GeneralLedgerTransactionsListRequest } from "./GeneralLedgerTransactionsListRequest"; -export type { GeneralLedgerTransactionsRetrieveRequest } from "./GeneralLedgerTransactionsRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/generalLedgerTransactions/exports.ts b/src/api/resources/accounting/resources/generalLedgerTransactions/exports.ts deleted file mode 100644 index 699d27542..000000000 --- a/src/api/resources/accounting/resources/generalLedgerTransactions/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { GeneralLedgerTransactionsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/generalLedgerTransactions/index.ts b/src/api/resources/accounting/resources/generalLedgerTransactions/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/accounting/resources/generalLedgerTransactions/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/api/resources/accounting/resources/generalLedgerTransactions/types/index.ts deleted file mode 100644 index e77fb4471..000000000 --- a/src/api/resources/accounting/resources/generalLedgerTransactions/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./GeneralLedgerTransactionsListRequestExpand"; -export * from "./GeneralLedgerTransactionsRetrieveRequestExpand"; diff --git a/src/api/resources/accounting/resources/generateKey/client/Client.ts b/src/api/resources/accounting/resources/generateKey/client/Client.ts deleted file mode 100644 index 748e7d41c..000000000 --- a/src/api/resources/accounting/resources/generateKey/client/Client.ts +++ /dev/null @@ -1,99 +0,0 @@ -// 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 GenerateKeyClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class GenerateKeyClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: GenerateKeyClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Create a remote key. - * - * @param {Merge.accounting.GenerateRemoteKeyRequest} request - * @param {GenerateKeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.generateKey.create({ - * name: "Remote Deployment Key 1" - * }) - */ - public create( - request: Merge.accounting.GenerateRemoteKeyRequest, - requestOptions?: GenerateKeyClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.accounting.GenerateRemoteKeyRequest, - requestOptions?: GenerateKeyClient.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/generate-key", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.accounting.GenerateRemoteKeyRequest.jsonOrThrow(request, { - 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.RemoteKey.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/generate-key"); - } -} diff --git a/src/api/resources/accounting/resources/generateKey/client/index.ts b/src/api/resources/accounting/resources/generateKey/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/generateKey/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts b/src/api/resources/accounting/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts deleted file mode 100644 index 923e28af4..000000000 --- a/src/api/resources/accounting/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * name: "Remote Deployment Key 1" - * } - */ -export interface GenerateRemoteKeyRequest { - /** The name of the remote key */ - name: string; -} diff --git a/src/api/resources/accounting/resources/generateKey/client/requests/index.ts b/src/api/resources/accounting/resources/generateKey/client/requests/index.ts deleted file mode 100644 index 61b0bc4ac..000000000 --- a/src/api/resources/accounting/resources/generateKey/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { GenerateRemoteKeyRequest } from "./GenerateRemoteKeyRequest"; diff --git a/src/api/resources/accounting/resources/generateKey/exports.ts b/src/api/resources/accounting/resources/generateKey/exports.ts deleted file mode 100644 index e6761067f..000000000 --- a/src/api/resources/accounting/resources/generateKey/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { GenerateKeyClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/generateKey/index.ts b/src/api/resources/accounting/resources/generateKey/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/generateKey/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/resources/incomeStatements/client/Client.ts b/src/api/resources/accounting/resources/incomeStatements/client/Client.ts deleted file mode 100644 index 9f72f7a11..000000000 --- a/src/api/resources/accounting/resources/incomeStatements/client/Client.ts +++ /dev/null @@ -1,223 +0,0 @@ -// 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 IncomeStatementsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class IncomeStatementsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: IncomeStatementsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `IncomeStatement` objects. - * - * @param {Merge.accounting.IncomeStatementsListRequest} request - * @param {IncomeStatementsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } - - /** - * Returns an `IncomeStatement` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.IncomeStatementsRetrieveRequest} request - * @param {IncomeStatementsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.incomeStatements.retrieve("id", { - * expand: "company", - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.IncomeStatementsRetrieveRequest = {}, - requestOptions?: IncomeStatementsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.IncomeStatementsRetrieveRequest = {}, - requestOptions?: IncomeStatementsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - expand: expand != null ? expand : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/${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.IncomeStatement.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}", - ); - } -} diff --git a/src/api/resources/accounting/resources/incomeStatements/client/index.ts b/src/api/resources/accounting/resources/incomeStatements/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/incomeStatements/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/incomeStatements/client/requests/IncomeStatementsListRequest.ts b/src/api/resources/accounting/resources/incomeStatements/client/requests/IncomeStatementsListRequest.ts deleted file mode 100644 index 6d8bda5d6..000000000 --- a/src/api/resources/accounting/resources/incomeStatements/client/requests/IncomeStatementsListRequest.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * companyId: "company_id", - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * 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" - * } - */ -export interface IncomeStatementsListRequest { - /** If provided, will only return income statements for this company. */ - companyId?: string; - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "company"; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - 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 deleted file mode 100644 index 8b193e228..000000000 --- a/src/api/resources/accounting/resources/incomeStatements/client/requests/IncomeStatementsRetrieveRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @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"; - /** 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; -} diff --git a/src/api/resources/accounting/resources/incomeStatements/client/requests/index.ts b/src/api/resources/accounting/resources/incomeStatements/client/requests/index.ts deleted file mode 100644 index 4bce26baf..000000000 --- a/src/api/resources/accounting/resources/incomeStatements/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { IncomeStatementsListRequest } from "./IncomeStatementsListRequest"; -export type { IncomeStatementsRetrieveRequest } from "./IncomeStatementsRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/incomeStatements/exports.ts b/src/api/resources/accounting/resources/incomeStatements/exports.ts deleted file mode 100644 index 689b3ecf5..000000000 --- a/src/api/resources/accounting/resources/incomeStatements/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { IncomeStatementsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/incomeStatements/index.ts b/src/api/resources/accounting/resources/incomeStatements/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/incomeStatements/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/resources/index.ts b/src/api/resources/accounting/resources/index.ts deleted file mode 100644 index 94fd04b76..000000000 --- a/src/api/resources/accounting/resources/index.ts +++ /dev/null @@ -1,106 +0,0 @@ -export * as accountDetails from "./accountDetails"; -export * as accountingPeriods from "./accountingPeriods"; -export * from "./accountingPeriods/client/requests"; -export * as accounts from "./accounts"; -export * from "./accounts/client/requests"; -export * from "./accounts/types"; -export * as accountToken from "./accountToken"; -export * as addresses from "./addresses"; -export * from "./addresses/client/requests"; -export * as asyncPassthrough from "./asyncPassthrough"; -export * from "./asyncPassthrough/types"; -export * as asyncTasks from "./asyncTasks"; -export * as attachments from "./attachments"; -export * from "./attachments/client/requests"; -export * as auditTrail from "./auditTrail"; -export * from "./auditTrail/client/requests"; -export * as availableActions from "./availableActions"; -export * as balanceSheets from "./balanceSheets"; -export * from "./balanceSheets/client/requests"; -export * as bankFeedAccounts from "./bankFeedAccounts"; -export * from "./bankFeedAccounts/client/requests"; -export * as bankFeedTransactions from "./bankFeedTransactions"; -export * from "./bankFeedTransactions/client/requests"; -export * as cashFlowStatements from "./cashFlowStatements"; -export * from "./cashFlowStatements/client/requests"; -export * as companyInfo from "./companyInfo"; -export * from "./companyInfo/client/requests"; -export * from "./companyInfo/types"; -export * as contacts from "./contacts"; -export * from "./contacts/client/requests"; -export * from "./contacts/types"; -export * as creditNotes from "./creditNotes"; -export * from "./creditNotes/client/requests"; -export * from "./creditNotes/types"; -export * as deleteAccount from "./deleteAccount"; -export * as employees from "./employees"; -export * from "./employees/client/requests"; -export * as expenseReports from "./expenseReports"; -export * from "./expenseReports/client/requests"; -export * from "./expenseReports/types"; -export * as expenses from "./expenses"; -export * from "./expenses/client/requests"; -export * from "./expenses/types"; -export * as fieldMapping from "./fieldMapping"; -export * from "./fieldMapping/client/requests"; -export * as forceResync from "./forceResync"; -export * as generalLedgerTransactions from "./generalLedgerTransactions"; -export * from "./generalLedgerTransactions/client/requests"; -export * from "./generalLedgerTransactions/types"; -export * as generateKey from "./generateKey"; -export * from "./generateKey/client/requests"; -export * as incomeStatements from "./incomeStatements"; -export * from "./incomeStatements/client/requests"; -export * as invoices from "./invoices"; -export * from "./invoices/client/requests"; -export * from "./invoices/types"; -export * as issues from "./issues"; -export * from "./issues/client/requests"; -export * from "./issues/types"; -export * as items from "./items"; -export * from "./items/client/requests"; -export * from "./items/types"; -export * as journalEntries from "./journalEntries"; -export * from "./journalEntries/client/requests"; -export * from "./journalEntries/types"; -export * as linkedAccounts from "./linkedAccounts"; -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 paymentMethods from "./paymentMethods"; -export * from "./paymentMethods/client/requests"; -export * as payments from "./payments"; -export * from "./payments/client/requests"; -export * from "./payments/types"; -export * as paymentTerms from "./paymentTerms"; -export * from "./paymentTerms/client/requests"; -export * as phoneNumbers from "./phoneNumbers"; -export * from "./phoneNumbers/client/requests"; -export * as projects from "./projects"; -export * from "./projects/client/requests"; -export * from "./projects/types"; -export * as purchaseOrders from "./purchaseOrders"; -export * from "./purchaseOrders/client/requests"; -export * from "./purchaseOrders/types"; -export * as regenerateKey from "./regenerateKey"; -export * from "./regenerateKey/client/requests"; -export * as scopes from "./scopes"; -export * from "./scopes/client/requests"; -export * as syncStatus from "./syncStatus"; -export * from "./syncStatus/client/requests"; -export * as taxRates from "./taxRates"; -export * from "./taxRates/client/requests"; -export * as trackingCategories from "./trackingCategories"; -export * from "./trackingCategories/client/requests"; -export * from "./trackingCategories/types"; -export * as transactions from "./transactions"; -export * from "./transactions/client/requests"; -export * from "./transactions/types"; -export * as vendorCredits from "./vendorCredits"; -export * from "./vendorCredits/client/requests"; -export * from "./vendorCredits/types"; -export * as webhookReceivers from "./webhookReceivers"; -export * from "./webhookReceivers/client/requests"; diff --git a/src/api/resources/accounting/resources/invoices/client/Client.ts b/src/api/resources/accounting/resources/invoices/client/Client.ts deleted file mode 100644 index 0986d0bff..000000000 --- a/src/api/resources/accounting/resources/invoices/client/Client.ts +++ /dev/null @@ -1,774 +0,0 @@ -// 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 InvoicesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class InvoicesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: InvoicesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Invoice` objects. - * - * @param {Merge.accounting.InvoicesListRequest} request - * @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * 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.InvoiceEndpointRequest} request - * @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.invoices.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public create( - request: Merge.accounting.InvoiceEndpointRequest, - requestOptions?: InvoicesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.accounting.InvoiceEndpointRequest, - requestOptions?: InvoicesClient.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/invoices", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.accounting.InvoiceEndpointRequest.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.InvoiceResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/invoices"); - } - - /** - * Returns an `Invoice` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.InvoicesRetrieveRequest} request - * @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.invoices.retrieve("id", { - * expand: "accounting_period", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * remoteFields: "type", - * showEnumOrigins: "type" - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.InvoicesRetrieveRequest = {}, - requestOptions?: InvoicesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.InvoicesRetrieveRequest = {}, - requestOptions?: InvoicesClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeRemoteFields, includeShellData, remoteFields, showEnumOrigins } = - request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.InvoicesRetrieveRequestExpand.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/invoices/${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.Invoice.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } - - /** - * Updates an `Invoice` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.PatchedInvoiceEndpointRequest} request - * @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.invoices.partialUpdate("id", { - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public partialUpdate( - id: string, - request: Merge.accounting.PatchedInvoiceEndpointRequest, - requestOptions?: InvoicesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__partialUpdate(id, request, requestOptions)); - } - - private async __partialUpdate( - id: string, - request: Merge.accounting.PatchedInvoiceEndpointRequest, - requestOptions?: InvoicesClient.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/invoices/${core.url.encodePathParam(id)}`, - ), - method: "PATCH", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.accounting.PatchedInvoiceEndpointRequest.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.InvoiceResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "PATCH", - "/accounting/v1/invoices/{id}", - ); - } - - /** - * 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 lineItemsRemoteFieldClassesList( - request: Merge.accounting.InvoicesLineItemsRemoteFieldClassesListRequest = {}, - requestOptions?: InvoicesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__lineItemsRemoteFieldClassesList(request, requestOptions)); - } - - private async __lineItemsRemoteFieldClassesList( - request: Merge.accounting.InvoicesLineItemsRemoteFieldClassesListRequest = {}, - 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, - ); - const _response = await (this._options.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", - ); - } - - /** - * Returns metadata for `Invoice` PATCHs. - * - * @param {string} id - * @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.invoices.metaPatchRetrieve("id") - */ - public metaPatchRetrieve( - id: string, - requestOptions?: InvoicesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPatchRetrieve(id, requestOptions)); - } - - private async __metaPatchRetrieve( - id: string, - requestOptions?: InvoicesClient.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/invoices/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, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/meta/patch/{id}", - ); - } - - /** - * Returns metadata for `Invoice` POSTs. - * - * @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.invoices.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: InvoicesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: InvoicesClient.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/invoices/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/invoices/meta/post", - ); - } - - /** - * Returns a list of `RemoteFieldClass` objects. - * - * @param {Merge.accounting.InvoicesRemoteFieldClassesListRequest} request - * @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.invoices.remoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * }) - */ - public remoteFieldClassesList( - request: Merge.accounting.InvoicesRemoteFieldClassesListRequest = {}, - requestOptions?: InvoicesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); - } - - private 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, - ); - const _response = await (this._options.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", - ); - } -} diff --git a/src/api/resources/accounting/resources/invoices/client/index.ts b/src/api/resources/accounting/resources/invoices/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/invoices/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/invoices/client/requests/InvoiceEndpointRequest.ts b/src/api/resources/accounting/resources/invoices/client/requests/InvoiceEndpointRequest.ts deleted file mode 100644 index 48e9beeac..000000000 --- a/src/api/resources/accounting/resources/invoices/client/requests/InvoiceEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface InvoiceEndpointRequest { - /** Whether to include debug fields (such as log file links) in the response. */ - isDebugMode?: boolean; - /** Whether or not third-party updates should be run asynchronously. */ - runAsync?: boolean; - model: Merge.accounting.InvoiceRequest; -} diff --git a/src/api/resources/accounting/resources/invoices/client/requests/InvoicesLineItemsRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/invoices/client/requests/InvoicesLineItemsRemoteFieldClassesListRequest.ts deleted file mode 100644 index bc270d77f..000000000 --- a/src/api/resources/accounting/resources/invoices/client/requests/InvoicesLineItemsRemoteFieldClassesListRequest.ts +++ /dev/null @@ -1,30 +0,0 @@ -// 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 InvoicesLineItemsRemoteFieldClassesListRequest { - /** 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. */ - 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 deleted file mode 100644 index 3d6b57134..000000000 --- a/src/api/resources/accounting/resources/invoices/client/requests/InvoicesListRequest.ts +++ /dev/null @@ -1,88 +0,0 @@ -// 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", - * 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" - * } - */ -export interface InvoicesListRequest { - /** 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.InvoicesListRequestExpand; - /** 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. */ - 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.InvoicesListRequestStatus; - /** - * If provided, will only return Invoices with this type. - * - * * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - * * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - */ - type?: Merge.accounting.InvoicesListRequestType; -} diff --git a/src/api/resources/accounting/resources/invoices/client/requests/InvoicesRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/invoices/client/requests/InvoicesRemoteFieldClassesListRequest.ts deleted file mode 100644 index 63bf03f40..000000000 --- a/src/api/resources/accounting/resources/invoices/client/requests/InvoicesRemoteFieldClassesListRequest.ts +++ /dev/null @@ -1,30 +0,0 @@ -// 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 InvoicesRemoteFieldClassesListRequest { - /** 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. */ - 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 deleted file mode 100644 index 229dde4b6..000000000 --- a/src/api/resources/accounting/resources/invoices/client/requests/InvoicesRetrieveRequest.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * expand: "accounting_period", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * remoteFields: "type", - * showEnumOrigins: "type" - * } - */ -export interface InvoicesRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.InvoicesRetrieveRequestExpand; - /** 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?: "type"; - /** 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"; -} diff --git a/src/api/resources/accounting/resources/invoices/client/requests/PatchedInvoiceEndpointRequest.ts b/src/api/resources/accounting/resources/invoices/client/requests/PatchedInvoiceEndpointRequest.ts deleted file mode 100644 index 7be3174e6..000000000 --- a/src/api/resources/accounting/resources/invoices/client/requests/PatchedInvoiceEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface PatchedInvoiceEndpointRequest { - /** Whether to include debug fields (such as log file links) in the response. */ - isDebugMode?: boolean; - /** Whether or not third-party updates should be run asynchronously. */ - runAsync?: boolean; - model: Merge.accounting.InvoiceRequest; -} diff --git a/src/api/resources/accounting/resources/invoices/client/requests/index.ts b/src/api/resources/accounting/resources/invoices/client/requests/index.ts deleted file mode 100644 index 07e589cf3..000000000 --- a/src/api/resources/accounting/resources/invoices/client/requests/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -export type { InvoiceEndpointRequest } from "./InvoiceEndpointRequest"; -export type { InvoicesLineItemsRemoteFieldClassesListRequest } from "./InvoicesLineItemsRemoteFieldClassesListRequest"; -export type { InvoicesListRequest } from "./InvoicesListRequest"; -export type { InvoicesRemoteFieldClassesListRequest } from "./InvoicesRemoteFieldClassesListRequest"; -export type { InvoicesRetrieveRequest } from "./InvoicesRetrieveRequest"; -export type { PatchedInvoiceEndpointRequest } from "./PatchedInvoiceEndpointRequest"; diff --git a/src/api/resources/accounting/resources/invoices/exports.ts b/src/api/resources/accounting/resources/invoices/exports.ts deleted file mode 100644 index ee7f23975..000000000 --- a/src/api/resources/accounting/resources/invoices/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { InvoicesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/invoices/index.ts b/src/api/resources/accounting/resources/invoices/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/accounting/resources/invoices/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/InvoicesListRequestStatus.ts b/src/api/resources/accounting/resources/invoices/types/InvoicesListRequestStatus.ts deleted file mode 100644 index ce5bf4f71..000000000 --- a/src/api/resources/accounting/resources/invoices/types/InvoicesListRequestStatus.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const InvoicesListRequestStatus = { - Draft: "DRAFT", - Open: "OPEN", - Paid: "PAID", - PartiallyPaid: "PARTIALLY_PAID", - Submitted: "SUBMITTED", - Void: "VOID", -} as const; -export type InvoicesListRequestStatus = (typeof InvoicesListRequestStatus)[keyof typeof InvoicesListRequestStatus]; diff --git a/src/api/resources/accounting/resources/invoices/types/InvoicesListRequestType.ts b/src/api/resources/accounting/resources/invoices/types/InvoicesListRequestType.ts deleted file mode 100644 index 325d4dd7a..000000000 --- a/src/api/resources/accounting/resources/invoices/types/InvoicesListRequestType.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const InvoicesListRequestType = { - AccountsPayable: "ACCOUNTS_PAYABLE", - AccountsReceivable: "ACCOUNTS_RECEIVABLE", -} as const; -export type InvoicesListRequestType = (typeof InvoicesListRequestType)[keyof typeof InvoicesListRequestType]; 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/index.ts b/src/api/resources/accounting/resources/invoices/types/index.ts deleted file mode 100644 index 6066a0bb6..000000000 --- a/src/api/resources/accounting/resources/invoices/types/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./InvoicesListRequestExpand"; -export * from "./InvoicesListRequestStatus"; -export * from "./InvoicesListRequestType"; -export * from "./InvoicesRetrieveRequestExpand"; diff --git a/src/api/resources/accounting/resources/issues/client/Client.ts b/src/api/resources/accounting/resources/issues/client/Client.ts deleted file mode 100644 index 5ff77e394..000000000 --- a/src/api/resources/accounting/resources/issues/client/Client.ts +++ /dev/null @@ -1,211 +0,0 @@ -// 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 IssuesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class IssuesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: IssuesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Gets all issues for Organization. - * - * @param {Merge.accounting.IssuesListRequest} request - * @param {IssuesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Get a specific issue. - * - * @param {string} id - * @param {IssuesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.issues.retrieve("id") - */ - public retrieve( - id: string, - requestOptions?: IssuesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, requestOptions)); - } - - private async __retrieve( - id: string, - requestOptions?: IssuesClient.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/issues/${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.Issue.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/accounting/resources/issues/client/index.ts b/src/api/resources/accounting/resources/issues/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/issues/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/issues/client/requests/IssuesListRequest.ts b/src/api/resources/accounting/resources/issues/client/requests/IssuesListRequest.ts deleted file mode 100644 index 1365131c7..000000000 --- a/src/api/resources/accounting/resources/issues/client/requests/IssuesListRequest.ts +++ /dev/null @@ -1,55 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * 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" - * } - */ -export interface IssuesListRequest { - accountToken?: string; - /** The pagination cursor value. */ - cursor?: string; - /** If included, will only include issues whose most recent action occurred before this time */ - endDate?: string; - endUserOrganizationName?: string; - /** If provided, will only return issues whose first incident time was after this datetime. */ - firstIncidentTimeAfter?: Date; - /** If provided, will only return issues whose first incident time was before this datetime. */ - firstIncidentTimeBefore?: Date; - /** If true, will include muted issues */ - includeMuted?: string; - integrationName?: string; - /** If provided, will only return issues whose last incident time was after this datetime. */ - lastIncidentTimeAfter?: Date; - /** If provided, will only return issues whose last incident time was before this datetime. */ - lastIncidentTimeBefore?: Date; - /** If provided, will only include issues pertaining to the linked account passed in. */ - linkedAccountId?: string; - /** Number of results to return per page. */ - pageSize?: number; - /** If included, will only include issues whose most recent action occurred after this time */ - startDate?: string; - /** - * Status of the issue. Options: ('ONGOING', 'RESOLVED') - * - * * `ONGOING` - ONGOING - * * `RESOLVED` - RESOLVED - */ - status?: Merge.accounting.IssuesListRequestStatus; -} diff --git a/src/api/resources/accounting/resources/issues/client/requests/index.ts b/src/api/resources/accounting/resources/issues/client/requests/index.ts deleted file mode 100644 index 169c5eb5a..000000000 --- a/src/api/resources/accounting/resources/issues/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { IssuesListRequest } from "./IssuesListRequest"; diff --git a/src/api/resources/accounting/resources/issues/exports.ts b/src/api/resources/accounting/resources/issues/exports.ts deleted file mode 100644 index 85da34cb7..000000000 --- a/src/api/resources/accounting/resources/issues/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { IssuesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/issues/index.ts b/src/api/resources/accounting/resources/issues/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/accounting/resources/issues/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/accounting/resources/issues/types/IssuesListRequestStatus.ts b/src/api/resources/accounting/resources/issues/types/IssuesListRequestStatus.ts deleted file mode 100644 index 6429e7e23..000000000 --- a/src/api/resources/accounting/resources/issues/types/IssuesListRequestStatus.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const IssuesListRequestStatus = { - Ongoing: "ONGOING", - Resolved: "RESOLVED", -} as const; -export type IssuesListRequestStatus = (typeof IssuesListRequestStatus)[keyof typeof IssuesListRequestStatus]; diff --git a/src/api/resources/accounting/resources/issues/types/index.ts b/src/api/resources/accounting/resources/issues/types/index.ts deleted file mode 100644 index 554cdf48c..000000000 --- a/src/api/resources/accounting/resources/issues/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./IssuesListRequestStatus"; diff --git a/src/api/resources/accounting/resources/items/client/Client.ts b/src/api/resources/accounting/resources/items/client/Client.ts deleted file mode 100644 index a19022648..000000000 --- a/src/api/resources/accounting/resources/items/client/Client.ts +++ /dev/null @@ -1,537 +0,0 @@ -// 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 ItemsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class ItemsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: ItemsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Item` objects. - * - * @param {Merge.accounting.ItemsListRequest} request - * @param {ItemsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Creates an `Item` object with the given values. - * - * @param {Merge.accounting.ItemEndpointRequest} request - * @param {ItemsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.items.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public create( - request: Merge.accounting.ItemEndpointRequest, - requestOptions?: ItemsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.accounting.ItemEndpointRequest, - requestOptions?: ItemsClient.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/items", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.accounting.ItemEndpointRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, - }); - if (_response.ok) { - return { - data: serializers.accounting.ItemResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/accounting/v1/items"); - } - - /** - * Returns an `Item` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.ItemsRetrieveRequest} request - * @param {ItemsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.items.retrieve("id", { - * expand: "company", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "status", - * showEnumOrigins: "status" - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.ItemsRetrieveRequest = {}, - requestOptions?: ItemsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.ItemsRetrieveRequest = {}, - requestOptions?: ItemsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.ItemsRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - 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/items/${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.Item.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } - - /** - * Updates an `Item` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.PatchedItemEndpointRequest} request - * @param {ItemsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.items.partialUpdate("id", { - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public partialUpdate( - id: string, - request: Merge.accounting.PatchedItemEndpointRequest, - requestOptions?: ItemsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__partialUpdate(id, request, requestOptions)); - } - - private async __partialUpdate( - id: string, - request: Merge.accounting.PatchedItemEndpointRequest, - requestOptions?: ItemsClient.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/items/${core.url.encodePathParam(id)}`, - ), - method: "PATCH", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.accounting.PatchedItemEndpointRequest.jsonOrThrow(_body, { - unrecognizedObjectKeys: "strip", - }), - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, - }); - if (_response.ok) { - return { - data: serializers.accounting.ItemResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/accounting/v1/items/{id}"); - } - - /** - * Returns metadata for `Item` PATCHs. - * - * @param {string} id - * @param {ItemsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.items.metaPatchRetrieve("id") - */ - public metaPatchRetrieve( - id: string, - requestOptions?: ItemsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPatchRetrieve(id, requestOptions)); - } - - private async __metaPatchRetrieve( - id: string, - requestOptions?: ItemsClient.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/items/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, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/meta/patch/{id}", - ); - } - - /** - * Returns metadata for `Item` POSTs. - * - * @param {ItemsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.items.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: ItemsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: ItemsClient.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/items/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/items/meta/post", - ); - } -} diff --git a/src/api/resources/accounting/resources/items/client/index.ts b/src/api/resources/accounting/resources/items/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/items/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/items/client/requests/ItemEndpointRequest.ts b/src/api/resources/accounting/resources/items/client/requests/ItemEndpointRequest.ts deleted file mode 100644 index 81b3857cc..000000000 --- a/src/api/resources/accounting/resources/items/client/requests/ItemEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface ItemEndpointRequest { - /** Whether to include debug fields (such as log file links) in the response. */ - isDebugMode?: boolean; - /** Whether or not third-party updates should be run asynchronously. */ - runAsync?: boolean; - model: Merge.accounting.ItemRequestRequest; -} diff --git a/src/api/resources/accounting/resources/items/client/requests/ItemsListRequest.ts b/src/api/resources/accounting/resources/items/client/requests/ItemsListRequest.ts deleted file mode 100644 index d9e0451f7..000000000 --- a/src/api/resources/accounting/resources/items/client/requests/ItemsListRequest.ts +++ /dev/null @@ -1,53 +0,0 @@ -// 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", - * 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" - * } - */ -export interface ItemsListRequest { - /** If provided, will only return items for this company. */ - companyId?: string; - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.ItemsListRequestExpand; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - pageSize?: number; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: "status"; - /** The API provider's ID for the given object. */ - remoteId?: string; - /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ - showEnumOrigins?: "status"; -} diff --git a/src/api/resources/accounting/resources/items/client/requests/ItemsRetrieveRequest.ts b/src/api/resources/accounting/resources/items/client/requests/ItemsRetrieveRequest.ts deleted file mode 100644 index a675f786f..000000000 --- a/src/api/resources/accounting/resources/items/client/requests/ItemsRetrieveRequest.ts +++ /dev/null @@ -1,26 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * expand: "company", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "status", - * showEnumOrigins: "status" - * } - */ -export interface ItemsRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.ItemsRetrieveRequestExpand; - /** 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; - /** 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/items/client/requests/PatchedItemEndpointRequest.ts b/src/api/resources/accounting/resources/items/client/requests/PatchedItemEndpointRequest.ts deleted file mode 100644 index 9d7d5e233..000000000 --- a/src/api/resources/accounting/resources/items/client/requests/PatchedItemEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface PatchedItemEndpointRequest { - /** 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.PatchedItemRequestRequest; -} diff --git a/src/api/resources/accounting/resources/items/client/requests/index.ts b/src/api/resources/accounting/resources/items/client/requests/index.ts deleted file mode 100644 index ee1c37b7c..000000000 --- a/src/api/resources/accounting/resources/items/client/requests/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export type { ItemEndpointRequest } from "./ItemEndpointRequest"; -export type { ItemsListRequest } from "./ItemsListRequest"; -export type { ItemsRetrieveRequest } from "./ItemsRetrieveRequest"; -export type { PatchedItemEndpointRequest } from "./PatchedItemEndpointRequest"; diff --git a/src/api/resources/accounting/resources/items/exports.ts b/src/api/resources/accounting/resources/items/exports.ts deleted file mode 100644 index abdbe0fcf..000000000 --- a/src/api/resources/accounting/resources/items/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { ItemsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/items/index.ts b/src/api/resources/accounting/resources/items/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/accounting/resources/items/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/api/resources/accounting/resources/items/types/index.ts deleted file mode 100644 index 2d4c475ae..000000000 --- a/src/api/resources/accounting/resources/items/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./ItemsListRequestExpand"; -export * from "./ItemsRetrieveRequestExpand"; diff --git a/src/api/resources/accounting/resources/journalEntries/client/Client.ts b/src/api/resources/accounting/resources/journalEntries/client/Client.ts deleted file mode 100644 index abea0e10b..000000000 --- a/src/api/resources/accounting/resources/journalEntries/client/Client.ts +++ /dev/null @@ -1,595 +0,0 @@ -// 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 JournalEntriesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class JournalEntriesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: JournalEntriesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `JournalEntry` objects. - * - * @param {Merge.accounting.JournalEntriesListRequest} request - * @param {JournalEntriesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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") - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } - - /** - * Creates a `JournalEntry` object with the given values. - * - * @param {Merge.accounting.JournalEntryEndpointRequest} request - * @param {JournalEntriesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.journalEntries.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public create( - request: Merge.accounting.JournalEntryEndpointRequest, - requestOptions?: JournalEntriesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.accounting.JournalEntryEndpointRequest, - requestOptions?: JournalEntriesClient.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/journal-entries", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.accounting.JournalEntryEndpointRequest.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.JournalEntryResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/journal-entries", - ); - } - - /** - * Returns a `JournalEntry` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.JournalEntriesRetrieveRequest} request - * @param {JournalEntriesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.journalEntries.retrieve("id", { - * expand: "accounting_period", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.JournalEntriesRetrieveRequest = {}, - requestOptions?: JournalEntriesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.JournalEntriesRetrieveRequest = {}, - requestOptions?: JournalEntriesClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeRemoteFields, includeShellData } = request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.JournalEntriesRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `accounting/v1/journal-entries/${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.JournalEntry.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}", - ); - } - - /** - * Returns a list of `RemoteFieldClass` objects. - * - * @param {Merge.accounting.JournalEntriesLinesRemoteFieldClassesListRequest} request - * @param {JournalEntriesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.journalEntries.linesRemoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } - - /** - * Returns metadata for `JournalEntry` POSTs. - * - * @param {JournalEntriesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.journalEntries.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: JournalEntriesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: JournalEntriesClient.RequestOptions, - ): Promise> { - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/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/journal-entries/meta/post", - ); - } - - /** - * Returns a list of `RemoteFieldClass` objects. - * - * @param {Merge.accounting.JournalEntriesRemoteFieldClassesListRequest} request - * @param {JournalEntriesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.journalEntries.remoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * }) - */ - public remoteFieldClassesList( - request: Merge.accounting.JournalEntriesRemoteFieldClassesListRequest = {}, - requestOptions?: JournalEntriesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); - } - - private 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, - ); - const _response = await (this._options.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", - ); - } -} diff --git a/src/api/resources/accounting/resources/journalEntries/client/index.ts b/src/api/resources/accounting/resources/journalEntries/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/journalEntries/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesLinesRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesLinesRemoteFieldClassesListRequest.ts deleted file mode 100644 index db0bd44e6..000000000 --- a/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesLinesRemoteFieldClassesListRequest.ts +++ /dev/null @@ -1,30 +0,0 @@ -// 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 JournalEntriesLinesRemoteFieldClassesListRequest { - /** 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. */ - 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 deleted file mode 100644 index 29d32ceca..000000000 --- a/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesListRequest.ts +++ /dev/null @@ -1,56 +0,0 @@ -// 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", - * 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") - * } - */ -export interface JournalEntriesListRequest { - /** If provided, will only return journal entries for this company. */ - companyId?: string; - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.JournalEntriesListRequestExpand; - /** 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. */ - pageSize?: number; - /** The API provider's ID for the given object. */ - remoteId?: string; - /** If provided, will only return objects created after this datetime. */ - transactionDateAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - transactionDateBefore?: Date; -} diff --git a/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesRemoteFieldClassesListRequest.ts deleted file mode 100644 index 28540fe92..000000000 --- a/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesRemoteFieldClassesListRequest.ts +++ /dev/null @@ -1,30 +0,0 @@ -// 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 JournalEntriesRemoteFieldClassesListRequest { - /** 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. */ - 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 deleted file mode 100644 index 72fd451b6..000000000 --- a/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesRetrieveRequest.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * expand: "accounting_period", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * } - */ -export interface JournalEntriesRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.JournalEntriesRetrieveRequestExpand; - /** 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; -} diff --git a/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntryEndpointRequest.ts b/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntryEndpointRequest.ts deleted file mode 100644 index f4f70855a..000000000 --- a/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntryEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface JournalEntryEndpointRequest { - /** Whether to include debug fields (such as log file links) in the response. */ - isDebugMode?: boolean; - /** Whether or not third-party updates should be run asynchronously. */ - runAsync?: boolean; - model: Merge.accounting.JournalEntryRequest; -} diff --git a/src/api/resources/accounting/resources/journalEntries/client/requests/index.ts b/src/api/resources/accounting/resources/journalEntries/client/requests/index.ts deleted file mode 100644 index cda14e06d..000000000 --- a/src/api/resources/accounting/resources/journalEntries/client/requests/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type { JournalEntriesLinesRemoteFieldClassesListRequest } from "./JournalEntriesLinesRemoteFieldClassesListRequest"; -export type { JournalEntriesListRequest } from "./JournalEntriesListRequest"; -export type { JournalEntriesRemoteFieldClassesListRequest } from "./JournalEntriesRemoteFieldClassesListRequest"; -export type { JournalEntriesRetrieveRequest } from "./JournalEntriesRetrieveRequest"; -export type { JournalEntryEndpointRequest } from "./JournalEntryEndpointRequest"; diff --git a/src/api/resources/accounting/resources/journalEntries/exports.ts b/src/api/resources/accounting/resources/journalEntries/exports.ts deleted file mode 100644 index 3166f8a30..000000000 --- a/src/api/resources/accounting/resources/journalEntries/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { JournalEntriesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/journalEntries/index.ts b/src/api/resources/accounting/resources/journalEntries/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/accounting/resources/journalEntries/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/api/resources/accounting/resources/journalEntries/types/index.ts deleted file mode 100644 index d0572d020..000000000 --- a/src/api/resources/accounting/resources/journalEntries/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./JournalEntriesListRequestExpand"; -export * from "./JournalEntriesRetrieveRequestExpand"; diff --git a/src/api/resources/accounting/resources/linkToken/client/Client.ts b/src/api/resources/accounting/resources/linkToken/client/Client.ts deleted file mode 100644 index 5bab57788..000000000 --- a/src/api/resources/accounting/resources/linkToken/client/Client.ts +++ /dev/null @@ -1,102 +0,0 @@ -// 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 LinkTokenClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class LinkTokenClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: LinkTokenClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Creates a link token to be used when linking a new end user. - * - * @param {Merge.accounting.EndUserDetailsRequest} request - * @param {LinkTokenClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.linkToken.create({ - * endUserEmailAddress: "example@gmail.com", - * endUserOrganizationName: "Test Organization", - * endUserOriginId: "12345", - * categories: ["hris", "ats"] - * }) - */ - public create( - request: Merge.accounting.EndUserDetailsRequest, - requestOptions?: LinkTokenClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.accounting.EndUserDetailsRequest, - requestOptions?: LinkTokenClient.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/link-token", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.accounting.EndUserDetailsRequest.jsonOrThrow(request, { - 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.LinkToken.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/link-token"); - } -} diff --git a/src/api/resources/accounting/resources/linkToken/client/index.ts b/src/api/resources/accounting/resources/linkToken/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/linkToken/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/api/resources/accounting/resources/linkToken/client/requests/EndUserDetailsRequest.ts deleted file mode 100644 index 821552e52..000000000 --- a/src/api/resources/accounting/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ /dev/null @@ -1,49 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * endUserEmailAddress: "example@gmail.com", - * endUserOrganizationName: "Test Organization", - * endUserOriginId: "12345", - * categories: ["hris", "ats"] - * } - */ -export interface EndUserDetailsRequest { - /** Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. */ - endUserEmailAddress: string; - /** Your end user's organization. */ - endUserOrganizationName: string; - /** This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. */ - endUserOriginId: string; - /** The integration categories to show in Merge Link. */ - categories: Merge.accounting.CategoriesEnum[]; - /** The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. */ - integration?: string; - /** An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. */ - linkExpiryMins?: number; - /** Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. */ - shouldCreateMagicLinkUrl?: boolean; - /** Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. */ - hideAdminMagicLink?: boolean; - /** An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. */ - commonModels?: Merge.accounting.CommonModelScopesBodyRequest[]; - /** When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. */ - categoryCommonModelScopes?: Record< - string, - Merge.accounting.IndividualCommonModelScopeDeserializerRequest[] | undefined - >; - /** - * The following subset of IETF language tags can be used to configure localization. - * - * * `en` - en - * * `de` - de - */ - language?: Merge.accounting.EndUserDetailsRequestLanguage; - /** The boolean that indicates whether initial, periodic, and force syncs will be disabled. */ - areSyncsDisabled?: boolean; - /** A JSON object containing integration-specific configuration options. */ - integrationSpecificConfig?: Record; -} diff --git a/src/api/resources/accounting/resources/linkToken/client/requests/index.ts b/src/api/resources/accounting/resources/linkToken/client/requests/index.ts deleted file mode 100644 index 67eabb553..000000000 --- a/src/api/resources/accounting/resources/linkToken/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { EndUserDetailsRequest } from "./EndUserDetailsRequest"; diff --git a/src/api/resources/accounting/resources/linkToken/exports.ts b/src/api/resources/accounting/resources/linkToken/exports.ts deleted file mode 100644 index 10e007018..000000000 --- a/src/api/resources/accounting/resources/linkToken/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { LinkTokenClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/linkToken/index.ts b/src/api/resources/accounting/resources/linkToken/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/accounting/resources/linkToken/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/accounting/resources/linkToken/types/EndUserDetailsRequestLanguage.ts b/src/api/resources/accounting/resources/linkToken/types/EndUserDetailsRequestLanguage.ts deleted file mode 100644 index 68a9a7dfd..000000000 --- a/src/api/resources/accounting/resources/linkToken/types/EndUserDetailsRequestLanguage.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 following subset of IETF language tags can be used to configure localization. - * - * * `en` - en - * * `de` - de - */ -export type EndUserDetailsRequestLanguage = Merge.accounting.LanguageEnum | string; diff --git a/src/api/resources/accounting/resources/linkedAccounts/client/Client.ts b/src/api/resources/accounting/resources/linkedAccounts/client/Client.ts deleted file mode 100644 index 8e681524d..000000000 --- a/src/api/resources/accounting/resources/linkedAccounts/client/Client.ts +++ /dev/null @@ -1,146 +0,0 @@ -// 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 LinkedAccountsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class LinkedAccountsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: LinkedAccountsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * List linked accounts for your organization. - * - * @param {Merge.accounting.LinkedAccountsListRequest} request - * @param {LinkedAccountsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } -} diff --git a/src/api/resources/accounting/resources/linkedAccounts/client/index.ts b/src/api/resources/accounting/resources/linkedAccounts/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/linkedAccounts/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts b/src/api/resources/accounting/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts deleted file mode 100644 index 4fb089f78..000000000 --- a/src/api/resources/accounting/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts +++ /dev/null @@ -1,59 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * 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" - * } - */ -export interface LinkedAccountsListRequest { - /** - * Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - * - * * `hris` - hris - * * `ats` - ats - * * `accounting` - accounting - * * `ticketing` - ticketing - * * `crm` - crm - * * `mktg` - mktg - * * `filestorage` - filestorage - */ - category?: Merge.accounting.LinkedAccountsListRequestCategory; - /** The pagination cursor value. */ - cursor?: string; - /** If provided, will only return linked accounts associated with the given email address. */ - endUserEmailAddress?: string; - /** If provided, will only return linked accounts associated with the given organization name. */ - endUserOrganizationName?: string; - /** If provided, will only return linked accounts associated with the given origin ID. */ - endUserOriginId?: string; - /** Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. */ - endUserOriginIds?: string; - id?: string; - /** Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. */ - ids?: string; - /** If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. */ - includeDuplicates?: boolean; - /** If provided, will only return linked accounts associated with the given integration name. */ - 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. */ - pageSize?: number; - /** Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` */ - status?: string; -} diff --git a/src/api/resources/accounting/resources/linkedAccounts/client/requests/index.ts b/src/api/resources/accounting/resources/linkedAccounts/client/requests/index.ts deleted file mode 100644 index ae4db9c3b..000000000 --- a/src/api/resources/accounting/resources/linkedAccounts/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { LinkedAccountsListRequest } from "./LinkedAccountsListRequest"; diff --git a/src/api/resources/accounting/resources/linkedAccounts/exports.ts b/src/api/resources/accounting/resources/linkedAccounts/exports.ts deleted file mode 100644 index 236b70b1a..000000000 --- a/src/api/resources/accounting/resources/linkedAccounts/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { LinkedAccountsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/linkedAccounts/index.ts b/src/api/resources/accounting/resources/linkedAccounts/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/accounting/resources/linkedAccounts/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/accounting/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts b/src/api/resources/accounting/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts deleted file mode 100644 index 61bd028eb..000000000 --- a/src/api/resources/accounting/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const LinkedAccountsListRequestCategory = { - Accounting: "accounting", - Ats: "ats", - Crm: "crm", - Filestorage: "filestorage", - Hris: "hris", - Mktg: "mktg", - Ticketing: "ticketing", -} as const; -export type LinkedAccountsListRequestCategory = - (typeof LinkedAccountsListRequestCategory)[keyof typeof LinkedAccountsListRequestCategory]; diff --git a/src/api/resources/accounting/resources/linkedAccounts/types/index.ts b/src/api/resources/accounting/resources/linkedAccounts/types/index.ts deleted file mode 100644 index 91de6010a..000000000 --- a/src/api/resources/accounting/resources/linkedAccounts/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./LinkedAccountsListRequestCategory"; diff --git a/src/api/resources/accounting/resources/passthrough/client/Client.ts b/src/api/resources/accounting/resources/passthrough/client/Client.ts deleted file mode 100644 index 650b89548..000000000 --- a/src/api/resources/accounting/resources/passthrough/client/Client.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 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 PassthroughClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class PassthroughClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: PassthroughClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Pull data from an endpoint not currently supported by Merge. - * - * @param {Merge.accounting.DataPassthroughRequest} request - * @param {PassthroughClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.passthrough.create({ - * method: "GET", - * path: "/scooters" - * }) - */ - public create( - request: Merge.accounting.DataPassthroughRequest, - requestOptions?: PassthroughClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.accounting.DataPassthroughRequest, - requestOptions?: PassthroughClient.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/passthrough", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.accounting.DataPassthroughRequest.jsonOrThrow(request, { - 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.RemoteResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/passthrough"); - } -} diff --git a/src/api/resources/accounting/resources/passthrough/client/index.ts b/src/api/resources/accounting/resources/passthrough/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/accounting/resources/passthrough/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/accounting/resources/passthrough/exports.ts b/src/api/resources/accounting/resources/passthrough/exports.ts deleted file mode 100644 index 645fbb4b8..000000000 --- a/src/api/resources/accounting/resources/passthrough/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { PassthroughClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/passthrough/index.ts b/src/api/resources/accounting/resources/passthrough/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/passthrough/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/resources/paymentMethods/client/Client.ts b/src/api/resources/accounting/resources/paymentMethods/client/Client.ts deleted file mode 100644 index 718a2415c..000000000 --- a/src/api/resources/accounting/resources/paymentMethods/client/Client.ts +++ /dev/null @@ -1,194 +0,0 @@ -// 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 PaymentMethodsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class PaymentMethodsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: PaymentMethodsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `PaymentMethod` objects. - * - * @param {Merge.accounting.PaymentMethodsListRequest} request - * @param {PaymentMethodsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.paymentMethods.list({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * pageSize: 1 - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } - - /** - * Returns a `PaymentMethod` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.PaymentMethodsRetrieveRequest} request - * @param {PaymentMethodsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.paymentMethods.retrieve("id", { - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.PaymentMethodsRetrieveRequest = {}, - requestOptions?: PaymentMethodsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.PaymentMethodsRetrieveRequest = {}, - requestOptions?: PaymentMethodsClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `accounting/v1/payment-methods/${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.PaymentMethod.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}", - ); - } -} diff --git a/src/api/resources/accounting/resources/paymentMethods/client/index.ts b/src/api/resources/accounting/resources/paymentMethods/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/paymentMethods/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/paymentMethods/client/requests/PaymentMethodsListRequest.ts b/src/api/resources/accounting/resources/paymentMethods/client/requests/PaymentMethodsListRequest.ts deleted file mode 100644 index 47b9dc777..000000000 --- a/src/api/resources/accounting/resources/paymentMethods/client/requests/PaymentMethodsListRequest.ts +++ /dev/null @@ -1,24 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * pageSize: 1 - * } - */ -export interface PaymentMethodsListRequest { - /** The pagination cursor value. */ - cursor?: string; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** Number of results to return per page. */ - pageSize?: number; -} diff --git a/src/api/resources/accounting/resources/paymentMethods/client/requests/PaymentMethodsRetrieveRequest.ts b/src/api/resources/accounting/resources/paymentMethods/client/requests/PaymentMethodsRetrieveRequest.ts deleted file mode 100644 index 6b98b662a..000000000 --- a/src/api/resources/accounting/resources/paymentMethods/client/requests/PaymentMethodsRetrieveRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * includeRemoteData: true, - * includeShellData: true - * } - */ -export interface PaymentMethodsRetrieveRequest { - /** 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; -} diff --git a/src/api/resources/accounting/resources/paymentMethods/client/requests/index.ts b/src/api/resources/accounting/resources/paymentMethods/client/requests/index.ts deleted file mode 100644 index 79bb9bb92..000000000 --- a/src/api/resources/accounting/resources/paymentMethods/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { PaymentMethodsListRequest } from "./PaymentMethodsListRequest"; -export type { PaymentMethodsRetrieveRequest } from "./PaymentMethodsRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/paymentMethods/exports.ts b/src/api/resources/accounting/resources/paymentMethods/exports.ts deleted file mode 100644 index cdbe35c72..000000000 --- a/src/api/resources/accounting/resources/paymentMethods/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { PaymentMethodsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/paymentMethods/index.ts b/src/api/resources/accounting/resources/paymentMethods/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/paymentMethods/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/resources/paymentTerms/client/Client.ts b/src/api/resources/accounting/resources/paymentTerms/client/Client.ts deleted file mode 100644 index 35bf5c61c..000000000 --- a/src/api/resources/accounting/resources/paymentTerms/client/Client.ts +++ /dev/null @@ -1,193 +0,0 @@ -// 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 PaymentTermsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class PaymentTermsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: PaymentTermsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `PaymentTerm` objects. - * - * @param {Merge.accounting.PaymentTermsListRequest} request - * @param {PaymentTermsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.paymentTerms.list({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "company", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * pageSize: 1 - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `PaymentTerm` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.PaymentTermsRetrieveRequest} request - * @param {PaymentTermsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.paymentTerms.retrieve("id", { - * expand: "company", - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.PaymentTermsRetrieveRequest = {}, - requestOptions?: PaymentTermsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.PaymentTermsRetrieveRequest = {}, - requestOptions?: PaymentTermsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - expand: expand != null ? expand : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/${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.PaymentTerm.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}", - ); - } -} diff --git a/src/api/resources/accounting/resources/paymentTerms/client/index.ts b/src/api/resources/accounting/resources/paymentTerms/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/paymentTerms/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/paymentTerms/client/requests/PaymentTermsListRequest.ts b/src/api/resources/accounting/resources/paymentTerms/client/requests/PaymentTermsListRequest.ts deleted file mode 100644 index b4968983b..000000000 --- a/src/api/resources/accounting/resources/paymentTerms/client/requests/PaymentTermsListRequest.ts +++ /dev/null @@ -1,27 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "company", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * pageSize: 1 - * } - */ -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"; - /** 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. */ - 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 deleted file mode 100644 index a44bdfc42..000000000 --- a/src/api/resources/accounting/resources/paymentTerms/client/requests/PaymentTermsRetrieveRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @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"; - /** 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; -} diff --git a/src/api/resources/accounting/resources/paymentTerms/client/requests/index.ts b/src/api/resources/accounting/resources/paymentTerms/client/requests/index.ts deleted file mode 100644 index b4dc26712..000000000 --- a/src/api/resources/accounting/resources/paymentTerms/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { PaymentTermsListRequest } from "./PaymentTermsListRequest"; -export type { PaymentTermsRetrieveRequest } from "./PaymentTermsRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/paymentTerms/exports.ts b/src/api/resources/accounting/resources/paymentTerms/exports.ts deleted file mode 100644 index 8f4f627f4..000000000 --- a/src/api/resources/accounting/resources/paymentTerms/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { PaymentTermsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/paymentTerms/index.ts b/src/api/resources/accounting/resources/paymentTerms/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/paymentTerms/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/resources/payments/client/Client.ts b/src/api/resources/accounting/resources/payments/client/Client.ts deleted file mode 100644 index ab923504e..000000000 --- a/src/api/resources/accounting/resources/payments/client/Client.ts +++ /dev/null @@ -1,745 +0,0 @@ -// 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 PaymentsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class PaymentsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: PaymentsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Payment` objects. - * - * @param {Merge.accounting.PaymentsListRequest} request - * @param {PaymentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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") - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Creates a `Payment` object with the given values. - * - * @param {Merge.accounting.PaymentEndpointRequest} request - * @param {PaymentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.payments.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public create( - request: Merge.accounting.PaymentEndpointRequest, - requestOptions?: PaymentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.accounting.PaymentEndpointRequest, - requestOptions?: PaymentsClient.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/payments", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.accounting.PaymentEndpointRequest.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.PaymentResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/payments"); - } - - /** - * Returns a `Payment` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.PaymentsRetrieveRequest} request - * @param {PaymentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.payments.retrieve("id", { - * expand: "account", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.PaymentsRetrieveRequest = {}, - requestOptions?: PaymentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.PaymentsRetrieveRequest = {}, - requestOptions?: PaymentsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeRemoteFields, includeShellData } = request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.PaymentsRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `accounting/v1/payments/${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.Payment.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } - - /** - * Updates a `Payment` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.PatchedPaymentEndpointRequest} request - * @param {PaymentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.payments.partialUpdate("id", { - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public partialUpdate( - id: string, - request: Merge.accounting.PatchedPaymentEndpointRequest, - requestOptions?: PaymentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__partialUpdate(id, request, requestOptions)); - } - - private async __partialUpdate( - id: string, - request: Merge.accounting.PatchedPaymentEndpointRequest, - requestOptions?: PaymentsClient.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/payments/${core.url.encodePathParam(id)}`, - ), - method: "PATCH", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.accounting.PatchedPaymentEndpointRequest.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.PaymentResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "PATCH", - "/accounting/v1/payments/{id}", - ); - } - - /** - * Returns a list of `RemoteFieldClass` objects. - * - * @param {Merge.accounting.PaymentsLineItemsRemoteFieldClassesListRequest} request - * @param {PaymentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.payments.lineItemsRemoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * }) - */ - public lineItemsRemoteFieldClassesList( - request: Merge.accounting.PaymentsLineItemsRemoteFieldClassesListRequest = {}, - requestOptions?: PaymentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__lineItemsRemoteFieldClassesList(request, requestOptions)); - } - - private 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, - ); - const _response = await (this._options.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", - ); - } - - /** - * Returns metadata for `Payment` PATCHs. - * - * @param {string} id - * @param {PaymentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.payments.metaPatchRetrieve("id") - */ - public metaPatchRetrieve( - id: string, - requestOptions?: PaymentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPatchRetrieve(id, requestOptions)); - } - - private async __metaPatchRetrieve( - id: string, - requestOptions?: PaymentsClient.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/payments/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, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/meta/patch/{id}", - ); - } - - /** - * Returns metadata for `Payment` POSTs. - * - * @param {PaymentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.payments.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: PaymentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: PaymentsClient.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/payments/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/payments/meta/post", - ); - } - - /** - * Returns a list of `RemoteFieldClass` objects. - * - * @param {Merge.accounting.PaymentsRemoteFieldClassesListRequest} request - * @param {PaymentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.payments.remoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } -} diff --git a/src/api/resources/accounting/resources/payments/client/index.ts b/src/api/resources/accounting/resources/payments/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/payments/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/payments/client/requests/PatchedPaymentEndpointRequest.ts b/src/api/resources/accounting/resources/payments/client/requests/PatchedPaymentEndpointRequest.ts deleted file mode 100644 index 0f5966509..000000000 --- a/src/api/resources/accounting/resources/payments/client/requests/PatchedPaymentEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface PatchedPaymentEndpointRequest { - /** 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.PatchedPaymentRequest; -} diff --git a/src/api/resources/accounting/resources/payments/client/requests/PaymentEndpointRequest.ts b/src/api/resources/accounting/resources/payments/client/requests/PaymentEndpointRequest.ts deleted file mode 100644 index 4e68380d0..000000000 --- a/src/api/resources/accounting/resources/payments/client/requests/PaymentEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface PaymentEndpointRequest { - /** Whether to include debug fields (such as log file links) in the response. */ - isDebugMode?: boolean; - /** Whether or not third-party updates should be run asynchronously. */ - runAsync?: boolean; - model: Merge.accounting.PaymentRequest; -} diff --git a/src/api/resources/accounting/resources/payments/client/requests/PaymentsLineItemsRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/payments/client/requests/PaymentsLineItemsRemoteFieldClassesListRequest.ts deleted file mode 100644 index d69350219..000000000 --- a/src/api/resources/accounting/resources/payments/client/requests/PaymentsLineItemsRemoteFieldClassesListRequest.ts +++ /dev/null @@ -1,30 +0,0 @@ -// 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 PaymentsLineItemsRemoteFieldClassesListRequest { - /** 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. */ - 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 deleted file mode 100644 index fde75fdae..000000000 --- a/src/api/resources/accounting/resources/payments/client/requests/PaymentsListRequest.ts +++ /dev/null @@ -1,62 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * accountId: "account_id", - * companyId: "company_id", - * contactId: "contact_id", - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * 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") - * } - */ -export interface PaymentsListRequest { - /** If provided, will only return payments for this account. */ - accountId?: string; - /** If provided, will only return payments for this company. */ - companyId?: string; - /** If provided, will only return payments for this contact. */ - contactId?: string; - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.PaymentsListRequestExpand; - /** 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. */ - pageSize?: number; - /** The API provider's ID for the given object. */ - remoteId?: string; - /** If provided, will only return objects created after this datetime. */ - transactionDateAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - transactionDateBefore?: Date; -} diff --git a/src/api/resources/accounting/resources/payments/client/requests/PaymentsRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/payments/client/requests/PaymentsRemoteFieldClassesListRequest.ts deleted file mode 100644 index 1dfa8f486..000000000 --- a/src/api/resources/accounting/resources/payments/client/requests/PaymentsRemoteFieldClassesListRequest.ts +++ /dev/null @@ -1,30 +0,0 @@ -// 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 PaymentsRemoteFieldClassesListRequest { - /** 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. */ - 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 deleted file mode 100644 index 871f2743b..000000000 --- a/src/api/resources/accounting/resources/payments/client/requests/PaymentsRetrieveRequest.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * expand: "account", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * } - */ -export interface PaymentsRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.PaymentsRetrieveRequestExpand; - /** 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; -} diff --git a/src/api/resources/accounting/resources/payments/client/requests/index.ts b/src/api/resources/accounting/resources/payments/client/requests/index.ts deleted file mode 100644 index 89a8f11ac..000000000 --- a/src/api/resources/accounting/resources/payments/client/requests/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -export type { PatchedPaymentEndpointRequest } from "./PatchedPaymentEndpointRequest"; -export type { PaymentEndpointRequest } from "./PaymentEndpointRequest"; -export type { PaymentsLineItemsRemoteFieldClassesListRequest } from "./PaymentsLineItemsRemoteFieldClassesListRequest"; -export type { PaymentsListRequest } from "./PaymentsListRequest"; -export type { PaymentsRemoteFieldClassesListRequest } from "./PaymentsRemoteFieldClassesListRequest"; -export type { PaymentsRetrieveRequest } from "./PaymentsRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/payments/exports.ts b/src/api/resources/accounting/resources/payments/exports.ts deleted file mode 100644 index eba9d5cce..000000000 --- a/src/api/resources/accounting/resources/payments/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { PaymentsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/payments/index.ts b/src/api/resources/accounting/resources/payments/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/accounting/resources/payments/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/api/resources/accounting/resources/payments/types/index.ts deleted file mode 100644 index 56e4a3693..000000000 --- a/src/api/resources/accounting/resources/payments/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./PaymentsListRequestExpand"; -export * from "./PaymentsRetrieveRequestExpand"; diff --git a/src/api/resources/accounting/resources/phoneNumbers/client/Client.ts b/src/api/resources/accounting/resources/phoneNumbers/client/Client.ts deleted file mode 100644 index e100bcc68..000000000 --- a/src/api/resources/accounting/resources/phoneNumbers/client/Client.ts +++ /dev/null @@ -1,108 +0,0 @@ -// 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 PhoneNumbersClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class PhoneNumbersClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: PhoneNumbersClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns an `AccountingPhoneNumber` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.PhoneNumbersRetrieveRequest} request - * @param {PhoneNumbersClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.phoneNumbers.retrieve("id", { - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.PhoneNumbersRetrieveRequest = {}, - requestOptions?: PhoneNumbersClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.PhoneNumbersRetrieveRequest = {}, - requestOptions?: PhoneNumbersClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `accounting/v1/phone-numbers/${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.AccountingPhoneNumber.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/phone-numbers/{id}", - ); - } -} diff --git a/src/api/resources/accounting/resources/phoneNumbers/client/index.ts b/src/api/resources/accounting/resources/phoneNumbers/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/phoneNumbers/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/phoneNumbers/client/requests/PhoneNumbersRetrieveRequest.ts b/src/api/resources/accounting/resources/phoneNumbers/client/requests/PhoneNumbersRetrieveRequest.ts deleted file mode 100644 index 0cedbf7d2..000000000 --- a/src/api/resources/accounting/resources/phoneNumbers/client/requests/PhoneNumbersRetrieveRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * includeRemoteData: true, - * includeShellData: true - * } - */ -export interface PhoneNumbersRetrieveRequest { - /** 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; -} diff --git a/src/api/resources/accounting/resources/phoneNumbers/client/requests/index.ts b/src/api/resources/accounting/resources/phoneNumbers/client/requests/index.ts deleted file mode 100644 index 3d0b47158..000000000 --- a/src/api/resources/accounting/resources/phoneNumbers/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { PhoneNumbersRetrieveRequest } from "./PhoneNumbersRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/phoneNumbers/exports.ts b/src/api/resources/accounting/resources/phoneNumbers/exports.ts deleted file mode 100644 index 8207921c6..000000000 --- a/src/api/resources/accounting/resources/phoneNumbers/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { PhoneNumbersClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/phoneNumbers/index.ts b/src/api/resources/accounting/resources/phoneNumbers/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/phoneNumbers/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/resources/projects/client/Client.ts b/src/api/resources/accounting/resources/projects/client/Client.ts deleted file mode 100644 index c7b1b6570..000000000 --- a/src/api/resources/accounting/resources/projects/client/Client.ts +++ /dev/null @@ -1,223 +0,0 @@ -// 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 ProjectsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class ProjectsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: ProjectsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Project` objects. - * - * @param {Merge.accounting.ProjectsListRequest} request - * @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `Project` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.ProjectsRetrieveRequest} request - * @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.projects.retrieve("id", { - * expand: "company", - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.ProjectsRetrieveRequest = {}, - requestOptions?: ProjectsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.ProjectsRetrieveRequest = {}, - requestOptions?: ProjectsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.ProjectsRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `accounting/v1/projects/${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.Project.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/accounting/resources/projects/client/index.ts b/src/api/resources/accounting/resources/projects/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/projects/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/projects/client/requests/ProjectsListRequest.ts b/src/api/resources/accounting/resources/projects/client/requests/ProjectsListRequest.ts deleted file mode 100644 index 99e09809a..000000000 --- a/src/api/resources/accounting/resources/projects/client/requests/ProjectsListRequest.ts +++ /dev/null @@ -1,47 +0,0 @@ -// 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", - * 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" - * } - */ -export interface ProjectsListRequest { - /** If provided, will only return projects 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.ProjectsListRequestExpand; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - 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 deleted file mode 100644 index 642b36d46..000000000 --- a/src/api/resources/accounting/resources/projects/client/requests/ProjectsRetrieveRequest.ts +++ /dev/null @@ -1,20 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -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; - /** 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; -} diff --git a/src/api/resources/accounting/resources/projects/client/requests/index.ts b/src/api/resources/accounting/resources/projects/client/requests/index.ts deleted file mode 100644 index 032401dae..000000000 --- a/src/api/resources/accounting/resources/projects/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { ProjectsListRequest } from "./ProjectsListRequest"; -export type { ProjectsRetrieveRequest } from "./ProjectsRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/projects/exports.ts b/src/api/resources/accounting/resources/projects/exports.ts deleted file mode 100644 index 19ddc5a28..000000000 --- a/src/api/resources/accounting/resources/projects/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { ProjectsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/projects/index.ts b/src/api/resources/accounting/resources/projects/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/accounting/resources/projects/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/api/resources/accounting/resources/projects/types/index.ts deleted file mode 100644 index 5ecd3d28e..000000000 --- a/src/api/resources/accounting/resources/projects/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./ProjectsListRequestExpand"; -export * from "./ProjectsRetrieveRequestExpand"; diff --git a/src/api/resources/accounting/resources/purchaseOrders/client/Client.ts b/src/api/resources/accounting/resources/purchaseOrders/client/Client.ts deleted file mode 100644 index 8d2c2e6d8..000000000 --- a/src/api/resources/accounting/resources/purchaseOrders/client/Client.ts +++ /dev/null @@ -1,606 +0,0 @@ -// 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 PurchaseOrdersClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class PurchaseOrdersClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: PurchaseOrdersClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `PurchaseOrder` objects. - * - * @param {Merge.accounting.PurchaseOrdersListRequest} request - * @param {PurchaseOrdersClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } - - /** - * Creates a `PurchaseOrder` object with the given values. - * - * @param {Merge.accounting.PurchaseOrderEndpointRequest} request - * @param {PurchaseOrdersClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.purchaseOrders.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public create( - request: Merge.accounting.PurchaseOrderEndpointRequest, - requestOptions?: PurchaseOrdersClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.accounting.PurchaseOrderEndpointRequest, - requestOptions?: PurchaseOrdersClient.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/purchase-orders", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.accounting.PurchaseOrderEndpointRequest.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.PurchaseOrderResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/purchase-orders", - ); - } - - /** - * Returns a `PurchaseOrder` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.PurchaseOrdersRetrieveRequest} request - * @param {PurchaseOrdersClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.purchaseOrders.retrieve("id", { - * expand: "accounting_period", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * remoteFields: "status", - * showEnumOrigins: "status" - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.PurchaseOrdersRetrieveRequest = {}, - requestOptions?: PurchaseOrdersClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.PurchaseOrdersRetrieveRequest = {}, - requestOptions?: PurchaseOrdersClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeRemoteFields, includeShellData, remoteFields, showEnumOrigins } = - request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.PurchaseOrdersRetrieveRequestExpand.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/purchase-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.PurchaseOrder.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}", - ); - } - - /** - * Returns a list of `RemoteFieldClass` objects. - * - * @param {Merge.accounting.PurchaseOrdersLineItemsRemoteFieldClassesListRequest} request - * @param {PurchaseOrdersClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.purchaseOrders.lineItemsRemoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * }) - */ - public lineItemsRemoteFieldClassesList( - request: Merge.accounting.PurchaseOrdersLineItemsRemoteFieldClassesListRequest = {}, - requestOptions?: PurchaseOrdersClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__lineItemsRemoteFieldClassesList(request, requestOptions)); - } - - private 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, - ); - const _response = await (this._options.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", - ); - } - - /** - * Returns metadata for `PurchaseOrder` POSTs. - * - * @param {PurchaseOrdersClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.purchaseOrders.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: PurchaseOrdersClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: PurchaseOrdersClient.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/purchase-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/purchase-orders/meta/post", - ); - } - - /** - * Returns a list of `RemoteFieldClass` objects. - * - * @param {Merge.accounting.PurchaseOrdersRemoteFieldClassesListRequest} request - * @param {PurchaseOrdersClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.purchaseOrders.remoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * }) - */ - public remoteFieldClassesList( - request: Merge.accounting.PurchaseOrdersRemoteFieldClassesListRequest = {}, - requestOptions?: PurchaseOrdersClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); - } - - private 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, - ); - const _response = await (this._options.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", - ); - } -} diff --git a/src/api/resources/accounting/resources/purchaseOrders/client/index.ts b/src/api/resources/accounting/resources/purchaseOrders/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/purchaseOrders/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrderEndpointRequest.ts b/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrderEndpointRequest.ts deleted file mode 100644 index 14fabeb9c..000000000 --- a/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrderEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface PurchaseOrderEndpointRequest { - /** Whether to include debug fields (such as log file links) in the response. */ - isDebugMode?: boolean; - /** Whether or not third-party updates should be run asynchronously. */ - runAsync?: boolean; - model: Merge.accounting.PurchaseOrderRequest; -} diff --git a/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersLineItemsRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersLineItemsRemoteFieldClassesListRequest.ts deleted file mode 100644 index 3370f40ab..000000000 --- a/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersLineItemsRemoteFieldClassesListRequest.ts +++ /dev/null @@ -1,30 +0,0 @@ -// 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 PurchaseOrdersLineItemsRemoteFieldClassesListRequest { - /** 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. */ - 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 deleted file mode 100644 index fe219c655..000000000 --- a/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersListRequest.ts +++ /dev/null @@ -1,62 +0,0 @@ -// 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", - * 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" - * } - */ -export interface PurchaseOrdersListRequest { - /** If provided, will only return purchase orders for this company. */ - companyId?: string; - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.PurchaseOrdersListRequestExpand; - /** 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. */ - pageSize?: number; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: "status"; - /** The API provider's ID for the given object. */ - remoteId?: string; - /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ - showEnumOrigins?: "status"; -} diff --git a/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersRemoteFieldClassesListRequest.ts deleted file mode 100644 index 040b08f4e..000000000 --- a/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersRemoteFieldClassesListRequest.ts +++ /dev/null @@ -1,30 +0,0 @@ -// 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 PurchaseOrdersRemoteFieldClassesListRequest { - /** 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. */ - 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 deleted file mode 100644 index 8f6d92e51..000000000 --- a/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersRetrieveRequest.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * expand: "accounting_period", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * remoteFields: "status", - * showEnumOrigins: "status" - * } - */ -export interface PurchaseOrdersRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.PurchaseOrdersRetrieveRequestExpand; - /** 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/purchaseOrders/client/requests/index.ts b/src/api/resources/accounting/resources/purchaseOrders/client/requests/index.ts deleted file mode 100644 index 359e301a5..000000000 --- a/src/api/resources/accounting/resources/purchaseOrders/client/requests/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type { PurchaseOrderEndpointRequest } from "./PurchaseOrderEndpointRequest"; -export type { PurchaseOrdersLineItemsRemoteFieldClassesListRequest } from "./PurchaseOrdersLineItemsRemoteFieldClassesListRequest"; -export type { PurchaseOrdersListRequest } from "./PurchaseOrdersListRequest"; -export type { PurchaseOrdersRemoteFieldClassesListRequest } from "./PurchaseOrdersRemoteFieldClassesListRequest"; -export type { PurchaseOrdersRetrieveRequest } from "./PurchaseOrdersRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/purchaseOrders/exports.ts b/src/api/resources/accounting/resources/purchaseOrders/exports.ts deleted file mode 100644 index cbcd48570..000000000 --- a/src/api/resources/accounting/resources/purchaseOrders/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { PurchaseOrdersClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/purchaseOrders/index.ts b/src/api/resources/accounting/resources/purchaseOrders/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/accounting/resources/purchaseOrders/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/api/resources/accounting/resources/purchaseOrders/types/index.ts deleted file mode 100644 index fd510edde..000000000 --- a/src/api/resources/accounting/resources/purchaseOrders/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./PurchaseOrdersListRequestExpand"; -export * from "./PurchaseOrdersRetrieveRequestExpand"; diff --git a/src/api/resources/accounting/resources/regenerateKey/client/Client.ts b/src/api/resources/accounting/resources/regenerateKey/client/Client.ts deleted file mode 100644 index 4c73dd63b..000000000 --- a/src/api/resources/accounting/resources/regenerateKey/client/Client.ts +++ /dev/null @@ -1,104 +0,0 @@ -// 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 RegenerateKeyClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class RegenerateKeyClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: RegenerateKeyClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Exchange remote keys. - * - * @param {Merge.accounting.RemoteKeyForRegenerationRequest} request - * @param {RegenerateKeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.regenerateKey.create({ - * name: "Remote Deployment Key 1" - * }) - */ - public create( - request: Merge.accounting.RemoteKeyForRegenerationRequest, - requestOptions?: RegenerateKeyClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.accounting.RemoteKeyForRegenerationRequest, - requestOptions?: RegenerateKeyClient.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/regenerate-key", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.accounting.RemoteKeyForRegenerationRequest.jsonOrThrow(request, { - 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.RemoteKey.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/regenerate-key", - ); - } -} diff --git a/src/api/resources/accounting/resources/regenerateKey/client/index.ts b/src/api/resources/accounting/resources/regenerateKey/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/regenerateKey/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts b/src/api/resources/accounting/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts deleted file mode 100644 index 19dc4fa80..000000000 --- a/src/api/resources/accounting/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * name: "Remote Deployment Key 1" - * } - */ -export interface RemoteKeyForRegenerationRequest { - /** The name of the remote key */ - name: string; -} diff --git a/src/api/resources/accounting/resources/regenerateKey/client/requests/index.ts b/src/api/resources/accounting/resources/regenerateKey/client/requests/index.ts deleted file mode 100644 index 339a5503f..000000000 --- a/src/api/resources/accounting/resources/regenerateKey/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { RemoteKeyForRegenerationRequest } from "./RemoteKeyForRegenerationRequest"; diff --git a/src/api/resources/accounting/resources/regenerateKey/exports.ts b/src/api/resources/accounting/resources/regenerateKey/exports.ts deleted file mode 100644 index f9276142f..000000000 --- a/src/api/resources/accounting/resources/regenerateKey/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { RegenerateKeyClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/regenerateKey/index.ts b/src/api/resources/accounting/resources/regenerateKey/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/regenerateKey/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/resources/scopes/client/Client.ts b/src/api/resources/accounting/resources/scopes/client/Client.ts deleted file mode 100644 index bc6111784..000000000 --- a/src/api/resources/accounting/resources/scopes/client/Client.ts +++ /dev/null @@ -1,258 +0,0 @@ -// 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 ScopesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class ScopesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: ScopesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * 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). - * - * @param {ScopesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.scopes.defaultScopesRetrieve() - */ - public defaultScopesRetrieve( - requestOptions?: ScopesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__defaultScopesRetrieve(requestOptions)); - } - - private async __defaultScopesRetrieve( - requestOptions?: ScopesClient.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/default-scopes", - ), - 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.CommonModelScopeApi.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/default-scopes"); - } - - /** - * 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). - * - * @param {ScopesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.scopes.linkedAccountScopesRetrieve() - */ - public linkedAccountScopesRetrieve( - requestOptions?: ScopesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__linkedAccountScopesRetrieve(requestOptions)); - } - - private async __linkedAccountScopesRetrieve( - requestOptions?: ScopesClient.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/linked-account-scopes", - ), - 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.CommonModelScopeApi.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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-account-scopes", - ); - } - - /** - * 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) - * - * @param {Merge.accounting.LinkedAccountCommonModelScopeDeserializerRequest} request - * @param {ScopesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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 - * } - * } - * }] - * }) - */ - public linkedAccountScopesCreate( - request: Merge.accounting.LinkedAccountCommonModelScopeDeserializerRequest, - requestOptions?: ScopesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__linkedAccountScopesCreate(request, requestOptions)); - } - - private async __linkedAccountScopesCreate( - request: Merge.accounting.LinkedAccountCommonModelScopeDeserializerRequest, - requestOptions?: ScopesClient.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/linked-account-scopes", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.accounting.LinkedAccountCommonModelScopeDeserializerRequest.jsonOrThrow(request, { - 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.CommonModelScopeApi.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/linked-account-scopes", - ); - } -} diff --git a/src/api/resources/accounting/resources/scopes/client/index.ts b/src/api/resources/accounting/resources/scopes/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/scopes/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts b/src/api/resources/accounting/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts deleted file mode 100644 index 9c36ac454..000000000 --- a/src/api/resources/accounting/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts +++ /dev/null @@ -1,35 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * commonModels: [{ - * modelName: "Employee", - * modelPermissions: { - * "READ": { - * isEnabled: true - * }, - * "WRITE": { - * isEnabled: false - * } - * }, - * fieldPermissions: { - * enabledFields: ["avatar", "home_location"], - * disabledFields: ["work_location"] - * } - * }, { - * modelName: "Benefit", - * modelPermissions: { - * "WRITE": { - * isEnabled: false - * } - * } - * }] - * } - */ -export interface LinkedAccountCommonModelScopeDeserializerRequest { - /** The common models you want to update the scopes for */ - commonModels: Merge.accounting.IndividualCommonModelScopeDeserializerRequest[]; -} diff --git a/src/api/resources/accounting/resources/scopes/client/requests/index.ts b/src/api/resources/accounting/resources/scopes/client/requests/index.ts deleted file mode 100644 index b77c0e5da..000000000 --- a/src/api/resources/accounting/resources/scopes/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { LinkedAccountCommonModelScopeDeserializerRequest } from "./LinkedAccountCommonModelScopeDeserializerRequest"; diff --git a/src/api/resources/accounting/resources/scopes/exports.ts b/src/api/resources/accounting/resources/scopes/exports.ts deleted file mode 100644 index c641749fe..000000000 --- a/src/api/resources/accounting/resources/scopes/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { ScopesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/scopes/index.ts b/src/api/resources/accounting/resources/scopes/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/scopes/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/resources/syncStatus/client/Client.ts b/src/api/resources/accounting/resources/syncStatus/client/Client.ts deleted file mode 100644 index 3effe3b60..000000000 --- a/src/api/resources/accounting/resources/syncStatus/client/Client.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 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 SyncStatusClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class SyncStatusClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: SyncStatusClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * 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). - * - * @param {Merge.accounting.SyncStatusListRequest} request - * @param {SyncStatusClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.syncStatus.list({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * pageSize: 1 - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } -} diff --git a/src/api/resources/accounting/resources/syncStatus/client/index.ts b/src/api/resources/accounting/resources/syncStatus/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/syncStatus/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/syncStatus/client/requests/SyncStatusListRequest.ts b/src/api/resources/accounting/resources/syncStatus/client/requests/SyncStatusListRequest.ts deleted file mode 100644 index 2bbace517..000000000 --- a/src/api/resources/accounting/resources/syncStatus/client/requests/SyncStatusListRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * pageSize: 1 - * } - */ -export interface SyncStatusListRequest { - /** The pagination cursor value. */ - cursor?: string; - /** Number of results to return per page. */ - pageSize?: number; -} diff --git a/src/api/resources/accounting/resources/syncStatus/client/requests/index.ts b/src/api/resources/accounting/resources/syncStatus/client/requests/index.ts deleted file mode 100644 index 9c815333a..000000000 --- a/src/api/resources/accounting/resources/syncStatus/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { SyncStatusListRequest } from "./SyncStatusListRequest"; diff --git a/src/api/resources/accounting/resources/syncStatus/exports.ts b/src/api/resources/accounting/resources/syncStatus/exports.ts deleted file mode 100644 index 9593edcc7..000000000 --- a/src/api/resources/accounting/resources/syncStatus/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { SyncStatusClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/syncStatus/index.ts b/src/api/resources/accounting/resources/syncStatus/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/syncStatus/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/resources/taxRates/client/Client.ts b/src/api/resources/accounting/resources/taxRates/client/Client.ts deleted file mode 100644 index 2b365a7aa..000000000 --- a/src/api/resources/accounting/resources/taxRates/client/Client.ts +++ /dev/null @@ -1,216 +0,0 @@ -// 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 TaxRatesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class TaxRatesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: TaxRatesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `TaxRate` objects. - * - * @param {Merge.accounting.TaxRatesListRequest} request - * @param {TaxRatesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `TaxRate` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.TaxRatesRetrieveRequest} request - * @param {TaxRatesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.taxRates.retrieve("id", { - * expand: "company", - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.TaxRatesRetrieveRequest = {}, - requestOptions?: TaxRatesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.TaxRatesRetrieveRequest = {}, - requestOptions?: TaxRatesClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - expand: expand != null ? expand : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/${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.TaxRate.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/accounting/resources/taxRates/client/index.ts b/src/api/resources/accounting/resources/taxRates/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/taxRates/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/taxRates/client/requests/TaxRatesListRequest.ts b/src/api/resources/accounting/resources/taxRates/client/requests/TaxRatesListRequest.ts deleted file mode 100644 index c9e713467..000000000 --- a/src/api/resources/accounting/resources/taxRates/client/requests/TaxRatesListRequest.ts +++ /dev/null @@ -1,48 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * companyId: "company_id", - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * 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" - * } - */ -export interface TaxRatesListRequest { - /** If provided, will only return tax rates for this company. */ - companyId?: string; - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "company"; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** If provided, will only return TaxRates with this name. */ - name?: string; - /** 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/accounting/resources/taxRates/client/requests/TaxRatesRetrieveRequest.ts b/src/api/resources/accounting/resources/taxRates/client/requests/TaxRatesRetrieveRequest.ts deleted file mode 100644 index e437eed0d..000000000 --- a/src/api/resources/accounting/resources/taxRates/client/requests/TaxRatesRetrieveRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @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"; - /** 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; -} diff --git a/src/api/resources/accounting/resources/taxRates/client/requests/index.ts b/src/api/resources/accounting/resources/taxRates/client/requests/index.ts deleted file mode 100644 index e0df02235..000000000 --- a/src/api/resources/accounting/resources/taxRates/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { TaxRatesListRequest } from "./TaxRatesListRequest"; -export type { TaxRatesRetrieveRequest } from "./TaxRatesRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/taxRates/exports.ts b/src/api/resources/accounting/resources/taxRates/exports.ts deleted file mode 100644 index f85d88c21..000000000 --- a/src/api/resources/accounting/resources/taxRates/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { TaxRatesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/taxRates/index.ts b/src/api/resources/accounting/resources/taxRates/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/taxRates/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/resources/trackingCategories/client/Client.ts b/src/api/resources/accounting/resources/trackingCategories/client/Client.ts deleted file mode 100644 index 4a5dcffb2..000000000 --- a/src/api/resources/accounting/resources/trackingCategories/client/Client.ts +++ /dev/null @@ -1,252 +0,0 @@ -// 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 TrackingCategoriesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class TrackingCategoriesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: TrackingCategoriesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `TrackingCategory` objects. - * - * @param {Merge.accounting.TrackingCategoriesListRequest} request - * @param {TrackingCategoriesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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: "" - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } - - /** - * Returns a `TrackingCategory` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.TrackingCategoriesRetrieveRequest} request - * @param {TrackingCategoriesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.trackingCategories.retrieve("id", { - * expand: "company", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "status", - * showEnumOrigins: "status" - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.TrackingCategoriesRetrieveRequest = {}, - requestOptions?: TrackingCategoriesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.TrackingCategoriesRetrieveRequest = {}, - requestOptions?: TrackingCategoriesClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; - const _queryParams: Record = { - expand: expand != null ? expand : undefined, - include_remote_data: includeRemoteData, - 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/tracking-categories/${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.TrackingCategory.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}", - ); - } -} diff --git a/src/api/resources/accounting/resources/trackingCategories/client/index.ts b/src/api/resources/accounting/resources/trackingCategories/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/trackingCategories/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/trackingCategories/client/requests/TrackingCategoriesListRequest.ts b/src/api/resources/accounting/resources/trackingCategories/client/requests/TrackingCategoriesListRequest.ts deleted file mode 100644 index 0eb0a7c11..000000000 --- a/src/api/resources/accounting/resources/trackingCategories/client/requests/TrackingCategoriesListRequest.ts +++ /dev/null @@ -1,62 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * 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: "" - * } - */ -export interface TrackingCategoriesListRequest { - /** If provided, will only return tracking categories with this type. */ - categoryType?: Merge.accounting.TrackingCategoriesListRequestCategoryType; - /** If provided, will only return tracking categories for this company. */ - companyId?: string; - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "company"; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** If provided, will only return tracking categories with this name. */ - name?: string; - /** Number of results to return per page. */ - pageSize?: number; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: "status"; - /** The API provider's ID for the given object. */ - remoteId?: string; - /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ - showEnumOrigins?: "status"; - /** If provided, will only return tracking categories with this status. */ - status?: Merge.accounting.TrackingCategoriesListRequestStatus; -} diff --git a/src/api/resources/accounting/resources/trackingCategories/client/requests/TrackingCategoriesRetrieveRequest.ts b/src/api/resources/accounting/resources/trackingCategories/client/requests/TrackingCategoriesRetrieveRequest.ts deleted file mode 100644 index d03755f68..000000000 --- a/src/api/resources/accounting/resources/trackingCategories/client/requests/TrackingCategoriesRetrieveRequest.ts +++ /dev/null @@ -1,24 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * expand: "company", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "status", - * showEnumOrigins: "status" - * } - */ -export interface TrackingCategoriesRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "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). */ - 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/trackingCategories/client/requests/index.ts b/src/api/resources/accounting/resources/trackingCategories/client/requests/index.ts deleted file mode 100644 index 05a0dbbbf..000000000 --- a/src/api/resources/accounting/resources/trackingCategories/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { TrackingCategoriesListRequest } from "./TrackingCategoriesListRequest"; -export type { TrackingCategoriesRetrieveRequest } from "./TrackingCategoriesRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/trackingCategories/exports.ts b/src/api/resources/accounting/resources/trackingCategories/exports.ts deleted file mode 100644 index 439f40e1a..000000000 --- a/src/api/resources/accounting/resources/trackingCategories/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { TrackingCategoriesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/trackingCategories/index.ts b/src/api/resources/accounting/resources/trackingCategories/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/accounting/resources/trackingCategories/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/accounting/resources/trackingCategories/types/TrackingCategoriesListRequestCategoryType.ts b/src/api/resources/accounting/resources/trackingCategories/types/TrackingCategoriesListRequestCategoryType.ts deleted file mode 100644 index 08749ce78..000000000 --- a/src/api/resources/accounting/resources/trackingCategories/types/TrackingCategoriesListRequestCategoryType.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const TrackingCategoriesListRequestCategoryType = { - Empty: "", - Class: "CLASS", - Department: "DEPARTMENT", -} as const; -export type TrackingCategoriesListRequestCategoryType = - (typeof TrackingCategoriesListRequestCategoryType)[keyof typeof TrackingCategoriesListRequestCategoryType]; diff --git a/src/api/resources/accounting/resources/trackingCategories/types/TrackingCategoriesListRequestStatus.ts b/src/api/resources/accounting/resources/trackingCategories/types/TrackingCategoriesListRequestStatus.ts deleted file mode 100644 index 630afe742..000000000 --- a/src/api/resources/accounting/resources/trackingCategories/types/TrackingCategoriesListRequestStatus.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const TrackingCategoriesListRequestStatus = { - Empty: "", - Active: "ACTIVE", - Archived: "ARCHIVED", -} as const; -export type TrackingCategoriesListRequestStatus = - (typeof TrackingCategoriesListRequestStatus)[keyof typeof TrackingCategoriesListRequestStatus]; diff --git a/src/api/resources/accounting/resources/trackingCategories/types/index.ts b/src/api/resources/accounting/resources/trackingCategories/types/index.ts deleted file mode 100644 index 7a701bc1c..000000000 --- a/src/api/resources/accounting/resources/trackingCategories/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./TrackingCategoriesListRequestCategoryType"; -export * from "./TrackingCategoriesListRequestStatus"; diff --git a/src/api/resources/accounting/resources/transactions/client/Client.ts b/src/api/resources/accounting/resources/transactions/client/Client.ts deleted file mode 100644 index 2d95ca7ad..000000000 --- a/src/api/resources/accounting/resources/transactions/client/Client.ts +++ /dev/null @@ -1,234 +0,0 @@ -// 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 TransactionsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class TransactionsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: TransactionsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Transaction` objects. - * - * @param {Merge.accounting.TransactionsListRequest} request - * @param {TransactionsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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") - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `Transaction` object with the given `id`. - * - * @param {string} id - * @param {Merge.accounting.TransactionsRetrieveRequest} request - * @param {TransactionsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.transactions.retrieve("id", { - * expand: "account", - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.TransactionsRetrieveRequest = {}, - requestOptions?: TransactionsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.TransactionsRetrieveRequest = {}, - requestOptions?: TransactionsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.TransactionsRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `accounting/v1/transactions/${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.Transaction.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}", - ); - } -} diff --git a/src/api/resources/accounting/resources/transactions/client/index.ts b/src/api/resources/accounting/resources/transactions/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/transactions/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/transactions/client/requests/TransactionsListRequest.ts b/src/api/resources/accounting/resources/transactions/client/requests/TransactionsListRequest.ts deleted file mode 100644 index 8c11585fb..000000000 --- a/src/api/resources/accounting/resources/transactions/client/requests/TransactionsListRequest.ts +++ /dev/null @@ -1,53 +0,0 @@ -// 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", - * 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") - * } - */ -export interface TransactionsListRequest { - /** If provided, will only return accounting transactions 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.TransactionsListRequestExpand; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - 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/transactions/client/requests/TransactionsRetrieveRequest.ts b/src/api/resources/accounting/resources/transactions/client/requests/TransactionsRetrieveRequest.ts deleted file mode 100644 index 472eb1ab3..000000000 --- a/src/api/resources/accounting/resources/transactions/client/requests/TransactionsRetrieveRequest.ts +++ /dev/null @@ -1,20 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -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; - /** 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; -} diff --git a/src/api/resources/accounting/resources/transactions/client/requests/index.ts b/src/api/resources/accounting/resources/transactions/client/requests/index.ts deleted file mode 100644 index e7d400d15..000000000 --- a/src/api/resources/accounting/resources/transactions/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { TransactionsListRequest } from "./TransactionsListRequest"; -export type { TransactionsRetrieveRequest } from "./TransactionsRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/transactions/exports.ts b/src/api/resources/accounting/resources/transactions/exports.ts deleted file mode 100644 index 4e81432c9..000000000 --- a/src/api/resources/accounting/resources/transactions/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { TransactionsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/transactions/index.ts b/src/api/resources/accounting/resources/transactions/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/accounting/resources/transactions/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/api/resources/accounting/resources/transactions/types/index.ts deleted file mode 100644 index d40b559e9..000000000 --- a/src/api/resources/accounting/resources/transactions/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./TransactionsListRequestExpand"; -export * from "./TransactionsRetrieveRequestExpand"; diff --git a/src/api/resources/accounting/resources/vendorCredits/client/Client.ts b/src/api/resources/accounting/resources/vendorCredits/client/Client.ts deleted file mode 100644 index c4262fc32..000000000 --- a/src/api/resources/accounting/resources/vendorCredits/client/Client.ts +++ /dev/null @@ -1,389 +0,0 @@ -// 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 VendorCreditsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class VendorCreditsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: VendorCreditsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `VendorCredit` objects. - * - * @param {Merge.accounting.VendorCreditsListRequest} request - * @param {VendorCreditsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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") - * }) - */ - public list( - request: Merge.accounting.VendorCreditsListRequest = {}, - requestOptions?: VendorCreditsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.accounting.VendorCreditsListRequest = {}, - requestOptions?: VendorCreditsClient.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.VendorCreditsListRequestExpand.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"); - } - - /** - * 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", { - * expand: "accounting_period", - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.accounting.VendorCreditsRetrieveRequest = {}, - requestOptions?: VendorCreditsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.accounting.VendorCreditsRetrieveRequest = {}, - requestOptions?: VendorCreditsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.VendorCreditsRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `accounting/v1/vendor-credits/${core.url.encodePathParam(id)}`, - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, - }); - if (_response.ok) { - return { - data: serializers.accounting.VendorCredit.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/accounting/v1/vendor-credits/{id}", - ); - } - - /** - * Returns metadata for `VendorCredit` POSTs. - * - * @param {VendorCreditsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.vendorCredits.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: VendorCreditsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - 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/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/vendor-credits/meta/post", - ); - } -} diff --git a/src/api/resources/accounting/resources/vendorCredits/client/index.ts b/src/api/resources/accounting/resources/vendorCredits/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/vendorCredits/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditEndpointRequest.ts b/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditEndpointRequest.ts deleted file mode 100644 index cccd85d9d..000000000 --- a/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface VendorCreditEndpointRequest { - /** Whether to include debug fields (such as log file links) in the response. */ - isDebugMode?: boolean; - /** Whether or not third-party updates should be run asynchronously. */ - runAsync?: boolean; - model: Merge.accounting.VendorCreditRequest; -} diff --git a/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditsListRequest.ts b/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditsListRequest.ts deleted file mode 100644 index 77985bb71..000000000 --- a/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditsListRequest.ts +++ /dev/null @@ -1,53 +0,0 @@ -// 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", - * 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") - * } - */ -export interface VendorCreditsListRequest { - /** If provided, will only return vendor credits for this company. */ - companyId?: string; - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.VendorCreditsListRequestExpand; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - pageSize?: number; - /** The API provider's ID for the given object. */ - remoteId?: string; - /** If provided, will only return objects created after this datetime. */ - transactionDateAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - transactionDateBefore?: Date; -} diff --git a/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditsRetrieveRequest.ts b/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditsRetrieveRequest.ts deleted file mode 100644 index df40719fc..000000000 --- a/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditsRetrieveRequest.ts +++ /dev/null @@ -1,20 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -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; - /** 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; -} diff --git a/src/api/resources/accounting/resources/vendorCredits/client/requests/index.ts b/src/api/resources/accounting/resources/vendorCredits/client/requests/index.ts deleted file mode 100644 index 442a8e886..000000000 --- a/src/api/resources/accounting/resources/vendorCredits/client/requests/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type { VendorCreditEndpointRequest } from "./VendorCreditEndpointRequest"; -export type { VendorCreditsListRequest } from "./VendorCreditsListRequest"; -export type { VendorCreditsRetrieveRequest } from "./VendorCreditsRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/vendorCredits/exports.ts b/src/api/resources/accounting/resources/vendorCredits/exports.ts deleted file mode 100644 index a9b35e0fa..000000000 --- a/src/api/resources/accounting/resources/vendorCredits/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { VendorCreditsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/vendorCredits/index.ts b/src/api/resources/accounting/resources/vendorCredits/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/accounting/resources/vendorCredits/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/api/resources/accounting/resources/vendorCredits/types/index.ts deleted file mode 100644 index 23d33b551..000000000 --- a/src/api/resources/accounting/resources/vendorCredits/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./VendorCreditsListRequestExpand"; -export * from "./VendorCreditsRetrieveRequestExpand"; diff --git a/src/api/resources/accounting/resources/webhookReceivers/client/Client.ts b/src/api/resources/accounting/resources/webhookReceivers/client/Client.ts deleted file mode 100644 index ac4f5b288..000000000 --- a/src/api/resources/accounting/resources/webhookReceivers/client/Client.ts +++ /dev/null @@ -1,174 +0,0 @@ -// 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 WebhookReceiversClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class WebhookReceiversClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: WebhookReceiversClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `WebhookReceiver` objects. - * - * @param {WebhookReceiversClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.webhookReceivers.list() - */ - public list( - requestOptions?: WebhookReceiversClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(requestOptions)); - } - - private async __list( - requestOptions?: WebhookReceiversClient.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/webhook-receivers", - ), - 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.webhookReceivers.list.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/webhook-receivers", - ); - } - - /** - * Creates a `WebhookReceiver` object with the given values. - * - * @param {Merge.accounting.WebhookReceiverRequest} request - * @param {WebhookReceiversClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.accounting.webhookReceivers.create({ - * event: "event", - * isActive: true - * }) - */ - public create( - request: Merge.accounting.WebhookReceiverRequest, - requestOptions?: WebhookReceiversClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.accounting.WebhookReceiverRequest, - requestOptions?: WebhookReceiversClient.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/webhook-receivers", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.accounting.WebhookReceiverRequest.jsonOrThrow(request, { - 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.WebhookReceiver.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/webhook-receivers", - ); - } -} diff --git a/src/api/resources/accounting/resources/webhookReceivers/client/index.ts b/src/api/resources/accounting/resources/webhookReceivers/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/accounting/resources/webhookReceivers/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/accounting/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts b/src/api/resources/accounting/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts deleted file mode 100644 index bcc11dbe7..000000000 --- a/src/api/resources/accounting/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * event: "event", - * isActive: true - * } - */ -export interface WebhookReceiverRequest { - event: string; - isActive: boolean; - key?: string; -} diff --git a/src/api/resources/accounting/resources/webhookReceivers/client/requests/index.ts b/src/api/resources/accounting/resources/webhookReceivers/client/requests/index.ts deleted file mode 100644 index 0e668b74d..000000000 --- a/src/api/resources/accounting/resources/webhookReceivers/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { WebhookReceiverRequest } from "./WebhookReceiverRequest"; diff --git a/src/api/resources/accounting/resources/webhookReceivers/exports.ts b/src/api/resources/accounting/resources/webhookReceivers/exports.ts deleted file mode 100644 index d0527565a..000000000 --- a/src/api/resources/accounting/resources/webhookReceivers/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { WebhookReceiversClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/webhookReceivers/index.ts b/src/api/resources/accounting/resources/webhookReceivers/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/accounting/resources/webhookReceivers/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/accounting/types/Account.ts b/src/api/resources/accounting/types/Account.ts deleted file mode 100644 index e16367737..000000000 --- a/src/api/resources/accounting/types/Account.ts +++ /dev/null @@ -1,393 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Account Object - * ### Description - * An `Account` represents a category in a company’s ledger in which a financial transaction is recorded against. The aggregation of each `Account` object is often referred to as the **Chart of Accounts**. - * - * An `Account` can be classified into one of the following categories, determined through the `classification` field: - * * __Asset:__ Accounts Receivable and Bank Accounts - * * __Liability:__ Accounts Payable and Credit Card Accounts - * * __Equity:__ Treasury Accounts and Retained Earnings - * * __Revenue:__ Income and Other Income - * * __Expense:__ Cost of Goods Sold and Office Expenses - * - * ### Usage Example - * Fetch from the `LIST Accounts` endpoint and view a company's accounts. - */ -export interface Account { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The account's name. */ - name?: string; - /** The account's description. */ - description?: string; - /** - * The account's broadest grouping. - * - * * `ASSET` - ASSET - * * `EQUITY` - EQUITY - * * `EXPENSE` - EXPENSE - * * `LIABILITY` - LIABILITY - * * `REVENUE` - REVENUE - */ - classification?: Merge.accounting.AccountClassification; - /** The account's type is a narrower and more specific grouping within the account's classification. */ - type?: string; - /** - * Normalized account type- which is a narrower and more specific grouping within the account's classification. - * - * * `BANK` - BANK - * * `CREDIT_CARD` - CREDIT_CARD - * * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - * * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - * * `FIXED_ASSET` - FIXED_ASSET - * * `OTHER_ASSET` - OTHER_ASSET - * * `OTHER_CURRENT_ASSET` - OTHER_CURRENT_ASSET - * * `OTHER_EXPENSE` - OTHER_EXPENSE - * * `OTHER_INCOME` - OTHER_INCOME - * * `COST_OF_GOODS_SOLD` - COST_OF_GOODS_SOLD - * * `OTHER_CURRENT_LIABILITY` - OTHER_CURRENT_LIABILITY - * * `LONG_TERM_LIABILITY` - LONG_TERM_LIABILITY - * * `NON_POSTING` - NON_POSTING - */ - accountType?: Merge.accounting.AccountAccountType; - /** - * The account's status. - * - * * `ACTIVE` - ACTIVE - * * `PENDING` - PENDING - * * `INACTIVE` - INACTIVE - */ - status?: Merge.accounting.AccountStatus; - /** The account's current balance. */ - currentBalance?: number; - /** - * The account'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.AccountCurrency; - /** The account's number. */ - accountNumber?: string; - /** ID of the parent account. */ - parentAccount?: string; - /** The company the account 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/). */ - remoteWasDeleted?: boolean; - fieldMappings?: Record; - remoteData?: Merge.accounting.RemoteData[]; -} diff --git a/src/api/resources/accounting/types/AccountAccountType.ts b/src/api/resources/accounting/types/AccountAccountType.ts deleted file mode 100644 index 28597bb66..000000000 --- a/src/api/resources/accounting/types/AccountAccountType.ts +++ /dev/null @@ -1,22 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * Normalized account type- which is a narrower and more specific grouping within the account's classification. - * - * * `BANK` - BANK - * * `CREDIT_CARD` - CREDIT_CARD - * * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - * * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - * * `FIXED_ASSET` - FIXED_ASSET - * * `OTHER_ASSET` - OTHER_ASSET - * * `OTHER_CURRENT_ASSET` - OTHER_CURRENT_ASSET - * * `OTHER_EXPENSE` - OTHER_EXPENSE - * * `OTHER_INCOME` - OTHER_INCOME - * * `COST_OF_GOODS_SOLD` - COST_OF_GOODS_SOLD - * * `OTHER_CURRENT_LIABILITY` - OTHER_CURRENT_LIABILITY - * * `LONG_TERM_LIABILITY` - LONG_TERM_LIABILITY - * * `NON_POSTING` - NON_POSTING - */ -export type AccountAccountType = Merge.accounting.AccountAccountTypeEnum | string; diff --git a/src/api/resources/accounting/types/AccountAccountTypeEnum.ts b/src/api/resources/accounting/types/AccountAccountTypeEnum.ts deleted file mode 100644 index 0f2b5fa7e..000000000 --- a/src/api/resources/accounting/types/AccountAccountTypeEnum.ts +++ /dev/null @@ -1,33 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `BANK` - BANK - * * `CREDIT_CARD` - CREDIT_CARD - * * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - * * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - * * `FIXED_ASSET` - FIXED_ASSET - * * `OTHER_ASSET` - OTHER_ASSET - * * `OTHER_CURRENT_ASSET` - OTHER_CURRENT_ASSET - * * `OTHER_EXPENSE` - OTHER_EXPENSE - * * `OTHER_INCOME` - OTHER_INCOME - * * `COST_OF_GOODS_SOLD` - COST_OF_GOODS_SOLD - * * `OTHER_CURRENT_LIABILITY` - OTHER_CURRENT_LIABILITY - * * `LONG_TERM_LIABILITY` - LONG_TERM_LIABILITY - * * `NON_POSTING` - NON_POSTING - */ -export const AccountAccountTypeEnum = { - Bank: "BANK", - CreditCard: "CREDIT_CARD", - AccountsPayable: "ACCOUNTS_PAYABLE", - AccountsReceivable: "ACCOUNTS_RECEIVABLE", - FixedAsset: "FIXED_ASSET", - OtherAsset: "OTHER_ASSET", - OtherCurrentAsset: "OTHER_CURRENT_ASSET", - OtherExpense: "OTHER_EXPENSE", - OtherIncome: "OTHER_INCOME", - CostOfGoodsSold: "COST_OF_GOODS_SOLD", - OtherCurrentLiability: "OTHER_CURRENT_LIABILITY", - LongTermLiability: "LONG_TERM_LIABILITY", - NonPosting: "NON_POSTING", -} as const; -export type AccountAccountTypeEnum = (typeof AccountAccountTypeEnum)[keyof typeof AccountAccountTypeEnum]; diff --git a/src/api/resources/accounting/types/AccountClassification.ts b/src/api/resources/accounting/types/AccountClassification.ts deleted file mode 100644 index 5e7b1c4cf..000000000 --- a/src/api/resources/accounting/types/AccountClassification.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The account's broadest grouping. - * - * * `ASSET` - ASSET - * * `EQUITY` - EQUITY - * * `EXPENSE` - EXPENSE - * * `LIABILITY` - LIABILITY - * * `REVENUE` - REVENUE - */ -export type AccountClassification = Merge.accounting.ClassificationEnum | string; diff --git a/src/api/resources/accounting/types/AccountCurrency.ts b/src/api/resources/accounting/types/AccountCurrency.ts deleted file mode 100644 index 7c505eaae..000000000 --- a/src/api/resources/accounting/types/AccountCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The account'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 AccountCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/AccountDetails.ts b/src/api/resources/accounting/types/AccountDetails.ts deleted file mode 100644 index 844c6ba65..000000000 --- a/src/api/resources/accounting/types/AccountDetails.ts +++ /dev/null @@ -1,20 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AccountDetails { - id?: string; - integration?: string; - integrationSlug?: string; - category?: Merge.accounting.AccountDetailsCategory; - endUserOriginId?: string; - endUserOrganizationName?: string; - endUserEmailAddress?: string; - status?: string; - webhookListenerUrl?: string; - /** Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets. */ - isDuplicate?: boolean; - accountType?: string; - /** The time at which account completes the linking flow. */ - completedAt?: Date; -} diff --git a/src/api/resources/accounting/types/AccountDetailsAndActions.ts b/src/api/resources/accounting/types/AccountDetailsAndActions.ts deleted file mode 100644 index c49d443c4..000000000 --- a/src/api/resources/accounting/types/AccountDetailsAndActions.ts +++ /dev/null @@ -1,30 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The LinkedAccount Object - * ### Description - * The `LinkedAccount` object is used to represent an end user's link with a specific integration. - * - * ### Usage Example - * View a list of your organization's `LinkedAccount` objects. - */ -export interface AccountDetailsAndActions { - id: string; - category?: Merge.accounting.AccountDetailsAndActionsCategory; - status: Merge.accounting.AccountDetailsAndActionsStatus; - statusDetail?: string; - endUserOriginId?: string; - endUserOrganizationName: string; - endUserEmailAddress: string; - /** The tenant or domain the customer has provided access to. */ - subdomain?: string; - webhookListenerUrl: string; - /** Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets. */ - isDuplicate?: boolean; - integration?: Merge.accounting.AccountDetailsAndActionsIntegration; - accountType: string; - completedAt: Date; - integrationSpecificFields?: Record; -} diff --git a/src/api/resources/accounting/types/AccountDetailsAndActionsCategory.ts b/src/api/resources/accounting/types/AccountDetailsAndActionsCategory.ts deleted file mode 100644 index f77ac979b..000000000 --- a/src/api/resources/accounting/types/AccountDetailsAndActionsCategory.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 AccountDetailsAndActionsCategory = Merge.accounting.CategoryEnum | string; diff --git a/src/api/resources/accounting/types/AccountDetailsAndActionsIntegration.ts b/src/api/resources/accounting/types/AccountDetailsAndActionsIntegration.ts deleted file mode 100644 index a31b7c879..000000000 --- a/src/api/resources/accounting/types/AccountDetailsAndActionsIntegration.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AccountDetailsAndActionsIntegration { - name: string; - categories: Merge.accounting.CategoriesEnum[]; - image?: string; - squareImage?: string; - color: string; - slug: string; - passthroughAvailable: boolean; - availableModelOperations?: Merge.accounting.ModelOperation[]; -} diff --git a/src/api/resources/accounting/types/AccountDetailsAndActionsStatus.ts b/src/api/resources/accounting/types/AccountDetailsAndActionsStatus.ts deleted file mode 100644 index 92d416170..000000000 --- a/src/api/resources/accounting/types/AccountDetailsAndActionsStatus.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 AccountDetailsAndActionsStatus = Merge.accounting.AccountDetailsAndActionsStatusEnum | string; diff --git a/src/api/resources/accounting/types/AccountDetailsAndActionsStatusEnum.ts b/src/api/resources/accounting/types/AccountDetailsAndActionsStatusEnum.ts deleted file mode 100644 index ab1273765..000000000 --- a/src/api/resources/accounting/types/AccountDetailsAndActionsStatusEnum.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `COMPLETE` - COMPLETE - * * `INCOMPLETE` - INCOMPLETE - * * `RELINK_NEEDED` - RELINK_NEEDED - * * `IDLE` - IDLE - */ -export const AccountDetailsAndActionsStatusEnum = { - Complete: "COMPLETE", - Incomplete: "INCOMPLETE", - RelinkNeeded: "RELINK_NEEDED", - Idle: "IDLE", -} as const; -export type AccountDetailsAndActionsStatusEnum = - (typeof AccountDetailsAndActionsStatusEnum)[keyof typeof AccountDetailsAndActionsStatusEnum]; diff --git a/src/api/resources/accounting/types/AccountDetailsCategory.ts b/src/api/resources/accounting/types/AccountDetailsCategory.ts deleted file mode 100644 index 2cfca4046..000000000 --- a/src/api/resources/accounting/types/AccountDetailsCategory.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export type AccountDetailsCategory = Merge.accounting.CategoryEnum | string; diff --git a/src/api/resources/accounting/types/AccountIntegration.ts b/src/api/resources/accounting/types/AccountIntegration.ts deleted file mode 100644 index cc4e04afd..000000000 --- a/src/api/resources/accounting/types/AccountIntegration.ts +++ /dev/null @@ -1,25 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AccountIntegration { - /** Company name. */ - name: string; - /** Optional. This shortened name appears in places with limited space, usually in conjunction with the platform's logo (e.g., Merge Link menu).

Example: Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors) */ - abbreviatedName?: string; - /** Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris]. */ - categories?: Merge.accounting.CategoriesEnum[]; - /** Company logo in rectangular shape. */ - image?: string; - /** Company logo in square shape. */ - squareImage?: string; - /** The color of this integration used for buttons and text throughout the app and landing pages. Choose a darker, saturated color. */ - color?: string; - slug?: string; - /** Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []} */ - apiEndpointsToDocumentationUrls?: Record; - /** Setup guide URL for third party webhook creation. Exposed in Merge Docs. */ - webhookSetupGuideUrl?: string; - /** Category or categories this integration is in beta status for. */ - categoryBetaStatus?: Record; -} diff --git a/src/api/resources/accounting/types/AccountRequest.ts b/src/api/resources/accounting/types/AccountRequest.ts deleted file mode 100644 index 4fd6c3c59..000000000 --- a/src/api/resources/accounting/types/AccountRequest.ts +++ /dev/null @@ -1,384 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Account Object - * ### Description - * An `Account` represents a category in a company’s ledger in which a financial transaction is recorded against. The aggregation of each `Account` object is often referred to as the **Chart of Accounts**. - * - * An `Account` can be classified into one of the following categories, determined through the `classification` field: - * * __Asset:__ Accounts Receivable and Bank Accounts - * * __Liability:__ Accounts Payable and Credit Card Accounts - * * __Equity:__ Treasury Accounts and Retained Earnings - * * __Revenue:__ Income and Other Income - * * __Expense:__ Cost of Goods Sold and Office Expenses - * - * ### Usage Example - * Fetch from the `LIST Accounts` endpoint and view a company's accounts. - */ -export interface AccountRequest { - /** The account's name. */ - name?: string; - /** The account's description. */ - description?: string; - /** - * The account's broadest grouping. - * - * * `ASSET` - ASSET - * * `EQUITY` - EQUITY - * * `EXPENSE` - EXPENSE - * * `LIABILITY` - LIABILITY - * * `REVENUE` - REVENUE - */ - classification?: Merge.accounting.AccountRequestClassification; - /** The account's type is a narrower and more specific grouping within the account's classification. */ - type?: string; - /** - * Normalized account type- which is a narrower and more specific grouping within the account's classification. - * - * * `BANK` - BANK - * * `CREDIT_CARD` - CREDIT_CARD - * * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - * * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - * * `FIXED_ASSET` - FIXED_ASSET - * * `OTHER_ASSET` - OTHER_ASSET - * * `OTHER_CURRENT_ASSET` - OTHER_CURRENT_ASSET - * * `OTHER_EXPENSE` - OTHER_EXPENSE - * * `OTHER_INCOME` - OTHER_INCOME - * * `COST_OF_GOODS_SOLD` - COST_OF_GOODS_SOLD - * * `OTHER_CURRENT_LIABILITY` - OTHER_CURRENT_LIABILITY - * * `LONG_TERM_LIABILITY` - LONG_TERM_LIABILITY - * * `NON_POSTING` - NON_POSTING - */ - accountType?: Merge.accounting.AccountRequestAccountType; - /** - * The account's status. - * - * * `ACTIVE` - ACTIVE - * * `PENDING` - PENDING - * * `INACTIVE` - INACTIVE - */ - status?: Merge.accounting.AccountRequestStatus; - /** The account's current balance. */ - currentBalance?: number; - /** - * The account'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.AccountRequestCurrency; - /** The account's number. */ - accountNumber?: string; - /** ID of the parent account. */ - parentAccount?: string; - /** The company the account belongs to. */ - company?: string; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/accounting/types/AccountRequestAccountType.ts b/src/api/resources/accounting/types/AccountRequestAccountType.ts deleted file mode 100644 index 17c3389fb..000000000 --- a/src/api/resources/accounting/types/AccountRequestAccountType.ts +++ /dev/null @@ -1,22 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * Normalized account type- which is a narrower and more specific grouping within the account's classification. - * - * * `BANK` - BANK - * * `CREDIT_CARD` - CREDIT_CARD - * * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - * * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - * * `FIXED_ASSET` - FIXED_ASSET - * * `OTHER_ASSET` - OTHER_ASSET - * * `OTHER_CURRENT_ASSET` - OTHER_CURRENT_ASSET - * * `OTHER_EXPENSE` - OTHER_EXPENSE - * * `OTHER_INCOME` - OTHER_INCOME - * * `COST_OF_GOODS_SOLD` - COST_OF_GOODS_SOLD - * * `OTHER_CURRENT_LIABILITY` - OTHER_CURRENT_LIABILITY - * * `LONG_TERM_LIABILITY` - LONG_TERM_LIABILITY - * * `NON_POSTING` - NON_POSTING - */ -export type AccountRequestAccountType = Merge.accounting.AccountAccountTypeEnum | string; diff --git a/src/api/resources/accounting/types/AccountRequestClassification.ts b/src/api/resources/accounting/types/AccountRequestClassification.ts deleted file mode 100644 index 5d2f98ef8..000000000 --- a/src/api/resources/accounting/types/AccountRequestClassification.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The account's broadest grouping. - * - * * `ASSET` - ASSET - * * `EQUITY` - EQUITY - * * `EXPENSE` - EXPENSE - * * `LIABILITY` - LIABILITY - * * `REVENUE` - REVENUE - */ -export type AccountRequestClassification = Merge.accounting.ClassificationEnum | string; diff --git a/src/api/resources/accounting/types/AccountRequestCurrency.ts b/src/api/resources/accounting/types/AccountRequestCurrency.ts deleted file mode 100644 index 9ab5821b2..000000000 --- a/src/api/resources/accounting/types/AccountRequestCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The account'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 AccountRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/AccountRequestStatus.ts b/src/api/resources/accounting/types/AccountRequestStatus.ts deleted file mode 100644 index 919825200..000000000 --- a/src/api/resources/accounting/types/AccountRequestStatus.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 account's status. - * - * * `ACTIVE` - ACTIVE - * * `PENDING` - PENDING - * * `INACTIVE` - INACTIVE - */ -export type AccountRequestStatus = Merge.accounting.AccountStatusEnum | string; diff --git a/src/api/resources/accounting/types/AccountResponse.ts b/src/api/resources/accounting/types/AccountResponse.ts deleted file mode 100644 index 2d756b662..000000000 --- a/src/api/resources/accounting/types/AccountResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AccountResponse { - model: Merge.accounting.Account; - warnings: Merge.accounting.WarningValidationProblem[]; - errors: Merge.accounting.ErrorValidationProblem[]; - logs?: Merge.accounting.DebugModeLog[]; -} diff --git a/src/api/resources/accounting/types/AccountStatus.ts b/src/api/resources/accounting/types/AccountStatus.ts deleted file mode 100644 index 3df1490e7..000000000 --- a/src/api/resources/accounting/types/AccountStatus.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 account's status. - * - * * `ACTIVE` - ACTIVE - * * `PENDING` - PENDING - * * `INACTIVE` - INACTIVE - */ -export type AccountStatus = Merge.accounting.AccountStatusEnum | string; diff --git a/src/api/resources/accounting/types/AccountStatusEnum.ts b/src/api/resources/accounting/types/AccountStatusEnum.ts deleted file mode 100644 index 9a0577abb..000000000 --- a/src/api/resources/accounting/types/AccountStatusEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `ACTIVE` - ACTIVE - * * `PENDING` - PENDING - * * `INACTIVE` - INACTIVE - */ -export const AccountStatusEnum = { - Active: "ACTIVE", - Pending: "PENDING", - Inactive: "INACTIVE", -} as const; -export type AccountStatusEnum = (typeof AccountStatusEnum)[keyof typeof AccountStatusEnum]; diff --git a/src/api/resources/accounting/types/AccountToken.ts b/src/api/resources/accounting/types/AccountToken.ts deleted file mode 100644 index d3d2669d5..000000000 --- a/src/api/resources/accounting/types/AccountToken.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AccountToken { - accountToken: string; - integration: Merge.accounting.AccountIntegration; - id: string; -} diff --git a/src/api/resources/accounting/types/AccountingAttachment.ts b/src/api/resources/accounting/types/AccountingAttachment.ts deleted file mode 100644 index 0367bbe95..000000000 --- a/src/api/resources/accounting/types/AccountingAttachment.ts +++ /dev/null @@ -1,31 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Accounting Attachment Object - * ### Description - * The `AccountingAttachment` object is used to represent a company's attachments. - * - * ### Usage Example - * Fetch from the `LIST AccountingAttachments` endpoint and view a company's attachments. - */ -export interface AccountingAttachment { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The attachment's name. */ - fileName?: string; - /** The attachment's url. */ - fileUrl?: string; - /** The company the accounting attachment 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/). */ - remoteWasDeleted?: boolean; - fieldMappings?: Record; - remoteData?: Merge.accounting.RemoteData[]; -} diff --git a/src/api/resources/accounting/types/AccountingAttachmentRequest.ts b/src/api/resources/accounting/types/AccountingAttachmentRequest.ts deleted file mode 100644 index 2c6c87b47..000000000 --- a/src/api/resources/accounting/types/AccountingAttachmentRequest.ts +++ /dev/null @@ -1,20 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * # The Accounting Attachment Object - * ### Description - * The `AccountingAttachment` object is used to represent a company's attachments. - * - * ### Usage Example - * Fetch from the `LIST AccountingAttachments` endpoint and view a company's attachments. - */ -export interface AccountingAttachmentRequest { - /** The attachment's name. */ - fileName?: string; - /** The attachment's url. */ - fileUrl?: string; - /** The company the accounting attachment belongs to. */ - company?: string; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/accounting/types/AccountingAttachmentResponse.ts b/src/api/resources/accounting/types/AccountingAttachmentResponse.ts deleted file mode 100644 index 0dcc572bd..000000000 --- a/src/api/resources/accounting/types/AccountingAttachmentResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AccountingAttachmentResponse { - model: Merge.accounting.AccountingAttachment; - warnings: Merge.accounting.WarningValidationProblem[]; - errors: Merge.accounting.ErrorValidationProblem[]; - logs?: Merge.accounting.DebugModeLog[]; -} diff --git a/src/api/resources/accounting/types/AccountingPeriod.ts b/src/api/resources/accounting/types/AccountingPeriod.ts deleted file mode 100644 index 343e40f92..000000000 --- a/src/api/resources/accounting/types/AccountingPeriod.ts +++ /dev/null @@ -1,30 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The AccountingPeriod Object - * ### Description - * The `AccountingPeriod` object is used to define a period of time in which events occurred. - * - * ### Usage Example - * Common models like `Invoice` and `Transaction` will have `AccountingPeriod` objects which will denote when they occurred. - */ -export interface AccountingPeriod { - 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; - /** Name of the accounting period. */ - name?: string; - status?: Merge.accounting.AccountingPeriodStatus; - /** Beginning date of the period */ - startDate?: Date; - /** End date of the period */ - endDate?: Date; - fieldMappings?: Record; - remoteData?: Merge.accounting.RemoteData[]; -} diff --git a/src/api/resources/accounting/types/AccountingPeriodStatus.ts b/src/api/resources/accounting/types/AccountingPeriodStatus.ts deleted file mode 100644 index 02959735e..000000000 --- a/src/api/resources/accounting/types/AccountingPeriodStatus.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 AccountingPeriodStatus = Merge.accounting.Status895Enum | string; diff --git a/src/api/resources/accounting/types/AccountingPhoneNumber.ts b/src/api/resources/accounting/types/AccountingPhoneNumber.ts deleted file mode 100644 index 97dde94e9..000000000 --- a/src/api/resources/accounting/types/AccountingPhoneNumber.ts +++ /dev/null @@ -1,20 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * # The AccountingPhoneNumber Object - * ### Description - * The `AccountingPhoneNumber` object is used to represent a contact's or company's phone number. - * - * ### Usage Example - * Fetch from the `GET CompanyInfo` endpoint and view the company's phone numbers. - */ -export interface AccountingPhoneNumber { - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The phone number. */ - number?: string; - /** The phone number's type. */ - type?: string; -} diff --git a/src/api/resources/accounting/types/AccountingPhoneNumberRequest.ts b/src/api/resources/accounting/types/AccountingPhoneNumberRequest.ts deleted file mode 100644 index ece7522e4..000000000 --- a/src/api/resources/accounting/types/AccountingPhoneNumberRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * # The AccountingPhoneNumber Object - * ### Description - * The `AccountingPhoneNumber` object is used to represent a contact's or company's phone number. - * - * ### Usage Example - * Fetch from the `GET CompanyInfo` endpoint and view the company's phone numbers. - */ -export interface AccountingPhoneNumberRequest { - /** The phone number. */ - number?: string; - /** The phone number's type. */ - type?: string; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/accounting/types/Address.ts b/src/api/resources/accounting/types/Address.ts deleted file mode 100644 index d6300dde9..000000000 --- a/src/api/resources/accounting/types/Address.ts +++ /dev/null @@ -1,291 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Address Object - * ### Description - * The `Address` object is used to represent a contact's or company's address. - * - * ### Usage Example - * Fetch from the `GET CompanyInfo` endpoint and view the company's addresses. - */ -export interface Address { - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** - * The address type. - * - * * `BILLING` - BILLING - * * `SHIPPING` - SHIPPING - */ - type?: Merge.accounting.AddressType; - /** Line 1 of the address's street. */ - street1?: string; - /** Line 2 of the address's street. */ - street2?: string; - /** The address's city. */ - city?: string; - /** The address's state or region. */ - state?: unknown; - /** The address's state or region. */ - countrySubdivision?: string; - /** - * The address's country. - * - * * `AF` - Afghanistan - * * `AX` - Åland Islands - * * `AL` - Albania - * * `DZ` - Algeria - * * `AS` - American Samoa - * * `AD` - Andorra - * * `AO` - Angola - * * `AI` - Anguilla - * * `AQ` - Antarctica - * * `AG` - Antigua and Barbuda - * * `AR` - Argentina - * * `AM` - Armenia - * * `AW` - Aruba - * * `AU` - Australia - * * `AT` - Austria - * * `AZ` - Azerbaijan - * * `BS` - Bahamas - * * `BH` - Bahrain - * * `BD` - Bangladesh - * * `BB` - Barbados - * * `BY` - Belarus - * * `BE` - Belgium - * * `BZ` - Belize - * * `BJ` - Benin - * * `BM` - Bermuda - * * `BT` - Bhutan - * * `BO` - Bolivia - * * `BQ` - Bonaire, Sint Eustatius and Saba - * * `BA` - Bosnia and Herzegovina - * * `BW` - Botswana - * * `BV` - Bouvet Island - * * `BR` - Brazil - * * `IO` - British Indian Ocean Territory - * * `BN` - Brunei - * * `BG` - Bulgaria - * * `BF` - Burkina Faso - * * `BI` - Burundi - * * `CV` - Cabo Verde - * * `KH` - Cambodia - * * `CM` - Cameroon - * * `CA` - Canada - * * `KY` - Cayman Islands - * * `CF` - Central African Republic - * * `TD` - Chad - * * `CL` - Chile - * * `CN` - China - * * `CX` - Christmas Island - * * `CC` - Cocos (Keeling) Islands - * * `CO` - Colombia - * * `KM` - Comoros - * * `CG` - Congo - * * `CD` - Congo (the Democratic Republic of the) - * * `CK` - Cook Islands - * * `CR` - Costa Rica - * * `CI` - Côte d'Ivoire - * * `HR` - Croatia - * * `CU` - Cuba - * * `CW` - Curaçao - * * `CY` - Cyprus - * * `CZ` - Czechia - * * `DK` - Denmark - * * `DJ` - Djibouti - * * `DM` - Dominica - * * `DO` - Dominican Republic - * * `EC` - Ecuador - * * `EG` - Egypt - * * `SV` - El Salvador - * * `GQ` - Equatorial Guinea - * * `ER` - Eritrea - * * `EE` - Estonia - * * `SZ` - Eswatini - * * `ET` - Ethiopia - * * `FK` - Falkland Islands (Malvinas) - * * `FO` - Faroe Islands - * * `FJ` - Fiji - * * `FI` - Finland - * * `FR` - France - * * `GF` - French Guiana - * * `PF` - French Polynesia - * * `TF` - French Southern Territories - * * `GA` - Gabon - * * `GM` - Gambia - * * `GE` - Georgia - * * `DE` - Germany - * * `GH` - Ghana - * * `GI` - Gibraltar - * * `GR` - Greece - * * `GL` - Greenland - * * `GD` - Grenada - * * `GP` - Guadeloupe - * * `GU` - Guam - * * `GT` - Guatemala - * * `GG` - Guernsey - * * `GN` - Guinea - * * `GW` - Guinea-Bissau - * * `GY` - Guyana - * * `HT` - Haiti - * * `HM` - Heard Island and McDonald Islands - * * `VA` - Holy See - * * `HN` - Honduras - * * `HK` - Hong Kong - * * `HU` - Hungary - * * `IS` - Iceland - * * `IN` - India - * * `ID` - Indonesia - * * `IR` - Iran - * * `IQ` - Iraq - * * `IE` - Ireland - * * `IM` - Isle of Man - * * `IL` - Israel - * * `IT` - Italy - * * `JM` - Jamaica - * * `JP` - Japan - * * `JE` - Jersey - * * `JO` - Jordan - * * `KZ` - Kazakhstan - * * `KE` - Kenya - * * `KI` - Kiribati - * * `KW` - Kuwait - * * `KG` - Kyrgyzstan - * * `LA` - Laos - * * `LV` - Latvia - * * `LB` - Lebanon - * * `LS` - Lesotho - * * `LR` - Liberia - * * `LY` - Libya - * * `LI` - Liechtenstein - * * `LT` - Lithuania - * * `LU` - Luxembourg - * * `MO` - Macao - * * `MG` - Madagascar - * * `MW` - Malawi - * * `MY` - Malaysia - * * `MV` - Maldives - * * `ML` - Mali - * * `MT` - Malta - * * `MH` - Marshall Islands - * * `MQ` - Martinique - * * `MR` - Mauritania - * * `MU` - Mauritius - * * `YT` - Mayotte - * * `MX` - Mexico - * * `FM` - Micronesia (Federated States of) - * * `MD` - Moldova - * * `MC` - Monaco - * * `MN` - Mongolia - * * `ME` - Montenegro - * * `MS` - Montserrat - * * `MA` - Morocco - * * `MZ` - Mozambique - * * `MM` - Myanmar - * * `NA` - Namibia - * * `NR` - Nauru - * * `NP` - Nepal - * * `NL` - Netherlands - * * `NC` - New Caledonia - * * `NZ` - New Zealand - * * `NI` - Nicaragua - * * `NE` - Niger - * * `NG` - Nigeria - * * `NU` - Niue - * * `NF` - Norfolk Island - * * `KP` - North Korea - * * `MK` - North Macedonia - * * `MP` - Northern Mariana Islands - * * `NO` - Norway - * * `OM` - Oman - * * `PK` - Pakistan - * * `PW` - Palau - * * `PS` - Palestine, State of - * * `PA` - Panama - * * `PG` - Papua New Guinea - * * `PY` - Paraguay - * * `PE` - Peru - * * `PH` - Philippines - * * `PN` - Pitcairn - * * `PL` - Poland - * * `PT` - Portugal - * * `PR` - Puerto Rico - * * `QA` - Qatar - * * `RE` - Réunion - * * `RO` - Romania - * * `RU` - Russia - * * `RW` - Rwanda - * * `BL` - Saint Barthélemy - * * `SH` - Saint Helena, Ascension and Tristan da Cunha - * * `KN` - Saint Kitts and Nevis - * * `LC` - Saint Lucia - * * `MF` - Saint Martin (French part) - * * `PM` - Saint Pierre and Miquelon - * * `VC` - Saint Vincent and the Grenadines - * * `WS` - Samoa - * * `SM` - San Marino - * * `ST` - Sao Tome and Principe - * * `SA` - Saudi Arabia - * * `SN` - Senegal - * * `RS` - Serbia - * * `SC` - Seychelles - * * `SL` - Sierra Leone - * * `SG` - Singapore - * * `SX` - Sint Maarten (Dutch part) - * * `SK` - Slovakia - * * `SI` - Slovenia - * * `SB` - Solomon Islands - * * `SO` - Somalia - * * `ZA` - South Africa - * * `GS` - South Georgia and the South Sandwich Islands - * * `KR` - South Korea - * * `SS` - South Sudan - * * `ES` - Spain - * * `LK` - Sri Lanka - * * `SD` - Sudan - * * `SR` - Suriname - * * `SJ` - Svalbard and Jan Mayen - * * `SE` - Sweden - * * `CH` - Switzerland - * * `SY` - Syria - * * `TW` - Taiwan - * * `TJ` - Tajikistan - * * `TZ` - Tanzania - * * `TH` - Thailand - * * `TL` - Timor-Leste - * * `TG` - Togo - * * `TK` - Tokelau - * * `TO` - Tonga - * * `TT` - Trinidad and Tobago - * * `TN` - Tunisia - * * `TR` - Turkey - * * `TM` - Turkmenistan - * * `TC` - Turks and Caicos Islands - * * `TV` - Tuvalu - * * `UG` - Uganda - * * `UA` - Ukraine - * * `AE` - United Arab Emirates - * * `GB` - United Kingdom - * * `UM` - United States Minor Outlying Islands - * * `US` - United States of America - * * `UY` - Uruguay - * * `UZ` - Uzbekistan - * * `VU` - Vanuatu - * * `VE` - Venezuela - * * `VN` - Vietnam - * * `VG` - Virgin Islands (British) - * * `VI` - Virgin Islands (U.S.) - * * `WF` - Wallis and Futuna - * * `EH` - Western Sahara - * * `YE` - Yemen - * * `ZM` - Zambia - * * `ZW` - Zimbabwe - */ - country?: Merge.accounting.AddressCountry; - /** The address's zip code. */ - zipCode?: string; -} diff --git a/src/api/resources/accounting/types/AddressCountry.ts b/src/api/resources/accounting/types/AddressCountry.ts deleted file mode 100644 index fd53643ec..000000000 --- a/src/api/resources/accounting/types/AddressCountry.ts +++ /dev/null @@ -1,258 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The address's country. - * - * * `AF` - Afghanistan - * * `AX` - Åland Islands - * * `AL` - Albania - * * `DZ` - Algeria - * * `AS` - American Samoa - * * `AD` - Andorra - * * `AO` - Angola - * * `AI` - Anguilla - * * `AQ` - Antarctica - * * `AG` - Antigua and Barbuda - * * `AR` - Argentina - * * `AM` - Armenia - * * `AW` - Aruba - * * `AU` - Australia - * * `AT` - Austria - * * `AZ` - Azerbaijan - * * `BS` - Bahamas - * * `BH` - Bahrain - * * `BD` - Bangladesh - * * `BB` - Barbados - * * `BY` - Belarus - * * `BE` - Belgium - * * `BZ` - Belize - * * `BJ` - Benin - * * `BM` - Bermuda - * * `BT` - Bhutan - * * `BO` - Bolivia - * * `BQ` - Bonaire, Sint Eustatius and Saba - * * `BA` - Bosnia and Herzegovina - * * `BW` - Botswana - * * `BV` - Bouvet Island - * * `BR` - Brazil - * * `IO` - British Indian Ocean Territory - * * `BN` - Brunei - * * `BG` - Bulgaria - * * `BF` - Burkina Faso - * * `BI` - Burundi - * * `CV` - Cabo Verde - * * `KH` - Cambodia - * * `CM` - Cameroon - * * `CA` - Canada - * * `KY` - Cayman Islands - * * `CF` - Central African Republic - * * `TD` - Chad - * * `CL` - Chile - * * `CN` - China - * * `CX` - Christmas Island - * * `CC` - Cocos (Keeling) Islands - * * `CO` - Colombia - * * `KM` - Comoros - * * `CG` - Congo - * * `CD` - Congo (the Democratic Republic of the) - * * `CK` - Cook Islands - * * `CR` - Costa Rica - * * `CI` - Côte d'Ivoire - * * `HR` - Croatia - * * `CU` - Cuba - * * `CW` - Curaçao - * * `CY` - Cyprus - * * `CZ` - Czechia - * * `DK` - Denmark - * * `DJ` - Djibouti - * * `DM` - Dominica - * * `DO` - Dominican Republic - * * `EC` - Ecuador - * * `EG` - Egypt - * * `SV` - El Salvador - * * `GQ` - Equatorial Guinea - * * `ER` - Eritrea - * * `EE` - Estonia - * * `SZ` - Eswatini - * * `ET` - Ethiopia - * * `FK` - Falkland Islands (Malvinas) - * * `FO` - Faroe Islands - * * `FJ` - Fiji - * * `FI` - Finland - * * `FR` - France - * * `GF` - French Guiana - * * `PF` - French Polynesia - * * `TF` - French Southern Territories - * * `GA` - Gabon - * * `GM` - Gambia - * * `GE` - Georgia - * * `DE` - Germany - * * `GH` - Ghana - * * `GI` - Gibraltar - * * `GR` - Greece - * * `GL` - Greenland - * * `GD` - Grenada - * * `GP` - Guadeloupe - * * `GU` - Guam - * * `GT` - Guatemala - * * `GG` - Guernsey - * * `GN` - Guinea - * * `GW` - Guinea-Bissau - * * `GY` - Guyana - * * `HT` - Haiti - * * `HM` - Heard Island and McDonald Islands - * * `VA` - Holy See - * * `HN` - Honduras - * * `HK` - Hong Kong - * * `HU` - Hungary - * * `IS` - Iceland - * * `IN` - India - * * `ID` - Indonesia - * * `IR` - Iran - * * `IQ` - Iraq - * * `IE` - Ireland - * * `IM` - Isle of Man - * * `IL` - Israel - * * `IT` - Italy - * * `JM` - Jamaica - * * `JP` - Japan - * * `JE` - Jersey - * * `JO` - Jordan - * * `KZ` - Kazakhstan - * * `KE` - Kenya - * * `KI` - Kiribati - * * `KW` - Kuwait - * * `KG` - Kyrgyzstan - * * `LA` - Laos - * * `LV` - Latvia - * * `LB` - Lebanon - * * `LS` - Lesotho - * * `LR` - Liberia - * * `LY` - Libya - * * `LI` - Liechtenstein - * * `LT` - Lithuania - * * `LU` - Luxembourg - * * `MO` - Macao - * * `MG` - Madagascar - * * `MW` - Malawi - * * `MY` - Malaysia - * * `MV` - Maldives - * * `ML` - Mali - * * `MT` - Malta - * * `MH` - Marshall Islands - * * `MQ` - Martinique - * * `MR` - Mauritania - * * `MU` - Mauritius - * * `YT` - Mayotte - * * `MX` - Mexico - * * `FM` - Micronesia (Federated States of) - * * `MD` - Moldova - * * `MC` - Monaco - * * `MN` - Mongolia - * * `ME` - Montenegro - * * `MS` - Montserrat - * * `MA` - Morocco - * * `MZ` - Mozambique - * * `MM` - Myanmar - * * `NA` - Namibia - * * `NR` - Nauru - * * `NP` - Nepal - * * `NL` - Netherlands - * * `NC` - New Caledonia - * * `NZ` - New Zealand - * * `NI` - Nicaragua - * * `NE` - Niger - * * `NG` - Nigeria - * * `NU` - Niue - * * `NF` - Norfolk Island - * * `KP` - North Korea - * * `MK` - North Macedonia - * * `MP` - Northern Mariana Islands - * * `NO` - Norway - * * `OM` - Oman - * * `PK` - Pakistan - * * `PW` - Palau - * * `PS` - Palestine, State of - * * `PA` - Panama - * * `PG` - Papua New Guinea - * * `PY` - Paraguay - * * `PE` - Peru - * * `PH` - Philippines - * * `PN` - Pitcairn - * * `PL` - Poland - * * `PT` - Portugal - * * `PR` - Puerto Rico - * * `QA` - Qatar - * * `RE` - Réunion - * * `RO` - Romania - * * `RU` - Russia - * * `RW` - Rwanda - * * `BL` - Saint Barthélemy - * * `SH` - Saint Helena, Ascension and Tristan da Cunha - * * `KN` - Saint Kitts and Nevis - * * `LC` - Saint Lucia - * * `MF` - Saint Martin (French part) - * * `PM` - Saint Pierre and Miquelon - * * `VC` - Saint Vincent and the Grenadines - * * `WS` - Samoa - * * `SM` - San Marino - * * `ST` - Sao Tome and Principe - * * `SA` - Saudi Arabia - * * `SN` - Senegal - * * `RS` - Serbia - * * `SC` - Seychelles - * * `SL` - Sierra Leone - * * `SG` - Singapore - * * `SX` - Sint Maarten (Dutch part) - * * `SK` - Slovakia - * * `SI` - Slovenia - * * `SB` - Solomon Islands - * * `SO` - Somalia - * * `ZA` - South Africa - * * `GS` - South Georgia and the South Sandwich Islands - * * `KR` - South Korea - * * `SS` - South Sudan - * * `ES` - Spain - * * `LK` - Sri Lanka - * * `SD` - Sudan - * * `SR` - Suriname - * * `SJ` - Svalbard and Jan Mayen - * * `SE` - Sweden - * * `CH` - Switzerland - * * `SY` - Syria - * * `TW` - Taiwan - * * `TJ` - Tajikistan - * * `TZ` - Tanzania - * * `TH` - Thailand - * * `TL` - Timor-Leste - * * `TG` - Togo - * * `TK` - Tokelau - * * `TO` - Tonga - * * `TT` - Trinidad and Tobago - * * `TN` - Tunisia - * * `TR` - Turkey - * * `TM` - Turkmenistan - * * `TC` - Turks and Caicos Islands - * * `TV` - Tuvalu - * * `UG` - Uganda - * * `UA` - Ukraine - * * `AE` - United Arab Emirates - * * `GB` - United Kingdom - * * `UM` - United States Minor Outlying Islands - * * `US` - United States of America - * * `UY` - Uruguay - * * `UZ` - Uzbekistan - * * `VU` - Vanuatu - * * `VE` - Venezuela - * * `VN` - Vietnam - * * `VG` - Virgin Islands (British) - * * `VI` - Virgin Islands (U.S.) - * * `WF` - Wallis and Futuna - * * `EH` - Western Sahara - * * `YE` - Yemen - * * `ZM` - Zambia - * * `ZW` - Zimbabwe - */ -export type AddressCountry = Merge.accounting.CountryEnum | string; diff --git a/src/api/resources/accounting/types/AddressRequest.ts b/src/api/resources/accounting/types/AddressRequest.ts deleted file mode 100644 index 9422fba0e..000000000 --- a/src/api/resources/accounting/types/AddressRequest.ts +++ /dev/null @@ -1,287 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Address Object - * ### Description - * The `Address` object is used to represent a contact's or company's address. - * - * ### Usage Example - * Fetch from the `GET CompanyInfo` endpoint and view the company's addresses. - */ -export interface AddressRequest { - /** - * The address type. - * - * * `BILLING` - BILLING - * * `SHIPPING` - SHIPPING - */ - type?: Merge.accounting.AddressRequestType; - /** Line 1 of the address's street. */ - street1?: string; - /** Line 2 of the address's street. */ - street2?: string; - /** The address's city. */ - city?: string; - /** The address's state or region. */ - countrySubdivision?: string; - /** - * The address's country. - * - * * `AF` - Afghanistan - * * `AX` - Åland Islands - * * `AL` - Albania - * * `DZ` - Algeria - * * `AS` - American Samoa - * * `AD` - Andorra - * * `AO` - Angola - * * `AI` - Anguilla - * * `AQ` - Antarctica - * * `AG` - Antigua and Barbuda - * * `AR` - Argentina - * * `AM` - Armenia - * * `AW` - Aruba - * * `AU` - Australia - * * `AT` - Austria - * * `AZ` - Azerbaijan - * * `BS` - Bahamas - * * `BH` - Bahrain - * * `BD` - Bangladesh - * * `BB` - Barbados - * * `BY` - Belarus - * * `BE` - Belgium - * * `BZ` - Belize - * * `BJ` - Benin - * * `BM` - Bermuda - * * `BT` - Bhutan - * * `BO` - Bolivia - * * `BQ` - Bonaire, Sint Eustatius and Saba - * * `BA` - Bosnia and Herzegovina - * * `BW` - Botswana - * * `BV` - Bouvet Island - * * `BR` - Brazil - * * `IO` - British Indian Ocean Territory - * * `BN` - Brunei - * * `BG` - Bulgaria - * * `BF` - Burkina Faso - * * `BI` - Burundi - * * `CV` - Cabo Verde - * * `KH` - Cambodia - * * `CM` - Cameroon - * * `CA` - Canada - * * `KY` - Cayman Islands - * * `CF` - Central African Republic - * * `TD` - Chad - * * `CL` - Chile - * * `CN` - China - * * `CX` - Christmas Island - * * `CC` - Cocos (Keeling) Islands - * * `CO` - Colombia - * * `KM` - Comoros - * * `CG` - Congo - * * `CD` - Congo (the Democratic Republic of the) - * * `CK` - Cook Islands - * * `CR` - Costa Rica - * * `CI` - Côte d'Ivoire - * * `HR` - Croatia - * * `CU` - Cuba - * * `CW` - Curaçao - * * `CY` - Cyprus - * * `CZ` - Czechia - * * `DK` - Denmark - * * `DJ` - Djibouti - * * `DM` - Dominica - * * `DO` - Dominican Republic - * * `EC` - Ecuador - * * `EG` - Egypt - * * `SV` - El Salvador - * * `GQ` - Equatorial Guinea - * * `ER` - Eritrea - * * `EE` - Estonia - * * `SZ` - Eswatini - * * `ET` - Ethiopia - * * `FK` - Falkland Islands (Malvinas) - * * `FO` - Faroe Islands - * * `FJ` - Fiji - * * `FI` - Finland - * * `FR` - France - * * `GF` - French Guiana - * * `PF` - French Polynesia - * * `TF` - French Southern Territories - * * `GA` - Gabon - * * `GM` - Gambia - * * `GE` - Georgia - * * `DE` - Germany - * * `GH` - Ghana - * * `GI` - Gibraltar - * * `GR` - Greece - * * `GL` - Greenland - * * `GD` - Grenada - * * `GP` - Guadeloupe - * * `GU` - Guam - * * `GT` - Guatemala - * * `GG` - Guernsey - * * `GN` - Guinea - * * `GW` - Guinea-Bissau - * * `GY` - Guyana - * * `HT` - Haiti - * * `HM` - Heard Island and McDonald Islands - * * `VA` - Holy See - * * `HN` - Honduras - * * `HK` - Hong Kong - * * `HU` - Hungary - * * `IS` - Iceland - * * `IN` - India - * * `ID` - Indonesia - * * `IR` - Iran - * * `IQ` - Iraq - * * `IE` - Ireland - * * `IM` - Isle of Man - * * `IL` - Israel - * * `IT` - Italy - * * `JM` - Jamaica - * * `JP` - Japan - * * `JE` - Jersey - * * `JO` - Jordan - * * `KZ` - Kazakhstan - * * `KE` - Kenya - * * `KI` - Kiribati - * * `KW` - Kuwait - * * `KG` - Kyrgyzstan - * * `LA` - Laos - * * `LV` - Latvia - * * `LB` - Lebanon - * * `LS` - Lesotho - * * `LR` - Liberia - * * `LY` - Libya - * * `LI` - Liechtenstein - * * `LT` - Lithuania - * * `LU` - Luxembourg - * * `MO` - Macao - * * `MG` - Madagascar - * * `MW` - Malawi - * * `MY` - Malaysia - * * `MV` - Maldives - * * `ML` - Mali - * * `MT` - Malta - * * `MH` - Marshall Islands - * * `MQ` - Martinique - * * `MR` - Mauritania - * * `MU` - Mauritius - * * `YT` - Mayotte - * * `MX` - Mexico - * * `FM` - Micronesia (Federated States of) - * * `MD` - Moldova - * * `MC` - Monaco - * * `MN` - Mongolia - * * `ME` - Montenegro - * * `MS` - Montserrat - * * `MA` - Morocco - * * `MZ` - Mozambique - * * `MM` - Myanmar - * * `NA` - Namibia - * * `NR` - Nauru - * * `NP` - Nepal - * * `NL` - Netherlands - * * `NC` - New Caledonia - * * `NZ` - New Zealand - * * `NI` - Nicaragua - * * `NE` - Niger - * * `NG` - Nigeria - * * `NU` - Niue - * * `NF` - Norfolk Island - * * `KP` - North Korea - * * `MK` - North Macedonia - * * `MP` - Northern Mariana Islands - * * `NO` - Norway - * * `OM` - Oman - * * `PK` - Pakistan - * * `PW` - Palau - * * `PS` - Palestine, State of - * * `PA` - Panama - * * `PG` - Papua New Guinea - * * `PY` - Paraguay - * * `PE` - Peru - * * `PH` - Philippines - * * `PN` - Pitcairn - * * `PL` - Poland - * * `PT` - Portugal - * * `PR` - Puerto Rico - * * `QA` - Qatar - * * `RE` - Réunion - * * `RO` - Romania - * * `RU` - Russia - * * `RW` - Rwanda - * * `BL` - Saint Barthélemy - * * `SH` - Saint Helena, Ascension and Tristan da Cunha - * * `KN` - Saint Kitts and Nevis - * * `LC` - Saint Lucia - * * `MF` - Saint Martin (French part) - * * `PM` - Saint Pierre and Miquelon - * * `VC` - Saint Vincent and the Grenadines - * * `WS` - Samoa - * * `SM` - San Marino - * * `ST` - Sao Tome and Principe - * * `SA` - Saudi Arabia - * * `SN` - Senegal - * * `RS` - Serbia - * * `SC` - Seychelles - * * `SL` - Sierra Leone - * * `SG` - Singapore - * * `SX` - Sint Maarten (Dutch part) - * * `SK` - Slovakia - * * `SI` - Slovenia - * * `SB` - Solomon Islands - * * `SO` - Somalia - * * `ZA` - South Africa - * * `GS` - South Georgia and the South Sandwich Islands - * * `KR` - South Korea - * * `SS` - South Sudan - * * `ES` - Spain - * * `LK` - Sri Lanka - * * `SD` - Sudan - * * `SR` - Suriname - * * `SJ` - Svalbard and Jan Mayen - * * `SE` - Sweden - * * `CH` - Switzerland - * * `SY` - Syria - * * `TW` - Taiwan - * * `TJ` - Tajikistan - * * `TZ` - Tanzania - * * `TH` - Thailand - * * `TL` - Timor-Leste - * * `TG` - Togo - * * `TK` - Tokelau - * * `TO` - Tonga - * * `TT` - Trinidad and Tobago - * * `TN` - Tunisia - * * `TR` - Turkey - * * `TM` - Turkmenistan - * * `TC` - Turks and Caicos Islands - * * `TV` - Tuvalu - * * `UG` - Uganda - * * `UA` - Ukraine - * * `AE` - United Arab Emirates - * * `GB` - United Kingdom - * * `UM` - United States Minor Outlying Islands - * * `US` - United States of America - * * `UY` - Uruguay - * * `UZ` - Uzbekistan - * * `VU` - Vanuatu - * * `VE` - Venezuela - * * `VN` - Vietnam - * * `VG` - Virgin Islands (British) - * * `VI` - Virgin Islands (U.S.) - * * `WF` - Wallis and Futuna - * * `EH` - Western Sahara - * * `YE` - Yemen - * * `ZM` - Zambia - * * `ZW` - Zimbabwe - */ - country?: Merge.accounting.AddressRequestCountry; - /** The address's zip code. */ - zipCode?: string; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/accounting/types/AddressRequestCountry.ts b/src/api/resources/accounting/types/AddressRequestCountry.ts deleted file mode 100644 index 3406cd24d..000000000 --- a/src/api/resources/accounting/types/AddressRequestCountry.ts +++ /dev/null @@ -1,258 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The address's country. - * - * * `AF` - Afghanistan - * * `AX` - Åland Islands - * * `AL` - Albania - * * `DZ` - Algeria - * * `AS` - American Samoa - * * `AD` - Andorra - * * `AO` - Angola - * * `AI` - Anguilla - * * `AQ` - Antarctica - * * `AG` - Antigua and Barbuda - * * `AR` - Argentina - * * `AM` - Armenia - * * `AW` - Aruba - * * `AU` - Australia - * * `AT` - Austria - * * `AZ` - Azerbaijan - * * `BS` - Bahamas - * * `BH` - Bahrain - * * `BD` - Bangladesh - * * `BB` - Barbados - * * `BY` - Belarus - * * `BE` - Belgium - * * `BZ` - Belize - * * `BJ` - Benin - * * `BM` - Bermuda - * * `BT` - Bhutan - * * `BO` - Bolivia - * * `BQ` - Bonaire, Sint Eustatius and Saba - * * `BA` - Bosnia and Herzegovina - * * `BW` - Botswana - * * `BV` - Bouvet Island - * * `BR` - Brazil - * * `IO` - British Indian Ocean Territory - * * `BN` - Brunei - * * `BG` - Bulgaria - * * `BF` - Burkina Faso - * * `BI` - Burundi - * * `CV` - Cabo Verde - * * `KH` - Cambodia - * * `CM` - Cameroon - * * `CA` - Canada - * * `KY` - Cayman Islands - * * `CF` - Central African Republic - * * `TD` - Chad - * * `CL` - Chile - * * `CN` - China - * * `CX` - Christmas Island - * * `CC` - Cocos (Keeling) Islands - * * `CO` - Colombia - * * `KM` - Comoros - * * `CG` - Congo - * * `CD` - Congo (the Democratic Republic of the) - * * `CK` - Cook Islands - * * `CR` - Costa Rica - * * `CI` - Côte d'Ivoire - * * `HR` - Croatia - * * `CU` - Cuba - * * `CW` - Curaçao - * * `CY` - Cyprus - * * `CZ` - Czechia - * * `DK` - Denmark - * * `DJ` - Djibouti - * * `DM` - Dominica - * * `DO` - Dominican Republic - * * `EC` - Ecuador - * * `EG` - Egypt - * * `SV` - El Salvador - * * `GQ` - Equatorial Guinea - * * `ER` - Eritrea - * * `EE` - Estonia - * * `SZ` - Eswatini - * * `ET` - Ethiopia - * * `FK` - Falkland Islands (Malvinas) - * * `FO` - Faroe Islands - * * `FJ` - Fiji - * * `FI` - Finland - * * `FR` - France - * * `GF` - French Guiana - * * `PF` - French Polynesia - * * `TF` - French Southern Territories - * * `GA` - Gabon - * * `GM` - Gambia - * * `GE` - Georgia - * * `DE` - Germany - * * `GH` - Ghana - * * `GI` - Gibraltar - * * `GR` - Greece - * * `GL` - Greenland - * * `GD` - Grenada - * * `GP` - Guadeloupe - * * `GU` - Guam - * * `GT` - Guatemala - * * `GG` - Guernsey - * * `GN` - Guinea - * * `GW` - Guinea-Bissau - * * `GY` - Guyana - * * `HT` - Haiti - * * `HM` - Heard Island and McDonald Islands - * * `VA` - Holy See - * * `HN` - Honduras - * * `HK` - Hong Kong - * * `HU` - Hungary - * * `IS` - Iceland - * * `IN` - India - * * `ID` - Indonesia - * * `IR` - Iran - * * `IQ` - Iraq - * * `IE` - Ireland - * * `IM` - Isle of Man - * * `IL` - Israel - * * `IT` - Italy - * * `JM` - Jamaica - * * `JP` - Japan - * * `JE` - Jersey - * * `JO` - Jordan - * * `KZ` - Kazakhstan - * * `KE` - Kenya - * * `KI` - Kiribati - * * `KW` - Kuwait - * * `KG` - Kyrgyzstan - * * `LA` - Laos - * * `LV` - Latvia - * * `LB` - Lebanon - * * `LS` - Lesotho - * * `LR` - Liberia - * * `LY` - Libya - * * `LI` - Liechtenstein - * * `LT` - Lithuania - * * `LU` - Luxembourg - * * `MO` - Macao - * * `MG` - Madagascar - * * `MW` - Malawi - * * `MY` - Malaysia - * * `MV` - Maldives - * * `ML` - Mali - * * `MT` - Malta - * * `MH` - Marshall Islands - * * `MQ` - Martinique - * * `MR` - Mauritania - * * `MU` - Mauritius - * * `YT` - Mayotte - * * `MX` - Mexico - * * `FM` - Micronesia (Federated States of) - * * `MD` - Moldova - * * `MC` - Monaco - * * `MN` - Mongolia - * * `ME` - Montenegro - * * `MS` - Montserrat - * * `MA` - Morocco - * * `MZ` - Mozambique - * * `MM` - Myanmar - * * `NA` - Namibia - * * `NR` - Nauru - * * `NP` - Nepal - * * `NL` - Netherlands - * * `NC` - New Caledonia - * * `NZ` - New Zealand - * * `NI` - Nicaragua - * * `NE` - Niger - * * `NG` - Nigeria - * * `NU` - Niue - * * `NF` - Norfolk Island - * * `KP` - North Korea - * * `MK` - North Macedonia - * * `MP` - Northern Mariana Islands - * * `NO` - Norway - * * `OM` - Oman - * * `PK` - Pakistan - * * `PW` - Palau - * * `PS` - Palestine, State of - * * `PA` - Panama - * * `PG` - Papua New Guinea - * * `PY` - Paraguay - * * `PE` - Peru - * * `PH` - Philippines - * * `PN` - Pitcairn - * * `PL` - Poland - * * `PT` - Portugal - * * `PR` - Puerto Rico - * * `QA` - Qatar - * * `RE` - Réunion - * * `RO` - Romania - * * `RU` - Russia - * * `RW` - Rwanda - * * `BL` - Saint Barthélemy - * * `SH` - Saint Helena, Ascension and Tristan da Cunha - * * `KN` - Saint Kitts and Nevis - * * `LC` - Saint Lucia - * * `MF` - Saint Martin (French part) - * * `PM` - Saint Pierre and Miquelon - * * `VC` - Saint Vincent and the Grenadines - * * `WS` - Samoa - * * `SM` - San Marino - * * `ST` - Sao Tome and Principe - * * `SA` - Saudi Arabia - * * `SN` - Senegal - * * `RS` - Serbia - * * `SC` - Seychelles - * * `SL` - Sierra Leone - * * `SG` - Singapore - * * `SX` - Sint Maarten (Dutch part) - * * `SK` - Slovakia - * * `SI` - Slovenia - * * `SB` - Solomon Islands - * * `SO` - Somalia - * * `ZA` - South Africa - * * `GS` - South Georgia and the South Sandwich Islands - * * `KR` - South Korea - * * `SS` - South Sudan - * * `ES` - Spain - * * `LK` - Sri Lanka - * * `SD` - Sudan - * * `SR` - Suriname - * * `SJ` - Svalbard and Jan Mayen - * * `SE` - Sweden - * * `CH` - Switzerland - * * `SY` - Syria - * * `TW` - Taiwan - * * `TJ` - Tajikistan - * * `TZ` - Tanzania - * * `TH` - Thailand - * * `TL` - Timor-Leste - * * `TG` - Togo - * * `TK` - Tokelau - * * `TO` - Tonga - * * `TT` - Trinidad and Tobago - * * `TN` - Tunisia - * * `TR` - Turkey - * * `TM` - Turkmenistan - * * `TC` - Turks and Caicos Islands - * * `TV` - Tuvalu - * * `UG` - Uganda - * * `UA` - Ukraine - * * `AE` - United Arab Emirates - * * `GB` - United Kingdom - * * `UM` - United States Minor Outlying Islands - * * `US` - United States of America - * * `UY` - Uruguay - * * `UZ` - Uzbekistan - * * `VU` - Vanuatu - * * `VE` - Venezuela - * * `VN` - Vietnam - * * `VG` - Virgin Islands (British) - * * `VI` - Virgin Islands (U.S.) - * * `WF` - Wallis and Futuna - * * `EH` - Western Sahara - * * `YE` - Yemen - * * `ZM` - Zambia - * * `ZW` - Zimbabwe - */ -export type AddressRequestCountry = Merge.accounting.CountryEnum | string; diff --git a/src/api/resources/accounting/types/AddressRequestType.ts b/src/api/resources/accounting/types/AddressRequestType.ts deleted file mode 100644 index 0d64a7ee7..000000000 --- a/src/api/resources/accounting/types/AddressRequestType.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 address type. - * - * * `BILLING` - BILLING - * * `SHIPPING` - SHIPPING - */ -export type AddressRequestType = Merge.accounting.AddressTypeEnum | string; diff --git a/src/api/resources/accounting/types/AddressType.ts b/src/api/resources/accounting/types/AddressType.ts deleted file mode 100644 index d642e700a..000000000 --- a/src/api/resources/accounting/types/AddressType.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 address type. - * - * * `BILLING` - BILLING - * * `SHIPPING` - SHIPPING - */ -export type AddressType = Merge.accounting.AddressTypeEnum | string; diff --git a/src/api/resources/accounting/types/AddressTypeEnum.ts b/src/api/resources/accounting/types/AddressTypeEnum.ts deleted file mode 100644 index 6258b1416..000000000 --- a/src/api/resources/accounting/types/AddressTypeEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `BILLING` - BILLING - * * `SHIPPING` - SHIPPING - */ -export const AddressTypeEnum = { - Billing: "BILLING", - Shipping: "SHIPPING", -} as const; -export type AddressTypeEnum = (typeof AddressTypeEnum)[keyof typeof AddressTypeEnum]; diff --git a/src/api/resources/accounting/types/AdvancedMetadata.ts b/src/api/resources/accounting/types/AdvancedMetadata.ts deleted file mode 100644 index e5877563c..000000000 --- a/src/api/resources/accounting/types/AdvancedMetadata.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface AdvancedMetadata { - id: string; - displayName?: string; - description?: string; - isRequired?: boolean; - isCustom?: boolean; - fieldChoices?: unknown[]; -} diff --git a/src/api/resources/accounting/types/AsyncPassthroughReciept.ts b/src/api/resources/accounting/types/AsyncPassthroughReciept.ts deleted file mode 100644 index d8bace047..000000000 --- a/src/api/resources/accounting/types/AsyncPassthroughReciept.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface AsyncPassthroughReciept { - asyncPassthroughReceiptId: string; -} diff --git a/src/api/resources/accounting/types/AsyncPostTask.ts b/src/api/resources/accounting/types/AsyncPostTask.ts deleted file mode 100644 index b2a2e1157..000000000 --- a/src/api/resources/accounting/types/AsyncPostTask.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AsyncPostTask { - status: Merge.accounting.AsyncPostTaskStatus; - result: Merge.accounting.AsyncPostTaskResult; -} diff --git a/src/api/resources/accounting/types/AsyncPostTaskResult.ts b/src/api/resources/accounting/types/AsyncPostTaskResult.ts deleted file mode 100644 index 8a1bad2aa..000000000 --- a/src/api/resources/accounting/types/AsyncPostTaskResult.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface AsyncPostTaskResult { - statusCode?: number; - response?: Record; -} diff --git a/src/api/resources/accounting/types/AsyncPostTaskStatus.ts b/src/api/resources/accounting/types/AsyncPostTaskStatus.ts deleted file mode 100644 index a9d9344f3..000000000 --- a/src/api/resources/accounting/types/AsyncPostTaskStatus.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 AsyncPostTaskStatus = Merge.accounting.AsyncPostTaskStatusEnum | string; diff --git a/src/api/resources/accounting/types/AsyncPostTaskStatusEnum.ts b/src/api/resources/accounting/types/AsyncPostTaskStatusEnum.ts deleted file mode 100644 index edc72365b..000000000 --- a/src/api/resources/accounting/types/AsyncPostTaskStatusEnum.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `QUEUED` - QUEUED - * * `IN_PROGRESS` - IN_PROGRESS - * * `COMPLETED` - COMPLETED - * * `FAILURE` - FAILURE - */ -export const AsyncPostTaskStatusEnum = { - Queued: "QUEUED", - InProgress: "IN_PROGRESS", - Completed: "COMPLETED", - Failure: "FAILURE", -} as const; -export type AsyncPostTaskStatusEnum = (typeof AsyncPostTaskStatusEnum)[keyof typeof AsyncPostTaskStatusEnum]; diff --git a/src/api/resources/accounting/types/AuditLogEvent.ts b/src/api/resources/accounting/types/AuditLogEvent.ts deleted file mode 100644 index 655a1e991..000000000 --- a/src/api/resources/accounting/types/AuditLogEvent.ts +++ /dev/null @@ -1,73 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AuditLogEvent { - id?: string; - /** The User's full name at the time of this Event occurring. */ - userName?: string; - /** The User's email at the time of this Event occurring. */ - userEmail?: string; - /** - * Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. - * - * * `ADMIN` - ADMIN - * * `DEVELOPER` - DEVELOPER - * * `MEMBER` - MEMBER - * * `API` - API - * * `SYSTEM` - SYSTEM - * * `MERGE_TEAM` - MERGE_TEAM - */ - role: Merge.accounting.AuditLogEventRole; - ipAddress: string; - /** - * Designates the type of event that occurred. - * - * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * * `INVITED_USER` - INVITED_USER - * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * * `CREATED_DESTINATION` - CREATED_DESTINATION - * * `DELETED_DESTINATION` - DELETED_DESTINATION - * * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * * `CHANGED_SCOPES` - CHANGED_SCOPES - * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * * `RESET_PASSWORD` - RESET_PASSWORD - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * * `MUTED_ISSUE` - MUTED_ISSUE - * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - */ - eventType: Merge.accounting.AuditLogEventEventType; - eventDescription: string; - createdAt?: Date; -} diff --git a/src/api/resources/accounting/types/AuditLogEventEventType.ts b/src/api/resources/accounting/types/AuditLogEventEventType.ts deleted file mode 100644 index 4145d2f13..000000000 --- a/src/api/resources/accounting/types/AuditLogEventEventType.ts +++ /dev/null @@ -1,52 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * Designates the type of event that occurred. - * - * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * * `INVITED_USER` - INVITED_USER - * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * * `CREATED_DESTINATION` - CREATED_DESTINATION - * * `DELETED_DESTINATION` - DELETED_DESTINATION - * * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * * `CHANGED_SCOPES` - CHANGED_SCOPES - * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * * `RESET_PASSWORD` - RESET_PASSWORD - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * * `MUTED_ISSUE` - MUTED_ISSUE - * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - */ -export type AuditLogEventEventType = Merge.accounting.EventTypeEnum | string; diff --git a/src/api/resources/accounting/types/AuditLogEventRole.ts b/src/api/resources/accounting/types/AuditLogEventRole.ts deleted file mode 100644 index 0bd2199d6..000000000 --- a/src/api/resources/accounting/types/AuditLogEventRole.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. - * - * * `ADMIN` - ADMIN - * * `DEVELOPER` - DEVELOPER - * * `MEMBER` - MEMBER - * * `API` - API - * * `SYSTEM` - SYSTEM - * * `MERGE_TEAM` - MERGE_TEAM - */ -export type AuditLogEventRole = Merge.accounting.RoleEnum | string; diff --git a/src/api/resources/accounting/types/AvailableActions.ts b/src/api/resources/accounting/types/AvailableActions.ts deleted file mode 100644 index f8b9167ed..000000000 --- a/src/api/resources/accounting/types/AvailableActions.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The AvailableActions Object - * ### Description - * The `Activity` object is used to see all available model/operation combinations for an integration. - * - * ### Usage Example - * Fetch all the actions available for the `Zenefits` integration. - */ -export interface AvailableActions { - integration: Merge.accounting.AccountIntegration; - passthroughAvailable: boolean; - availableModelOperations?: Merge.accounting.ModelOperation[]; -} diff --git a/src/api/resources/accounting/types/BalanceSheet.ts b/src/api/resources/accounting/types/BalanceSheet.ts deleted file mode 100644 index 84d2a8c6c..000000000 --- a/src/api/resources/accounting/types/BalanceSheet.ts +++ /dev/null @@ -1,349 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The BalanceSheet Object - * ### Description - * The `BalanceSheet` object shows a company’s assets, liabilities, and equity. Assets should be equal to liability and equity combined. This shows the company’s financial health at a specific point in time. - * - * ### Usage Example - * Fetch from the `LIST BalanceSheets` endpoint and view a company's balance sheets. - */ -export interface BalanceSheet { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The balance sheet's name. */ - name?: string; - /** - * The balance sheet'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.BalanceSheetCurrency; - /** `Company` object for the given `BalanceSheet` object. */ - company?: Merge.accounting.BalanceSheetCompany; - /** The balance sheet's date. The balance sheet data will reflect the company's financial position this point in time. */ - date?: Date; - /** The balance sheet's net assets. */ - netAssets?: number; - assets?: Merge.accounting.ReportItem[]; - liabilities?: Merge.accounting.ReportItem[]; - equity?: Merge.accounting.ReportItem[]; - /** The time that balance sheet was generated by the accounting system. */ - remoteGeneratedAt?: 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[]; -} diff --git a/src/api/resources/accounting/types/BalanceSheetCompany.ts b/src/api/resources/accounting/types/BalanceSheetCompany.ts deleted file mode 100644 index ccdec5cd1..000000000 --- a/src/api/resources/accounting/types/BalanceSheetCompany.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * `Company` object for the given `BalanceSheet` object. - */ -export type BalanceSheetCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/BalanceSheetCurrency.ts b/src/api/resources/accounting/types/BalanceSheetCurrency.ts deleted file mode 100644 index ceee1a96c..000000000 --- a/src/api/resources/accounting/types/BalanceSheetCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The balance sheet'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 BalanceSheetCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/BankFeedAccount.ts b/src/api/resources/accounting/types/BankFeedAccount.ts deleted file mode 100644 index 108e94a09..000000000 --- a/src/api/resources/accounting/types/BankFeedAccount.ts +++ /dev/null @@ -1,364 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The BankFeedAccount Object - * ### Description - * The `BankFeedAccount` object represents a bank feed account, detailing various attributes including account identifiers, names, currency, and balance information. This object is central to managing and tracking bank feed accounts within the system. - * - * ### Usage Example - * Fetch from the `GET BankFeedAccount` endpoint to view details of a bank feed account. - */ -export interface BankFeedAccount { - 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 unique identifier of the source account from our customer’s platform. */ - sourceAccountId?: string; - /** The unique identifier of the target account from the third party software. */ - targetAccountId?: string; - /** The name of the source account as stored in our customer’s platform. */ - sourceAccountName?: string; - /** The human-readable account number of the source account as stored in our customer’s platform. */ - sourceAccountNumber?: string; - /** The name of the target account from the third party software. */ - targetAccountName?: string; - /** - * The currency code of the bank feed. - * - * * `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.BankFeedAccountCurrency; - /** - * The status of the bank feed. - * - * * `ACTIVE` - ACTIVE - * * `INACTIVE` - INACTIVE - */ - feedStatus?: Merge.accounting.BankFeedAccountFeedStatus; - /** The start date of the bank feed’s transactions. */ - feedStartDate?: Date; - /** The current balance of funds in the source account. */ - sourceAccountBalance?: number; - /** - * The type of the account. - * - * * `BANK` - BANK - * * `CREDIT_CARD` - CREDIT_CARD - */ - accountType?: Merge.accounting.BankFeedAccountAccountType; - /** 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)[]; -} diff --git a/src/api/resources/accounting/types/BankFeedAccountAccountType.ts b/src/api/resources/accounting/types/BankFeedAccountAccountType.ts deleted file mode 100644 index 2bfa1fce5..000000000 --- a/src/api/resources/accounting/types/BankFeedAccountAccountType.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 type of the account. - * - * * `BANK` - BANK - * * `CREDIT_CARD` - CREDIT_CARD - */ -export type BankFeedAccountAccountType = Merge.accounting.BankFeedAccountAccountTypeEnum | string; diff --git a/src/api/resources/accounting/types/BankFeedAccountAccountTypeEnum.ts b/src/api/resources/accounting/types/BankFeedAccountAccountTypeEnum.ts deleted file mode 100644 index ecacd49ff..000000000 --- a/src/api/resources/accounting/types/BankFeedAccountAccountTypeEnum.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `BANK` - BANK - * * `CREDIT_CARD` - CREDIT_CARD - */ -export const BankFeedAccountAccountTypeEnum = { - Bank: "BANK", - CreditCard: "CREDIT_CARD", -} as const; -export type BankFeedAccountAccountTypeEnum = - (typeof BankFeedAccountAccountTypeEnum)[keyof typeof BankFeedAccountAccountTypeEnum]; diff --git a/src/api/resources/accounting/types/BankFeedAccountCurrency.ts b/src/api/resources/accounting/types/BankFeedAccountCurrency.ts deleted file mode 100644 index c97dee017..000000000 --- a/src/api/resources/accounting/types/BankFeedAccountCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The currency code of the bank feed. - * - * * `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 BankFeedAccountCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/BankFeedAccountFeedStatus.ts b/src/api/resources/accounting/types/BankFeedAccountFeedStatus.ts deleted file mode 100644 index bdd8a3ecd..000000000 --- a/src/api/resources/accounting/types/BankFeedAccountFeedStatus.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 status of the bank feed. - * - * * `ACTIVE` - ACTIVE - * * `INACTIVE` - INACTIVE - */ -export type BankFeedAccountFeedStatus = Merge.accounting.FeedStatusEnum | string; diff --git a/src/api/resources/accounting/types/BankFeedAccountRequest.ts b/src/api/resources/accounting/types/BankFeedAccountRequest.ts deleted file mode 100644 index b90479cab..000000000 --- a/src/api/resources/accounting/types/BankFeedAccountRequest.ts +++ /dev/null @@ -1,355 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The BankFeedAccount Object - * ### Description - * The `BankFeedAccount` object represents a bank feed account, detailing various attributes including account identifiers, names, currency, and balance information. This object is central to managing and tracking bank feed accounts within the system. - * - * ### Usage Example - * Fetch from the `GET BankFeedAccount` endpoint to view details of a bank feed account. - */ -export interface BankFeedAccountRequest { - /** The unique identifier of the source account from our customer’s platform. */ - sourceAccountId?: string; - /** The unique identifier of the target account from the third party software. */ - targetAccountId?: string; - /** The name of the source account as stored in our customer’s platform. */ - sourceAccountName?: string; - /** The human-readable account number of the source account as stored in our customer’s platform. */ - sourceAccountNumber?: string; - /** The name of the target account from the third party software. */ - targetAccountName?: string; - /** - * The currency code of the bank feed. - * - * * `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.BankFeedAccountRequestCurrency; - /** - * The status of the bank feed. - * - * * `ACTIVE` - ACTIVE - * * `INACTIVE` - INACTIVE - */ - feedStatus?: Merge.accounting.BankFeedAccountRequestFeedStatus; - /** The start date of the bank feed’s transactions. */ - feedStartDate?: Date; - /** The current balance of funds in the source account. */ - sourceAccountBalance?: number; - /** - * The type of the account. - * - * * `BANK` - BANK - * * `CREDIT_CARD` - CREDIT_CARD - */ - accountType?: Merge.accounting.BankFeedAccountRequestAccountType; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/accounting/types/BankFeedAccountRequestAccountType.ts b/src/api/resources/accounting/types/BankFeedAccountRequestAccountType.ts deleted file mode 100644 index 4008c7fd3..000000000 --- a/src/api/resources/accounting/types/BankFeedAccountRequestAccountType.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 type of the account. - * - * * `BANK` - BANK - * * `CREDIT_CARD` - CREDIT_CARD - */ -export type BankFeedAccountRequestAccountType = Merge.accounting.BankFeedAccountAccountTypeEnum | string; diff --git a/src/api/resources/accounting/types/BankFeedAccountRequestCurrency.ts b/src/api/resources/accounting/types/BankFeedAccountRequestCurrency.ts deleted file mode 100644 index cc0802137..000000000 --- a/src/api/resources/accounting/types/BankFeedAccountRequestCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The currency code of the bank feed. - * - * * `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 BankFeedAccountRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/BankFeedAccountRequestFeedStatus.ts b/src/api/resources/accounting/types/BankFeedAccountRequestFeedStatus.ts deleted file mode 100644 index 7dc3a4db5..000000000 --- a/src/api/resources/accounting/types/BankFeedAccountRequestFeedStatus.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 status of the bank feed. - * - * * `ACTIVE` - ACTIVE - * * `INACTIVE` - INACTIVE - */ -export type BankFeedAccountRequestFeedStatus = Merge.accounting.FeedStatusEnum | string; diff --git a/src/api/resources/accounting/types/BankFeedAccountResponse.ts b/src/api/resources/accounting/types/BankFeedAccountResponse.ts deleted file mode 100644 index 7154b34b6..000000000 --- a/src/api/resources/accounting/types/BankFeedAccountResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface BankFeedAccountResponse { - model: Merge.accounting.BankFeedAccount; - warnings: Merge.accounting.WarningValidationProblem[]; - errors: Merge.accounting.ErrorValidationProblem[]; - logs?: Merge.accounting.DebugModeLog[]; -} diff --git a/src/api/resources/accounting/types/BankFeedTransaction.ts b/src/api/resources/accounting/types/BankFeedTransaction.ts deleted file mode 100644 index 0f428adce..000000000 --- a/src/api/resources/accounting/types/BankFeedTransaction.ts +++ /dev/null @@ -1,48 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The BankFeedTransaction Object - * ### Description - * The `BankFeedTransaction` object is used to represent transactions linked to a bank feed account. This includes details about the transaction such as the date, amount, description, and type. - * - * ### Usage Example - * Fetch from the `GET BankFeedTransaction` endpoint to view details of a transaction associated with a bank feed account. - */ -export interface BankFeedTransaction { - 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 bank feed account associated with the transaction. */ - bankFeedAccount?: Merge.accounting.BankFeedTransactionBankFeedAccount; - /** The date that the transaction occurred. */ - transactionDate?: Date; - /** The date the transaction was posted to the bank account. */ - postedDate?: Date; - /** The amount of the transaction. */ - amount?: number; - /** The description of the transaction. */ - description?: string; - /** The underlying type of the transaction. */ - transactionType?: string; - /** The person or merchant who initiated the transaction, or alternatively, to whom the transaction was paid. */ - payee?: string; - /** - * If the transaction is of type debit or credit. - * - * * `CREDIT` - CREDIT - * * `DEBIT` - DEBIT - */ - creditOrDebit?: Merge.accounting.BankFeedTransactionCreditOrDebit; - /** The customer’s identifier for the transaction. */ - sourceTransactionId?: 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/). */ - remoteWasDeleted?: boolean; - /** Whether or not this transaction has been processed by the external system. For example, NetSuite writes this field as True when the SuiteApp has processed the transaction. */ - isProcessed?: boolean; -} diff --git a/src/api/resources/accounting/types/BankFeedTransactionBankFeedAccount.ts b/src/api/resources/accounting/types/BankFeedTransactionBankFeedAccount.ts deleted file mode 100644 index 20ebc53ff..000000000 --- a/src/api/resources/accounting/types/BankFeedTransactionBankFeedAccount.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 bank feed account associated with the transaction. - */ -export type BankFeedTransactionBankFeedAccount = string | Merge.accounting.BankFeedAccount; diff --git a/src/api/resources/accounting/types/BankFeedTransactionCreditOrDebit.ts b/src/api/resources/accounting/types/BankFeedTransactionCreditOrDebit.ts deleted file mode 100644 index 7e2cc7f73..000000000 --- a/src/api/resources/accounting/types/BankFeedTransactionCreditOrDebit.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * If the transaction is of type debit or credit. - * - * * `CREDIT` - CREDIT - * * `DEBIT` - DEBIT - */ -export type BankFeedTransactionCreditOrDebit = Merge.accounting.CreditOrDebitEnum | string; diff --git a/src/api/resources/accounting/types/BankFeedTransactionRequestRequest.ts b/src/api/resources/accounting/types/BankFeedTransactionRequestRequest.ts deleted file mode 100644 index 1afc570d4..000000000 --- a/src/api/resources/accounting/types/BankFeedTransactionRequestRequest.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The BankFeedTransaction Object - * ### Description - * The `BankFeedTransaction` object is used to represent transactions linked to a bank feed account. This includes details about the transaction such as the date, amount, description, and type. - * - * ### Usage Example - * Fetch from the `GET BankFeedTransaction` endpoint to view details of a transaction associated with a bank feed account. - */ -export interface BankFeedTransactionRequestRequest { - /** The bank feed account associated with the transaction. */ - bankFeedAccount?: Merge.accounting.BankFeedTransactionRequestRequestBankFeedAccount; - /** The date that the transaction occurred. */ - transactionDate?: Date; - /** The date the transaction was posted to the bank account. */ - postedDate?: Date; - /** The amount of the transaction. */ - amount?: number; - /** The description of the transaction. */ - description?: string; - /** The underlying type of the transaction. */ - transactionType?: string; - /** The person or merchant who initiated the transaction, or alternatively, to whom the transaction was paid. */ - payee?: string; - /** - * If the transaction is of type debit or credit. - * - * * `CREDIT` - CREDIT - * * `DEBIT` - DEBIT - */ - creditOrDebit?: Merge.accounting.BankFeedTransactionRequestRequestCreditOrDebit; - /** The customer’s identifier for the transaction. */ - sourceTransactionId?: string; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/accounting/types/BankFeedTransactionRequestRequestBankFeedAccount.ts b/src/api/resources/accounting/types/BankFeedTransactionRequestRequestBankFeedAccount.ts deleted file mode 100644 index d1e9ad07d..000000000 --- a/src/api/resources/accounting/types/BankFeedTransactionRequestRequestBankFeedAccount.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 bank feed account associated with the transaction. - */ -export type BankFeedTransactionRequestRequestBankFeedAccount = string | Merge.accounting.BankFeedAccount; diff --git a/src/api/resources/accounting/types/BankFeedTransactionRequestRequestCreditOrDebit.ts b/src/api/resources/accounting/types/BankFeedTransactionRequestRequestCreditOrDebit.ts deleted file mode 100644 index ec0ced09a..000000000 --- a/src/api/resources/accounting/types/BankFeedTransactionRequestRequestCreditOrDebit.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * If the transaction is of type debit or credit. - * - * * `CREDIT` - CREDIT - * * `DEBIT` - DEBIT - */ -export type BankFeedTransactionRequestRequestCreditOrDebit = Merge.accounting.CreditOrDebitEnum | string; diff --git a/src/api/resources/accounting/types/BankFeedTransactionResponse.ts b/src/api/resources/accounting/types/BankFeedTransactionResponse.ts deleted file mode 100644 index 451f57f8d..000000000 --- a/src/api/resources/accounting/types/BankFeedTransactionResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface BankFeedTransactionResponse { - model: Merge.accounting.BankFeedTransaction; - warnings: Merge.accounting.WarningValidationProblem[]; - errors: Merge.accounting.ErrorValidationProblem[]; - logs?: Merge.accounting.DebugModeLog[]; -} diff --git a/src/api/resources/accounting/types/CashFlowStatement.ts b/src/api/resources/accounting/types/CashFlowStatement.ts deleted file mode 100644 index a740af53d..000000000 --- a/src/api/resources/accounting/types/CashFlowStatement.ts +++ /dev/null @@ -1,353 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The CashFlowStatement Object - * ### Description - * The `CashFlowStatement` object shows operating activities, investing activities, and financing activities over a period of time (month, quarter, or year). - * - * ### Usage Example - * Fetch from the `LIST CashFlowStatements` endpoint and view a company's cash flow statements. - */ -export interface CashFlowStatement { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The cash flow statement's name. */ - name?: string; - /** - * The cash flow statement'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.CashFlowStatementCurrency; - /** The company the cash flow statement belongs to. */ - company?: Merge.accounting.CashFlowStatementCompany; - /** The cash flow statement's start period. */ - startPeriod?: Date; - /** The cash flow statement's end period. */ - endPeriod?: Date; - /** Cash and cash equivalents at the beginning of the cash flow statement's period. */ - cashAtBeginningOfPeriod?: number; - /** Cash and cash equivalents at the beginning of the cash flow statement's period. */ - cashAtEndOfPeriod?: number; - operatingActivities?: Merge.accounting.ReportItem[]; - investingActivities?: Merge.accounting.ReportItem[]; - financingActivities?: Merge.accounting.ReportItem[]; - /** The time that cash flow statement was generated by the accounting system. */ - remoteGeneratedAt?: 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[]; -} diff --git a/src/api/resources/accounting/types/CashFlowStatementCompany.ts b/src/api/resources/accounting/types/CashFlowStatementCompany.ts deleted file mode 100644 index d9f8ca8e0..000000000 --- a/src/api/resources/accounting/types/CashFlowStatementCompany.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 company the cash flow statement belongs to. - */ -export type CashFlowStatementCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/CashFlowStatementCurrency.ts b/src/api/resources/accounting/types/CashFlowStatementCurrency.ts deleted file mode 100644 index 538a167aa..000000000 --- a/src/api/resources/accounting/types/CashFlowStatementCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The cash flow statement'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 CashFlowStatementCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/CategoriesEnum.ts b/src/api/resources/accounting/types/CategoriesEnum.ts deleted file mode 100644 index fadfd2764..000000000 --- a/src/api/resources/accounting/types/CategoriesEnum.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `hris` - hris - * * `ats` - ats - * * `accounting` - accounting - * * `ticketing` - ticketing - * * `crm` - crm - * * `mktg` - mktg - * * `filestorage` - filestorage - */ -export const CategoriesEnum = { - Hris: "hris", - Ats: "ats", - Accounting: "accounting", - Ticketing: "ticketing", - Crm: "crm", - Mktg: "mktg", - Filestorage: "filestorage", -} 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 deleted file mode 100644 index f2cd1da08..000000000 --- a/src/api/resources/accounting/types/CategoryEnum.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `hris` - hris - * * `ats` - ats - * * `accounting` - accounting - * * `ticketing` - ticketing - * * `crm` - crm - * * `mktg` - mktg - * * `filestorage` - filestorage - */ -export const CategoryEnum = { - Hris: "hris", - Ats: "ats", - Accounting: "accounting", - Ticketing: "ticketing", - Crm: "crm", - Mktg: "mktg", - Filestorage: "filestorage", -} as const; -export type CategoryEnum = (typeof CategoryEnum)[keyof typeof CategoryEnum]; diff --git a/src/api/resources/accounting/types/CategoryTypeEnum.ts b/src/api/resources/accounting/types/CategoryTypeEnum.ts deleted file mode 100644 index 0458e15ee..000000000 --- a/src/api/resources/accounting/types/CategoryTypeEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `CLASS` - CLASS - * * `DEPARTMENT` - DEPARTMENT - */ -export const CategoryTypeEnum = { - Class: "CLASS", - Department: "DEPARTMENT", -} as const; -export type CategoryTypeEnum = (typeof CategoryTypeEnum)[keyof typeof CategoryTypeEnum]; diff --git a/src/api/resources/accounting/types/ClassificationEnum.ts b/src/api/resources/accounting/types/ClassificationEnum.ts deleted file mode 100644 index 06fead26f..000000000 --- a/src/api/resources/accounting/types/ClassificationEnum.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `ASSET` - ASSET - * * `EQUITY` - EQUITY - * * `EXPENSE` - EXPENSE - * * `LIABILITY` - LIABILITY - * * `REVENUE` - REVENUE - */ -export const ClassificationEnum = { - Asset: "ASSET", - Equity: "EQUITY", - Expense: "EXPENSE", - Liability: "LIABILITY", - Revenue: "REVENUE", -} as const; -export type ClassificationEnum = (typeof ClassificationEnum)[keyof typeof ClassificationEnum]; diff --git a/src/api/resources/accounting/types/CommonModelScopeApi.ts b/src/api/resources/accounting/types/CommonModelScopeApi.ts deleted file mode 100644 index 5aae863dc..000000000 --- a/src/api/resources/accounting/types/CommonModelScopeApi.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface CommonModelScopeApi { - /** The common models you want to update the scopes for */ - commonModels: Merge.accounting.IndividualCommonModelScopeDeserializer[]; -} diff --git a/src/api/resources/accounting/types/CommonModelScopesBodyRequest.ts b/src/api/resources/accounting/types/CommonModelScopesBodyRequest.ts deleted file mode 100644 index d68b41637..000000000 --- a/src/api/resources/accounting/types/CommonModelScopesBodyRequest.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface CommonModelScopesBodyRequest { - modelId: string; - enabledActions: Merge.accounting.EnabledActionsEnum[]; - disabledFields: string[]; -} diff --git a/src/api/resources/accounting/types/CompanyInfo.ts b/src/api/resources/accounting/types/CompanyInfo.ts deleted file mode 100644 index cfd881763..000000000 --- a/src/api/resources/accounting/types/CompanyInfo.ts +++ /dev/null @@ -1,352 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The CompanyInfo Object - * ### Description - * The `CompanyInfo` object contains information about the company of the linked account. If the company has multiple entities (also known as subsidiaries), each entity may show up as a single `CompanyInfo` record. - * - * ### Usage Example - * Fetch from the `GET CompanyInfo` endpoint and view a company's information. - */ -export interface CompanyInfo { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The company's name. */ - name?: string; - /** The company's legal name. */ - legalName?: string; - /** The company's tax number. */ - taxNumber?: string; - /** The company's fiscal year end month. */ - fiscalYearEndMonth?: number; - /** The company's fiscal year end day. */ - fiscalYearEndDay?: number; - /** - * The currency set in the company's accounting platform. - * - * * `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.CompanyInfoCurrency; - /** When the third party's company was created. */ - remoteCreatedAt?: Date; - /** The company's urls. */ - urls?: (string | undefined)[]; - addresses?: Merge.accounting.Address[]; - phoneNumbers?: Merge.accounting.AccountingPhoneNumber[]; - /** 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[]; -} diff --git a/src/api/resources/accounting/types/CompanyInfoCurrency.ts b/src/api/resources/accounting/types/CompanyInfoCurrency.ts deleted file mode 100644 index 13284e2ae..000000000 --- a/src/api/resources/accounting/types/CompanyInfoCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The currency set in the company's accounting platform. - * - * * `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 CompanyInfoCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/ComponentTypeEnum.ts b/src/api/resources/accounting/types/ComponentTypeEnum.ts deleted file mode 100644 index 3f13b796f..000000000 --- a/src/api/resources/accounting/types/ComponentTypeEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `SALES` - SALES - * * `PURCHASE` - PURCHASE - */ -export const ComponentTypeEnum = { - Sales: "SALES", - Purchase: "PURCHASE", -} as const; -export type ComponentTypeEnum = (typeof ComponentTypeEnum)[keyof typeof ComponentTypeEnum]; diff --git a/src/api/resources/accounting/types/Contact.ts b/src/api/resources/accounting/types/Contact.ts deleted file mode 100644 index 3a0553407..000000000 --- a/src/api/resources/accounting/types/Contact.ts +++ /dev/null @@ -1,55 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Contact Object - * ### Description - * A `Contact` is an individual or business entity to which products and services are sold to or purchased from. The `Contact` model contains both Customers, in which products and services are sold to, and Vendors (or Suppliers), in which products and services are purchased from. - * * A `Contact` is a Vendor/Supplier if the `is_supplier` property is true. - * * A `Contact` is a customer if the `is_customer` property is true. - * - * ### Usage Example - * Fetch from the `LIST Contacts` endpoint and view a company's contacts. - */ -export interface Contact { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The contact's name. */ - name?: string; - /** Whether the contact is a supplier. */ - isSupplier?: boolean; - /** Whether the contact is a customer. */ - isCustomer?: boolean; - /** The contact's email address. */ - emailAddress?: string; - /** The contact's tax number. */ - taxNumber?: string; - /** - * The contact's status - * - * * `ACTIVE` - ACTIVE - * * `ARCHIVED` - ARCHIVED - */ - status?: Merge.accounting.ContactStatus; - /** The currency the contact's transactions are in. */ - currency?: string; - /** When the third party's contact was updated. */ - remoteUpdatedAt?: Date; - /** The company the contact belongs to. */ - company?: string; - /** `Address` object IDs for the given `Contacts` object. */ - addresses?: (Merge.accounting.ContactAddressesItem | undefined)[]; - /** `AccountingPhoneNumber` object for the given `Contacts` object. */ - phoneNumbers?: Merge.accounting.AccountingPhoneNumber[]; - /** 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/ContactAddressesItem.ts b/src/api/resources/accounting/types/ContactAddressesItem.ts deleted file mode 100644 index 696e98992..000000000 --- a/src/api/resources/accounting/types/ContactAddressesItem.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 ContactAddressesItem = string | Merge.accounting.Address; diff --git a/src/api/resources/accounting/types/ContactRequest.ts b/src/api/resources/accounting/types/ContactRequest.ts deleted file mode 100644 index 901daa67e..000000000 --- a/src/api/resources/accounting/types/ContactRequest.ts +++ /dev/null @@ -1,44 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Contact Object - * ### Description - * A `Contact` is an individual or business entity to which products and services are sold to or purchased from. The `Contact` model contains both Customers, in which products and services are sold to, and Vendors (or Suppliers), in which products and services are purchased from. - * * A `Contact` is a Vendor/Supplier if the `is_supplier` property is true. - * * A `Contact` is a customer if the `is_customer` property is true. - * - * ### Usage Example - * Fetch from the `LIST Contacts` endpoint and view a company's contacts. - */ -export interface ContactRequest { - /** The contact's name. */ - name?: string; - /** Whether the contact is a supplier. */ - isSupplier?: boolean; - /** Whether the contact is a customer. */ - isCustomer?: boolean; - /** The contact's email address. */ - emailAddress?: string; - /** The contact's tax number. */ - taxNumber?: string; - /** - * The contact's status - * - * * `ACTIVE` - ACTIVE - * * `ARCHIVED` - ARCHIVED - */ - status?: Merge.accounting.ContactRequestStatus; - /** 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.ContactRequestAddressesItem | undefined)[]; - /** `AccountingPhoneNumber` object for the given `Contacts` object. */ - phoneNumbers?: Merge.accounting.AccountingPhoneNumberRequest[]; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.accounting.RemoteFieldRequest[]; -} diff --git a/src/api/resources/accounting/types/ContactRequestAddressesItem.ts b/src/api/resources/accounting/types/ContactRequestAddressesItem.ts deleted file mode 100644 index 8a5e26c67..000000000 --- a/src/api/resources/accounting/types/ContactRequestAddressesItem.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 ContactRequestAddressesItem = string | Merge.accounting.Address; diff --git a/src/api/resources/accounting/types/ContactRequestStatus.ts b/src/api/resources/accounting/types/ContactRequestStatus.ts deleted file mode 100644 index d479eba24..000000000 --- a/src/api/resources/accounting/types/ContactRequestStatus.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 contact's status - * - * * `ACTIVE` - ACTIVE - * * `ARCHIVED` - ARCHIVED - */ -export type ContactRequestStatus = Merge.accounting.Status7D1Enum | string; diff --git a/src/api/resources/accounting/types/ContactResponse.ts b/src/api/resources/accounting/types/ContactResponse.ts deleted file mode 100644 index 739be2a06..000000000 --- a/src/api/resources/accounting/types/ContactResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface ContactResponse { - model: Merge.accounting.Contact; - warnings: Merge.accounting.WarningValidationProblem[]; - errors: Merge.accounting.ErrorValidationProblem[]; - logs?: Merge.accounting.DebugModeLog[]; -} diff --git a/src/api/resources/accounting/types/ContactStatus.ts b/src/api/resources/accounting/types/ContactStatus.ts deleted file mode 100644 index 3a52cd75c..000000000 --- a/src/api/resources/accounting/types/ContactStatus.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 contact's status - * - * * `ACTIVE` - ACTIVE - * * `ARCHIVED` - ARCHIVED - */ -export type ContactStatus = Merge.accounting.Status7D1Enum | string; diff --git a/src/api/resources/accounting/types/CountryEnum.ts b/src/api/resources/accounting/types/CountryEnum.ts deleted file mode 100644 index cbfdf589a..000000000 --- a/src/api/resources/accounting/types/CountryEnum.ts +++ /dev/null @@ -1,505 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `AF` - Afghanistan - * * `AX` - Åland Islands - * * `AL` - Albania - * * `DZ` - Algeria - * * `AS` - American Samoa - * * `AD` - Andorra - * * `AO` - Angola - * * `AI` - Anguilla - * * `AQ` - Antarctica - * * `AG` - Antigua and Barbuda - * * `AR` - Argentina - * * `AM` - Armenia - * * `AW` - Aruba - * * `AU` - Australia - * * `AT` - Austria - * * `AZ` - Azerbaijan - * * `BS` - Bahamas - * * `BH` - Bahrain - * * `BD` - Bangladesh - * * `BB` - Barbados - * * `BY` - Belarus - * * `BE` - Belgium - * * `BZ` - Belize - * * `BJ` - Benin - * * `BM` - Bermuda - * * `BT` - Bhutan - * * `BO` - Bolivia - * * `BQ` - Bonaire, Sint Eustatius and Saba - * * `BA` - Bosnia and Herzegovina - * * `BW` - Botswana - * * `BV` - Bouvet Island - * * `BR` - Brazil - * * `IO` - British Indian Ocean Territory - * * `BN` - Brunei - * * `BG` - Bulgaria - * * `BF` - Burkina Faso - * * `BI` - Burundi - * * `CV` - Cabo Verde - * * `KH` - Cambodia - * * `CM` - Cameroon - * * `CA` - Canada - * * `KY` - Cayman Islands - * * `CF` - Central African Republic - * * `TD` - Chad - * * `CL` - Chile - * * `CN` - China - * * `CX` - Christmas Island - * * `CC` - Cocos (Keeling) Islands - * * `CO` - Colombia - * * `KM` - Comoros - * * `CG` - Congo - * * `CD` - Congo (the Democratic Republic of the) - * * `CK` - Cook Islands - * * `CR` - Costa Rica - * * `CI` - Côte d'Ivoire - * * `HR` - Croatia - * * `CU` - Cuba - * * `CW` - Curaçao - * * `CY` - Cyprus - * * `CZ` - Czechia - * * `DK` - Denmark - * * `DJ` - Djibouti - * * `DM` - Dominica - * * `DO` - Dominican Republic - * * `EC` - Ecuador - * * `EG` - Egypt - * * `SV` - El Salvador - * * `GQ` - Equatorial Guinea - * * `ER` - Eritrea - * * `EE` - Estonia - * * `SZ` - Eswatini - * * `ET` - Ethiopia - * * `FK` - Falkland Islands (Malvinas) - * * `FO` - Faroe Islands - * * `FJ` - Fiji - * * `FI` - Finland - * * `FR` - France - * * `GF` - French Guiana - * * `PF` - French Polynesia - * * `TF` - French Southern Territories - * * `GA` - Gabon - * * `GM` - Gambia - * * `GE` - Georgia - * * `DE` - Germany - * * `GH` - Ghana - * * `GI` - Gibraltar - * * `GR` - Greece - * * `GL` - Greenland - * * `GD` - Grenada - * * `GP` - Guadeloupe - * * `GU` - Guam - * * `GT` - Guatemala - * * `GG` - Guernsey - * * `GN` - Guinea - * * `GW` - Guinea-Bissau - * * `GY` - Guyana - * * `HT` - Haiti - * * `HM` - Heard Island and McDonald Islands - * * `VA` - Holy See - * * `HN` - Honduras - * * `HK` - Hong Kong - * * `HU` - Hungary - * * `IS` - Iceland - * * `IN` - India - * * `ID` - Indonesia - * * `IR` - Iran - * * `IQ` - Iraq - * * `IE` - Ireland - * * `IM` - Isle of Man - * * `IL` - Israel - * * `IT` - Italy - * * `JM` - Jamaica - * * `JP` - Japan - * * `JE` - Jersey - * * `JO` - Jordan - * * `KZ` - Kazakhstan - * * `KE` - Kenya - * * `KI` - Kiribati - * * `KW` - Kuwait - * * `KG` - Kyrgyzstan - * * `LA` - Laos - * * `LV` - Latvia - * * `LB` - Lebanon - * * `LS` - Lesotho - * * `LR` - Liberia - * * `LY` - Libya - * * `LI` - Liechtenstein - * * `LT` - Lithuania - * * `LU` - Luxembourg - * * `MO` - Macao - * * `MG` - Madagascar - * * `MW` - Malawi - * * `MY` - Malaysia - * * `MV` - Maldives - * * `ML` - Mali - * * `MT` - Malta - * * `MH` - Marshall Islands - * * `MQ` - Martinique - * * `MR` - Mauritania - * * `MU` - Mauritius - * * `YT` - Mayotte - * * `MX` - Mexico - * * `FM` - Micronesia (Federated States of) - * * `MD` - Moldova - * * `MC` - Monaco - * * `MN` - Mongolia - * * `ME` - Montenegro - * * `MS` - Montserrat - * * `MA` - Morocco - * * `MZ` - Mozambique - * * `MM` - Myanmar - * * `NA` - Namibia - * * `NR` - Nauru - * * `NP` - Nepal - * * `NL` - Netherlands - * * `NC` - New Caledonia - * * `NZ` - New Zealand - * * `NI` - Nicaragua - * * `NE` - Niger - * * `NG` - Nigeria - * * `NU` - Niue - * * `NF` - Norfolk Island - * * `KP` - North Korea - * * `MK` - North Macedonia - * * `MP` - Northern Mariana Islands - * * `NO` - Norway - * * `OM` - Oman - * * `PK` - Pakistan - * * `PW` - Palau - * * `PS` - Palestine, State of - * * `PA` - Panama - * * `PG` - Papua New Guinea - * * `PY` - Paraguay - * * `PE` - Peru - * * `PH` - Philippines - * * `PN` - Pitcairn - * * `PL` - Poland - * * `PT` - Portugal - * * `PR` - Puerto Rico - * * `QA` - Qatar - * * `RE` - Réunion - * * `RO` - Romania - * * `RU` - Russia - * * `RW` - Rwanda - * * `BL` - Saint Barthélemy - * * `SH` - Saint Helena, Ascension and Tristan da Cunha - * * `KN` - Saint Kitts and Nevis - * * `LC` - Saint Lucia - * * `MF` - Saint Martin (French part) - * * `PM` - Saint Pierre and Miquelon - * * `VC` - Saint Vincent and the Grenadines - * * `WS` - Samoa - * * `SM` - San Marino - * * `ST` - Sao Tome and Principe - * * `SA` - Saudi Arabia - * * `SN` - Senegal - * * `RS` - Serbia - * * `SC` - Seychelles - * * `SL` - Sierra Leone - * * `SG` - Singapore - * * `SX` - Sint Maarten (Dutch part) - * * `SK` - Slovakia - * * `SI` - Slovenia - * * `SB` - Solomon Islands - * * `SO` - Somalia - * * `ZA` - South Africa - * * `GS` - South Georgia and the South Sandwich Islands - * * `KR` - South Korea - * * `SS` - South Sudan - * * `ES` - Spain - * * `LK` - Sri Lanka - * * `SD` - Sudan - * * `SR` - Suriname - * * `SJ` - Svalbard and Jan Mayen - * * `SE` - Sweden - * * `CH` - Switzerland - * * `SY` - Syria - * * `TW` - Taiwan - * * `TJ` - Tajikistan - * * `TZ` - Tanzania - * * `TH` - Thailand - * * `TL` - Timor-Leste - * * `TG` - Togo - * * `TK` - Tokelau - * * `TO` - Tonga - * * `TT` - Trinidad and Tobago - * * `TN` - Tunisia - * * `TR` - Turkey - * * `TM` - Turkmenistan - * * `TC` - Turks and Caicos Islands - * * `TV` - Tuvalu - * * `UG` - Uganda - * * `UA` - Ukraine - * * `AE` - United Arab Emirates - * * `GB` - United Kingdom - * * `UM` - United States Minor Outlying Islands - * * `US` - United States of America - * * `UY` - Uruguay - * * `UZ` - Uzbekistan - * * `VU` - Vanuatu - * * `VE` - Venezuela - * * `VN` - Vietnam - * * `VG` - Virgin Islands (British) - * * `VI` - Virgin Islands (U.S.) - * * `WF` - Wallis and Futuna - * * `EH` - Western Sahara - * * `YE` - Yemen - * * `ZM` - Zambia - * * `ZW` - Zimbabwe - */ -export const CountryEnum = { - Af: "AF", - Ax: "AX", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Bq: "BQ", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Cv: "CV", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cw: "CW", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Sz: "SZ", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gg: "GG", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Im: "IM", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Je: "JE", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Me: "ME", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Kp: "KP", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Bl: "BL", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Mf: "MF", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Rs: "RS", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sx: "SX", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Kr: "KR", - Ss: "SS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Um: "UM", - Us: "US", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", -} as const; -export type CountryEnum = (typeof CountryEnum)[keyof typeof CountryEnum]; diff --git a/src/api/resources/accounting/types/CreditNote.ts b/src/api/resources/accounting/types/CreditNote.ts deleted file mode 100644 index 9acb522e2..000000000 --- a/src/api/resources/accounting/types/CreditNote.ts +++ /dev/null @@ -1,374 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The CreditNote Object - * ### Description - * A `CreditNote` is transaction issued to a customer, indicating a reduction or cancellation of the amount owed by the customer. It is most generally used as an adjustment note used to rectify errors, returns, or overpayments related to a sales transaction. A `CreditNote` can be applied to *Accounts Receivable* Invoices to decrease the overall amount of the Invoice. - * - * ### Usage Example - * Fetch from the `LIST CreditNotes` endpoint and view a company's credit notes. - */ -export interface CreditNote { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The credit note's transaction date. */ - transactionDate?: Date; - /** - * The credit note's status. - * - * * `SUBMITTED` - SUBMITTED - * * `AUTHORIZED` - AUTHORIZED - * * `PAID` - PAID - */ - status?: Merge.accounting.CreditNoteStatus; - /** The credit note's number. */ - number?: string; - /** The credit note's contact. */ - contact?: Merge.accounting.CreditNoteContact; - /** The company the credit note belongs to. */ - company?: Merge.accounting.CreditNoteCompany; - /** The credit note's exchange rate. */ - exchangeRate?: string; - /** The credit note's total amount. */ - totalAmount?: number; - /** The amount of value remaining in the credit note that the customer can use. */ - remainingCredit?: number; - /** If the transaction is inclusive or exclusive of tax. `True` if inclusive, `False` if exclusive. */ - inclusiveOfTax?: boolean; - lineItems?: Merge.accounting.CreditNoteLineItem[]; - trackingCategories?: (Merge.accounting.CreditNoteTrackingCategoriesItem | undefined)[]; - /** - * The credit note'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.CreditNoteCurrency; - /** When the third party's credit note was created. */ - remoteCreatedAt?: Date; - /** When the third party's credit note was updated. */ - remoteUpdatedAt?: Date; - /** Array of `Payment` object IDs */ - payments?: (Merge.accounting.CreditNotePaymentsItem | undefined)[]; - /** A list of the Payment Applied to Lines common models related to a given Invoice, Credit Note, or Journal Entry. */ - appliedPayments?: (Merge.accounting.CreditNoteAppliedPaymentsItem | undefined)[]; - /** The accounting period that the CreditNote was generated in. */ - accountingPeriod?: Merge.accounting.CreditNoteAccountingPeriod; - /** A list of the CreditNote Applied to Lines common models related to a given Credit Note */ - appliedToLines?: Merge.accounting.CreditNoteApplyLineForCreditNote[]; - /** 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[]; -} diff --git a/src/api/resources/accounting/types/CreditNoteAccountingPeriod.ts b/src/api/resources/accounting/types/CreditNoteAccountingPeriod.ts deleted file mode 100644 index bfb3f02a2..000000000 --- a/src/api/resources/accounting/types/CreditNoteAccountingPeriod.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 CreditNote was generated in. - */ -export type CreditNoteAccountingPeriod = string | Merge.accounting.AccountingPeriod; diff --git a/src/api/resources/accounting/types/CreditNoteAppliedPaymentsItem.ts b/src/api/resources/accounting/types/CreditNoteAppliedPaymentsItem.ts deleted file mode 100644 index 54511ff80..000000000 --- a/src/api/resources/accounting/types/CreditNoteAppliedPaymentsItem.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 CreditNoteAppliedPaymentsItem = string | Merge.accounting.PaymentLineItem; diff --git a/src/api/resources/accounting/types/CreditNoteApplyLineForCreditNote.ts b/src/api/resources/accounting/types/CreditNoteApplyLineForCreditNote.ts deleted file mode 100644 index c3c8cc9c2..000000000 --- a/src/api/resources/accounting/types/CreditNoteApplyLineForCreditNote.ts +++ /dev/null @@ -1,27 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The CreditNoteApplyLine Object - * ### Description - * The `CreditNoteApplyLine` is attached to the CreditNote model. - * - * ### Usage Example - * Fetch from the `GET CreditNote` endpoint and view the invoice's applied to lines. - */ -export interface CreditNoteApplyLineForCreditNote { - /** 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; - invoice?: Merge.accounting.CreditNoteApplyLineForCreditNoteInvoice; - /** Date that the credit note is applied to the invoice. */ - appliedDate?: Date; - /** The amount of the Credit Note applied to the invoice. */ - appliedAmount?: 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/). */ - remoteWasDeleted?: boolean; -} diff --git a/src/api/resources/accounting/types/CreditNoteApplyLineForCreditNoteInvoice.ts b/src/api/resources/accounting/types/CreditNoteApplyLineForCreditNoteInvoice.ts deleted file mode 100644 index 0b93a7d40..000000000 --- a/src/api/resources/accounting/types/CreditNoteApplyLineForCreditNoteInvoice.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 CreditNoteApplyLineForCreditNoteInvoice = string | Merge.accounting.Invoice; diff --git a/src/api/resources/accounting/types/CreditNoteApplyLineForCreditNoteRequest.ts b/src/api/resources/accounting/types/CreditNoteApplyLineForCreditNoteRequest.ts deleted file mode 100644 index d11cda366..000000000 --- a/src/api/resources/accounting/types/CreditNoteApplyLineForCreditNoteRequest.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The CreditNoteApplyLine Object - * ### Description - * The `CreditNoteApplyLine` is attached to the CreditNote model. - * - * ### Usage Example - * Fetch from the `GET CreditNote` endpoint and view the invoice's applied to lines. - */ -export interface CreditNoteApplyLineForCreditNoteRequest { - /** The third-party API ID of the matching object. */ - remoteId?: string; - invoice?: Merge.accounting.CreditNoteApplyLineForCreditNoteRequestInvoice; - /** Date that the credit note is applied to the invoice. */ - appliedDate?: Date; - /** The amount of the Credit Note applied to the invoice. */ - appliedAmount?: string; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/accounting/types/CreditNoteApplyLineForCreditNoteRequestInvoice.ts b/src/api/resources/accounting/types/CreditNoteApplyLineForCreditNoteRequestInvoice.ts deleted file mode 100644 index 9017ebbe2..000000000 --- a/src/api/resources/accounting/types/CreditNoteApplyLineForCreditNoteRequestInvoice.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 CreditNoteApplyLineForCreditNoteRequestInvoice = string | Merge.accounting.Invoice; diff --git a/src/api/resources/accounting/types/CreditNoteApplyLineForInvoice.ts b/src/api/resources/accounting/types/CreditNoteApplyLineForInvoice.ts deleted file mode 100644 index e82e588a3..000000000 --- a/src/api/resources/accounting/types/CreditNoteApplyLineForInvoice.ts +++ /dev/null @@ -1,27 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The CreditNoteApplyLine Object - * ### Description - * The `CreditNoteApplyLine` is attached to the CreditNote model. - * - * ### Usage Example - * Fetch from the `GET CreditNote` endpoint and view the invoice's applied to lines. - */ -export interface CreditNoteApplyLineForInvoice { - /** 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; - creditNote?: Merge.accounting.CreditNoteApplyLineForInvoiceCreditNote; - /** Date that the credit note is applied to the invoice. */ - appliedDate?: Date; - /** The amount of the Credit Note applied to the invoice. */ - appliedAmount?: 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/). */ - remoteWasDeleted?: boolean; -} diff --git a/src/api/resources/accounting/types/CreditNoteApplyLineForInvoiceCreditNote.ts b/src/api/resources/accounting/types/CreditNoteApplyLineForInvoiceCreditNote.ts deleted file mode 100644 index d7a4a280f..000000000 --- a/src/api/resources/accounting/types/CreditNoteApplyLineForInvoiceCreditNote.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 CreditNoteApplyLineForInvoiceCreditNote = string | Merge.accounting.CreditNote; diff --git a/src/api/resources/accounting/types/CreditNoteCompany.ts b/src/api/resources/accounting/types/CreditNoteCompany.ts deleted file mode 100644 index 452ffaa15..000000000 --- a/src/api/resources/accounting/types/CreditNoteCompany.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 company the credit note belongs to. - */ -export type CreditNoteCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/CreditNoteContact.ts b/src/api/resources/accounting/types/CreditNoteContact.ts deleted file mode 100644 index f2c443ebb..000000000 --- a/src/api/resources/accounting/types/CreditNoteContact.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 credit note's contact. - */ -export type CreditNoteContact = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/CreditNoteCurrency.ts b/src/api/resources/accounting/types/CreditNoteCurrency.ts deleted file mode 100644 index b180b2f41..000000000 --- a/src/api/resources/accounting/types/CreditNoteCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The credit note'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 CreditNoteCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/CreditNoteLineItem.ts b/src/api/resources/accounting/types/CreditNoteLineItem.ts deleted file mode 100644 index b47ac78d1..000000000 --- a/src/api/resources/accounting/types/CreditNoteLineItem.ts +++ /dev/null @@ -1,49 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The CreditNoteLineItem Object - * ### Description - * The `CreditNoteLineItem` object is used to represent a credit note's line items. - * - * ### Usage Example - * Fetch from the `GET CreditNote` endpoint and view the credit note's line items. - */ -export interface CreditNoteLineItem { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - item?: Merge.accounting.CreditNoteLineItemItem; - /** The credit note line item's name. */ - name?: string; - /** The description of the item that is owed. */ - description?: string; - /** The credit note line item's quantity. */ - quantity?: string; - /** The credit note line item's memo. */ - memo?: string; - /** The credit note line item's unit price. */ - unitPrice?: string; - /** The tax rate that applies to this line item. */ - taxRate?: string; - /** The credit note line item's total. */ - totalLineAmount?: string; - /** The credit note line item's associated tracking category. */ - trackingCategory?: string; - /** The credit note line item's associated tracking categories. */ - trackingCategories?: (string | undefined)[]; - /** The credit note line item's account. */ - account?: string; - /** The company the credit note belongs to. */ - company?: Merge.accounting.CreditNoteLineItemCompany; - /** The credit note's contact. */ - contact?: Merge.accounting.CreditNoteLineItemContact; - project?: Merge.accounting.CreditNoteLineItemProject; - /** 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/accounting/types/CreditNoteLineItemCompany.ts b/src/api/resources/accounting/types/CreditNoteLineItemCompany.ts deleted file mode 100644 index 7b63282c8..000000000 --- a/src/api/resources/accounting/types/CreditNoteLineItemCompany.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 company the credit note belongs to. - */ -export type CreditNoteLineItemCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/CreditNoteLineItemContact.ts b/src/api/resources/accounting/types/CreditNoteLineItemContact.ts deleted file mode 100644 index 4a14ae4cd..000000000 --- a/src/api/resources/accounting/types/CreditNoteLineItemContact.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 credit note's contact. - */ -export type CreditNoteLineItemContact = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/CreditNoteLineItemItem.ts b/src/api/resources/accounting/types/CreditNoteLineItemItem.ts deleted file mode 100644 index ef7684b1a..000000000 --- a/src/api/resources/accounting/types/CreditNoteLineItemItem.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 CreditNoteLineItemItem = string | Merge.accounting.Item; diff --git a/src/api/resources/accounting/types/CreditNoteLineItemProject.ts b/src/api/resources/accounting/types/CreditNoteLineItemProject.ts deleted file mode 100644 index 9cd08ca3e..000000000 --- a/src/api/resources/accounting/types/CreditNoteLineItemProject.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 CreditNoteLineItemProject = string | Merge.accounting.Project; diff --git a/src/api/resources/accounting/types/CreditNoteLineItemRequest.ts b/src/api/resources/accounting/types/CreditNoteLineItemRequest.ts deleted file mode 100644 index e413eef6d..000000000 --- a/src/api/resources/accounting/types/CreditNoteLineItemRequest.ts +++ /dev/null @@ -1,44 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The CreditNoteLineItem Object - * ### Description - * The `CreditNoteLineItem` object is used to represent a credit note's line items. - * - * ### Usage Example - * Fetch from the `GET CreditNote` endpoint and view the credit note's line items. - */ -export interface CreditNoteLineItemRequest { - /** The third-party API ID of the matching object. */ - remoteId?: string; - item?: Merge.accounting.CreditNoteLineItemRequestItem; - /** The credit note line item's name. */ - name?: string; - /** The description of the item that is owed. */ - description?: string; - /** The credit note line item's quantity. */ - quantity?: string; - /** The credit note line item's memo. */ - memo?: string; - /** The credit note line item's unit price. */ - unitPrice?: string; - /** The tax rate that applies to this line item. */ - taxRate?: string; - /** The credit note line item's total. */ - totalLineAmount?: string; - /** The credit note line item's associated tracking category. */ - trackingCategory?: string; - /** The credit note line item's associated tracking categories. */ - trackingCategories?: (string | undefined)[]; - /** The credit note line item's account. */ - account?: string; - /** The company the credit note belongs to. */ - company?: Merge.accounting.CreditNoteLineItemRequestCompany; - /** The credit note's contact. */ - contact?: Merge.accounting.CreditNoteLineItemRequestContact; - project?: Merge.accounting.CreditNoteLineItemRequestProject; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/accounting/types/CreditNoteLineItemRequestCompany.ts b/src/api/resources/accounting/types/CreditNoteLineItemRequestCompany.ts deleted file mode 100644 index 5505a79b7..000000000 --- a/src/api/resources/accounting/types/CreditNoteLineItemRequestCompany.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 company the credit note belongs to. - */ -export type CreditNoteLineItemRequestCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/CreditNoteLineItemRequestContact.ts b/src/api/resources/accounting/types/CreditNoteLineItemRequestContact.ts deleted file mode 100644 index 27340dad3..000000000 --- a/src/api/resources/accounting/types/CreditNoteLineItemRequestContact.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 credit note's contact. - */ -export type CreditNoteLineItemRequestContact = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/CreditNoteLineItemRequestItem.ts b/src/api/resources/accounting/types/CreditNoteLineItemRequestItem.ts deleted file mode 100644 index fab22e093..000000000 --- a/src/api/resources/accounting/types/CreditNoteLineItemRequestItem.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 CreditNoteLineItemRequestItem = string | Merge.accounting.Item; diff --git a/src/api/resources/accounting/types/CreditNoteLineItemRequestProject.ts b/src/api/resources/accounting/types/CreditNoteLineItemRequestProject.ts deleted file mode 100644 index a046646b9..000000000 --- a/src/api/resources/accounting/types/CreditNoteLineItemRequestProject.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 CreditNoteLineItemRequestProject = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/CreditNotePaymentsItem.ts b/src/api/resources/accounting/types/CreditNotePaymentsItem.ts deleted file mode 100644 index 00aac28ab..000000000 --- a/src/api/resources/accounting/types/CreditNotePaymentsItem.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 CreditNotePaymentsItem = string | Merge.accounting.Payment; diff --git a/src/api/resources/accounting/types/CreditNoteRequest.ts b/src/api/resources/accounting/types/CreditNoteRequest.ts deleted file mode 100644 index 059a17b07..000000000 --- a/src/api/resources/accounting/types/CreditNoteRequest.ts +++ /dev/null @@ -1,361 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The CreditNote Object - * ### Description - * A `CreditNote` is transaction issued to a customer, indicating a reduction or cancellation of the amount owed by the customer. It is most generally used as an adjustment note used to rectify errors, returns, or overpayments related to a sales transaction. A `CreditNote` can be applied to *Accounts Receivable* Invoices to decrease the overall amount of the Invoice. - * - * ### Usage Example - * Fetch from the `LIST CreditNotes` endpoint and view a company's credit notes. - */ -export interface CreditNoteRequest { - /** The credit note's transaction date. */ - transactionDate?: Date; - /** - * The credit note's status. - * - * * `SUBMITTED` - SUBMITTED - * * `AUTHORIZED` - AUTHORIZED - * * `PAID` - PAID - */ - status?: Merge.accounting.CreditNoteRequestStatus; - /** The credit note's number. */ - number?: string; - /** The credit note's contact. */ - contact?: Merge.accounting.CreditNoteRequestContact; - /** The company the credit note belongs to. */ - company?: Merge.accounting.CreditNoteRequestCompany; - /** The credit note's exchange rate. */ - exchangeRate?: string; - /** The credit note's total amount. */ - totalAmount?: number; - /** The amount of value remaining in the credit note that the customer can use. */ - remainingCredit?: number; - /** If the transaction is inclusive or exclusive of tax. `True` if inclusive, `False` if exclusive. */ - inclusiveOfTax?: boolean; - lineItems?: Merge.accounting.CreditNoteRequestLineItemsItem[]; - trackingCategories?: (Merge.accounting.CreditNoteRequestTrackingCategoriesItem | undefined)[]; - /** - * The credit note'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.CreditNoteRequestCurrency; - /** Array of `Payment` object IDs */ - payments?: (Merge.accounting.CreditNoteRequestPaymentsItem | undefined)[]; - /** A list of the Payment Applied to Lines common models related to a given Invoice, Credit Note, or Journal Entry. */ - appliedPayments?: (Merge.accounting.CreditNoteRequestAppliedPaymentsItem | undefined)[]; - /** The accounting period that the CreditNote was generated in. */ - accountingPeriod?: Merge.accounting.CreditNoteRequestAccountingPeriod; - /** A list of the CreditNote Applied to Lines common models related to a given Credit Note */ - appliedToLines?: Merge.accounting.CreditNoteApplyLineForCreditNoteRequest[]; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/accounting/types/CreditNoteRequestAccountingPeriod.ts b/src/api/resources/accounting/types/CreditNoteRequestAccountingPeriod.ts deleted file mode 100644 index c1cf3defc..000000000 --- a/src/api/resources/accounting/types/CreditNoteRequestAccountingPeriod.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 CreditNote was generated in. - */ -export type CreditNoteRequestAccountingPeriod = string | Merge.accounting.AccountingPeriod; diff --git a/src/api/resources/accounting/types/CreditNoteRequestAppliedPaymentsItem.ts b/src/api/resources/accounting/types/CreditNoteRequestAppliedPaymentsItem.ts deleted file mode 100644 index b76318666..000000000 --- a/src/api/resources/accounting/types/CreditNoteRequestAppliedPaymentsItem.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 CreditNoteRequestAppliedPaymentsItem = string | Merge.accounting.PaymentLineItem; diff --git a/src/api/resources/accounting/types/CreditNoteRequestCompany.ts b/src/api/resources/accounting/types/CreditNoteRequestCompany.ts deleted file mode 100644 index 0831b6155..000000000 --- a/src/api/resources/accounting/types/CreditNoteRequestCompany.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 company the credit note belongs to. - */ -export type CreditNoteRequestCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/CreditNoteRequestContact.ts b/src/api/resources/accounting/types/CreditNoteRequestContact.ts deleted file mode 100644 index dee348da6..000000000 --- a/src/api/resources/accounting/types/CreditNoteRequestContact.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 credit note's contact. - */ -export type CreditNoteRequestContact = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/CreditNoteRequestCurrency.ts b/src/api/resources/accounting/types/CreditNoteRequestCurrency.ts deleted file mode 100644 index 2e0ce3f74..000000000 --- a/src/api/resources/accounting/types/CreditNoteRequestCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The credit note'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 CreditNoteRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/CreditNoteRequestLineItemsItem.ts b/src/api/resources/accounting/types/CreditNoteRequestLineItemsItem.ts deleted file mode 100644 index 1cbad2fd5..000000000 --- a/src/api/resources/accounting/types/CreditNoteRequestLineItemsItem.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 CreditNoteRequestLineItemsItem = string | Merge.accounting.CreditNoteLineItemRequest; diff --git a/src/api/resources/accounting/types/CreditNoteRequestPaymentsItem.ts b/src/api/resources/accounting/types/CreditNoteRequestPaymentsItem.ts deleted file mode 100644 index 323043b1b..000000000 --- a/src/api/resources/accounting/types/CreditNoteRequestPaymentsItem.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 CreditNoteRequestPaymentsItem = string | Merge.accounting.Payment; diff --git a/src/api/resources/accounting/types/CreditNoteRequestStatus.ts b/src/api/resources/accounting/types/CreditNoteRequestStatus.ts deleted file mode 100644 index 83fa2e239..000000000 --- a/src/api/resources/accounting/types/CreditNoteRequestStatus.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 credit note's status. - * - * * `SUBMITTED` - SUBMITTED - * * `AUTHORIZED` - AUTHORIZED - * * `PAID` - PAID - */ -export type CreditNoteRequestStatus = Merge.accounting.CreditNoteStatusEnum | string; diff --git a/src/api/resources/accounting/types/CreditNoteRequestTrackingCategoriesItem.ts b/src/api/resources/accounting/types/CreditNoteRequestTrackingCategoriesItem.ts deleted file mode 100644 index 3719da474..000000000 --- a/src/api/resources/accounting/types/CreditNoteRequestTrackingCategoriesItem.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 CreditNoteRequestTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/CreditNoteResponse.ts b/src/api/resources/accounting/types/CreditNoteResponse.ts deleted file mode 100644 index e984315dd..000000000 --- a/src/api/resources/accounting/types/CreditNoteResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface CreditNoteResponse { - model: Merge.accounting.CreditNote; - warnings: Merge.accounting.WarningValidationProblem[]; - errors: Merge.accounting.ErrorValidationProblem[]; - logs?: Merge.accounting.DebugModeLog[]; -} diff --git a/src/api/resources/accounting/types/CreditNoteStatus.ts b/src/api/resources/accounting/types/CreditNoteStatus.ts deleted file mode 100644 index 28be874e4..000000000 --- a/src/api/resources/accounting/types/CreditNoteStatus.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 credit note's status. - * - * * `SUBMITTED` - SUBMITTED - * * `AUTHORIZED` - AUTHORIZED - * * `PAID` - PAID - */ -export type CreditNoteStatus = Merge.accounting.CreditNoteStatusEnum | string; diff --git a/src/api/resources/accounting/types/CreditNoteStatusEnum.ts b/src/api/resources/accounting/types/CreditNoteStatusEnum.ts deleted file mode 100644 index f1190b7a5..000000000 --- a/src/api/resources/accounting/types/CreditNoteStatusEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `SUBMITTED` - SUBMITTED - * * `AUTHORIZED` - AUTHORIZED - * * `PAID` - PAID - */ -export const CreditNoteStatusEnum = { - Submitted: "SUBMITTED", - Authorized: "AUTHORIZED", - Paid: "PAID", -} as const; -export type CreditNoteStatusEnum = (typeof CreditNoteStatusEnum)[keyof typeof CreditNoteStatusEnum]; diff --git a/src/api/resources/accounting/types/CreditNoteTrackingCategoriesItem.ts b/src/api/resources/accounting/types/CreditNoteTrackingCategoriesItem.ts deleted file mode 100644 index 24401898b..000000000 --- a/src/api/resources/accounting/types/CreditNoteTrackingCategoriesItem.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 CreditNoteTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/CreditOrDebitEnum.ts b/src/api/resources/accounting/types/CreditOrDebitEnum.ts deleted file mode 100644 index 884781c64..000000000 --- a/src/api/resources/accounting/types/CreditOrDebitEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `CREDIT` - CREDIT - * * `DEBIT` - DEBIT - */ -export const CreditOrDebitEnum = { - Credit: "CREDIT", - Debit: "DEBIT", -} as const; -export type CreditOrDebitEnum = (typeof CreditOrDebitEnum)[keyof typeof CreditOrDebitEnum]; diff --git a/src/api/resources/accounting/types/DataPassthroughRequest.ts b/src/api/resources/accounting/types/DataPassthroughRequest.ts deleted file mode 100644 index c4883175a..000000000 --- a/src/api/resources/accounting/types/DataPassthroughRequest.ts +++ /dev/null @@ -1,28 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The DataPassthrough Object - * ### Description - * The `DataPassthrough` object is used to send information to an otherwise-unsupported third-party endpoint. - * - * ### Usage Example - * Create a `DataPassthrough` to get team hierarchies from your Rippling integration. - */ -export interface DataPassthroughRequest { - method: Merge.accounting.DataPassthroughRequestMethod; - /** The path of the request in the third party's platform. */ - path: string; - /** An optional override of the third party's base url for the request. */ - baseUrlOverride?: string; - /** The data with the request. You must include a `request_format` parameter matching the data's format */ - data?: string; - /** Pass an array of `MultipartFormField` objects in here instead of using the `data` param if `request_format` is set to `MULTIPART`. */ - 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; - /** 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/DataPassthroughRequestMethod.ts b/src/api/resources/accounting/types/DataPassthroughRequestMethod.ts deleted file mode 100644 index 1c2fc3cad..000000000 --- a/src/api/resources/accounting/types/DataPassthroughRequestMethod.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export type DataPassthroughRequestMethod = Merge.accounting.MethodEnum | string; diff --git a/src/api/resources/accounting/types/DebugModeLog.ts b/src/api/resources/accounting/types/DebugModeLog.ts deleted file mode 100644 index ab62d7a01..000000000 --- a/src/api/resources/accounting/types/DebugModeLog.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface DebugModeLog { - logId: string; - dashboardView: string; - logSummary: Merge.accounting.DebugModelLogSummary; -} diff --git a/src/api/resources/accounting/types/DebugModelLogSummary.ts b/src/api/resources/accounting/types/DebugModelLogSummary.ts deleted file mode 100644 index ffce707e3..000000000 --- a/src/api/resources/accounting/types/DebugModelLogSummary.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface DebugModelLogSummary { - url: string; - method: string; - statusCode: number; -} diff --git a/src/api/resources/accounting/types/Employee.ts b/src/api/resources/accounting/types/Employee.ts deleted file mode 100644 index 45a079101..000000000 --- a/src/api/resources/accounting/types/Employee.ts +++ /dev/null @@ -1,46 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Employee Object - * ### Description - * An `Employee` is an individual who works for the company of the linked account. The `Employee` model contains both contractors and full time employees. - * * An `Employee` is a contractor if `is_contractor` property is `True` - * * An `Employee` is a full time employee if `is_contractor` property is `False` - * - * ### Usage Example - * Fetch from the `LIST Employees` endpoint and view a company's employees. - */ -export interface Employee { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The employee's first name. */ - firstName?: string; - /** The employee's last name. */ - lastName?: string; - /** `True` if the employee is a contractor, `False` if not. */ - isContractor?: boolean; - /** The employee's internal identification number. */ - employeeNumber?: string; - /** The employee's email address. */ - emailAddress?: string; - /** The subsidiary that the employee belongs to. */ - company?: Merge.accounting.EmployeeCompany; - /** - * The employee's status in the accounting system. - * - * * `ACTIVE` - ACTIVE - * * `INACTIVE` - INACTIVE - */ - status: Merge.accounting.EmployeeStatus; - /** 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[]; -} diff --git a/src/api/resources/accounting/types/EmployeeCompany.ts b/src/api/resources/accounting/types/EmployeeCompany.ts deleted file mode 100644 index ab9801e69..000000000 --- a/src/api/resources/accounting/types/EmployeeCompany.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 subsidiary that the employee belongs to. - */ -export type EmployeeCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/EmployeeStatus.ts b/src/api/resources/accounting/types/EmployeeStatus.ts deleted file mode 100644 index 9820375e3..000000000 --- a/src/api/resources/accounting/types/EmployeeStatus.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 employee's status in the accounting system. - * - * * `ACTIVE` - ACTIVE - * * `INACTIVE` - INACTIVE - */ -export type EmployeeStatus = Merge.accounting.Status895Enum | string; diff --git a/src/api/resources/accounting/types/EnabledActionsEnum.ts b/src/api/resources/accounting/types/EnabledActionsEnum.ts deleted file mode 100644 index f6ce6a343..000000000 --- a/src/api/resources/accounting/types/EnabledActionsEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `READ` - READ - * * `WRITE` - WRITE - */ -export const EnabledActionsEnum = { - Read: "READ", - Write: "WRITE", -} as const; -export type EnabledActionsEnum = (typeof EnabledActionsEnum)[keyof typeof EnabledActionsEnum]; diff --git a/src/api/resources/accounting/types/EncodingEnum.ts b/src/api/resources/accounting/types/EncodingEnum.ts deleted file mode 100644 index 538e90395..000000000 --- a/src/api/resources/accounting/types/EncodingEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `RAW` - RAW - * * `BASE64` - BASE64 - * * `GZIP_BASE64` - GZIP_BASE64 - */ -export const EncodingEnum = { - Raw: "RAW", - Base64: "BASE64", - GzipBase64: "GZIP_BASE64", -} as const; -export type EncodingEnum = (typeof EncodingEnum)[keyof typeof EncodingEnum]; diff --git a/src/api/resources/accounting/types/ErrorValidationProblem.ts b/src/api/resources/accounting/types/ErrorValidationProblem.ts deleted file mode 100644 index 46b6e8cd2..000000000 --- a/src/api/resources/accounting/types/ErrorValidationProblem.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface ErrorValidationProblem { - source?: Merge.accounting.ValidationProblemSource; - title: string; - detail: string; - problemType: string; -} diff --git a/src/api/resources/accounting/types/EventTypeEnum.ts b/src/api/resources/accounting/types/EventTypeEnum.ts deleted file mode 100644 index 4e8aee7f7..000000000 --- a/src/api/resources/accounting/types/EventTypeEnum.ts +++ /dev/null @@ -1,93 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * * `INVITED_USER` - INVITED_USER - * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * * `CREATED_DESTINATION` - CREATED_DESTINATION - * * `DELETED_DESTINATION` - DELETED_DESTINATION - * * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * * `CHANGED_SCOPES` - CHANGED_SCOPES - * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * * `RESET_PASSWORD` - RESET_PASSWORD - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * * `MUTED_ISSUE` - MUTED_ISSUE - * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - */ -export const EventTypeEnum = { - CreatedRemoteProductionApiKey: "CREATED_REMOTE_PRODUCTION_API_KEY", - DeletedRemoteProductionApiKey: "DELETED_REMOTE_PRODUCTION_API_KEY", - CreatedTestApiKey: "CREATED_TEST_API_KEY", - DeletedTestApiKey: "DELETED_TEST_API_KEY", - RegeneratedProductionApiKey: "REGENERATED_PRODUCTION_API_KEY", - RegeneratedWebhookSignature: "REGENERATED_WEBHOOK_SIGNATURE", - InvitedUser: "INVITED_USER", - TwoFactorAuthEnabled: "TWO_FACTOR_AUTH_ENABLED", - TwoFactorAuthDisabled: "TWO_FACTOR_AUTH_DISABLED", - DeletedLinkedAccount: "DELETED_LINKED_ACCOUNT", - DeletedAllCommonModelsForLinkedAccount: "DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT", - CreatedDestination: "CREATED_DESTINATION", - DeletedDestination: "DELETED_DESTINATION", - ChangedDestination: "CHANGED_DESTINATION", - ChangedScopes: "CHANGED_SCOPES", - ChangedPersonalInformation: "CHANGED_PERSONAL_INFORMATION", - ChangedOrganizationSettings: "CHANGED_ORGANIZATION_SETTINGS", - EnabledIntegration: "ENABLED_INTEGRATION", - DisabledIntegration: "DISABLED_INTEGRATION", - EnabledCategory: "ENABLED_CATEGORY", - DisabledCategory: "DISABLED_CATEGORY", - ChangedPassword: "CHANGED_PASSWORD", - ResetPassword: "RESET_PASSWORD", - EnabledRedactUnmappedDataForOrganization: "ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION", - EnabledRedactUnmappedDataForLinkedAccount: "ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT", - DisabledRedactUnmappedDataForOrganization: "DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION", - DisabledRedactUnmappedDataForLinkedAccount: "DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT", - CreatedIntegrationWideFieldMapping: "CREATED_INTEGRATION_WIDE_FIELD_MAPPING", - CreatedLinkedAccountFieldMapping: "CREATED_LINKED_ACCOUNT_FIELD_MAPPING", - ChangedIntegrationWideFieldMapping: "CHANGED_INTEGRATION_WIDE_FIELD_MAPPING", - ChangedLinkedAccountFieldMapping: "CHANGED_LINKED_ACCOUNT_FIELD_MAPPING", - DeletedIntegrationWideFieldMapping: "DELETED_INTEGRATION_WIDE_FIELD_MAPPING", - DeletedLinkedAccountFieldMapping: "DELETED_LINKED_ACCOUNT_FIELD_MAPPING", - CreatedLinkedAccountCommonModelOverride: "CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE", - ChangedLinkedAccountCommonModelOverride: "CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE", - DeletedLinkedAccountCommonModelOverride: "DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE", - ForcedLinkedAccountResync: "FORCED_LINKED_ACCOUNT_RESYNC", - MutedIssue: "MUTED_ISSUE", - GeneratedMagicLink: "GENERATED_MAGIC_LINK", - EnabledMergeWebhook: "ENABLED_MERGE_WEBHOOK", - DisabledMergeWebhook: "DISABLED_MERGE_WEBHOOK", - MergeWebhookTargetChanged: "MERGE_WEBHOOK_TARGET_CHANGED", - EndUserCredentialsAccessed: "END_USER_CREDENTIALS_ACCESSED", -} as const; -export type EventTypeEnum = (typeof EventTypeEnum)[keyof typeof EventTypeEnum]; diff --git a/src/api/resources/accounting/types/Expense.ts b/src/api/resources/accounting/types/Expense.ts deleted file mode 100644 index a5b0f0ff7..000000000 --- a/src/api/resources/accounting/types/Expense.ts +++ /dev/null @@ -1,367 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Expense Object - * ### 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. - * - * ### Usage Example - * Fetch from the `GET Expense` endpoint and view a company's expense. - */ -export interface Expense { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** When the transaction occurred. */ - transactionDate?: Date; - /** When the expense was created. */ - remoteCreatedAt?: Date; - /** The expense's payment account. */ - account?: Merge.accounting.ExpenseAccount; - /** The expense's contact. */ - contact?: Merge.accounting.ExpenseContact; - /** The expense's total amount. */ - totalAmount?: number; - /** The expense's total amount before tax. */ - subTotal?: number; - /** The expense's total tax amount. */ - totalTaxAmount?: number; - /** - * The expense'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.ExpenseCurrency; - /** The expense'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 expense belongs to. */ - company?: Merge.accounting.ExpenseCompany; - /** The employee this overall transaction relates to. */ - employee?: Merge.accounting.ExpenseEmployee; - /** The expense's private note. */ - memo?: string; - lines?: Merge.accounting.ExpenseLine[]; - trackingCategories?: (Merge.accounting.ExpenseTrackingCategoriesItem | 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; - /** The accounting period that the Expense was generated in. */ - accountingPeriod?: Merge.accounting.ExpenseAccountingPeriod; - fieldMappings?: Record; - remoteData?: Merge.accounting.RemoteData[]; - remoteFields?: Merge.accounting.RemoteField[]; -} diff --git a/src/api/resources/accounting/types/ExpenseAccount.ts b/src/api/resources/accounting/types/ExpenseAccount.ts deleted file mode 100644 index 47e0b8db8..000000000 --- a/src/api/resources/accounting/types/ExpenseAccount.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 expense's payment account. - */ -export type ExpenseAccount = string | Merge.accounting.Account; diff --git a/src/api/resources/accounting/types/ExpenseAccountingPeriod.ts b/src/api/resources/accounting/types/ExpenseAccountingPeriod.ts deleted file mode 100644 index cc3ad1fdc..000000000 --- a/src/api/resources/accounting/types/ExpenseAccountingPeriod.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 Expense was generated in. - */ -export type ExpenseAccountingPeriod = string | Merge.accounting.AccountingPeriod; diff --git a/src/api/resources/accounting/types/ExpenseCompany.ts b/src/api/resources/accounting/types/ExpenseCompany.ts deleted file mode 100644 index c32e251f1..000000000 --- a/src/api/resources/accounting/types/ExpenseCompany.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 company the expense belongs to. - */ -export type ExpenseCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/ExpenseContact.ts b/src/api/resources/accounting/types/ExpenseContact.ts deleted file mode 100644 index fc3f02470..000000000 --- a/src/api/resources/accounting/types/ExpenseContact.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 expense's contact. - */ -export type ExpenseContact = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/ExpenseCurrency.ts b/src/api/resources/accounting/types/ExpenseCurrency.ts deleted file mode 100644 index b23f87dcc..000000000 --- a/src/api/resources/accounting/types/ExpenseCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The expense'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 ExpenseCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/ExpenseEmployee.ts b/src/api/resources/accounting/types/ExpenseEmployee.ts deleted file mode 100644 index d82684458..000000000 --- a/src/api/resources/accounting/types/ExpenseEmployee.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 ExpenseEmployee = string | Merge.accounting.Employee; diff --git a/src/api/resources/accounting/types/ExpenseLine.ts b/src/api/resources/accounting/types/ExpenseLine.ts deleted file mode 100644 index 1db271898..000000000 --- a/src/api/resources/accounting/types/ExpenseLine.ts +++ /dev/null @@ -1,360 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The ExpenseLine Object - * ### Description - * The `ExpenseLine` object is used to represent an expense's line items. - * - * ### Usage Example - * Fetch from the `GET Expense` endpoint and view the expense's line items. - */ -export interface ExpenseLine { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The line's item. */ - item?: Merge.accounting.ExpenseLineItem; - /** The line's net amount. */ - netAmount?: number; - trackingCategory?: Merge.accounting.ExpenseLineTrackingCategory; - /** The expense line item's associated tracking categories. */ - trackingCategories?: (Merge.accounting.ExpenseLineTrackingCategoriesItem | undefined)[]; - /** The company the expense belongs to. */ - company?: string; - /** The employee this overall transaction relates to. */ - employee?: Merge.accounting.ExpenseLineEmployee; - /** - * The expense line item'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.ExpenseLineCurrency; - /** The expense's payment account. */ - account?: Merge.accounting.ExpenseLineAccount; - /** The expense's contact. */ - contact?: Merge.accounting.ExpenseLineContact; - project?: Merge.accounting.ExpenseLineProject; - /** The description of the item that was purchased by the company. */ - description?: string; - /** The expense line item's exchange rate. */ - exchangeRate?: string; - /** The tax rate that applies to this line item. */ - taxRate?: string; - /** Number of items for the expense line. */ - quantity?: string; - /** Unit price of the item for the expense line. */ - unitPrice?: 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/). */ - remoteWasDeleted?: boolean; -} diff --git a/src/api/resources/accounting/types/ExpenseLineAccount.ts b/src/api/resources/accounting/types/ExpenseLineAccount.ts deleted file mode 100644 index fe32646f8..000000000 --- a/src/api/resources/accounting/types/ExpenseLineAccount.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 expense's payment account. - */ -export type ExpenseLineAccount = string | Merge.accounting.Account; diff --git a/src/api/resources/accounting/types/ExpenseLineContact.ts b/src/api/resources/accounting/types/ExpenseLineContact.ts deleted file mode 100644 index 56e749bd6..000000000 --- a/src/api/resources/accounting/types/ExpenseLineContact.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 expense's contact. - */ -export type ExpenseLineContact = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/ExpenseLineCurrency.ts b/src/api/resources/accounting/types/ExpenseLineCurrency.ts deleted file mode 100644 index 618e73c05..000000000 --- a/src/api/resources/accounting/types/ExpenseLineCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The expense line item'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 ExpenseLineCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/ExpenseLineEmployee.ts b/src/api/resources/accounting/types/ExpenseLineEmployee.ts deleted file mode 100644 index 38e5d174f..000000000 --- a/src/api/resources/accounting/types/ExpenseLineEmployee.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 ExpenseLineEmployee = string | Merge.accounting.Employee; diff --git a/src/api/resources/accounting/types/ExpenseLineItem.ts b/src/api/resources/accounting/types/ExpenseLineItem.ts deleted file mode 100644 index ead1b1f7a..000000000 --- a/src/api/resources/accounting/types/ExpenseLineItem.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 line's item. - */ -export type ExpenseLineItem = string | Merge.accounting.Item; diff --git a/src/api/resources/accounting/types/ExpenseLineProject.ts b/src/api/resources/accounting/types/ExpenseLineProject.ts deleted file mode 100644 index 5986986d4..000000000 --- a/src/api/resources/accounting/types/ExpenseLineProject.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 ExpenseLineProject = string | Merge.accounting.Project; diff --git a/src/api/resources/accounting/types/ExpenseLineRequest.ts b/src/api/resources/accounting/types/ExpenseLineRequest.ts deleted file mode 100644 index 61635d324..000000000 --- a/src/api/resources/accounting/types/ExpenseLineRequest.ts +++ /dev/null @@ -1,356 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The ExpenseLine Object - * ### Description - * The `ExpenseLine` object is used to represent an expense's line items. - * - * ### Usage Example - * Fetch from the `GET Expense` endpoint and view the expense's line items. - */ -export interface ExpenseLineRequest { - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The line's item. */ - item?: Merge.accounting.ExpenseLineRequestItem; - /** The line's net amount. */ - netAmount?: number; - trackingCategory?: Merge.accounting.ExpenseLineRequestTrackingCategory; - /** The expense line item's associated tracking categories. */ - trackingCategories?: (Merge.accounting.ExpenseLineRequestTrackingCategoriesItem | undefined)[]; - /** The company the expense belongs to. */ - company?: string; - /** The employee this overall transaction relates to. */ - employee?: Merge.accounting.ExpenseLineRequestEmployee; - /** - * The expense line item'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.ExpenseLineRequestCurrency; - /** The expense's payment account. */ - account?: Merge.accounting.ExpenseLineRequestAccount; - /** The expense's contact. */ - contact?: Merge.accounting.ExpenseLineRequestContact; - project?: Merge.accounting.ExpenseLineRequestProject; - /** The description of the item that was purchased by the company. */ - description?: string; - /** The expense line item's exchange rate. */ - exchangeRate?: string; - /** The tax rate that applies to this line item. */ - taxRate?: string; - /** Number of items for the expense line. */ - quantity?: string; - /** Unit price of the item for the expense line. */ - unitPrice?: string; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.accounting.RemoteFieldRequest[]; -} diff --git a/src/api/resources/accounting/types/ExpenseLineRequestAccount.ts b/src/api/resources/accounting/types/ExpenseLineRequestAccount.ts deleted file mode 100644 index 7f564d1a9..000000000 --- a/src/api/resources/accounting/types/ExpenseLineRequestAccount.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 expense's payment account. - */ -export type ExpenseLineRequestAccount = string | Merge.accounting.Account; diff --git a/src/api/resources/accounting/types/ExpenseLineRequestContact.ts b/src/api/resources/accounting/types/ExpenseLineRequestContact.ts deleted file mode 100644 index af51a7931..000000000 --- a/src/api/resources/accounting/types/ExpenseLineRequestContact.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 expense's contact. - */ -export type ExpenseLineRequestContact = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/ExpenseLineRequestCurrency.ts b/src/api/resources/accounting/types/ExpenseLineRequestCurrency.ts deleted file mode 100644 index a91b421ab..000000000 --- a/src/api/resources/accounting/types/ExpenseLineRequestCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The expense line item'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 ExpenseLineRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/ExpenseLineRequestEmployee.ts b/src/api/resources/accounting/types/ExpenseLineRequestEmployee.ts deleted file mode 100644 index a2aedfc5f..000000000 --- a/src/api/resources/accounting/types/ExpenseLineRequestEmployee.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 ExpenseLineRequestEmployee = string | Merge.accounting.Employee; diff --git a/src/api/resources/accounting/types/ExpenseLineRequestItem.ts b/src/api/resources/accounting/types/ExpenseLineRequestItem.ts deleted file mode 100644 index 039f14e6e..000000000 --- a/src/api/resources/accounting/types/ExpenseLineRequestItem.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 line's item. - */ -export type ExpenseLineRequestItem = string | Merge.accounting.Item; diff --git a/src/api/resources/accounting/types/ExpenseLineRequestProject.ts b/src/api/resources/accounting/types/ExpenseLineRequestProject.ts deleted file mode 100644 index 9212e45d8..000000000 --- a/src/api/resources/accounting/types/ExpenseLineRequestProject.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 ExpenseLineRequestProject = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/ExpenseLineRequestTrackingCategoriesItem.ts b/src/api/resources/accounting/types/ExpenseLineRequestTrackingCategoriesItem.ts deleted file mode 100644 index 8be82b731..000000000 --- a/src/api/resources/accounting/types/ExpenseLineRequestTrackingCategoriesItem.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 ExpenseLineRequestTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/ExpenseLineRequestTrackingCategory.ts b/src/api/resources/accounting/types/ExpenseLineRequestTrackingCategory.ts deleted file mode 100644 index 6f0cf4a8e..000000000 --- a/src/api/resources/accounting/types/ExpenseLineRequestTrackingCategory.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 ExpenseLineRequestTrackingCategory = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/ExpenseLineTrackingCategoriesItem.ts b/src/api/resources/accounting/types/ExpenseLineTrackingCategoriesItem.ts deleted file mode 100644 index f1bbe6393..000000000 --- a/src/api/resources/accounting/types/ExpenseLineTrackingCategoriesItem.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 ExpenseLineTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/ExpenseLineTrackingCategory.ts b/src/api/resources/accounting/types/ExpenseLineTrackingCategory.ts deleted file mode 100644 index 86689ec3a..000000000 --- a/src/api/resources/accounting/types/ExpenseLineTrackingCategory.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 ExpenseLineTrackingCategory = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/ExpenseReport.ts b/src/api/resources/accounting/types/ExpenseReport.ts deleted file mode 100644 index 7bf33b1c2..000000000 --- a/src/api/resources/accounting/types/ExpenseReport.ts +++ /dev/null @@ -1,364 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The ExpenseReport Object - * ### Description - * The `ExpenseReport` object represents a collection of expenses submitted for review and reimbursement. - * It includes details about the submitter, status, amounts, and associated metadata. - * - * ### Usage Example - * Fetch from the `GET ExpenseReport` endpoint to view details of expense reports and their line items. - */ -export interface ExpenseReport { - 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 date of the expense report. */ - reportDate?: Date; - /** Human-readable expense report identifier. */ - reportIdentifier?: string; - /** Identifier for the employee who submitted or is associated with the expense report */ - employee?: string; - /** - * Overall status of the expense report. One of DRAFT, SUBMITTED, APPROVED, REJECTED - * - * * `DRAFT` - DRAFT - * * `SUBMITTED` - SUBMITTED - * * `APPROVED` - APPROVED - * * `REJECTED` - REJECTED - */ - status?: Merge.accounting.ExpenseReportStatus; - /** Total amount of the expense report */ - totalAmount?: number; - lines?: Merge.accounting.ExpenseReportLine[]; - /** - * 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) - */ - currency?: Merge.accounting.TransactionCurrencyEnum; - /** A brief description or purpose for the expense report */ - description?: string; - /** The accounting period the report was posted in */ - accountingPeriod?: string; - /** The subsidiary that the expense report is created in */ - company?: Merge.accounting.ExpenseReportCompany; - /** The related tracking categories associated with the expense report */ - trackingCategories: 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/). */ - remoteWasDeleted?: boolean; - fieldMappings?: Record; - remoteData?: Merge.accounting.RemoteData[]; - remoteFields?: Merge.accounting.RemoteField[]; -} diff --git a/src/api/resources/accounting/types/ExpenseReportCompany.ts b/src/api/resources/accounting/types/ExpenseReportCompany.ts deleted file mode 100644 index 985807a09..000000000 --- a/src/api/resources/accounting/types/ExpenseReportCompany.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 subsidiary that the expense report is created in - */ -export type ExpenseReportCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/ExpenseReportLine.ts b/src/api/resources/accounting/types/ExpenseReportLine.ts deleted file mode 100644 index f0063de36..000000000 --- a/src/api/resources/accounting/types/ExpenseReportLine.ts +++ /dev/null @@ -1,366 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The ExpenseReportLine Object - * ### Description - * The `ExpenseReportLine` object represents an individual line item within an expense report, containing details about - * a specific expense such as amount, description, and associated metadata. - * - * ### Usage Example - * Fetch from the `GET ExpenseReport` endpoint and expand the lines field to view all line items in the expense report. - */ -export interface ExpenseReportLine { - 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; - account?: Merge.accounting.ExpenseReportLineAccount; - /** Description of the individual expense. */ - description?: string; - /** The date the individual expense was incurred. */ - expenseDate?: Date; - /** The amount of the expense for the line item. */ - amount?: number; - /** - * 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) - */ - currency?: Merge.accounting.TransactionCurrencyEnum; - /** 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. */ - isBillable?: boolean; - /** The related tracking categories associated with the expense report (Department, Location, Class, Expense Category) */ - trackingCategories: string[]; - /** Identifier for the employee who submitted or is associated with the expense report */ - employee?: Merge.accounting.ExpenseReportLineEmployee; - project?: Merge.accounting.ExpenseReportLineProject; - /** The subsidiary that the expense report is created in */ - company?: Merge.accounting.ExpenseReportLineCompany; - contact?: Merge.accounting.ExpenseReportLineContact; - /** Quantity for the expense line (e.g., miles driven, items purchased). */ - quantity?: number; - /** Price per unit for the expense line (if applicable). */ - unitPrice?: number; - /** Whether the expense line is non-reimbursable (e.g., paid via company card). */ - nonReimbursable?: boolean; - /** Tax amount applicable for the line item. */ - taxAmount?: number; - /** Whether the amount is inclusive of tax. */ - inclusiveOfTax?: boolean; - taxRate?: Merge.accounting.ExpenseReportLineTaxRate; - /** 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/ExpenseReportLineAccount.ts b/src/api/resources/accounting/types/ExpenseReportLineAccount.ts deleted file mode 100644 index 5f17a21fe..000000000 --- a/src/api/resources/accounting/types/ExpenseReportLineAccount.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 ExpenseReportLineAccount = string | Merge.accounting.Account; diff --git a/src/api/resources/accounting/types/ExpenseReportLineCompany.ts b/src/api/resources/accounting/types/ExpenseReportLineCompany.ts deleted file mode 100644 index 1a897da62..000000000 --- a/src/api/resources/accounting/types/ExpenseReportLineCompany.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 subsidiary that the expense report is created in - */ -export type ExpenseReportLineCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/ExpenseReportLineContact.ts b/src/api/resources/accounting/types/ExpenseReportLineContact.ts deleted file mode 100644 index 3cef85957..000000000 --- a/src/api/resources/accounting/types/ExpenseReportLineContact.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 ExpenseReportLineContact = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/ExpenseReportLineEmployee.ts b/src/api/resources/accounting/types/ExpenseReportLineEmployee.ts deleted file mode 100644 index 0d5cd8a5b..000000000 --- a/src/api/resources/accounting/types/ExpenseReportLineEmployee.ts +++ /dev/null @@ -1,8 +0,0 @@ -// 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 ExpenseReportLineEmployee = string | Merge.accounting.Employee; diff --git a/src/api/resources/accounting/types/ExpenseReportLineProject.ts b/src/api/resources/accounting/types/ExpenseReportLineProject.ts deleted file mode 100644 index 961c4294b..000000000 --- a/src/api/resources/accounting/types/ExpenseReportLineProject.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 ExpenseReportLineProject = string | Merge.accounting.Project; diff --git a/src/api/resources/accounting/types/ExpenseReportLineRequest.ts b/src/api/resources/accounting/types/ExpenseReportLineRequest.ts deleted file mode 100644 index 362b63d79..000000000 --- a/src/api/resources/accounting/types/ExpenseReportLineRequest.ts +++ /dev/null @@ -1,361 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The ExpenseReportLine Object - * ### Description - * The `ExpenseReportLine` object represents an individual line item within an expense report, containing details about - * a specific expense such as amount, description, and associated metadata. - * - * ### Usage Example - * Fetch from the `GET ExpenseReport` endpoint and expand the lines field to view all line items in the expense report. - */ -export interface ExpenseReportLineRequest { - /** The third-party API ID of the matching object. */ - remoteId?: string; - account?: Merge.accounting.ExpenseReportLineRequestAccount; - /** Description of the individual expense. */ - description?: string; - /** The date the individual expense was incurred. */ - expenseDate?: Date; - /** The amount of the expense for the line item. */ - amount?: number; - /** - * 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) - */ - currency?: Merge.accounting.TransactionCurrencyEnum; - /** 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. */ - isBillable?: boolean; - /** The related tracking categories associated with the expense report (Department, Location, Class, Expense Category) */ - trackingCategories: string[]; - /** Identifier for the employee who submitted or is associated with the expense report */ - employee?: Merge.accounting.ExpenseReportLineRequestEmployee; - project?: Merge.accounting.ExpenseReportLineRequestProject; - /** The subsidiary that the expense report is created in */ - company?: Merge.accounting.ExpenseReportLineRequestCompany; - contact?: Merge.accounting.ExpenseReportLineRequestContact; - /** Quantity for the expense line (e.g., miles driven, items purchased). */ - quantity?: number; - /** Price per unit for the expense line (if applicable). */ - unitPrice?: number; - /** Whether the expense line is non-reimbursable (e.g., paid via company card). */ - nonReimbursable?: boolean; - /** Tax amount applicable for the line item. */ - taxAmount?: number; - /** Whether the amount is inclusive of tax. */ - inclusiveOfTax?: boolean; - taxRate?: Merge.accounting.ExpenseReportLineRequestTaxRate; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.accounting.RemoteFieldRequest[]; -} diff --git a/src/api/resources/accounting/types/ExpenseReportLineRequestAccount.ts b/src/api/resources/accounting/types/ExpenseReportLineRequestAccount.ts deleted file mode 100644 index 174584261..000000000 --- a/src/api/resources/accounting/types/ExpenseReportLineRequestAccount.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 ExpenseReportLineRequestAccount = string | Merge.accounting.Account; diff --git a/src/api/resources/accounting/types/ExpenseReportLineRequestCompany.ts b/src/api/resources/accounting/types/ExpenseReportLineRequestCompany.ts deleted file mode 100644 index 5d2635961..000000000 --- a/src/api/resources/accounting/types/ExpenseReportLineRequestCompany.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 subsidiary that the expense report is created in - */ -export type ExpenseReportLineRequestCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/ExpenseReportLineRequestContact.ts b/src/api/resources/accounting/types/ExpenseReportLineRequestContact.ts deleted file mode 100644 index b7a0b8ab8..000000000 --- a/src/api/resources/accounting/types/ExpenseReportLineRequestContact.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 ExpenseReportLineRequestContact = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/ExpenseReportLineRequestEmployee.ts b/src/api/resources/accounting/types/ExpenseReportLineRequestEmployee.ts deleted file mode 100644 index bab3de306..000000000 --- a/src/api/resources/accounting/types/ExpenseReportLineRequestEmployee.ts +++ /dev/null @@ -1,8 +0,0 @@ -// 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 ExpenseReportLineRequestEmployee = string | Merge.accounting.Employee; diff --git a/src/api/resources/accounting/types/ExpenseReportLineRequestProject.ts b/src/api/resources/accounting/types/ExpenseReportLineRequestProject.ts deleted file mode 100644 index 8c226ef92..000000000 --- a/src/api/resources/accounting/types/ExpenseReportLineRequestProject.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 ExpenseReportLineRequestProject = string | Merge.accounting.Project; diff --git a/src/api/resources/accounting/types/ExpenseReportLineRequestTaxRate.ts b/src/api/resources/accounting/types/ExpenseReportLineRequestTaxRate.ts deleted file mode 100644 index c7e420505..000000000 --- a/src/api/resources/accounting/types/ExpenseReportLineRequestTaxRate.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 ExpenseReportLineRequestTaxRate = string | Merge.accounting.TaxRate; diff --git a/src/api/resources/accounting/types/ExpenseReportLineTaxRate.ts b/src/api/resources/accounting/types/ExpenseReportLineTaxRate.ts deleted file mode 100644 index 83088724f..000000000 --- a/src/api/resources/accounting/types/ExpenseReportLineTaxRate.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 ExpenseReportLineTaxRate = string | Merge.accounting.TaxRate; diff --git a/src/api/resources/accounting/types/ExpenseReportRequest.ts b/src/api/resources/accounting/types/ExpenseReportRequest.ts deleted file mode 100644 index 8345be4d4..000000000 --- a/src/api/resources/accounting/types/ExpenseReportRequest.ts +++ /dev/null @@ -1,354 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The ExpenseReport Object - * ### Description - * The `ExpenseReport` object represents a collection of expenses submitted for review and reimbursement. - * It includes details about the submitter, status, amounts, and associated metadata. - * - * ### Usage Example - * Fetch from the `GET ExpenseReport` endpoint to view details of expense reports and their line items. - */ -export interface ExpenseReportRequest { - /** The date of the expense report. */ - reportDate?: Date; - /** Human-readable expense report identifier. */ - reportIdentifier?: string; - /** Identifier for the employee who submitted or is associated with the expense report */ - employee?: Merge.accounting.ExpenseReportRequestEmployee; - /** - * Overall status of the expense report. One of DRAFT, SUBMITTED, APPROVED, REJECTED - * - * * `DRAFT` - DRAFT - * * `SUBMITTED` - SUBMITTED - * * `APPROVED` - APPROVED - * * `REJECTED` - REJECTED - */ - status?: Merge.accounting.ExpenseReportStatusEnum; - /** Total amount of the expense report */ - totalAmount?: number; - /** - * 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) - */ - currency?: Merge.accounting.TransactionCurrencyEnum; - /** A brief description or purpose for the expense report */ - description?: string; - /** The accounting period the report was posted in */ - accountingPeriod?: Merge.accounting.ExpenseReportRequestAccountingPeriod; - /** The subsidiary that the expense report is created in */ - company?: Merge.accounting.ExpenseReportRequestCompany; - /** The related tracking categories associated with the expense report */ - trackingCategories: string[]; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.accounting.RemoteFieldRequest[]; -} diff --git a/src/api/resources/accounting/types/ExpenseReportRequestAccountingPeriod.ts b/src/api/resources/accounting/types/ExpenseReportRequestAccountingPeriod.ts deleted file mode 100644 index ce4e9d1db..000000000 --- a/src/api/resources/accounting/types/ExpenseReportRequestAccountingPeriod.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 the report was posted in - */ -export type ExpenseReportRequestAccountingPeriod = string | Merge.accounting.AccountingPeriod; diff --git a/src/api/resources/accounting/types/ExpenseReportRequestCompany.ts b/src/api/resources/accounting/types/ExpenseReportRequestCompany.ts deleted file mode 100644 index 9f278276c..000000000 --- a/src/api/resources/accounting/types/ExpenseReportRequestCompany.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 subsidiary that the expense report is created in - */ -export type ExpenseReportRequestCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/ExpenseReportRequestEmployee.ts b/src/api/resources/accounting/types/ExpenseReportRequestEmployee.ts deleted file mode 100644 index c8bc03a89..000000000 --- a/src/api/resources/accounting/types/ExpenseReportRequestEmployee.ts +++ /dev/null @@ -1,8 +0,0 @@ -// 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 ExpenseReportRequestEmployee = string | Merge.accounting.Employee; diff --git a/src/api/resources/accounting/types/ExpenseReportResponse.ts b/src/api/resources/accounting/types/ExpenseReportResponse.ts deleted file mode 100644 index 801142898..000000000 --- a/src/api/resources/accounting/types/ExpenseReportResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface ExpenseReportResponse { - model: Merge.accounting.ExpenseReport; - warnings: Merge.accounting.WarningValidationProblem[]; - errors: Merge.accounting.ErrorValidationProblem[]; - logs?: Merge.accounting.DebugModeLog[]; -} diff --git a/src/api/resources/accounting/types/ExpenseReportStatus.ts b/src/api/resources/accounting/types/ExpenseReportStatus.ts deleted file mode 100644 index 209b41468..000000000 --- a/src/api/resources/accounting/types/ExpenseReportStatus.ts +++ /dev/null @@ -1,13 +0,0 @@ -// 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 ExpenseReportStatus = Merge.accounting.ExpenseReportStatusEnum | string; diff --git a/src/api/resources/accounting/types/ExpenseReportStatusEnum.ts b/src/api/resources/accounting/types/ExpenseReportStatusEnum.ts deleted file mode 100644 index 69daf2725..000000000 --- a/src/api/resources/accounting/types/ExpenseReportStatusEnum.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `DRAFT` - DRAFT - * * `SUBMITTED` - SUBMITTED - * * `APPROVED` - APPROVED - * * `REJECTED` - REJECTED - */ -export const ExpenseReportStatusEnum = { - Draft: "DRAFT", - Submitted: "SUBMITTED", - Approved: "APPROVED", - Rejected: "REJECTED", -} as const; -export type ExpenseReportStatusEnum = (typeof ExpenseReportStatusEnum)[keyof typeof ExpenseReportStatusEnum]; diff --git a/src/api/resources/accounting/types/ExpenseRequest.ts b/src/api/resources/accounting/types/ExpenseRequest.ts deleted file mode 100644 index 28df25756..000000000 --- a/src/api/resources/accounting/types/ExpenseRequest.ts +++ /dev/null @@ -1,356 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Expense Object - * ### 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. - * - * ### Usage Example - * Fetch from the `GET Expense` endpoint and view a company's expense. - */ -export interface ExpenseRequest { - /** When the transaction occurred. */ - transactionDate?: Date; - /** The expense's payment account. */ - account?: Merge.accounting.ExpenseRequestAccount; - /** The expense's contact. */ - contact?: Merge.accounting.ExpenseRequestContact; - /** The expense's total amount. */ - totalAmount?: number; - /** The expense's total amount before tax. */ - subTotal?: number; - /** The expense's total tax amount. */ - totalTaxAmount?: number; - /** - * The expense'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.ExpenseRequestCurrency; - /** The expense'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 expense belongs to. */ - company?: Merge.accounting.ExpenseRequestCompany; - /** The employee this overall transaction relates to. */ - employee?: Merge.accounting.ExpenseRequestEmployee; - /** The expense's private note. */ - memo?: string; - lines?: Merge.accounting.ExpenseLineRequest[]; - trackingCategories?: (Merge.accounting.ExpenseRequestTrackingCategoriesItem | undefined)[]; - /** The accounting period that the Expense was generated in. */ - accountingPeriod?: Merge.accounting.ExpenseRequestAccountingPeriod; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.accounting.RemoteFieldRequest[]; -} diff --git a/src/api/resources/accounting/types/ExpenseRequestAccount.ts b/src/api/resources/accounting/types/ExpenseRequestAccount.ts deleted file mode 100644 index e227836cb..000000000 --- a/src/api/resources/accounting/types/ExpenseRequestAccount.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 expense's payment account. - */ -export type ExpenseRequestAccount = string | Merge.accounting.Account; diff --git a/src/api/resources/accounting/types/ExpenseRequestAccountingPeriod.ts b/src/api/resources/accounting/types/ExpenseRequestAccountingPeriod.ts deleted file mode 100644 index b799f2c59..000000000 --- a/src/api/resources/accounting/types/ExpenseRequestAccountingPeriod.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 Expense was generated in. - */ -export type ExpenseRequestAccountingPeriod = string | Merge.accounting.AccountingPeriod; diff --git a/src/api/resources/accounting/types/ExpenseRequestCompany.ts b/src/api/resources/accounting/types/ExpenseRequestCompany.ts deleted file mode 100644 index aa0cd7b17..000000000 --- a/src/api/resources/accounting/types/ExpenseRequestCompany.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 company the expense belongs to. - */ -export type ExpenseRequestCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/ExpenseRequestContact.ts b/src/api/resources/accounting/types/ExpenseRequestContact.ts deleted file mode 100644 index 62301ad13..000000000 --- a/src/api/resources/accounting/types/ExpenseRequestContact.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 expense's contact. - */ -export type ExpenseRequestContact = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/ExpenseRequestCurrency.ts b/src/api/resources/accounting/types/ExpenseRequestCurrency.ts deleted file mode 100644 index a5210f7fc..000000000 --- a/src/api/resources/accounting/types/ExpenseRequestCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The expense'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 ExpenseRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/ExpenseRequestEmployee.ts b/src/api/resources/accounting/types/ExpenseRequestEmployee.ts deleted file mode 100644 index 71e50b084..000000000 --- a/src/api/resources/accounting/types/ExpenseRequestEmployee.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 ExpenseRequestEmployee = string | Merge.accounting.Employee; diff --git a/src/api/resources/accounting/types/ExpenseRequestTrackingCategoriesItem.ts b/src/api/resources/accounting/types/ExpenseRequestTrackingCategoriesItem.ts deleted file mode 100644 index d0cb16f1e..000000000 --- a/src/api/resources/accounting/types/ExpenseRequestTrackingCategoriesItem.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 ExpenseRequestTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/ExpenseResponse.ts b/src/api/resources/accounting/types/ExpenseResponse.ts deleted file mode 100644 index 57cd8e4ee..000000000 --- a/src/api/resources/accounting/types/ExpenseResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface ExpenseResponse { - model: Merge.accounting.Expense; - warnings: Merge.accounting.WarningValidationProblem[]; - errors: Merge.accounting.ErrorValidationProblem[]; - logs?: Merge.accounting.DebugModeLog[]; -} diff --git a/src/api/resources/accounting/types/ExpenseTrackingCategoriesItem.ts b/src/api/resources/accounting/types/ExpenseTrackingCategoriesItem.ts deleted file mode 100644 index 231ee9bd5..000000000 --- a/src/api/resources/accounting/types/ExpenseTrackingCategoriesItem.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 ExpenseTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/ExternalTargetFieldApi.ts b/src/api/resources/accounting/types/ExternalTargetFieldApi.ts deleted file mode 100644 index 7823d0137..000000000 --- a/src/api/resources/accounting/types/ExternalTargetFieldApi.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface ExternalTargetFieldApi { - name?: string; - description?: string; - isMapped?: string; -} diff --git a/src/api/resources/accounting/types/ExternalTargetFieldApiResponse.ts b/src/api/resources/accounting/types/ExternalTargetFieldApiResponse.ts deleted file mode 100644 index 0e219d1b8..000000000 --- a/src/api/resources/accounting/types/ExternalTargetFieldApiResponse.ts +++ /dev/null @@ -1,32 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface ExternalTargetFieldApiResponse { - account?: Merge.accounting.ExternalTargetFieldApi[]; - accountingAttachment?: Merge.accounting.ExternalTargetFieldApi[]; - balanceSheet?: Merge.accounting.ExternalTargetFieldApi[]; - cashFlowStatement?: Merge.accounting.ExternalTargetFieldApi[]; - companyInfo?: Merge.accounting.ExternalTargetFieldApi[]; - contact?: Merge.accounting.ExternalTargetFieldApi[]; - incomeStatement?: Merge.accounting.ExternalTargetFieldApi[]; - creditNote?: Merge.accounting.ExternalTargetFieldApi[]; - item?: Merge.accounting.ExternalTargetFieldApi[]; - purchaseOrder?: Merge.accounting.ExternalTargetFieldApi[]; - expenseReport?: Merge.accounting.ExternalTargetFieldApi[]; - trackingCategory?: Merge.accounting.ExternalTargetFieldApi[]; - journalEntry?: Merge.accounting.ExternalTargetFieldApi[]; - taxRate?: Merge.accounting.ExternalTargetFieldApi[]; - invoice?: Merge.accounting.ExternalTargetFieldApi[]; - payment?: Merge.accounting.ExternalTargetFieldApi[]; - expense?: Merge.accounting.ExternalTargetFieldApi[]; - vendorCredit?: Merge.accounting.ExternalTargetFieldApi[]; - transaction?: Merge.accounting.ExternalTargetFieldApi[]; - accountingPeriod?: Merge.accounting.ExternalTargetFieldApi[]; - generalLedgerTransaction?: Merge.accounting.ExternalTargetFieldApi[]; - bankFeedAccount?: Merge.accounting.ExternalTargetFieldApi[]; - employee?: Merge.accounting.ExternalTargetFieldApi[]; - paymentMethod?: Merge.accounting.ExternalTargetFieldApi[]; - project?: Merge.accounting.ExternalTargetFieldApi[]; - paymentTerm?: Merge.accounting.ExternalTargetFieldApi[]; -} diff --git a/src/api/resources/accounting/types/FeedStatusEnum.ts b/src/api/resources/accounting/types/FeedStatusEnum.ts deleted file mode 100644 index cf7981673..000000000 --- a/src/api/resources/accounting/types/FeedStatusEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `ACTIVE` - ACTIVE - * * `INACTIVE` - INACTIVE - */ -export const FeedStatusEnum = { - Active: "ACTIVE", - Inactive: "INACTIVE", -} as const; -export type FeedStatusEnum = (typeof FeedStatusEnum)[keyof typeof FeedStatusEnum]; diff --git a/src/api/resources/accounting/types/FieldFormatEnum.ts b/src/api/resources/accounting/types/FieldFormatEnum.ts deleted file mode 100644 index 47fd5bfe9..000000000 --- a/src/api/resources/accounting/types/FieldFormatEnum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `string` - string - * * `number` - number - * * `date` - date - * * `datetime` - datetime - * * `bool` - bool - * * `list` - list - */ -export const FieldFormatEnum = { - String: "string", - Number: "number", - Date: "date", - Datetime: "datetime", - Bool: "bool", - List: "list", -} as const; -export type FieldFormatEnum = (typeof FieldFormatEnum)[keyof typeof FieldFormatEnum]; diff --git a/src/api/resources/accounting/types/FieldMappingApiInstance.ts b/src/api/resources/accounting/types/FieldMappingApiInstance.ts deleted file mode 100644 index 7603ccaaa..000000000 --- a/src/api/resources/accounting/types/FieldMappingApiInstance.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface FieldMappingApiInstance { - id?: string; - isIntegrationWide?: boolean; - targetField?: Merge.accounting.FieldMappingApiInstanceTargetField; - remoteField?: Merge.accounting.FieldMappingApiInstanceRemoteField; -} diff --git a/src/api/resources/accounting/types/FieldMappingApiInstanceRemoteField.ts b/src/api/resources/accounting/types/FieldMappingApiInstanceRemoteField.ts deleted file mode 100644 index 61355ef40..000000000 --- a/src/api/resources/accounting/types/FieldMappingApiInstanceRemoteField.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface FieldMappingApiInstanceRemoteField { - remoteKeyName?: string; - schema?: Record; - remoteEndpointInfo: Merge.accounting.FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo; -} diff --git a/src/api/resources/accounting/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts b/src/api/resources/accounting/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts deleted file mode 100644 index 1f6e6cb3c..000000000 --- a/src/api/resources/accounting/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo { - method?: string; - urlPath?: string; - fieldTraversalPath?: string[]; -} diff --git a/src/api/resources/accounting/types/FieldMappingApiInstanceResponse.ts b/src/api/resources/accounting/types/FieldMappingApiInstanceResponse.ts deleted file mode 100644 index eabacbd8e..000000000 --- a/src/api/resources/accounting/types/FieldMappingApiInstanceResponse.ts +++ /dev/null @@ -1,32 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface FieldMappingApiInstanceResponse { - account?: Merge.accounting.FieldMappingApiInstance[]; - accountingAttachment?: Merge.accounting.FieldMappingApiInstance[]; - balanceSheet?: Merge.accounting.FieldMappingApiInstance[]; - cashFlowStatement?: Merge.accounting.FieldMappingApiInstance[]; - companyInfo?: Merge.accounting.FieldMappingApiInstance[]; - contact?: Merge.accounting.FieldMappingApiInstance[]; - incomeStatement?: Merge.accounting.FieldMappingApiInstance[]; - creditNote?: Merge.accounting.FieldMappingApiInstance[]; - item?: Merge.accounting.FieldMappingApiInstance[]; - purchaseOrder?: Merge.accounting.FieldMappingApiInstance[]; - expenseReport?: Merge.accounting.FieldMappingApiInstance[]; - trackingCategory?: Merge.accounting.FieldMappingApiInstance[]; - journalEntry?: Merge.accounting.FieldMappingApiInstance[]; - taxRate?: Merge.accounting.FieldMappingApiInstance[]; - invoice?: Merge.accounting.FieldMappingApiInstance[]; - payment?: Merge.accounting.FieldMappingApiInstance[]; - expense?: Merge.accounting.FieldMappingApiInstance[]; - vendorCredit?: Merge.accounting.FieldMappingApiInstance[]; - transaction?: Merge.accounting.FieldMappingApiInstance[]; - accountingPeriod?: Merge.accounting.FieldMappingApiInstance[]; - generalLedgerTransaction?: Merge.accounting.FieldMappingApiInstance[]; - bankFeedAccount?: Merge.accounting.FieldMappingApiInstance[]; - employee?: Merge.accounting.FieldMappingApiInstance[]; - paymentMethod?: Merge.accounting.FieldMappingApiInstance[]; - project?: Merge.accounting.FieldMappingApiInstance[]; - paymentTerm?: Merge.accounting.FieldMappingApiInstance[]; -} diff --git a/src/api/resources/accounting/types/FieldMappingApiInstanceTargetField.ts b/src/api/resources/accounting/types/FieldMappingApiInstanceTargetField.ts deleted file mode 100644 index da6fd1317..000000000 --- a/src/api/resources/accounting/types/FieldMappingApiInstanceTargetField.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface FieldMappingApiInstanceTargetField { - name: string; - description: string; - isOrganizationWide: boolean; -} diff --git a/src/api/resources/accounting/types/FieldMappingInstanceResponse.ts b/src/api/resources/accounting/types/FieldMappingInstanceResponse.ts deleted file mode 100644 index 5e22ad349..000000000 --- a/src/api/resources/accounting/types/FieldMappingInstanceResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface FieldMappingInstanceResponse { - model: Merge.accounting.FieldMappingApiInstance; - warnings: Merge.accounting.WarningValidationProblem[]; - errors: Merge.accounting.ErrorValidationProblem[]; - logs?: Merge.accounting.DebugModeLog[]; -} diff --git a/src/api/resources/accounting/types/FieldPermissionDeserializer.ts b/src/api/resources/accounting/types/FieldPermissionDeserializer.ts deleted file mode 100644 index 62ec4f2de..000000000 --- a/src/api/resources/accounting/types/FieldPermissionDeserializer.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface FieldPermissionDeserializer { - enabledFields?: unknown[]; - disabledFields?: unknown[]; -} diff --git a/src/api/resources/accounting/types/FieldPermissionDeserializerRequest.ts b/src/api/resources/accounting/types/FieldPermissionDeserializerRequest.ts deleted file mode 100644 index 768c90546..000000000 --- a/src/api/resources/accounting/types/FieldPermissionDeserializerRequest.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface FieldPermissionDeserializerRequest { - enabledFields?: unknown[]; - disabledFields?: unknown[]; -} diff --git a/src/api/resources/accounting/types/FieldTypeEnum.ts b/src/api/resources/accounting/types/FieldTypeEnum.ts deleted file mode 100644 index 40fb1b5c6..000000000 --- a/src/api/resources/accounting/types/FieldTypeEnum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `string` - string - * * `number` - number - * * `date` - date - * * `datetime` - datetime - * * `bool` - bool - * * `list` - list - */ -export const FieldTypeEnum = { - String: "string", - Number: "number", - Date: "date", - Datetime: "datetime", - Bool: "bool", - List: "list", -} as const; -export type FieldTypeEnum = (typeof FieldTypeEnum)[keyof typeof FieldTypeEnum]; diff --git a/src/api/resources/accounting/types/GeneralLedgerTransaction.ts b/src/api/resources/accounting/types/GeneralLedgerTransaction.ts deleted file mode 100644 index 6319cb1c6..000000000 --- a/src/api/resources/accounting/types/GeneralLedgerTransaction.ts +++ /dev/null @@ -1,56 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The GeneralLedgerTransaction Object - * ### Description - * A General Ledger Entry is a record of a financial transaction that is posted to the general ledger, the central repository of a company’s financial data. - * - * The `GeneralLedgerTransaction` object is a singular endpoint to pull all transactions posted to a company’s general ledger. The transaction that generated the `GeneralLedgerTransaction` can be found by referencing the `underlying_transaction_type` and `underlying_transaction_remote_id` fields. - * - * The lines of a `GeneralLedgerTransaction` object will always have equal amounts of debits and credits. - * - * ### Usage Example - * Fetch from the `GET GeneralLedgerTransaction` endpoint and view a general ledger transaction. - */ -export interface GeneralLedgerTransaction { - 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 third party remote ID of the underlying transaction. */ - underlyingTransactionRemoteId?: string; - /** - * The type of the underlying transaction. - * - * * `INVOICE` - INVOICE - * * `EXPENSE` - EXPENSE - * * `TRANSACTION` - TRANSACTION - * * `JOURNAL_ENTRY` - JOURNAL_ENTRY - * * `PAYMENT` - PAYMENT - * * `VENDOR_CREDIT` - VENDOR_CREDIT - * * `CREDIT_NOTE` - CREDIT_NOTE - */ - underlyingTransactionType?: Merge.accounting.GeneralLedgerTransactionUnderlyingTransactionType; - /** The accounting period that the GeneralLedgerTransaction was generated in. */ - accountingPeriod?: Merge.accounting.GeneralLedgerTransactionAccountingPeriod; - /** The company the GeneralLedgerTransaction belongs to. */ - company?: Merge.accounting.GeneralLedgerTransactionCompany; - /** When the third party's GeneralLedgerTransaction entry was updated. */ - remoteUpdatedAt?: Date; - /** When the third party's GeneralLedgerTransaction entry was created. */ - remoteCreatedAt?: Date; - trackingCategories?: (Merge.accounting.GeneralLedgerTransactionTrackingCategoriesItem | undefined)[]; - /** The date that the transaction was posted to the general ledger. */ - postingDate?: Date; - /** A list of “General Ledger Transaction Applied to Lines” objects. */ - generalLedgerTransactionLines?: Merge.accounting.GeneralLedgerTransactionGeneralLedgerTransactionLinesItem[]; - /** 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[]; -} diff --git a/src/api/resources/accounting/types/GeneralLedgerTransactionAccountingPeriod.ts b/src/api/resources/accounting/types/GeneralLedgerTransactionAccountingPeriod.ts deleted file mode 100644 index c33d14f5d..000000000 --- a/src/api/resources/accounting/types/GeneralLedgerTransactionAccountingPeriod.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 GeneralLedgerTransaction was generated in. - */ -export type GeneralLedgerTransactionAccountingPeriod = string | Merge.accounting.AccountingPeriod; diff --git a/src/api/resources/accounting/types/GeneralLedgerTransactionCompany.ts b/src/api/resources/accounting/types/GeneralLedgerTransactionCompany.ts deleted file mode 100644 index a2d8be965..000000000 --- a/src/api/resources/accounting/types/GeneralLedgerTransactionCompany.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 company the GeneralLedgerTransaction belongs to. - */ -export type GeneralLedgerTransactionCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/GeneralLedgerTransactionGeneralLedgerTransactionLinesItem.ts b/src/api/resources/accounting/types/GeneralLedgerTransactionGeneralLedgerTransactionLinesItem.ts deleted file mode 100644 index 89ba4e9fc..000000000 --- a/src/api/resources/accounting/types/GeneralLedgerTransactionGeneralLedgerTransactionLinesItem.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export type GeneralLedgerTransactionGeneralLedgerTransactionLinesItem = - | string - | Merge.accounting.GeneralLedgerTransactionLine; diff --git a/src/api/resources/accounting/types/GeneralLedgerTransactionLine.ts b/src/api/resources/accounting/types/GeneralLedgerTransactionLine.ts deleted file mode 100644 index 7be17c8c0..000000000 --- a/src/api/resources/accounting/types/GeneralLedgerTransactionLine.ts +++ /dev/null @@ -1,662 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The GeneralLedgerTransactionLineSerializer Object - * ### Description - * The `GeneralLedgerTransactionLineSerializer` object represents general ledger transaction line item. - * - * ### Usage Example Fetch from the `GET GeneralLedgerTransactionLineSerializer` endpoint and view an - * `GeneralLedgerTransaction` line item. - */ -export interface GeneralLedgerTransactionLine { - 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; - account?: Merge.accounting.GeneralLedgerTransactionLineAccount; - /** The company the GeneralLedgerTransaction belongs to. */ - company?: Merge.accounting.GeneralLedgerTransactionLineCompany; - employee?: Merge.accounting.GeneralLedgerTransactionLineEmployee; - contact?: Merge.accounting.GeneralLedgerTransactionLineContact; - project?: Merge.accounting.GeneralLedgerTransactionLineProject; - /** - * The base currency of the transaction - * - * * `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) - */ - baseCurrency?: Merge.accounting.GeneralLedgerTransactionLineBaseCurrency; - /** - * The transaction currency that the transaction is made in. - * - * * `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) - */ - transactionCurrency?: Merge.accounting.GeneralLedgerTransactionLineTransactionCurrency; - /** The exchange rate between the base currency and the transaction currency. */ - exchangeRate?: string; - /** A description of the line item. */ - description?: string; - trackingCategories?: Merge.accounting.GeneralLedgerTransactionLineTrackingCategoriesItem[]; - debitAmount: string; - creditAmount: string; - item?: Merge.accounting.GeneralLedgerTransactionLineItem; - foreignDebitAmount: string; - foreignCreditAmount: 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/). */ - remoteWasDeleted?: boolean; - fieldMappings?: Record; -} diff --git a/src/api/resources/accounting/types/GeneralLedgerTransactionLineAccount.ts b/src/api/resources/accounting/types/GeneralLedgerTransactionLineAccount.ts deleted file mode 100644 index 795a009fc..000000000 --- a/src/api/resources/accounting/types/GeneralLedgerTransactionLineAccount.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 GeneralLedgerTransactionLineAccount = string | Merge.accounting.Account; diff --git a/src/api/resources/accounting/types/GeneralLedgerTransactionLineBaseCurrency.ts b/src/api/resources/accounting/types/GeneralLedgerTransactionLineBaseCurrency.ts deleted file mode 100644 index 07db5ea59..000000000 --- a/src/api/resources/accounting/types/GeneralLedgerTransactionLineBaseCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The base currency of the transaction - * - * * `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 GeneralLedgerTransactionLineBaseCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/GeneralLedgerTransactionLineCompany.ts b/src/api/resources/accounting/types/GeneralLedgerTransactionLineCompany.ts deleted file mode 100644 index 7ccac2f18..000000000 --- a/src/api/resources/accounting/types/GeneralLedgerTransactionLineCompany.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 company the GeneralLedgerTransaction belongs to. - */ -export type GeneralLedgerTransactionLineCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/GeneralLedgerTransactionLineContact.ts b/src/api/resources/accounting/types/GeneralLedgerTransactionLineContact.ts deleted file mode 100644 index d610ace12..000000000 --- a/src/api/resources/accounting/types/GeneralLedgerTransactionLineContact.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 GeneralLedgerTransactionLineContact = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/GeneralLedgerTransactionLineEmployee.ts b/src/api/resources/accounting/types/GeneralLedgerTransactionLineEmployee.ts deleted file mode 100644 index dcbf373ab..000000000 --- a/src/api/resources/accounting/types/GeneralLedgerTransactionLineEmployee.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 GeneralLedgerTransactionLineEmployee = string | Merge.accounting.Employee; diff --git a/src/api/resources/accounting/types/GeneralLedgerTransactionLineItem.ts b/src/api/resources/accounting/types/GeneralLedgerTransactionLineItem.ts deleted file mode 100644 index a2b13972a..000000000 --- a/src/api/resources/accounting/types/GeneralLedgerTransactionLineItem.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 GeneralLedgerTransactionLineItem = string | Merge.accounting.Item; diff --git a/src/api/resources/accounting/types/GeneralLedgerTransactionLineProject.ts b/src/api/resources/accounting/types/GeneralLedgerTransactionLineProject.ts deleted file mode 100644 index 7bfaa7219..000000000 --- a/src/api/resources/accounting/types/GeneralLedgerTransactionLineProject.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 GeneralLedgerTransactionLineProject = string | Merge.accounting.Project; diff --git a/src/api/resources/accounting/types/GeneralLedgerTransactionLineTrackingCategoriesItem.ts b/src/api/resources/accounting/types/GeneralLedgerTransactionLineTrackingCategoriesItem.ts deleted file mode 100644 index 3653c0cc9..000000000 --- a/src/api/resources/accounting/types/GeneralLedgerTransactionLineTrackingCategoriesItem.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 GeneralLedgerTransactionLineTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/GeneralLedgerTransactionLineTransactionCurrency.ts b/src/api/resources/accounting/types/GeneralLedgerTransactionLineTransactionCurrency.ts deleted file mode 100644 index 19a693810..000000000 --- a/src/api/resources/accounting/types/GeneralLedgerTransactionLineTransactionCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The transaction currency that the transaction is made in. - * - * * `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 GeneralLedgerTransactionLineTransactionCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/GeneralLedgerTransactionTrackingCategoriesItem.ts b/src/api/resources/accounting/types/GeneralLedgerTransactionTrackingCategoriesItem.ts deleted file mode 100644 index eddcb8c86..000000000 --- a/src/api/resources/accounting/types/GeneralLedgerTransactionTrackingCategoriesItem.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 GeneralLedgerTransactionTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/GeneralLedgerTransactionUnderlyingTransactionType.ts b/src/api/resources/accounting/types/GeneralLedgerTransactionUnderlyingTransactionType.ts deleted file mode 100644 index c81f0357d..000000000 --- a/src/api/resources/accounting/types/GeneralLedgerTransactionUnderlyingTransactionType.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The type of the underlying transaction. - * - * * `INVOICE` - INVOICE - * * `EXPENSE` - EXPENSE - * * `TRANSACTION` - TRANSACTION - * * `JOURNAL_ENTRY` - JOURNAL_ENTRY - * * `PAYMENT` - PAYMENT - * * `VENDOR_CREDIT` - VENDOR_CREDIT - * * `CREDIT_NOTE` - CREDIT_NOTE - */ -export type GeneralLedgerTransactionUnderlyingTransactionType = Merge.accounting.UnderlyingTransactionTypeEnum | string; diff --git a/src/api/resources/accounting/types/IncomeStatement.ts b/src/api/resources/accounting/types/IncomeStatement.ts deleted file mode 100644 index 25ed3ea31..000000000 --- a/src/api/resources/accounting/types/IncomeStatement.ts +++ /dev/null @@ -1,354 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The IncomeStatement Object - * ### Description - * The `IncomeStatement` object is used to represent a company’s income, the cost of sales, operating expenses, and other non-operating expenses. The object also includes other important values like gross profit, gross operating profit, and net income. This represents a period of time (month, quarter, or year). - * - * ### Usage Example - * Fetch from the `GET IncomeStatement` endpoint and view a company's income statement for a given period. - */ -export interface IncomeStatement { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The income statement's name. */ - name?: string; - /** - * The income statement'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.IncomeStatementCurrency; - /** The company the income statement belongs to. */ - company?: Merge.accounting.IncomeStatementCompany; - /** The income statement's start period. */ - startPeriod?: Date; - /** The income statement's end period. */ - endPeriod?: Date; - income?: Merge.accounting.ReportItem[]; - costOfSales?: Merge.accounting.ReportItem[]; - /** The revenue minus the cost of sale. */ - grossProfit?: number; - operatingExpenses?: Merge.accounting.ReportItem[]; - /** The revenue minus the operating expenses. */ - netOperatingIncome?: number; - nonOperatingExpenses?: Merge.accounting.ReportItem[]; - /** The gross profit minus the total expenses. */ - netIncome?: number; - /** 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[]; -} diff --git a/src/api/resources/accounting/types/IncomeStatementCompany.ts b/src/api/resources/accounting/types/IncomeStatementCompany.ts deleted file mode 100644 index 51af6e917..000000000 --- a/src/api/resources/accounting/types/IncomeStatementCompany.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 company the income statement belongs to. - */ -export type IncomeStatementCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/IncomeStatementCurrency.ts b/src/api/resources/accounting/types/IncomeStatementCurrency.ts deleted file mode 100644 index 2bcc3a5b4..000000000 --- a/src/api/resources/accounting/types/IncomeStatementCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The income statement'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 IncomeStatementCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/IndividualCommonModelScopeDeserializer.ts b/src/api/resources/accounting/types/IndividualCommonModelScopeDeserializer.ts deleted file mode 100644 index e4e402481..000000000 --- a/src/api/resources/accounting/types/IndividualCommonModelScopeDeserializer.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface IndividualCommonModelScopeDeserializer { - modelName: string; - modelPermissions?: Record; - fieldPermissions?: Merge.accounting.FieldPermissionDeserializer; -} diff --git a/src/api/resources/accounting/types/IndividualCommonModelScopeDeserializerRequest.ts b/src/api/resources/accounting/types/IndividualCommonModelScopeDeserializerRequest.ts deleted file mode 100644 index a3999b4d4..000000000 --- a/src/api/resources/accounting/types/IndividualCommonModelScopeDeserializerRequest.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface IndividualCommonModelScopeDeserializerRequest { - modelName: string; - modelPermissions?: Record; - fieldPermissions?: Merge.accounting.FieldPermissionDeserializerRequest; -} diff --git a/src/api/resources/accounting/types/Invoice.ts b/src/api/resources/accounting/types/Invoice.ts deleted file mode 100644 index 58181f2e2..000000000 --- a/src/api/resources/accounting/types/Invoice.ts +++ /dev/null @@ -1,405 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Invoice Object - * ### Description - * The `Invoice` object represents an itemized record of goods and/or services sold to a customer or bought from a vendor. - * - * - * Represents a Bill when the `Invoice` type is `ACCOUNTS_PAYABLE`. References an Invoice when the `Invoice` type is `ACCOUNTS_RECEIVABLE`. - * - * ### Usage Example - * Fetch from the `LIST Invoices` endpoint and view a company's invoices. - */ -export interface Invoice { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** - * Whether the invoice is an accounts receivable or accounts payable. If `type` is `ACCOUNTS_PAYABLE`, the invoice is a bill. If `type` is `ACCOUNTS_RECEIVABLE`, it is an invoice. - * - * * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - * * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - */ - type?: Merge.accounting.InvoiceType; - /** The invoice's contact. */ - contact?: Merge.accounting.InvoiceContact; - /** The invoice's number. */ - number?: string; - /** The invoice's issue date. */ - issueDate?: Date; - /** The invoice's due date. */ - dueDate?: Date; - /** The invoice's paid date. */ - paidOnDate?: Date; - /** The invoice's private note. */ - memo?: string; - /** The company the invoice belongs to. */ - company?: Merge.accounting.InvoiceCompany; - /** The employee this overall transaction relates to. */ - employee?: Merge.accounting.InvoiceEmployee; - /** - * The invoice'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.InvoiceCurrency; - /** The invoice's exchange rate. */ - exchangeRate?: string; - /** The payment term that applies to this transaction. */ - paymentTerm?: Merge.accounting.InvoicePaymentTerm; - /** The total discounts applied to the total cost. */ - totalDiscount?: number; - /** The total amount being paid before taxes. */ - subTotal?: number; - /** - * The status of the invoice. - * - * * `PAID` - PAID - * * `DRAFT` - DRAFT - * * `SUBMITTED` - SUBMITTED - * * `PARTIALLY_PAID` - PARTIALLY_PAID - * * `OPEN` - OPEN - * * `VOID` - VOID - */ - status?: Merge.accounting.InvoiceStatus; - /** The total amount being paid in taxes. */ - totalTaxAmount?: number; - /** The invoice's total amount. */ - totalAmount?: number; - /** The invoice's remaining balance. */ - balance?: number; - /** When the third party's invoice entry was updated. */ - remoteUpdatedAt?: Date; - trackingCategories?: (Merge.accounting.InvoiceTrackingCategoriesItem | undefined)[]; - /** The accounting period that the Invoice was generated in. */ - accountingPeriod?: Merge.accounting.InvoiceAccountingPeriod; - purchaseOrders?: (Merge.accounting.InvoicePurchaseOrdersItem | 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[]; - /** `CreditNoteApplyLines` applied to the Invoice. */ - appliedCreditNotes?: Merge.accounting.InvoiceAppliedCreditNotesItem[]; - /** `VendorCreditApplyLines` applied to the Invoice. */ - appliedVendorCredits?: Merge.accounting.InvoiceAppliedVendorCreditsItem[]; - /** If the transaction is inclusive or exclusive of tax. `True` if inclusive, `False` if exclusive. */ - inclusiveOfTax?: boolean; - /** 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/InvoiceAccountingPeriod.ts b/src/api/resources/accounting/types/InvoiceAccountingPeriod.ts deleted file mode 100644 index 7156ffd86..000000000 --- a/src/api/resources/accounting/types/InvoiceAccountingPeriod.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 Invoice was generated in. - */ -export type InvoiceAccountingPeriod = string | Merge.accounting.AccountingPeriod; diff --git a/src/api/resources/accounting/types/InvoiceAppliedCreditNotesItem.ts b/src/api/resources/accounting/types/InvoiceAppliedCreditNotesItem.ts deleted file mode 100644 index 7424de066..000000000 --- a/src/api/resources/accounting/types/InvoiceAppliedCreditNotesItem.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 InvoiceAppliedCreditNotesItem = string | Merge.accounting.CreditNoteApplyLineForInvoice; diff --git a/src/api/resources/accounting/types/InvoiceAppliedPaymentsItem.ts b/src/api/resources/accounting/types/InvoiceAppliedPaymentsItem.ts deleted file mode 100644 index 4d1b135a8..000000000 --- a/src/api/resources/accounting/types/InvoiceAppliedPaymentsItem.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 InvoiceAppliedPaymentsItem = string | Merge.accounting.PaymentLineItem; diff --git a/src/api/resources/accounting/types/InvoiceAppliedVendorCreditsItem.ts b/src/api/resources/accounting/types/InvoiceAppliedVendorCreditsItem.ts deleted file mode 100644 index 0e11bde3f..000000000 --- a/src/api/resources/accounting/types/InvoiceAppliedVendorCreditsItem.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 InvoiceAppliedVendorCreditsItem = string | Merge.accounting.VendorCreditApplyLineForInvoice; diff --git a/src/api/resources/accounting/types/InvoiceCompany.ts b/src/api/resources/accounting/types/InvoiceCompany.ts deleted file mode 100644 index 234527d54..000000000 --- a/src/api/resources/accounting/types/InvoiceCompany.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 company the invoice belongs to. - */ -export type InvoiceCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/InvoiceContact.ts b/src/api/resources/accounting/types/InvoiceContact.ts deleted file mode 100644 index fa37e5c9d..000000000 --- a/src/api/resources/accounting/types/InvoiceContact.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 invoice's contact. - */ -export type InvoiceContact = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/InvoiceCurrency.ts b/src/api/resources/accounting/types/InvoiceCurrency.ts deleted file mode 100644 index 63856dbe1..000000000 --- a/src/api/resources/accounting/types/InvoiceCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The invoice'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 InvoiceCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/InvoiceEmployee.ts b/src/api/resources/accounting/types/InvoiceEmployee.ts deleted file mode 100644 index 66dbcc4ed..000000000 --- a/src/api/resources/accounting/types/InvoiceEmployee.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 InvoiceEmployee = string | Merge.accounting.Employee; diff --git a/src/api/resources/accounting/types/InvoiceLineItem.ts b/src/api/resources/accounting/types/InvoiceLineItem.ts deleted file mode 100644 index 2d7a25272..000000000 --- a/src/api/resources/accounting/types/InvoiceLineItem.ts +++ /dev/null @@ -1,360 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The InvoiceLineItem Object - * ### Description - * The `InvoiceLineItem` object represents an itemized record of goods and/or services sold to a customer. - * - * ### Usage Example - * Fetch from the `GET Invoice` endpoint and view the invoice's line items. - */ -export interface InvoiceLineItem { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The line item's description. */ - description?: string; - /** The line item's unit price. */ - unitPrice?: number; - /** The line item's quantity. */ - quantity?: number; - /** The line item's total amount. */ - totalAmount?: number; - /** The employee this overall transaction relates to. */ - employee?: Merge.accounting.InvoiceLineItemEmployee; - project?: Merge.accounting.InvoiceLineItemProject; - /** The invoice's contact. */ - contact?: Merge.accounting.InvoiceLineItemContact; - /** - * The line item'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.InvoiceLineItemCurrency; - /** The line item's exchange rate. */ - exchangeRate?: string; - item?: Merge.accounting.InvoiceLineItemItem; - account?: Merge.accounting.InvoiceLineItemAccount; - /** The tax rate that applies to this line item. */ - taxRate?: string; - trackingCategory?: Merge.accounting.InvoiceLineItemTrackingCategory; - /** The invoice line item's associated tracking categories. */ - trackingCategories?: (Merge.accounting.InvoiceLineItemTrackingCategoriesItem | undefined)[]; - /** The company the invoice 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/). */ - remoteWasDeleted?: boolean; - fieldMappings?: Record; - remoteFields?: Merge.accounting.RemoteField[]; -} diff --git a/src/api/resources/accounting/types/InvoiceLineItemAccount.ts b/src/api/resources/accounting/types/InvoiceLineItemAccount.ts deleted file mode 100644 index 9e514b581..000000000 --- a/src/api/resources/accounting/types/InvoiceLineItemAccount.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 InvoiceLineItemAccount = string | Merge.accounting.Account; diff --git a/src/api/resources/accounting/types/InvoiceLineItemContact.ts b/src/api/resources/accounting/types/InvoiceLineItemContact.ts deleted file mode 100644 index a94609ced..000000000 --- a/src/api/resources/accounting/types/InvoiceLineItemContact.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 invoice's contact. - */ -export type InvoiceLineItemContact = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/InvoiceLineItemCurrency.ts b/src/api/resources/accounting/types/InvoiceLineItemCurrency.ts deleted file mode 100644 index 2441a98c8..000000000 --- a/src/api/resources/accounting/types/InvoiceLineItemCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The line item'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 InvoiceLineItemCurrency = Merge.accounting.TransactionCurrencyEnum | string; 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/InvoiceLineItemItem.ts b/src/api/resources/accounting/types/InvoiceLineItemItem.ts deleted file mode 100644 index 7e2bf69fe..000000000 --- a/src/api/resources/accounting/types/InvoiceLineItemItem.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 InvoiceLineItemItem = string | Merge.accounting.Item; diff --git a/src/api/resources/accounting/types/InvoiceLineItemProject.ts b/src/api/resources/accounting/types/InvoiceLineItemProject.ts deleted file mode 100644 index ef89929ac..000000000 --- a/src/api/resources/accounting/types/InvoiceLineItemProject.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 InvoiceLineItemProject = string | Merge.accounting.Project; diff --git a/src/api/resources/accounting/types/InvoiceLineItemRequest.ts b/src/api/resources/accounting/types/InvoiceLineItemRequest.ts deleted file mode 100644 index bd1131ac2..000000000 --- a/src/api/resources/accounting/types/InvoiceLineItemRequest.ts +++ /dev/null @@ -1,354 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The InvoiceLineItem Object - * ### Description - * The `InvoiceLineItem` object represents an itemized record of goods and/or services sold to a customer. - * - * ### Usage Example - * Fetch from the `GET Invoice` endpoint and view the invoice's line items. - */ -export interface InvoiceLineItemRequest { - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The line item's description. */ - description?: string; - /** The line item's unit price. */ - unitPrice?: number; - /** The line item's quantity. */ - quantity?: number; - /** The line item's total amount. */ - totalAmount?: number; - /** The employee this overall transaction relates to. */ - employee?: Merge.accounting.InvoiceLineItemRequestEmployee; - project?: Merge.accounting.InvoiceLineItemRequestProject; - /** The invoice's contact. */ - contact?: Merge.accounting.InvoiceLineItemRequestContact; - /** - * The line item'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.InvoiceLineItemRequestCurrency; - /** The line item's exchange rate. */ - exchangeRate?: string; - item?: Merge.accounting.InvoiceLineItemRequestItem; - account?: Merge.accounting.InvoiceLineItemRequestAccount; - /** The tax rate that applies to this line item. */ - taxRate?: string; - trackingCategory?: Merge.accounting.InvoiceLineItemRequestTrackingCategory; - /** The invoice line item's associated tracking categories. */ - trackingCategories?: (Merge.accounting.InvoiceLineItemRequestTrackingCategoriesItem | undefined)[]; - /** The company the invoice belongs to. */ - company?: string; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.accounting.RemoteFieldRequest[]; -} diff --git a/src/api/resources/accounting/types/InvoiceLineItemRequestAccount.ts b/src/api/resources/accounting/types/InvoiceLineItemRequestAccount.ts deleted file mode 100644 index b751b9c8d..000000000 --- a/src/api/resources/accounting/types/InvoiceLineItemRequestAccount.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 InvoiceLineItemRequestAccount = string | Merge.accounting.Account; diff --git a/src/api/resources/accounting/types/InvoiceLineItemRequestContact.ts b/src/api/resources/accounting/types/InvoiceLineItemRequestContact.ts deleted file mode 100644 index 2588517a4..000000000 --- a/src/api/resources/accounting/types/InvoiceLineItemRequestContact.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 invoice's contact. - */ -export type InvoiceLineItemRequestContact = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/InvoiceLineItemRequestCurrency.ts b/src/api/resources/accounting/types/InvoiceLineItemRequestCurrency.ts deleted file mode 100644 index c6fa5879f..000000000 --- a/src/api/resources/accounting/types/InvoiceLineItemRequestCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The line item'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 InvoiceLineItemRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; 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/InvoiceLineItemRequestItem.ts b/src/api/resources/accounting/types/InvoiceLineItemRequestItem.ts deleted file mode 100644 index 8f774e46a..000000000 --- a/src/api/resources/accounting/types/InvoiceLineItemRequestItem.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 InvoiceLineItemRequestItem = string | Merge.accounting.Item; diff --git a/src/api/resources/accounting/types/InvoiceLineItemRequestProject.ts b/src/api/resources/accounting/types/InvoiceLineItemRequestProject.ts deleted file mode 100644 index 511c9ddf8..000000000 --- a/src/api/resources/accounting/types/InvoiceLineItemRequestProject.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 InvoiceLineItemRequestProject = string | Merge.accounting.Project; diff --git a/src/api/resources/accounting/types/InvoiceLineItemRequestTrackingCategoriesItem.ts b/src/api/resources/accounting/types/InvoiceLineItemRequestTrackingCategoriesItem.ts deleted file mode 100644 index ab39e0283..000000000 --- a/src/api/resources/accounting/types/InvoiceLineItemRequestTrackingCategoriesItem.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 InvoiceLineItemRequestTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/InvoiceLineItemRequestTrackingCategory.ts b/src/api/resources/accounting/types/InvoiceLineItemRequestTrackingCategory.ts deleted file mode 100644 index 73c6e84b6..000000000 --- a/src/api/resources/accounting/types/InvoiceLineItemRequestTrackingCategory.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 InvoiceLineItemRequestTrackingCategory = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/InvoiceLineItemTrackingCategoriesItem.ts b/src/api/resources/accounting/types/InvoiceLineItemTrackingCategoriesItem.ts deleted file mode 100644 index 726e80261..000000000 --- a/src/api/resources/accounting/types/InvoiceLineItemTrackingCategoriesItem.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 InvoiceLineItemTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/InvoiceLineItemTrackingCategory.ts b/src/api/resources/accounting/types/InvoiceLineItemTrackingCategory.ts deleted file mode 100644 index fb1c93e01..000000000 --- a/src/api/resources/accounting/types/InvoiceLineItemTrackingCategory.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 InvoiceLineItemTrackingCategory = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/InvoicePaymentTerm.ts b/src/api/resources/accounting/types/InvoicePaymentTerm.ts deleted file mode 100644 index e1dc70c62..000000000 --- a/src/api/resources/accounting/types/InvoicePaymentTerm.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 payment term that applies to this transaction. - */ -export type InvoicePaymentTerm = string | Merge.accounting.PaymentTerm; diff --git a/src/api/resources/accounting/types/InvoicePaymentsItem.ts b/src/api/resources/accounting/types/InvoicePaymentsItem.ts deleted file mode 100644 index f37c054fe..000000000 --- a/src/api/resources/accounting/types/InvoicePaymentsItem.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 InvoicePaymentsItem = string | Merge.accounting.Payment; diff --git a/src/api/resources/accounting/types/InvoicePurchaseOrdersItem.ts b/src/api/resources/accounting/types/InvoicePurchaseOrdersItem.ts deleted file mode 100644 index 2a34e6202..000000000 --- a/src/api/resources/accounting/types/InvoicePurchaseOrdersItem.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 InvoicePurchaseOrdersItem = string | Merge.accounting.PurchaseOrder; diff --git a/src/api/resources/accounting/types/InvoiceRequest.ts b/src/api/resources/accounting/types/InvoiceRequest.ts deleted file mode 100644 index bd0e3111c..000000000 --- a/src/api/resources/accounting/types/InvoiceRequest.ts +++ /dev/null @@ -1,386 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Invoice Object - * ### Description - * The `Invoice` object represents an itemized record of goods and/or services sold to a customer or bought from a vendor. - * - * - * Represents a Bill when the `Invoice` type is `ACCOUNTS_PAYABLE`. References an Invoice when the `Invoice` type is `ACCOUNTS_RECEIVABLE`. - * - * ### Usage Example - * Fetch from the `LIST Invoices` endpoint and view a company's invoices. - */ -export interface InvoiceRequest { - /** - * Whether the invoice is an accounts receivable or accounts payable. If `type` is `ACCOUNTS_PAYABLE`, the invoice is a bill. If `type` is `ACCOUNTS_RECEIVABLE`, it is an invoice. - * - * * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - * * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - */ - type?: Merge.accounting.InvoiceRequestType; - /** The invoice's contact. */ - contact?: Merge.accounting.InvoiceRequestContact; - /** The invoice's number. */ - number?: string; - /** The invoice's issue date. */ - issueDate?: Date; - /** The invoice's due date. */ - dueDate?: Date; - /** The invoice's paid date. */ - paidOnDate?: Date; - /** The employee this overall transaction relates to. */ - employee?: Merge.accounting.InvoiceRequestEmployee; - /** The invoice's private note. */ - memo?: string; - /** - * The status of the invoice. - * - * * `PAID` - PAID - * * `DRAFT` - DRAFT - * * `SUBMITTED` - SUBMITTED - * * `PARTIALLY_PAID` - PARTIALLY_PAID - * * `OPEN` - OPEN - * * `VOID` - VOID - */ - status?: Merge.accounting.InvoiceRequestStatus; - /** The company the invoice belongs to. */ - company?: Merge.accounting.InvoiceRequestCompany; - /** - * The invoice'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.InvoiceRequestCurrency; - /** The invoice's exchange rate. */ - exchangeRate?: string; - /** The total discounts applied to the total cost. */ - totalDiscount?: number; - /** The total amount being paid before taxes. */ - subTotal?: number; - /** The payment term that applies to this transaction. */ - paymentTerm?: Merge.accounting.InvoiceRequestPaymentTerm; - /** The total amount being paid in taxes. */ - totalTaxAmount?: number; - /** If the transaction is inclusive or exclusive of tax. `True` if inclusive, `False` if exclusive. */ - inclusiveOfTax?: boolean; - /** The invoice's total amount. */ - totalAmount?: number; - /** The invoice's remaining balance. */ - balance?: number; - /** Array of `Payment` object IDs. */ - payments?: (Merge.accounting.InvoiceRequestPaymentsItem | undefined)[]; - trackingCategories?: (Merge.accounting.InvoiceRequestTrackingCategoriesItem | undefined)[]; - lineItems?: Merge.accounting.InvoiceLineItemRequest[]; - purchaseOrders?: (Merge.accounting.InvoiceRequestPurchaseOrdersItem | undefined)[]; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.accounting.RemoteFieldRequest[]; -} diff --git a/src/api/resources/accounting/types/InvoiceRequestCompany.ts b/src/api/resources/accounting/types/InvoiceRequestCompany.ts deleted file mode 100644 index 8bbf6d54d..000000000 --- a/src/api/resources/accounting/types/InvoiceRequestCompany.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 company the invoice belongs to. - */ -export type InvoiceRequestCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/InvoiceRequestContact.ts b/src/api/resources/accounting/types/InvoiceRequestContact.ts deleted file mode 100644 index 76f17e2d4..000000000 --- a/src/api/resources/accounting/types/InvoiceRequestContact.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 invoice's contact. - */ -export type InvoiceRequestContact = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/InvoiceRequestCurrency.ts b/src/api/resources/accounting/types/InvoiceRequestCurrency.ts deleted file mode 100644 index 9b7c4815d..000000000 --- a/src/api/resources/accounting/types/InvoiceRequestCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The invoice'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 InvoiceRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/InvoiceRequestEmployee.ts b/src/api/resources/accounting/types/InvoiceRequestEmployee.ts deleted file mode 100644 index 9ffe67e66..000000000 --- a/src/api/resources/accounting/types/InvoiceRequestEmployee.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 InvoiceRequestEmployee = string | Merge.accounting.Employee; diff --git a/src/api/resources/accounting/types/InvoiceRequestPaymentTerm.ts b/src/api/resources/accounting/types/InvoiceRequestPaymentTerm.ts deleted file mode 100644 index b4611affa..000000000 --- a/src/api/resources/accounting/types/InvoiceRequestPaymentTerm.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 payment term that applies to this transaction. - */ -export type InvoiceRequestPaymentTerm = string | Merge.accounting.PaymentTerm; diff --git a/src/api/resources/accounting/types/InvoiceRequestPaymentsItem.ts b/src/api/resources/accounting/types/InvoiceRequestPaymentsItem.ts deleted file mode 100644 index bf019d862..000000000 --- a/src/api/resources/accounting/types/InvoiceRequestPaymentsItem.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 InvoiceRequestPaymentsItem = string | Merge.accounting.Payment; diff --git a/src/api/resources/accounting/types/InvoiceRequestPurchaseOrdersItem.ts b/src/api/resources/accounting/types/InvoiceRequestPurchaseOrdersItem.ts deleted file mode 100644 index f1c2dd198..000000000 --- a/src/api/resources/accounting/types/InvoiceRequestPurchaseOrdersItem.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 InvoiceRequestPurchaseOrdersItem = string | Merge.accounting.PurchaseOrder; diff --git a/src/api/resources/accounting/types/InvoiceRequestStatus.ts b/src/api/resources/accounting/types/InvoiceRequestStatus.ts deleted file mode 100644 index e94128399..000000000 --- a/src/api/resources/accounting/types/InvoiceRequestStatus.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The status of the invoice. - * - * * `PAID` - PAID - * * `DRAFT` - DRAFT - * * `SUBMITTED` - SUBMITTED - * * `PARTIALLY_PAID` - PARTIALLY_PAID - * * `OPEN` - OPEN - * * `VOID` - VOID - */ -export type InvoiceRequestStatus = Merge.accounting.InvoiceStatusEnum | string; diff --git a/src/api/resources/accounting/types/InvoiceRequestTrackingCategoriesItem.ts b/src/api/resources/accounting/types/InvoiceRequestTrackingCategoriesItem.ts deleted file mode 100644 index c260e6616..000000000 --- a/src/api/resources/accounting/types/InvoiceRequestTrackingCategoriesItem.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 InvoiceRequestTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/InvoiceRequestType.ts b/src/api/resources/accounting/types/InvoiceRequestType.ts deleted file mode 100644 index d8958be0e..000000000 --- a/src/api/resources/accounting/types/InvoiceRequestType.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * Whether the invoice is an accounts receivable or accounts payable. If `type` is `ACCOUNTS_PAYABLE`, the invoice is a bill. If `type` is `ACCOUNTS_RECEIVABLE`, it is an invoice. - * - * * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - * * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - */ -export type InvoiceRequestType = Merge.accounting.InvoiceTypeEnum | string; diff --git a/src/api/resources/accounting/types/InvoiceResponse.ts b/src/api/resources/accounting/types/InvoiceResponse.ts deleted file mode 100644 index a23350f20..000000000 --- a/src/api/resources/accounting/types/InvoiceResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface InvoiceResponse { - model: Merge.accounting.Invoice; - warnings: Merge.accounting.WarningValidationProblem[]; - errors: Merge.accounting.ErrorValidationProblem[]; - logs?: Merge.accounting.DebugModeLog[]; -} diff --git a/src/api/resources/accounting/types/InvoiceStatus.ts b/src/api/resources/accounting/types/InvoiceStatus.ts deleted file mode 100644 index 49de6d830..000000000 --- a/src/api/resources/accounting/types/InvoiceStatus.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The status of the invoice. - * - * * `PAID` - PAID - * * `DRAFT` - DRAFT - * * `SUBMITTED` - SUBMITTED - * * `PARTIALLY_PAID` - PARTIALLY_PAID - * * `OPEN` - OPEN - * * `VOID` - VOID - */ -export type InvoiceStatus = Merge.accounting.InvoiceStatusEnum | string; diff --git a/src/api/resources/accounting/types/InvoiceStatusEnum.ts b/src/api/resources/accounting/types/InvoiceStatusEnum.ts deleted file mode 100644 index cf298afd3..000000000 --- a/src/api/resources/accounting/types/InvoiceStatusEnum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `PAID` - PAID - * * `DRAFT` - DRAFT - * * `SUBMITTED` - SUBMITTED - * * `PARTIALLY_PAID` - PARTIALLY_PAID - * * `OPEN` - OPEN - * * `VOID` - VOID - */ -export const InvoiceStatusEnum = { - Paid: "PAID", - Draft: "DRAFT", - Submitted: "SUBMITTED", - PartiallyPaid: "PARTIALLY_PAID", - Open: "OPEN", - Void: "VOID", -} as const; -export type InvoiceStatusEnum = (typeof InvoiceStatusEnum)[keyof typeof InvoiceStatusEnum]; diff --git a/src/api/resources/accounting/types/InvoiceTrackingCategoriesItem.ts b/src/api/resources/accounting/types/InvoiceTrackingCategoriesItem.ts deleted file mode 100644 index 146b11867..000000000 --- a/src/api/resources/accounting/types/InvoiceTrackingCategoriesItem.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 InvoiceTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/InvoiceType.ts b/src/api/resources/accounting/types/InvoiceType.ts deleted file mode 100644 index 42eeefc8a..000000000 --- a/src/api/resources/accounting/types/InvoiceType.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * Whether the invoice is an accounts receivable or accounts payable. If `type` is `ACCOUNTS_PAYABLE`, the invoice is a bill. If `type` is `ACCOUNTS_RECEIVABLE`, it is an invoice. - * - * * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - * * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - */ -export type InvoiceType = Merge.accounting.InvoiceTypeEnum | string; diff --git a/src/api/resources/accounting/types/InvoiceTypeEnum.ts b/src/api/resources/accounting/types/InvoiceTypeEnum.ts deleted file mode 100644 index 934b6a4dc..000000000 --- a/src/api/resources/accounting/types/InvoiceTypeEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - * * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - */ -export const InvoiceTypeEnum = { - AccountsReceivable: "ACCOUNTS_RECEIVABLE", - AccountsPayable: "ACCOUNTS_PAYABLE", -} as const; -export type InvoiceTypeEnum = (typeof InvoiceTypeEnum)[keyof typeof InvoiceTypeEnum]; diff --git a/src/api/resources/accounting/types/Issue.ts b/src/api/resources/accounting/types/Issue.ts deleted file mode 100644 index 82ca5cc74..000000000 --- a/src/api/resources/accounting/types/Issue.ts +++ /dev/null @@ -1,20 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface Issue { - id?: string; - /** - * Status of the issue. Options: ('ONGOING', 'RESOLVED') - * - * * `ONGOING` - ONGOING - * * `RESOLVED` - RESOLVED - */ - status?: Merge.accounting.IssueStatus; - errorDescription: string; - endUser?: Record; - firstIncidentTime?: Date; - lastIncidentTime?: Date; - isMuted?: boolean; - errorDetails?: string[]; -} diff --git a/src/api/resources/accounting/types/IssueStatus.ts b/src/api/resources/accounting/types/IssueStatus.ts deleted file mode 100644 index 906f89245..000000000 --- a/src/api/resources/accounting/types/IssueStatus.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * Status of the issue. Options: ('ONGOING', 'RESOLVED') - * - * * `ONGOING` - ONGOING - * * `RESOLVED` - RESOLVED - */ -export type IssueStatus = Merge.accounting.IssueStatusEnum | string; diff --git a/src/api/resources/accounting/types/IssueStatusEnum.ts b/src/api/resources/accounting/types/IssueStatusEnum.ts deleted file mode 100644 index 03b0cd555..000000000 --- a/src/api/resources/accounting/types/IssueStatusEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `ONGOING` - ONGOING - * * `RESOLVED` - RESOLVED - */ -export const IssueStatusEnum = { - Ongoing: "ONGOING", - Resolved: "RESOLVED", -} as const; -export type IssueStatusEnum = (typeof IssueStatusEnum)[keyof typeof IssueStatusEnum]; diff --git a/src/api/resources/accounting/types/Item.ts b/src/api/resources/accounting/types/Item.ts deleted file mode 100644 index b9e21b76d..000000000 --- a/src/api/resources/accounting/types/Item.ts +++ /dev/null @@ -1,59 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Item Object - * ### Description - * The `Item` object refers to the goods involved in a transaction. - * - * ### Usage Example - * Fetch from the `LIST Items` endpoint and view a company's items. - */ -export interface Item { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The item's name. */ - name?: string; - /** - * The item's status. - * - * * `ACTIVE` - ACTIVE - * * `ARCHIVED` - ARCHIVED - */ - status?: Merge.accounting.ItemStatus; - /** - * The item's type. - * - * * `INVENTORY` - INVENTORY - * * `NON_INVENTORY` - NON_INVENTORY - * * `SERVICE` - SERVICE - * * `UNKNOWN` - UNKNOWN - */ - type?: Merge.accounting.ItemType; - /** The item's unit price. */ - unitPrice?: number; - /** The price at which the item is purchased from a vendor. */ - purchasePrice?: number; - /** References the default account used to record a purchase of the item. */ - purchaseAccount?: Merge.accounting.ItemPurchaseAccount; - /** References the default account used to record a sale. */ - salesAccount?: Merge.accounting.ItemSalesAccount; - /** The company the item belongs to. */ - company?: Merge.accounting.ItemCompany; - /** The default purchase tax rate for this item. */ - purchaseTaxRate?: Merge.accounting.ItemPurchaseTaxRate; - /** The default sales tax rate for this item. */ - salesTaxRate?: Merge.accounting.ItemSalesTaxRate; - /** When the third party's item note 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[]; -} diff --git a/src/api/resources/accounting/types/ItemCompany.ts b/src/api/resources/accounting/types/ItemCompany.ts deleted file mode 100644 index 66868dae0..000000000 --- a/src/api/resources/accounting/types/ItemCompany.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 company the item belongs to. - */ -export type ItemCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/ItemFormatEnum.ts b/src/api/resources/accounting/types/ItemFormatEnum.ts deleted file mode 100644 index 4374c7f09..000000000 --- a/src/api/resources/accounting/types/ItemFormatEnum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `string` - uuid - * * `number` - url - * * `date` - email - * * `datetime` - phone - * * `bool` - currency - * * `list` - decimal - */ -export const ItemFormatEnum = { - String: "string", - Number: "number", - Date: "date", - Datetime: "datetime", - Bool: "bool", - List: "list", -} as const; -export type ItemFormatEnum = (typeof ItemFormatEnum)[keyof typeof ItemFormatEnum]; diff --git a/src/api/resources/accounting/types/ItemPurchaseAccount.ts b/src/api/resources/accounting/types/ItemPurchaseAccount.ts deleted file mode 100644 index c221427d3..000000000 --- a/src/api/resources/accounting/types/ItemPurchaseAccount.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * References the default account used to record a purchase of the item. - */ -export type ItemPurchaseAccount = string | Merge.accounting.Account; diff --git a/src/api/resources/accounting/types/ItemPurchaseTaxRate.ts b/src/api/resources/accounting/types/ItemPurchaseTaxRate.ts deleted file mode 100644 index 4f4d06914..000000000 --- a/src/api/resources/accounting/types/ItemPurchaseTaxRate.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 default purchase tax rate for this item. - */ -export type ItemPurchaseTaxRate = string | Merge.accounting.TaxRate; diff --git a/src/api/resources/accounting/types/ItemRequestRequest.ts b/src/api/resources/accounting/types/ItemRequestRequest.ts deleted file mode 100644 index 145c0c50d..000000000 --- a/src/api/resources/accounting/types/ItemRequestRequest.ts +++ /dev/null @@ -1,48 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Item Object - * ### Description - * The `Item` object refers to the goods involved in a transaction. - * - * ### Usage Example - * Fetch from the `LIST Items` endpoint and view a company's items. - */ -export interface ItemRequestRequest { - /** The item's name. */ - name?: string; - /** - * The item's status. - * - * * `ACTIVE` - ACTIVE - * * `ARCHIVED` - ARCHIVED - */ - status?: Merge.accounting.ItemRequestRequestStatus; - /** - * The item's type. - * - * * `INVENTORY` - INVENTORY - * * `NON_INVENTORY` - NON_INVENTORY - * * `SERVICE` - SERVICE - * * `UNKNOWN` - UNKNOWN - */ - type?: Merge.accounting.ItemRequestRequestType; - /** The item's unit price. */ - unitPrice?: number; - /** The price at which the item is purchased from a vendor. */ - purchasePrice?: number; - /** References the default account used to record a purchase of the item. */ - purchaseAccount?: Merge.accounting.ItemRequestRequestPurchaseAccount; - /** References the default account used to record a sale. */ - salesAccount?: Merge.accounting.ItemRequestRequestSalesAccount; - /** The company the item belongs to. */ - company?: Merge.accounting.ItemRequestRequestCompany; - /** The default purchase tax rate for this item. */ - purchaseTaxRate?: Merge.accounting.ItemRequestRequestPurchaseTaxRate; - /** The default sales tax rate for this item. */ - salesTaxRate?: Merge.accounting.ItemRequestRequestSalesTaxRate; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/accounting/types/ItemRequestRequestCompany.ts b/src/api/resources/accounting/types/ItemRequestRequestCompany.ts deleted file mode 100644 index 3e335345d..000000000 --- a/src/api/resources/accounting/types/ItemRequestRequestCompany.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 company the item belongs to. - */ -export type ItemRequestRequestCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/ItemRequestRequestPurchaseAccount.ts b/src/api/resources/accounting/types/ItemRequestRequestPurchaseAccount.ts deleted file mode 100644 index adfb9887f..000000000 --- a/src/api/resources/accounting/types/ItemRequestRequestPurchaseAccount.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * References the default account used to record a purchase of the item. - */ -export type ItemRequestRequestPurchaseAccount = string | Merge.accounting.Account; diff --git a/src/api/resources/accounting/types/ItemRequestRequestPurchaseTaxRate.ts b/src/api/resources/accounting/types/ItemRequestRequestPurchaseTaxRate.ts deleted file mode 100644 index 79aeed98e..000000000 --- a/src/api/resources/accounting/types/ItemRequestRequestPurchaseTaxRate.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 default purchase tax rate for this item. - */ -export type ItemRequestRequestPurchaseTaxRate = string | Merge.accounting.TaxRate; diff --git a/src/api/resources/accounting/types/ItemRequestRequestSalesAccount.ts b/src/api/resources/accounting/types/ItemRequestRequestSalesAccount.ts deleted file mode 100644 index 7b787038d..000000000 --- a/src/api/resources/accounting/types/ItemRequestRequestSalesAccount.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * References the default account used to record a sale. - */ -export type ItemRequestRequestSalesAccount = string | Merge.accounting.Account; diff --git a/src/api/resources/accounting/types/ItemRequestRequestSalesTaxRate.ts b/src/api/resources/accounting/types/ItemRequestRequestSalesTaxRate.ts deleted file mode 100644 index f1d199e05..000000000 --- a/src/api/resources/accounting/types/ItemRequestRequestSalesTaxRate.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 default sales tax rate for this item. - */ -export type ItemRequestRequestSalesTaxRate = string | Merge.accounting.TaxRate; diff --git a/src/api/resources/accounting/types/ItemRequestRequestStatus.ts b/src/api/resources/accounting/types/ItemRequestRequestStatus.ts deleted file mode 100644 index e8260c82e..000000000 --- a/src/api/resources/accounting/types/ItemRequestRequestStatus.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 item's status. - * - * * `ACTIVE` - ACTIVE - * * `ARCHIVED` - ARCHIVED - */ -export type ItemRequestRequestStatus = Merge.accounting.Status7D1Enum | string; diff --git a/src/api/resources/accounting/types/ItemRequestRequestType.ts b/src/api/resources/accounting/types/ItemRequestRequestType.ts deleted file mode 100644 index b55f7b4e1..000000000 --- a/src/api/resources/accounting/types/ItemRequestRequestType.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 item's type. - * - * * `INVENTORY` - INVENTORY - * * `NON_INVENTORY` - NON_INVENTORY - * * `SERVICE` - SERVICE - * * `UNKNOWN` - UNKNOWN - */ -export type ItemRequestRequestType = Merge.accounting.Type2BbEnum | string; diff --git a/src/api/resources/accounting/types/ItemResponse.ts b/src/api/resources/accounting/types/ItemResponse.ts deleted file mode 100644 index 416002d77..000000000 --- a/src/api/resources/accounting/types/ItemResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface ItemResponse { - model: Merge.accounting.Item; - warnings: Merge.accounting.WarningValidationProblem[]; - errors: Merge.accounting.ErrorValidationProblem[]; - logs?: Merge.accounting.DebugModeLog[]; -} diff --git a/src/api/resources/accounting/types/ItemSalesAccount.ts b/src/api/resources/accounting/types/ItemSalesAccount.ts deleted file mode 100644 index f560d57f5..000000000 --- a/src/api/resources/accounting/types/ItemSalesAccount.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * References the default account used to record a sale. - */ -export type ItemSalesAccount = string | Merge.accounting.Account; diff --git a/src/api/resources/accounting/types/ItemSalesTaxRate.ts b/src/api/resources/accounting/types/ItemSalesTaxRate.ts deleted file mode 100644 index b5a1bfb17..000000000 --- a/src/api/resources/accounting/types/ItemSalesTaxRate.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 default sales tax rate for this item. - */ -export type ItemSalesTaxRate = string | Merge.accounting.TaxRate; diff --git a/src/api/resources/accounting/types/ItemSchema.ts b/src/api/resources/accounting/types/ItemSchema.ts deleted file mode 100644 index 153de14f2..000000000 --- a/src/api/resources/accounting/types/ItemSchema.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface ItemSchema { - itemType?: Merge.accounting.ItemTypeEnum; - itemFormat?: Merge.accounting.ItemFormatEnum; - itemChoices?: string[]; -} diff --git a/src/api/resources/accounting/types/ItemStatus.ts b/src/api/resources/accounting/types/ItemStatus.ts deleted file mode 100644 index 0671e1e50..000000000 --- a/src/api/resources/accounting/types/ItemStatus.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 item's status. - * - * * `ACTIVE` - ACTIVE - * * `ARCHIVED` - ARCHIVED - */ -export type ItemStatus = Merge.accounting.Status7D1Enum | string; diff --git a/src/api/resources/accounting/types/ItemType.ts b/src/api/resources/accounting/types/ItemType.ts deleted file mode 100644 index e3149f273..000000000 --- a/src/api/resources/accounting/types/ItemType.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 item's type. - * - * * `INVENTORY` - INVENTORY - * * `NON_INVENTORY` - NON_INVENTORY - * * `SERVICE` - SERVICE - * * `UNKNOWN` - UNKNOWN - */ -export type ItemType = Merge.accounting.Type2BbEnum | string; diff --git a/src/api/resources/accounting/types/ItemTypeEnum.ts b/src/api/resources/accounting/types/ItemTypeEnum.ts deleted file mode 100644 index 836ffd0b2..000000000 --- a/src/api/resources/accounting/types/ItemTypeEnum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `string` - string - * * `number` - number - * * `date` - date - * * `datetime` - datetime - * * `bool` - bool - * * `list` - list - */ -export const ItemTypeEnum = { - String: "string", - Number: "number", - Date: "date", - Datetime: "datetime", - Bool: "bool", - List: "list", -} as const; -export type ItemTypeEnum = (typeof ItemTypeEnum)[keyof typeof ItemTypeEnum]; diff --git a/src/api/resources/accounting/types/JournalEntry.ts b/src/api/resources/accounting/types/JournalEntry.ts deleted file mode 100644 index 7f263a4fa..000000000 --- a/src/api/resources/accounting/types/JournalEntry.ts +++ /dev/null @@ -1,372 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The JournalEntry Object - * ### Description - * A `JournalEntry` is a record of a transaction or event that is entered into a company's accounting system. - * - * The `JournalEntry` common model contains records that are automatically created as a result of a certain type of transaction, like an Invoice, and records that are manually created against a company’s ledger. - * - * The lines of a given `JournalEntry` object should always sum to 0. A positive `net_amount` means the line represents a debit and a negative net_amount represents a credit. - * - * ### Usage Example - * Fetch from the `GET JournalEntry` endpoint and view a company's journey entry. - */ -export interface JournalEntry { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The journal entry's transaction date. */ - transactionDate?: Date; - /** Array of `Payment` object IDs. */ - payments?: (Merge.accounting.JournalEntryPaymentsItem | undefined)[]; - /** A list of the Payment Applied to Lines common models related to a given Invoice, Credit Note, or Journal Entry. */ - appliedPayments?: (Merge.accounting.JournalEntryAppliedPaymentsItem | undefined)[]; - /** The journal entry's private note. */ - memo?: string; - /** - * The journal'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.JournalEntryCurrency; - /** The journal entry's exchange rate. */ - exchangeRate?: string; - /** The company the journal entry belongs to. */ - 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[]; - /** Reference number for identifying journal entries. */ - journalNumber?: string; - trackingCategories?: (Merge.accounting.JournalEntryTrackingCategoriesItem | 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; - /** - * The journal's posting status. - * - * * `UNPOSTED` - UNPOSTED - * * `POSTED` - POSTED - */ - postingStatus?: Merge.accounting.JournalEntryPostingStatus; - /** The accounting period that the JournalEntry was generated in. */ - accountingPeriod?: Merge.accounting.JournalEntryAccountingPeriod; - /** When the third party's journal entry was created. */ - remoteCreatedAt?: Date; - /** When the third party's journal entry was updated. */ - remoteUpdatedAt?: Date; - fieldMappings?: Record; - remoteData?: Merge.accounting.RemoteData[]; - remoteFields?: Merge.accounting.RemoteField[]; -} diff --git a/src/api/resources/accounting/types/JournalEntryAccountingPeriod.ts b/src/api/resources/accounting/types/JournalEntryAccountingPeriod.ts deleted file mode 100644 index b0df5bb4d..000000000 --- a/src/api/resources/accounting/types/JournalEntryAccountingPeriod.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 JournalEntry was generated in. - */ -export type JournalEntryAccountingPeriod = string | Merge.accounting.AccountingPeriod; diff --git a/src/api/resources/accounting/types/JournalEntryAppliedPaymentsItem.ts b/src/api/resources/accounting/types/JournalEntryAppliedPaymentsItem.ts deleted file mode 100644 index a3aa3d95a..000000000 --- a/src/api/resources/accounting/types/JournalEntryAppliedPaymentsItem.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 JournalEntryAppliedPaymentsItem = string | Merge.accounting.PaymentLineItem; diff --git a/src/api/resources/accounting/types/JournalEntryCompany.ts b/src/api/resources/accounting/types/JournalEntryCompany.ts deleted file mode 100644 index 04444d155..000000000 --- a/src/api/resources/accounting/types/JournalEntryCompany.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 company the journal entry belongs to. - */ -export type JournalEntryCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/JournalEntryCurrency.ts b/src/api/resources/accounting/types/JournalEntryCurrency.ts deleted file mode 100644 index 6d5102ff6..000000000 --- a/src/api/resources/accounting/types/JournalEntryCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The journal'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 JournalEntryCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/JournalEntryPaymentsItem.ts b/src/api/resources/accounting/types/JournalEntryPaymentsItem.ts deleted file mode 100644 index f921a3410..000000000 --- a/src/api/resources/accounting/types/JournalEntryPaymentsItem.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 JournalEntryPaymentsItem = string | Merge.accounting.Payment; diff --git a/src/api/resources/accounting/types/JournalEntryPostingStatus.ts b/src/api/resources/accounting/types/JournalEntryPostingStatus.ts deleted file mode 100644 index 4afe9e599..000000000 --- a/src/api/resources/accounting/types/JournalEntryPostingStatus.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 journal's posting status. - * - * * `UNPOSTED` - UNPOSTED - * * `POSTED` - POSTED - */ -export type JournalEntryPostingStatus = Merge.accounting.PostingStatusEnum | string; diff --git a/src/api/resources/accounting/types/JournalEntryRequest.ts b/src/api/resources/accounting/types/JournalEntryRequest.ts deleted file mode 100644 index 789fd69f5..000000000 --- a/src/api/resources/accounting/types/JournalEntryRequest.ts +++ /dev/null @@ -1,351 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The JournalEntry Object - * ### Description - * The `JournalEntry` object is used to get a record of all manually created entries made in a company’s general ledger. The journal line items for each journal entry should sum to zero. - * - * ### Usage Example - * Fetch from the `GET JournalEntry` endpoint and view a company's journey entry. - */ -export interface JournalEntryRequest { - /** The journal entry's transaction date. */ - transactionDate?: Date; - /** Array of `Payment` object IDs. */ - payments?: (Merge.accounting.JournalEntryRequestPaymentsItem | undefined)[]; - /** The journal entry's private note. */ - memo?: string; - /** - * The journal'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.JournalEntryRequestCurrency; - /** The journal entry's exchange rate. */ - exchangeRate?: string; - /** The company the journal entry belongs to. */ - company?: Merge.accounting.JournalEntryRequestCompany; - 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[]; - /** Reference number for identifying journal entries. */ - journalNumber?: string; - /** - * The journal's posting status. - * - * * `UNPOSTED` - UNPOSTED - * * `POSTED` - POSTED - */ - postingStatus?: Merge.accounting.JournalEntryRequestPostingStatus; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.accounting.RemoteFieldRequest[]; -} diff --git a/src/api/resources/accounting/types/JournalEntryRequestCompany.ts b/src/api/resources/accounting/types/JournalEntryRequestCompany.ts deleted file mode 100644 index a2b92e83b..000000000 --- a/src/api/resources/accounting/types/JournalEntryRequestCompany.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 company the journal entry belongs to. - */ -export type JournalEntryRequestCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/JournalEntryRequestCurrency.ts b/src/api/resources/accounting/types/JournalEntryRequestCurrency.ts deleted file mode 100644 index 6a6c4f474..000000000 --- a/src/api/resources/accounting/types/JournalEntryRequestCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The journal'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 JournalEntryRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/JournalEntryRequestPaymentsItem.ts b/src/api/resources/accounting/types/JournalEntryRequestPaymentsItem.ts deleted file mode 100644 index 88069262d..000000000 --- a/src/api/resources/accounting/types/JournalEntryRequestPaymentsItem.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 JournalEntryRequestPaymentsItem = string | Merge.accounting.Payment; diff --git a/src/api/resources/accounting/types/JournalEntryRequestPostingStatus.ts b/src/api/resources/accounting/types/JournalEntryRequestPostingStatus.ts deleted file mode 100644 index 6c7117463..000000000 --- a/src/api/resources/accounting/types/JournalEntryRequestPostingStatus.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 journal's posting status. - * - * * `UNPOSTED` - UNPOSTED - * * `POSTED` - POSTED - */ -export type JournalEntryRequestPostingStatus = Merge.accounting.PostingStatusEnum | string; diff --git a/src/api/resources/accounting/types/JournalEntryRequestTrackingCategoriesItem.ts b/src/api/resources/accounting/types/JournalEntryRequestTrackingCategoriesItem.ts deleted file mode 100644 index 7c7ef729a..000000000 --- a/src/api/resources/accounting/types/JournalEntryRequestTrackingCategoriesItem.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 JournalEntryRequestTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/JournalEntryResponse.ts b/src/api/resources/accounting/types/JournalEntryResponse.ts deleted file mode 100644 index 9049be956..000000000 --- a/src/api/resources/accounting/types/JournalEntryResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface JournalEntryResponse { - model: Merge.accounting.JournalEntry; - warnings: Merge.accounting.WarningValidationProblem[]; - errors: Merge.accounting.ErrorValidationProblem[]; - logs?: Merge.accounting.DebugModeLog[]; -} diff --git a/src/api/resources/accounting/types/JournalEntryTrackingCategoriesItem.ts b/src/api/resources/accounting/types/JournalEntryTrackingCategoriesItem.ts deleted file mode 100644 index 9e79040b7..000000000 --- a/src/api/resources/accounting/types/JournalEntryTrackingCategoriesItem.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 JournalEntryTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/JournalLine.ts b/src/api/resources/accounting/types/JournalLine.ts deleted file mode 100644 index a1b4d606d..000000000 --- a/src/api/resources/accounting/types/JournalLine.ts +++ /dev/null @@ -1,352 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The JournalLine Object - * ### Description - * The `JournalLine` object is used to represent a journal entry's line items. - * - * ### Usage Example - * Fetch from the `GET JournalEntry` endpoint and view the journal entry's line items. - */ -export interface JournalLine { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - account?: Merge.accounting.JournalLineAccount; - /** The value of the line item including taxes and other fees. */ - netAmount?: number; - trackingCategory?: Merge.accounting.JournalLineTrackingCategory; - /** The journal line item's associated tracking categories. */ - trackingCategories?: (Merge.accounting.JournalLineTrackingCategoriesItem | undefined)[]; - /** - * The journal line item'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.JournalLineCurrency; - /** The company the journal entry belongs to. */ - company?: string; - employee?: string; - project?: Merge.accounting.JournalLineProject; - contact?: string; - /** The tax rate that applies to this line item. */ - taxRate?: string; - /** The line's description. */ - description?: string; - /** The journal line item's exchange rate. */ - exchangeRate?: 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/). */ - remoteWasDeleted?: boolean; - remoteFields?: Merge.accounting.RemoteField[]; -} diff --git a/src/api/resources/accounting/types/JournalLineAccount.ts b/src/api/resources/accounting/types/JournalLineAccount.ts deleted file mode 100644 index ec8c80222..000000000 --- a/src/api/resources/accounting/types/JournalLineAccount.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 JournalLineAccount = string | Merge.accounting.Account; diff --git a/src/api/resources/accounting/types/JournalLineCurrency.ts b/src/api/resources/accounting/types/JournalLineCurrency.ts deleted file mode 100644 index c9bf256d4..000000000 --- a/src/api/resources/accounting/types/JournalLineCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The journal line item'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 JournalLineCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/JournalLineProject.ts b/src/api/resources/accounting/types/JournalLineProject.ts deleted file mode 100644 index 8d0cee971..000000000 --- a/src/api/resources/accounting/types/JournalLineProject.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 JournalLineProject = string | Merge.accounting.Project; diff --git a/src/api/resources/accounting/types/JournalLineRequest.ts b/src/api/resources/accounting/types/JournalLineRequest.ts deleted file mode 100644 index 23d5937b5..000000000 --- a/src/api/resources/accounting/types/JournalLineRequest.ts +++ /dev/null @@ -1,347 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The JournalLine Object - * ### Description - * The `JournalLine` object is used to represent a journal entry's line items. - * - * ### Usage Example - * Fetch from the `GET JournalEntry` endpoint and view the journal entry's line items. - */ -export interface JournalLineRequest { - /** The third-party API ID of the matching object. */ - remoteId?: string; - account?: Merge.accounting.JournalLineRequestAccount; - /** The value of the line item including taxes and other fees. */ - netAmount?: number; - trackingCategory?: Merge.accounting.JournalLineRequestTrackingCategory; - /** The journal line item's associated tracking categories. */ - trackingCategories?: (Merge.accounting.JournalLineRequestTrackingCategoriesItem | undefined)[]; - /** - * The journal line item'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.JournalLineRequestCurrency; - /** The company the journal entry belongs to. */ - company?: string; - employee?: string; - project?: Merge.accounting.JournalLineRequestProject; - contact?: string; - /** The tax rate that applies to this line item. */ - taxRate?: string; - /** The line's description. */ - description?: string; - /** The journal line item's exchange rate. */ - exchangeRate?: string; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.accounting.RemoteFieldRequest[]; -} diff --git a/src/api/resources/accounting/types/JournalLineRequestAccount.ts b/src/api/resources/accounting/types/JournalLineRequestAccount.ts deleted file mode 100644 index 285ea2147..000000000 --- a/src/api/resources/accounting/types/JournalLineRequestAccount.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 JournalLineRequestAccount = string | Merge.accounting.Account; diff --git a/src/api/resources/accounting/types/JournalLineRequestCurrency.ts b/src/api/resources/accounting/types/JournalLineRequestCurrency.ts deleted file mode 100644 index 39fd54403..000000000 --- a/src/api/resources/accounting/types/JournalLineRequestCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The journal line item'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 JournalLineRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/JournalLineRequestProject.ts b/src/api/resources/accounting/types/JournalLineRequestProject.ts deleted file mode 100644 index 2b6736016..000000000 --- a/src/api/resources/accounting/types/JournalLineRequestProject.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 JournalLineRequestProject = string | Merge.accounting.Project; diff --git a/src/api/resources/accounting/types/JournalLineRequestTrackingCategoriesItem.ts b/src/api/resources/accounting/types/JournalLineRequestTrackingCategoriesItem.ts deleted file mode 100644 index f5e35065e..000000000 --- a/src/api/resources/accounting/types/JournalLineRequestTrackingCategoriesItem.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 JournalLineRequestTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/JournalLineRequestTrackingCategory.ts b/src/api/resources/accounting/types/JournalLineRequestTrackingCategory.ts deleted file mode 100644 index 0e769f55a..000000000 --- a/src/api/resources/accounting/types/JournalLineRequestTrackingCategory.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 JournalLineRequestTrackingCategory = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/JournalLineTrackingCategoriesItem.ts b/src/api/resources/accounting/types/JournalLineTrackingCategoriesItem.ts deleted file mode 100644 index e4aa59e41..000000000 --- a/src/api/resources/accounting/types/JournalLineTrackingCategoriesItem.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 JournalLineTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/JournalLineTrackingCategory.ts b/src/api/resources/accounting/types/JournalLineTrackingCategory.ts deleted file mode 100644 index a3a4d41d8..000000000 --- a/src/api/resources/accounting/types/JournalLineTrackingCategory.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 JournalLineTrackingCategory = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/LanguageEnum.ts b/src/api/resources/accounting/types/LanguageEnum.ts deleted file mode 100644 index 603fc6498..000000000 --- a/src/api/resources/accounting/types/LanguageEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `en` - en - * * `de` - de - */ -export const LanguageEnum = { - En: "en", - De: "de", -} as const; -export type LanguageEnum = (typeof LanguageEnum)[keyof typeof LanguageEnum]; diff --git a/src/api/resources/accounting/types/LastSyncResultEnum.ts b/src/api/resources/accounting/types/LastSyncResultEnum.ts deleted file mode 100644 index 3baf8309b..000000000 --- a/src/api/resources/accounting/types/LastSyncResultEnum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `SYNCING` - SYNCING - * * `DONE` - DONE - * * `FAILED` - FAILED - * * `DISABLED` - DISABLED - * * `PAUSED` - PAUSED - * * `PARTIALLY_SYNCED` - PARTIALLY_SYNCED - */ -export const LastSyncResultEnum = { - Syncing: "SYNCING", - Done: "DONE", - Failed: "FAILED", - Disabled: "DISABLED", - Paused: "PAUSED", - PartiallySynced: "PARTIALLY_SYNCED", -} as const; -export type LastSyncResultEnum = (typeof LastSyncResultEnum)[keyof typeof LastSyncResultEnum]; diff --git a/src/api/resources/accounting/types/LinkToken.ts b/src/api/resources/accounting/types/LinkToken.ts deleted file mode 100644 index 09879f9b1..000000000 --- a/src/api/resources/accounting/types/LinkToken.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface LinkToken { - linkToken: string; - integrationName?: string; - magicLinkUrl?: string; -} diff --git a/src/api/resources/accounting/types/LinkedAccountStatus.ts b/src/api/resources/accounting/types/LinkedAccountStatus.ts deleted file mode 100644 index fa55c41fb..000000000 --- a/src/api/resources/accounting/types/LinkedAccountStatus.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface LinkedAccountStatus { - linkedAccountStatus: string; - canMakeRequest: boolean; -} diff --git a/src/api/resources/accounting/types/MetaResponse.ts b/src/api/resources/accounting/types/MetaResponse.ts deleted file mode 100644 index 1ae901ada..000000000 --- a/src/api/resources/accounting/types/MetaResponse.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface MetaResponse { - requestSchema: Record; - remoteFieldClasses?: Record; - status?: Merge.accounting.LinkedAccountStatus; - hasConditionalParams: boolean; - hasRequiredLinkedAccountParams: boolean; -} diff --git a/src/api/resources/accounting/types/MethodEnum.ts b/src/api/resources/accounting/types/MethodEnum.ts deleted file mode 100644 index b8fb03bb0..000000000 --- a/src/api/resources/accounting/types/MethodEnum.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `GET` - GET - * * `OPTIONS` - OPTIONS - * * `HEAD` - HEAD - * * `POST` - POST - * * `PUT` - PUT - * * `PATCH` - PATCH - * * `DELETE` - DELETE - */ -export const MethodEnum = { - Get: "GET", - Options: "OPTIONS", - Head: "HEAD", - Post: "POST", - Put: "PUT", - Patch: "PATCH", - Delete: "DELETE", -} as const; -export type MethodEnum = (typeof MethodEnum)[keyof typeof MethodEnum]; diff --git a/src/api/resources/accounting/types/MethodTypeEnum.ts b/src/api/resources/accounting/types/MethodTypeEnum.ts deleted file mode 100644 index 210726cf5..000000000 --- a/src/api/resources/accounting/types/MethodTypeEnum.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `CREDIT_CARD` - CREDIT_CARD - * * `DEBIT_CARD` - DEBIT_CARD - * * `ACH` - ACH - * * `CASH` - CASH - * * `CHECK` - CHECK - */ -export const MethodTypeEnum = { - CreditCard: "CREDIT_CARD", - DebitCard: "DEBIT_CARD", - Ach: "ACH", - Cash: "CASH", - Check: "CHECK", -} as const; -export type MethodTypeEnum = (typeof MethodTypeEnum)[keyof typeof MethodTypeEnum]; diff --git a/src/api/resources/accounting/types/ModelOperation.ts b/src/api/resources/accounting/types/ModelOperation.ts deleted file mode 100644 index 520f668d9..000000000 --- a/src/api/resources/accounting/types/ModelOperation.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * # The ModelOperation Object - * ### Description - * The `ModelOperation` object is used to represent the operations that are currently supported for a given model. - * - * ### Usage Example - * View what operations are supported for the `Candidate` endpoint. - */ -export interface ModelOperation { - modelName: string; - availableOperations: string[]; - requiredPostParameters: string[]; - supportedFields: string[]; -} diff --git a/src/api/resources/accounting/types/ModelPermissionDeserializer.ts b/src/api/resources/accounting/types/ModelPermissionDeserializer.ts deleted file mode 100644 index 58b672e56..000000000 --- a/src/api/resources/accounting/types/ModelPermissionDeserializer.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface ModelPermissionDeserializer { - isEnabled?: boolean; -} diff --git a/src/api/resources/accounting/types/ModelPermissionDeserializerRequest.ts b/src/api/resources/accounting/types/ModelPermissionDeserializerRequest.ts deleted file mode 100644 index 1e140a95a..000000000 --- a/src/api/resources/accounting/types/ModelPermissionDeserializerRequest.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface ModelPermissionDeserializerRequest { - isEnabled?: boolean; -} diff --git a/src/api/resources/accounting/types/MultipartFormFieldRequest.ts b/src/api/resources/accounting/types/MultipartFormFieldRequest.ts deleted file mode 100644 index 6b1ca95b2..000000000 --- a/src/api/resources/accounting/types/MultipartFormFieldRequest.ts +++ /dev/null @@ -1,30 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The MultipartFormField Object - * ### Description - * The `MultipartFormField` object is used to represent fields in an HTTP request using `multipart/form-data`. - * - * ### Usage Example - * Create a `MultipartFormField` to define a multipart form entry. - */ -export interface MultipartFormFieldRequest { - /** The name of the form field */ - name: string; - /** The data for the form field. */ - data: string; - /** - * The encoding of the value of `data`. Defaults to `RAW` if not defined. - * - * * `RAW` - RAW - * * `BASE64` - BASE64 - * * `GZIP_BASE64` - GZIP_BASE64 - */ - encoding?: Merge.accounting.MultipartFormFieldRequestEncoding; - /** 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. */ - contentType?: string; -} diff --git a/src/api/resources/accounting/types/MultipartFormFieldRequestEncoding.ts b/src/api/resources/accounting/types/MultipartFormFieldRequestEncoding.ts deleted file mode 100644 index 42fb9506d..000000000 --- a/src/api/resources/accounting/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.accounting.EncodingEnum | string; diff --git a/src/api/resources/accounting/types/PaginatedAccountDetailsAndActionsList.ts b/src/api/resources/accounting/types/PaginatedAccountDetailsAndActionsList.ts deleted file mode 100644 index 5889d47d8..000000000 --- a/src/api/resources/accounting/types/PaginatedAccountDetailsAndActionsList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedAccountDetailsAndActionsList { - next?: string; - previous?: string; - results?: Merge.accounting.AccountDetailsAndActions[]; -} diff --git a/src/api/resources/accounting/types/PaginatedAccountList.ts b/src/api/resources/accounting/types/PaginatedAccountList.ts deleted file mode 100644 index 0b71ba254..000000000 --- a/src/api/resources/accounting/types/PaginatedAccountList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedAccountList { - next?: string; - previous?: string; - results?: Merge.accounting.Account[]; -} diff --git a/src/api/resources/accounting/types/PaginatedAccountingAttachmentList.ts b/src/api/resources/accounting/types/PaginatedAccountingAttachmentList.ts deleted file mode 100644 index cefb24a5c..000000000 --- a/src/api/resources/accounting/types/PaginatedAccountingAttachmentList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedAccountingAttachmentList { - next?: string; - previous?: string; - results?: Merge.accounting.AccountingAttachment[]; -} diff --git a/src/api/resources/accounting/types/PaginatedAccountingPeriodList.ts b/src/api/resources/accounting/types/PaginatedAccountingPeriodList.ts deleted file mode 100644 index cce0af6ef..000000000 --- a/src/api/resources/accounting/types/PaginatedAccountingPeriodList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedAccountingPeriodList { - next?: string; - previous?: string; - results?: Merge.accounting.AccountingPeriod[]; -} diff --git a/src/api/resources/accounting/types/PaginatedAuditLogEventList.ts b/src/api/resources/accounting/types/PaginatedAuditLogEventList.ts deleted file mode 100644 index 2c23b3dd6..000000000 --- a/src/api/resources/accounting/types/PaginatedAuditLogEventList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedAuditLogEventList { - next?: string; - previous?: string; - results?: Merge.accounting.AuditLogEvent[]; -} diff --git a/src/api/resources/accounting/types/PaginatedBalanceSheetList.ts b/src/api/resources/accounting/types/PaginatedBalanceSheetList.ts deleted file mode 100644 index 98ad66a93..000000000 --- a/src/api/resources/accounting/types/PaginatedBalanceSheetList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedBalanceSheetList { - next?: string; - previous?: string; - results?: Merge.accounting.BalanceSheet[]; -} diff --git a/src/api/resources/accounting/types/PaginatedBankFeedAccountList.ts b/src/api/resources/accounting/types/PaginatedBankFeedAccountList.ts deleted file mode 100644 index 24837137a..000000000 --- a/src/api/resources/accounting/types/PaginatedBankFeedAccountList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedBankFeedAccountList { - next?: string; - previous?: string; - results?: Merge.accounting.BankFeedAccount[]; -} diff --git a/src/api/resources/accounting/types/PaginatedBankFeedTransactionList.ts b/src/api/resources/accounting/types/PaginatedBankFeedTransactionList.ts deleted file mode 100644 index e83c100ae..000000000 --- a/src/api/resources/accounting/types/PaginatedBankFeedTransactionList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedBankFeedTransactionList { - next?: string; - previous?: string; - results?: Merge.accounting.BankFeedTransaction[]; -} diff --git a/src/api/resources/accounting/types/PaginatedCashFlowStatementList.ts b/src/api/resources/accounting/types/PaginatedCashFlowStatementList.ts deleted file mode 100644 index e2b7c87c5..000000000 --- a/src/api/resources/accounting/types/PaginatedCashFlowStatementList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedCashFlowStatementList { - next?: string; - previous?: string; - results?: Merge.accounting.CashFlowStatement[]; -} diff --git a/src/api/resources/accounting/types/PaginatedCompanyInfoList.ts b/src/api/resources/accounting/types/PaginatedCompanyInfoList.ts deleted file mode 100644 index 92a3cca02..000000000 --- a/src/api/resources/accounting/types/PaginatedCompanyInfoList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedCompanyInfoList { - next?: string; - previous?: string; - results?: Merge.accounting.CompanyInfo[]; -} diff --git a/src/api/resources/accounting/types/PaginatedContactList.ts b/src/api/resources/accounting/types/PaginatedContactList.ts deleted file mode 100644 index 3117afe64..000000000 --- a/src/api/resources/accounting/types/PaginatedContactList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedContactList { - next?: string; - previous?: string; - results?: Merge.accounting.Contact[]; -} diff --git a/src/api/resources/accounting/types/PaginatedCreditNoteList.ts b/src/api/resources/accounting/types/PaginatedCreditNoteList.ts deleted file mode 100644 index 4db86faff..000000000 --- a/src/api/resources/accounting/types/PaginatedCreditNoteList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedCreditNoteList { - next?: string; - previous?: string; - results?: Merge.accounting.CreditNote[]; -} diff --git a/src/api/resources/accounting/types/PaginatedEmployeeList.ts b/src/api/resources/accounting/types/PaginatedEmployeeList.ts deleted file mode 100644 index 4a2b72d55..000000000 --- a/src/api/resources/accounting/types/PaginatedEmployeeList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedEmployeeList { - next?: string; - previous?: string; - results?: Merge.accounting.Employee[]; -} diff --git a/src/api/resources/accounting/types/PaginatedExpenseList.ts b/src/api/resources/accounting/types/PaginatedExpenseList.ts deleted file mode 100644 index 0f53a6c80..000000000 --- a/src/api/resources/accounting/types/PaginatedExpenseList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedExpenseList { - next?: string; - previous?: string; - results?: Merge.accounting.Expense[]; -} diff --git a/src/api/resources/accounting/types/PaginatedExpenseReportLineList.ts b/src/api/resources/accounting/types/PaginatedExpenseReportLineList.ts deleted file mode 100644 index 3a3354390..000000000 --- a/src/api/resources/accounting/types/PaginatedExpenseReportLineList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedExpenseReportLineList { - next?: string; - previous?: string; - results?: Merge.accounting.ExpenseReportLine[]; -} diff --git a/src/api/resources/accounting/types/PaginatedExpenseReportList.ts b/src/api/resources/accounting/types/PaginatedExpenseReportList.ts deleted file mode 100644 index dc98b5df1..000000000 --- a/src/api/resources/accounting/types/PaginatedExpenseReportList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedExpenseReportList { - next?: string; - previous?: string; - results?: Merge.accounting.ExpenseReport[]; -} diff --git a/src/api/resources/accounting/types/PaginatedGeneralLedgerTransactionList.ts b/src/api/resources/accounting/types/PaginatedGeneralLedgerTransactionList.ts deleted file mode 100644 index 4b39e6b67..000000000 --- a/src/api/resources/accounting/types/PaginatedGeneralLedgerTransactionList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedGeneralLedgerTransactionList { - next?: string; - previous?: string; - results?: Merge.accounting.GeneralLedgerTransaction[]; -} diff --git a/src/api/resources/accounting/types/PaginatedIncomeStatementList.ts b/src/api/resources/accounting/types/PaginatedIncomeStatementList.ts deleted file mode 100644 index e47ea87a1..000000000 --- a/src/api/resources/accounting/types/PaginatedIncomeStatementList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedIncomeStatementList { - next?: string; - previous?: string; - results?: Merge.accounting.IncomeStatement[]; -} diff --git a/src/api/resources/accounting/types/PaginatedInvoiceList.ts b/src/api/resources/accounting/types/PaginatedInvoiceList.ts deleted file mode 100644 index f96e90e7e..000000000 --- a/src/api/resources/accounting/types/PaginatedInvoiceList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedInvoiceList { - next?: string; - previous?: string; - results?: Merge.accounting.Invoice[]; -} diff --git a/src/api/resources/accounting/types/PaginatedIssueList.ts b/src/api/resources/accounting/types/PaginatedIssueList.ts deleted file mode 100644 index 3ac5366d2..000000000 --- a/src/api/resources/accounting/types/PaginatedIssueList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedIssueList { - next?: string; - previous?: string; - results?: Merge.accounting.Issue[]; -} diff --git a/src/api/resources/accounting/types/PaginatedItemList.ts b/src/api/resources/accounting/types/PaginatedItemList.ts deleted file mode 100644 index be941a813..000000000 --- a/src/api/resources/accounting/types/PaginatedItemList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedItemList { - next?: string; - previous?: string; - results?: Merge.accounting.Item[]; -} diff --git a/src/api/resources/accounting/types/PaginatedJournalEntryList.ts b/src/api/resources/accounting/types/PaginatedJournalEntryList.ts deleted file mode 100644 index 5181586e3..000000000 --- a/src/api/resources/accounting/types/PaginatedJournalEntryList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedJournalEntryList { - next?: string; - previous?: string; - results?: Merge.accounting.JournalEntry[]; -} diff --git a/src/api/resources/accounting/types/PaginatedPaymentList.ts b/src/api/resources/accounting/types/PaginatedPaymentList.ts deleted file mode 100644 index 2c3e4aa3e..000000000 --- a/src/api/resources/accounting/types/PaginatedPaymentList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedPaymentList { - next?: string; - previous?: string; - results?: Merge.accounting.Payment[]; -} diff --git a/src/api/resources/accounting/types/PaginatedPaymentMethodList.ts b/src/api/resources/accounting/types/PaginatedPaymentMethodList.ts deleted file mode 100644 index 1101e2eb2..000000000 --- a/src/api/resources/accounting/types/PaginatedPaymentMethodList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedPaymentMethodList { - next?: string; - previous?: string; - results?: Merge.accounting.PaymentMethod[]; -} diff --git a/src/api/resources/accounting/types/PaginatedPaymentTermList.ts b/src/api/resources/accounting/types/PaginatedPaymentTermList.ts deleted file mode 100644 index c9dd068ee..000000000 --- a/src/api/resources/accounting/types/PaginatedPaymentTermList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedPaymentTermList { - next?: string; - previous?: string; - results?: Merge.accounting.PaymentTerm[]; -} diff --git a/src/api/resources/accounting/types/PaginatedProjectList.ts b/src/api/resources/accounting/types/PaginatedProjectList.ts deleted file mode 100644 index 03fa4fb9c..000000000 --- a/src/api/resources/accounting/types/PaginatedProjectList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedProjectList { - next?: string; - previous?: string; - results?: Merge.accounting.Project[]; -} diff --git a/src/api/resources/accounting/types/PaginatedPurchaseOrderList.ts b/src/api/resources/accounting/types/PaginatedPurchaseOrderList.ts deleted file mode 100644 index 7707691ac..000000000 --- a/src/api/resources/accounting/types/PaginatedPurchaseOrderList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedPurchaseOrderList { - next?: string; - previous?: string; - results?: Merge.accounting.PurchaseOrder[]; -} diff --git a/src/api/resources/accounting/types/PaginatedRemoteFieldClassList.ts b/src/api/resources/accounting/types/PaginatedRemoteFieldClassList.ts deleted file mode 100644 index 3d7f7dd02..000000000 --- a/src/api/resources/accounting/types/PaginatedRemoteFieldClassList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedRemoteFieldClassList { - next?: string; - previous?: string; - results?: Merge.accounting.RemoteFieldClass[]; -} diff --git a/src/api/resources/accounting/types/PaginatedSyncStatusList.ts b/src/api/resources/accounting/types/PaginatedSyncStatusList.ts deleted file mode 100644 index 3492081f0..000000000 --- a/src/api/resources/accounting/types/PaginatedSyncStatusList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedSyncStatusList { - next?: string; - previous?: string; - results?: Merge.accounting.SyncStatus[]; -} diff --git a/src/api/resources/accounting/types/PaginatedTaxRateList.ts b/src/api/resources/accounting/types/PaginatedTaxRateList.ts deleted file mode 100644 index 141b5f52d..000000000 --- a/src/api/resources/accounting/types/PaginatedTaxRateList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedTaxRateList { - next?: string; - previous?: string; - results?: Merge.accounting.TaxRate[]; -} diff --git a/src/api/resources/accounting/types/PaginatedTrackingCategoryList.ts b/src/api/resources/accounting/types/PaginatedTrackingCategoryList.ts deleted file mode 100644 index 9ba299606..000000000 --- a/src/api/resources/accounting/types/PaginatedTrackingCategoryList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedTrackingCategoryList { - next?: string; - previous?: string; - results?: Merge.accounting.TrackingCategory[]; -} diff --git a/src/api/resources/accounting/types/PaginatedTransactionList.ts b/src/api/resources/accounting/types/PaginatedTransactionList.ts deleted file mode 100644 index 809d8b3f3..000000000 --- a/src/api/resources/accounting/types/PaginatedTransactionList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedTransactionList { - next?: string; - previous?: string; - results?: Merge.accounting.Transaction[]; -} diff --git a/src/api/resources/accounting/types/PaginatedVendorCreditList.ts b/src/api/resources/accounting/types/PaginatedVendorCreditList.ts deleted file mode 100644 index 35bb34a84..000000000 --- a/src/api/resources/accounting/types/PaginatedVendorCreditList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedVendorCreditList { - next?: string; - previous?: string; - results?: Merge.accounting.VendorCredit[]; -} diff --git a/src/api/resources/accounting/types/PatchedContactRequest.ts b/src/api/resources/accounting/types/PatchedContactRequest.ts deleted file mode 100644 index b99d993ef..000000000 --- a/src/api/resources/accounting/types/PatchedContactRequest.ts +++ /dev/null @@ -1,44 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Contact Object - * ### Description - * A `Contact` is an individual or business entity to which products and services are sold to or purchased from. The `Contact` model contains both Customers, in which products and services are sold to, and Vendors (or Suppliers), in which products and services are purchased from. - * * A `Contact` is a Vendor/Supplier if the `is_supplier` property is true. - * * A `Contact` is a customer if the `is_customer` property is true. - * - * ### Usage Example - * Fetch from the `LIST Contacts` endpoint and view a company's contacts. - */ -export interface PatchedContactRequest { - /** The contact's name. */ - name?: string; - /** Whether the contact is a supplier. */ - isSupplier?: boolean; - /** Whether the contact is a customer. */ - isCustomer?: boolean; - /** The contact's email address. */ - emailAddress?: string; - /** The contact's tax number. */ - taxNumber?: string; - /** - * The contact's status - * - * * `ACTIVE` - ACTIVE - * * `ARCHIVED` - ARCHIVED - */ - status?: string; - /** 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)[]; - /** `AccountingPhoneNumber` object for the given `Contacts` object. */ - phoneNumbers?: Merge.accounting.AccountingPhoneNumberRequest[]; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.accounting.RemoteFieldRequest[]; -} diff --git a/src/api/resources/accounting/types/PatchedContactRequestAddressesItem.ts b/src/api/resources/accounting/types/PatchedContactRequestAddressesItem.ts deleted file mode 100644 index 7e350f14d..000000000 --- a/src/api/resources/accounting/types/PatchedContactRequestAddressesItem.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export type PatchedContactRequestAddressesItem = string | Merge.accounting.Address; diff --git a/src/api/resources/accounting/types/PatchedItemRequestRequest.ts b/src/api/resources/accounting/types/PatchedItemRequestRequest.ts deleted file mode 100644 index 62faeeb2b..000000000 --- a/src/api/resources/accounting/types/PatchedItemRequestRequest.ts +++ /dev/null @@ -1,48 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Item Object - * ### Description - * The `Item` object refers to the goods involved in a transaction. - * - * ### Usage Example - * Fetch from the `LIST Items` endpoint and view a company's items. - */ -export interface PatchedItemRequestRequest { - /** The item's name. */ - name?: string; - /** - * The item's status. - * - * * `ACTIVE` - ACTIVE - * * `ARCHIVED` - ARCHIVED - */ - status?: Merge.accounting.PatchedItemRequestRequestStatus; - /** - * The item's type. - * - * * `INVENTORY` - INVENTORY - * * `NON_INVENTORY` - NON_INVENTORY - * * `SERVICE` - SERVICE - * * `UNKNOWN` - UNKNOWN - */ - type?: Merge.accounting.PatchedItemRequestRequestType; - /** The item's unit price. */ - unitPrice?: number; - /** The price at which the item is purchased from a vendor. */ - purchasePrice?: number; - /** References the default account used to record a purchase of the item. */ - purchaseAccount?: string; - /** References the default account used to record a sale. */ - salesAccount?: string; - /** The company the item belongs to. */ - company?: string; - /** The default purchase tax rate for this item. */ - purchaseTaxRate?: string; - /** The default sales tax rate for this item. */ - salesTaxRate?: string; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/accounting/types/PatchedItemRequestRequestStatus.ts b/src/api/resources/accounting/types/PatchedItemRequestRequestStatus.ts deleted file mode 100644 index fa2ac0766..000000000 --- a/src/api/resources/accounting/types/PatchedItemRequestRequestStatus.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 item's status. - * - * * `ACTIVE` - ACTIVE - * * `ARCHIVED` - ARCHIVED - */ -export type PatchedItemRequestRequestStatus = Merge.accounting.Status7D1Enum | string; diff --git a/src/api/resources/accounting/types/PatchedItemRequestRequestType.ts b/src/api/resources/accounting/types/PatchedItemRequestRequestType.ts deleted file mode 100644 index 785dfd250..000000000 --- a/src/api/resources/accounting/types/PatchedItemRequestRequestType.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 item's type. - * - * * `INVENTORY` - INVENTORY - * * `NON_INVENTORY` - NON_INVENTORY - * * `SERVICE` - SERVICE - * * `UNKNOWN` - UNKNOWN - */ -export type PatchedItemRequestRequestType = Merge.accounting.Type2BbEnum | string; diff --git a/src/api/resources/accounting/types/PatchedPaymentRequest.ts b/src/api/resources/accounting/types/PatchedPaymentRequest.ts deleted file mode 100644 index 9d8b8c208..000000000 --- a/src/api/resources/accounting/types/PatchedPaymentRequest.ts +++ /dev/null @@ -1,354 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Payment Object - * ### Description - * The `Payment` object represents general payments made towards a specific transaction. - * - * ### Usage Example - * Fetch from the `GET Payment` endpoint and view an invoice's payment. - */ -export interface PatchedPaymentRequest { - /** The payment's transaction date. */ - transactionDate?: Date; - /** The supplier, or customer involved in the payment. */ - contact?: Merge.accounting.PatchedPaymentRequestContact; - /** The supplier’s or customer’s account in which the payment is made. */ - account?: Merge.accounting.PatchedPaymentRequestAccount; - /** The method which this payment was made by. */ - paymentMethod?: Merge.accounting.PatchedPaymentRequestPaymentMethod; - /** - * The payment'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.PatchedPaymentRequestCurrency; - /** The payment's exchange rate. */ - exchangeRate?: string; - /** The company the payment belongs to. */ - company?: Merge.accounting.PatchedPaymentRequestCompany; - /** The total amount of money being paid to the supplier, or customer, after taxes. */ - totalAmount?: number; - /** - * The type of the invoice. - * - * * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - * * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - */ - type?: Merge.accounting.PatchedPaymentRequestType; - trackingCategories?: (Merge.accounting.PatchedPaymentRequestTrackingCategoriesItem | undefined)[]; - /** The accounting period that the Payment was generated in. */ - accountingPeriod?: Merge.accounting.PatchedPaymentRequestAccountingPeriod; - /** A list of “Payment Applied to Lines” objects. */ - appliedToLines?: Merge.accounting.PatchedPaymentRequestAppliedToLinesItem[]; - 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/PatchedPaymentRequestAppliedToLinesItem.ts b/src/api/resources/accounting/types/PatchedPaymentRequestAppliedToLinesItem.ts deleted file mode 100644 index 765c75a87..000000000 --- a/src/api/resources/accounting/types/PatchedPaymentRequestAppliedToLinesItem.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 PatchedPaymentRequestAppliedToLinesItem = string | Merge.accounting.PaymentLineItemRequest; diff --git a/src/api/resources/accounting/types/PatchedPaymentRequestCompany.ts b/src/api/resources/accounting/types/PatchedPaymentRequestCompany.ts deleted file mode 100644 index e937c04ea..000000000 --- a/src/api/resources/accounting/types/PatchedPaymentRequestCompany.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 company the payment belongs to. - */ -export type PatchedPaymentRequestCompany = string | Merge.accounting.CompanyInfo; 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/PatchedPaymentRequestCurrency.ts b/src/api/resources/accounting/types/PatchedPaymentRequestCurrency.ts deleted file mode 100644 index 81de5dd71..000000000 --- a/src/api/resources/accounting/types/PatchedPaymentRequestCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The payment'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 PatchedPaymentRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; 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/PatchedPaymentRequestTrackingCategoriesItem.ts b/src/api/resources/accounting/types/PatchedPaymentRequestTrackingCategoriesItem.ts deleted file mode 100644 index 714fc6fb1..000000000 --- a/src/api/resources/accounting/types/PatchedPaymentRequestTrackingCategoriesItem.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 PatchedPaymentRequestTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/PatchedPaymentRequestType.ts b/src/api/resources/accounting/types/PatchedPaymentRequestType.ts deleted file mode 100644 index 78c6503d0..000000000 --- a/src/api/resources/accounting/types/PatchedPaymentRequestType.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 type of the invoice. - * - * * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - * * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - */ -export type PatchedPaymentRequestType = Merge.accounting.PaymentTypeEnum | string; diff --git a/src/api/resources/accounting/types/Payment.ts b/src/api/resources/accounting/types/Payment.ts deleted file mode 100644 index 7b02ae30c..000000000 --- a/src/api/resources/accounting/types/Payment.ts +++ /dev/null @@ -1,365 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Payment Object - * ### Description - * The `Payment` object represents general payments made towards a specific transaction. - * - * ### Usage Example - * Fetch from the `GET Payment` endpoint and view an invoice's payment. - */ -export interface Payment { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The payment's transaction date. */ - transactionDate?: Date; - /** The supplier, or customer involved in the payment. */ - contact?: Merge.accounting.PaymentContact; - /** The supplier’s or customer’s account in which the payment is made. */ - account?: Merge.accounting.PaymentAccount; - /** The method which this payment was made by. */ - paymentMethod?: Merge.accounting.PaymentPaymentMethod; - /** - * The payment'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.PaymentCurrency; - /** The payment's exchange rate. */ - exchangeRate?: string; - /** The company the payment belongs to. */ - company?: Merge.accounting.PaymentCompany; - /** The total amount of money being paid to the supplier, or customer, after taxes. */ - totalAmount?: number; - /** - * The type of the invoice. - * - * * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - * * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - */ - type?: Merge.accounting.PaymentType; - trackingCategories?: (Merge.accounting.PaymentTrackingCategoriesItem | undefined)[]; - /** The accounting period that the Payment was generated in. */ - accountingPeriod?: Merge.accounting.PaymentAccountingPeriod; - /** A list of “Payment Applied to Lines” objects. */ - appliedToLines?: Merge.accounting.PaymentAppliedToLinesItem[]; - /** When the third party's payment entry 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/PaymentAccount.ts b/src/api/resources/accounting/types/PaymentAccount.ts deleted file mode 100644 index 93e07b48f..000000000 --- a/src/api/resources/accounting/types/PaymentAccount.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 PaymentAccount = string | Merge.accounting.Account; diff --git a/src/api/resources/accounting/types/PaymentAccountingPeriod.ts b/src/api/resources/accounting/types/PaymentAccountingPeriod.ts deleted file mode 100644 index fa6bb41cd..000000000 --- a/src/api/resources/accounting/types/PaymentAccountingPeriod.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 PaymentAccountingPeriod = string | Merge.accounting.AccountingPeriod; diff --git a/src/api/resources/accounting/types/PaymentAppliedToLinesItem.ts b/src/api/resources/accounting/types/PaymentAppliedToLinesItem.ts deleted file mode 100644 index a9b13bb32..000000000 --- a/src/api/resources/accounting/types/PaymentAppliedToLinesItem.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 PaymentAppliedToLinesItem = string | Merge.accounting.PaymentLineItem; diff --git a/src/api/resources/accounting/types/PaymentCompany.ts b/src/api/resources/accounting/types/PaymentCompany.ts deleted file mode 100644 index 64e2f0aac..000000000 --- a/src/api/resources/accounting/types/PaymentCompany.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 company the payment belongs to. - */ -export type PaymentCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/PaymentContact.ts b/src/api/resources/accounting/types/PaymentContact.ts deleted file mode 100644 index fa8191980..000000000 --- a/src/api/resources/accounting/types/PaymentContact.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 PaymentContact = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/PaymentCurrency.ts b/src/api/resources/accounting/types/PaymentCurrency.ts deleted file mode 100644 index b93a397f5..000000000 --- a/src/api/resources/accounting/types/PaymentCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The payment'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 PaymentCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/PaymentLineItem.ts b/src/api/resources/accounting/types/PaymentLineItem.ts deleted file mode 100644 index 679c0eb9f..000000000 --- a/src/api/resources/accounting/types/PaymentLineItem.ts +++ /dev/null @@ -1,27 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * # The PaymentLineItem Object - * ### Description - * The `PaymentLineItem` object is an applied-to-line on a `Payment` that can either be a `Invoice`, `CreditNote`, or `JournalEntry`. - * - * ### Usage Example - * `Payment` will have a field called `applied-to-lines` which will be an array of `PaymentLineItemInternalMappingSerializer` objects that can either be a `Invoice`, `CreditNote`, or `JournalEntry`. - */ -export interface PaymentLineItem { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The amount being applied to the transaction. */ - appliedAmount?: string; - /** The date the payment portion is applied. */ - appliedDate?: Date; - /** The Merge ID of the transaction the payment portion is being applied to. */ - relatedObjectId?: string; - /** The type of transaction the payment portion is being applied to. Possible values include: INVOICE, JOURNAL_ENTRY, or CREDIT_NOTE. */ - relatedObjectType?: string; -} diff --git a/src/api/resources/accounting/types/PaymentLineItemRequest.ts b/src/api/resources/accounting/types/PaymentLineItemRequest.ts deleted file mode 100644 index 8a6c4dfcb..000000000 --- a/src/api/resources/accounting/types/PaymentLineItemRequest.ts +++ /dev/null @@ -1,27 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The PaymentLineItem Object - * ### Description - * The `PaymentLineItem` object is an applied-to-line on a `Payment` that can either be a `Invoice`, `CreditNote`, or `JournalEntry`. - * - * ### Usage Example - * `Payment` will have a field called `applied-to-lines` which will be an array of `PaymentLineItemInternalMappingSerializer` objects that can either be a `Invoice`, `CreditNote`, or `JournalEntry`. - */ -export interface PaymentLineItemRequest { - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The amount being applied to the transaction. */ - appliedAmount?: string; - /** The date the payment portion is applied. */ - appliedDate?: Date; - /** The Merge ID of the transaction the payment portion is being applied to. */ - relatedObjectId?: string; - /** The type of transaction the payment portion is being applied to. Possible values include: INVOICE, JOURNAL_ENTRY, or CREDIT_NOTE. */ - relatedObjectType?: string; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.accounting.RemoteFieldRequest[]; -} diff --git a/src/api/resources/accounting/types/PaymentMethod.ts b/src/api/resources/accounting/types/PaymentMethod.ts deleted file mode 100644 index 5472249e9..000000000 --- a/src/api/resources/accounting/types/PaymentMethod.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The PaymentMethod Object - * ### Description - * The `PaymentMethod` object defines how a payment against an invoice is made. - * - * ### Usage Example - * Fetch from the `GET PaymentMethod` endpoint and view payment method information. - */ -export interface PaymentMethod { - 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 type of the payment method. - * - * * `CREDIT_CARD` - CREDIT_CARD - * * `DEBIT_CARD` - DEBIT_CARD - * * `ACH` - ACH - * * `CASH` - CASH - * * `CHECK` - CHECK - */ - methodType: Merge.accounting.PaymentMethodMethodType; - /** The payment method’s name */ - name: string; - /** `True` if the payment method is active, `False` if not. */ - isActive?: boolean; - /** When the third party's payment method was updated. */ - remoteUpdatedAt?: Date; - fieldMappings?: Record; - remoteData?: Merge.accounting.RemoteData[]; -} diff --git a/src/api/resources/accounting/types/PaymentMethodMethodType.ts b/src/api/resources/accounting/types/PaymentMethodMethodType.ts deleted file mode 100644 index a2d54575c..000000000 --- a/src/api/resources/accounting/types/PaymentMethodMethodType.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The type of the payment method. - * - * * `CREDIT_CARD` - CREDIT_CARD - * * `DEBIT_CARD` - DEBIT_CARD - * * `ACH` - ACH - * * `CASH` - CASH - * * `CHECK` - CHECK - */ -export type PaymentMethodMethodType = Merge.accounting.MethodTypeEnum | string; diff --git a/src/api/resources/accounting/types/PaymentPaymentMethod.ts b/src/api/resources/accounting/types/PaymentPaymentMethod.ts deleted file mode 100644 index 2376117f1..000000000 --- a/src/api/resources/accounting/types/PaymentPaymentMethod.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 PaymentPaymentMethod = string | Merge.accounting.PaymentMethod; diff --git a/src/api/resources/accounting/types/PaymentRequest.ts b/src/api/resources/accounting/types/PaymentRequest.ts deleted file mode 100644 index 1008157da..000000000 --- a/src/api/resources/accounting/types/PaymentRequest.ts +++ /dev/null @@ -1,354 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Payment Object - * ### Description - * The `Payment` object represents general payments made towards a specific transaction. - * - * ### Usage Example - * Fetch from the `GET Payment` endpoint and view an invoice's payment. - */ -export interface PaymentRequest { - /** The payment's transaction date. */ - transactionDate?: Date; - /** The supplier, or customer involved in the payment. */ - contact?: Merge.accounting.PaymentRequestContact; - /** The supplier’s or customer’s account in which the payment is made. */ - account?: Merge.accounting.PaymentRequestAccount; - /** The method which this payment was made by. */ - paymentMethod?: Merge.accounting.PaymentRequestPaymentMethod; - /** - * The payment'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.PaymentRequestCurrency; - /** The payment's exchange rate. */ - exchangeRate?: string; - /** The company the payment belongs to. */ - company?: Merge.accounting.PaymentRequestCompany; - /** The total amount of money being paid to the supplier, or customer, after taxes. */ - totalAmount?: number; - /** - * The type of the invoice. - * - * * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - * * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - */ - type?: Merge.accounting.PaymentRequestType; - trackingCategories?: (Merge.accounting.PaymentRequestTrackingCategoriesItem | undefined)[]; - /** The accounting period that the Payment was generated in. */ - accountingPeriod?: Merge.accounting.PaymentRequestAccountingPeriod; - /** A list of “Payment Applied to Lines” objects. */ - appliedToLines?: Merge.accounting.PaymentRequestAppliedToLinesItem[]; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.accounting.RemoteFieldRequest[]; -} diff --git a/src/api/resources/accounting/types/PaymentRequestAccount.ts b/src/api/resources/accounting/types/PaymentRequestAccount.ts deleted file mode 100644 index b3f0a7fc1..000000000 --- a/src/api/resources/accounting/types/PaymentRequestAccount.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 PaymentRequestAccount = string | Merge.accounting.Account; diff --git a/src/api/resources/accounting/types/PaymentRequestAccountingPeriod.ts b/src/api/resources/accounting/types/PaymentRequestAccountingPeriod.ts deleted file mode 100644 index fed61381b..000000000 --- a/src/api/resources/accounting/types/PaymentRequestAccountingPeriod.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 PaymentRequestAccountingPeriod = string | Merge.accounting.AccountingPeriod; diff --git a/src/api/resources/accounting/types/PaymentRequestAppliedToLinesItem.ts b/src/api/resources/accounting/types/PaymentRequestAppliedToLinesItem.ts deleted file mode 100644 index b909039fb..000000000 --- a/src/api/resources/accounting/types/PaymentRequestAppliedToLinesItem.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 PaymentRequestAppliedToLinesItem = string | Merge.accounting.PaymentLineItemRequest; diff --git a/src/api/resources/accounting/types/PaymentRequestCompany.ts b/src/api/resources/accounting/types/PaymentRequestCompany.ts deleted file mode 100644 index 734183f42..000000000 --- a/src/api/resources/accounting/types/PaymentRequestCompany.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 company the payment belongs to. - */ -export type PaymentRequestCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/PaymentRequestContact.ts b/src/api/resources/accounting/types/PaymentRequestContact.ts deleted file mode 100644 index 8db3a6e4b..000000000 --- a/src/api/resources/accounting/types/PaymentRequestContact.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 PaymentRequestContact = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/PaymentRequestCurrency.ts b/src/api/resources/accounting/types/PaymentRequestCurrency.ts deleted file mode 100644 index bca1757e5..000000000 --- a/src/api/resources/accounting/types/PaymentRequestCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The payment'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 PaymentRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/PaymentRequestPaymentMethod.ts b/src/api/resources/accounting/types/PaymentRequestPaymentMethod.ts deleted file mode 100644 index 2961dea2b..000000000 --- a/src/api/resources/accounting/types/PaymentRequestPaymentMethod.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 PaymentRequestPaymentMethod = string | Merge.accounting.PaymentMethod; diff --git a/src/api/resources/accounting/types/PaymentRequestTrackingCategoriesItem.ts b/src/api/resources/accounting/types/PaymentRequestTrackingCategoriesItem.ts deleted file mode 100644 index 9d98e44a9..000000000 --- a/src/api/resources/accounting/types/PaymentRequestTrackingCategoriesItem.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 PaymentRequestTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/PaymentRequestType.ts b/src/api/resources/accounting/types/PaymentRequestType.ts deleted file mode 100644 index f01a944b9..000000000 --- a/src/api/resources/accounting/types/PaymentRequestType.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 type of the invoice. - * - * * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - * * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - */ -export type PaymentRequestType = Merge.accounting.PaymentTypeEnum | string; diff --git a/src/api/resources/accounting/types/PaymentResponse.ts b/src/api/resources/accounting/types/PaymentResponse.ts deleted file mode 100644 index 13d67cdd9..000000000 --- a/src/api/resources/accounting/types/PaymentResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaymentResponse { - model: Merge.accounting.Payment; - warnings: Merge.accounting.WarningValidationProblem[]; - errors: Merge.accounting.ErrorValidationProblem[]; - logs?: Merge.accounting.DebugModeLog[]; -} diff --git a/src/api/resources/accounting/types/PaymentTerm.ts b/src/api/resources/accounting/types/PaymentTerm.ts deleted file mode 100644 index 8650432da..000000000 --- a/src/api/resources/accounting/types/PaymentTerm.ts +++ /dev/null @@ -1,36 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The PaymentTerm Object - * ### Description - * The `PaymentTerm` object is the agreed-upon conditions between a buyer and a seller that define the timing, - * amount, and conditions under which payment for goods or services must be made. - * - * ### Usage Example - * Fetch from the `GET PaymentTerm` endpoint and view payment term information. - */ -export interface PaymentTerm { - 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 name of the payment term. */ - name: string; - /** `True` if the payment term is active, `False` if not. */ - isActive?: boolean; - /** The subsidiary that the payment term belongs to. */ - company?: Merge.accounting.PaymentTermCompany; - /** The number of days after the invoice date that payment is due. */ - daysUntilDue?: number; - /** The number of days the invoice must be paid before discounts expire. */ - discountDays?: number; - /** When the third party's payment term was modified. */ - remoteLastModifiedAt?: Date; - fieldMappings?: Record; - remoteData?: Merge.accounting.RemoteData[]; -} diff --git a/src/api/resources/accounting/types/PaymentTermCompany.ts b/src/api/resources/accounting/types/PaymentTermCompany.ts deleted file mode 100644 index 8bfea7865..000000000 --- a/src/api/resources/accounting/types/PaymentTermCompany.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 subsidiary that the payment term belongs to. - */ -export type PaymentTermCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/PaymentTrackingCategoriesItem.ts b/src/api/resources/accounting/types/PaymentTrackingCategoriesItem.ts deleted file mode 100644 index 491ea26c1..000000000 --- a/src/api/resources/accounting/types/PaymentTrackingCategoriesItem.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 PaymentTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/PaymentType.ts b/src/api/resources/accounting/types/PaymentType.ts deleted file mode 100644 index b098f6d26..000000000 --- a/src/api/resources/accounting/types/PaymentType.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 type of the invoice. - * - * * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - * * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - */ -export type PaymentType = Merge.accounting.PaymentTypeEnum | string; diff --git a/src/api/resources/accounting/types/PaymentTypeEnum.ts b/src/api/resources/accounting/types/PaymentTypeEnum.ts deleted file mode 100644 index 418b40571..000000000 --- a/src/api/resources/accounting/types/PaymentTypeEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE - * * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE - */ -export const PaymentTypeEnum = { - AccountsPayable: "ACCOUNTS_PAYABLE", - AccountsReceivable: "ACCOUNTS_RECEIVABLE", -} as const; -export type PaymentTypeEnum = (typeof PaymentTypeEnum)[keyof typeof PaymentTypeEnum]; diff --git a/src/api/resources/accounting/types/PostingStatusEnum.ts b/src/api/resources/accounting/types/PostingStatusEnum.ts deleted file mode 100644 index b3928b7e2..000000000 --- a/src/api/resources/accounting/types/PostingStatusEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `UNPOSTED` - UNPOSTED - * * `POSTED` - POSTED - */ -export const PostingStatusEnum = { - Unposted: "UNPOSTED", - Posted: "POSTED", -} as const; -export type PostingStatusEnum = (typeof PostingStatusEnum)[keyof typeof PostingStatusEnum]; diff --git a/src/api/resources/accounting/types/Project.ts b/src/api/resources/accounting/types/Project.ts deleted file mode 100644 index f4bd35be7..000000000 --- a/src/api/resources/accounting/types/Project.ts +++ /dev/null @@ -1,32 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Project Object - * ### Description - * The `Project` object is used to track and manage time, costs, resources, and revenue for specific initiatives or work efforts. - * It provides classification on transactions for allocating expenses, revenue, and activities to a specific project for financial reporting. - * - * ### Usage Example - * Fetch from the `GET Project` endpoint and view project information. - */ -export interface Project { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The project’s name */ - name: string; - /** `True` if the project is active, `False` if the project is not active. */ - isActive?: boolean; - /** The subsidiary that the project belongs to. */ - company?: Merge.accounting.ProjectCompany; - /** The supplier, or customer involved in the project. */ - contact?: Merge.accounting.ProjectContact; - fieldMappings?: Record; - remoteData?: Merge.accounting.RemoteData[]; -} diff --git a/src/api/resources/accounting/types/ProjectCompany.ts b/src/api/resources/accounting/types/ProjectCompany.ts deleted file mode 100644 index e36eb1c5b..000000000 --- a/src/api/resources/accounting/types/ProjectCompany.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 subsidiary that the project belongs to. - */ -export type ProjectCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/ProjectContact.ts b/src/api/resources/accounting/types/ProjectContact.ts deleted file mode 100644 index 648aa85d4..000000000 --- a/src/api/resources/accounting/types/ProjectContact.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 project. - */ -export type ProjectContact = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/PurchaseOrder.ts b/src/api/resources/accounting/types/PurchaseOrder.ts deleted file mode 100644 index b13b1eaee..000000000 --- a/src/api/resources/accounting/types/PurchaseOrder.ts +++ /dev/null @@ -1,381 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The PurchaseOrder Object - * ### Description - * A `PurchaseOrder` represents a request to purchase goods or services from a vendor. It outlines the details of the purchase, such as the items or services requested, quantities, prices, and delivery details. - * - * A `PurchaseOrder` is a crucial component of the procurement process, but does not typically result in any impact on the company’s general ledger. The general ledger is typically only affected when the `PurchaseOrder` is fulfilled as an *Accounts Payable* `Invoice` object (also known as a Bill). - * - * ### Usage Example - * Fetch from the `LIST PurchaseOrders` endpoint and view a company's purchase orders. - */ -export interface PurchaseOrder { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** - * The purchase order's status. - * - * * `DRAFT` - DRAFT - * * `SUBMITTED` - SUBMITTED - * * `AUTHORIZED` - AUTHORIZED - * * `BILLED` - BILLED - * * `DELETED` - DELETED - */ - status?: Merge.accounting.PurchaseOrderStatus; - /** The purchase order's issue date. */ - issueDate?: Date; - /** The human-readable number of the purchase order. */ - purchaseOrderNumber?: string; - /** The purchase order's delivery date. */ - deliveryDate?: Date; - /** The purchase order's delivery address. */ - deliveryAddress?: Merge.accounting.PurchaseOrderDeliveryAddress; - /** The contact making the purchase order. */ - customer?: string; - /** The party fulfilling the purchase order. */ - vendor?: Merge.accounting.PurchaseOrderVendor; - /** A memo attached to the purchase order. */ - memo?: string; - /** The company the purchase order belongs to. */ - company?: Merge.accounting.PurchaseOrderCompany; - /** The purchase order's total amount. */ - totalAmount?: number; - /** - * The purchase order'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.PurchaseOrderCurrency; - /** The purchase order's exchange rate. */ - exchangeRate?: string; - /** The payment term that applies to this transaction. */ - paymentTerm?: Merge.accounting.PurchaseOrderPaymentTerm; - lineItems?: Merge.accounting.PurchaseOrderLineItem[]; - /** If the transaction is inclusive or exclusive of tax. `True` if inclusive, `False` if exclusive. */ - inclusiveOfTax?: boolean; - trackingCategories?: (Merge.accounting.PurchaseOrderTrackingCategoriesItem | undefined)[]; - /** The accounting period that the PurchaseOrder was generated in. */ - accountingPeriod?: Merge.accounting.PurchaseOrderAccountingPeriod; - /** When the third party's purchase order note was created. */ - remoteCreatedAt?: Date; - /** When the third party's purchase order note 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/PurchaseOrderAccountingPeriod.ts b/src/api/resources/accounting/types/PurchaseOrderAccountingPeriod.ts deleted file mode 100644 index b137c9ede..000000000 --- a/src/api/resources/accounting/types/PurchaseOrderAccountingPeriod.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 PurchaseOrder was generated in. - */ -export type PurchaseOrderAccountingPeriod = string | Merge.accounting.AccountingPeriod; diff --git a/src/api/resources/accounting/types/PurchaseOrderCompany.ts b/src/api/resources/accounting/types/PurchaseOrderCompany.ts deleted file mode 100644 index 279142dde..000000000 --- a/src/api/resources/accounting/types/PurchaseOrderCompany.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 company the purchase order belongs to. - */ -export type PurchaseOrderCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/PurchaseOrderCurrency.ts b/src/api/resources/accounting/types/PurchaseOrderCurrency.ts deleted file mode 100644 index 023573e9f..000000000 --- a/src/api/resources/accounting/types/PurchaseOrderCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The purchase order'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 PurchaseOrderCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/PurchaseOrderDeliveryAddress.ts b/src/api/resources/accounting/types/PurchaseOrderDeliveryAddress.ts deleted file mode 100644 index 0163916d5..000000000 --- a/src/api/resources/accounting/types/PurchaseOrderDeliveryAddress.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 purchase order's delivery address. - */ -export type PurchaseOrderDeliveryAddress = string | Merge.accounting.Address; diff --git a/src/api/resources/accounting/types/PurchaseOrderLineItem.ts b/src/api/resources/accounting/types/PurchaseOrderLineItem.ts deleted file mode 100644 index ec9890fcf..000000000 --- a/src/api/resources/accounting/types/PurchaseOrderLineItem.ts +++ /dev/null @@ -1,358 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The PurchaseOrderLineItem Object - * ### Description - * The `PurchaseOrderLineItem` object is used to represent a purchase order's line item. - * - * ### Usage Example - * Fetch from the `GET PurchaseOrder` endpoint and view a company's purchase orders. - */ -export interface PurchaseOrderLineItem { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** A description of the good being purchased. */ - description?: string; - /** The line item's unit price. */ - unitPrice?: number; - /** The line item's quantity. */ - quantity?: number; - item?: Merge.accounting.PurchaseOrderLineItemItem; - /** The purchase order line item's account. */ - account?: string; - /** The purchase order line item's associated tracking category. */ - trackingCategory?: string; - /** The purchase order line item's associated tracking categories. */ - trackingCategories?: (string | undefined)[]; - /** The purchase order line item's tax amount. */ - taxAmount?: string; - /** The purchase order line item's total amount. */ - totalLineAmount?: string; - /** - * The purchase order line item'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.PurchaseOrderLineItemCurrency; - /** The tax rate that applies to this line item. */ - taxRate?: string; - /** The purchase order line item's exchange rate. */ - exchangeRate?: string; - /** The company the purchase order line 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/). */ - remoteWasDeleted?: boolean; - remoteFields?: Merge.accounting.RemoteField[]; -} diff --git a/src/api/resources/accounting/types/PurchaseOrderLineItemCurrency.ts b/src/api/resources/accounting/types/PurchaseOrderLineItemCurrency.ts deleted file mode 100644 index 744b0bb8a..000000000 --- a/src/api/resources/accounting/types/PurchaseOrderLineItemCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The purchase order line item'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 PurchaseOrderLineItemCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/PurchaseOrderLineItemItem.ts b/src/api/resources/accounting/types/PurchaseOrderLineItemItem.ts deleted file mode 100644 index 5f9a27900..000000000 --- a/src/api/resources/accounting/types/PurchaseOrderLineItemItem.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 PurchaseOrderLineItemItem = string | Merge.accounting.Item; diff --git a/src/api/resources/accounting/types/PurchaseOrderLineItemRequest.ts b/src/api/resources/accounting/types/PurchaseOrderLineItemRequest.ts deleted file mode 100644 index d0bd86f7e..000000000 --- a/src/api/resources/accounting/types/PurchaseOrderLineItemRequest.ts +++ /dev/null @@ -1,353 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The PurchaseOrderLineItem Object - * ### Description - * The `PurchaseOrderLineItem` object is used to represent a purchase order's line item. - * - * ### Usage Example - * Fetch from the `GET PurchaseOrder` endpoint and view a company's purchase orders. - */ -export interface PurchaseOrderLineItemRequest { - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** A description of the good being purchased. */ - description?: string; - /** The line item's unit price. */ - unitPrice?: number; - /** The line item's quantity. */ - quantity?: number; - item?: Merge.accounting.PurchaseOrderLineItemRequestItem; - /** The purchase order line item's account. */ - account?: string; - /** The purchase order line item's associated tracking category. */ - trackingCategory?: string; - /** The purchase order line item's associated tracking categories. */ - trackingCategories?: (string | undefined)[]; - /** The purchase order line item's tax amount. */ - taxAmount?: string; - /** The purchase order line item's total amount. */ - totalLineAmount?: string; - /** - * The purchase order line item'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.PurchaseOrderLineItemRequestCurrency; - /** The tax rate that applies to this line item. */ - taxRate?: string; - /** The purchase order line item's exchange rate. */ - exchangeRate?: string; - /** The company the purchase order line item belongs to. */ - company?: string; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.accounting.RemoteFieldRequest[]; -} diff --git a/src/api/resources/accounting/types/PurchaseOrderLineItemRequestCurrency.ts b/src/api/resources/accounting/types/PurchaseOrderLineItemRequestCurrency.ts deleted file mode 100644 index 6f57122e1..000000000 --- a/src/api/resources/accounting/types/PurchaseOrderLineItemRequestCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The purchase order line item'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 PurchaseOrderLineItemRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/PurchaseOrderLineItemRequestItem.ts b/src/api/resources/accounting/types/PurchaseOrderLineItemRequestItem.ts deleted file mode 100644 index 111ae2497..000000000 --- a/src/api/resources/accounting/types/PurchaseOrderLineItemRequestItem.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 PurchaseOrderLineItemRequestItem = string | Merge.accounting.Item; diff --git a/src/api/resources/accounting/types/PurchaseOrderPaymentTerm.ts b/src/api/resources/accounting/types/PurchaseOrderPaymentTerm.ts deleted file mode 100644 index 76725179c..000000000 --- a/src/api/resources/accounting/types/PurchaseOrderPaymentTerm.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 payment term that applies to this transaction. - */ -export type PurchaseOrderPaymentTerm = string | Merge.accounting.PaymentTerm; diff --git a/src/api/resources/accounting/types/PurchaseOrderRequest.ts b/src/api/resources/accounting/types/PurchaseOrderRequest.ts deleted file mode 100644 index 721effc4d..000000000 --- a/src/api/resources/accounting/types/PurchaseOrderRequest.ts +++ /dev/null @@ -1,362 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The PurchaseOrder Object - * ### Description - * The `PurchaseOrder` object is a record of request for a product or service between a buyer and seller. - * - * ### Usage Example - * Fetch from the `LIST PurchaseOrders` endpoint and view a company's purchase orders. - */ -export interface PurchaseOrderRequest { - /** - * The purchase order's status. - * - * * `DRAFT` - DRAFT - * * `SUBMITTED` - SUBMITTED - * * `AUTHORIZED` - AUTHORIZED - * * `BILLED` - BILLED - * * `DELETED` - DELETED - */ - status?: Merge.accounting.PurchaseOrderRequestStatus; - /** The purchase order's issue date. */ - issueDate?: Date; - /** The purchase order's delivery date. */ - deliveryDate?: Date; - /** The purchase order's delivery address. */ - deliveryAddress?: Merge.accounting.PurchaseOrderRequestDeliveryAddress; - /** The contact making the purchase order. */ - customer?: string; - /** The party fulfilling the purchase order. */ - vendor?: Merge.accounting.PurchaseOrderRequestVendor; - /** A memo attached to the purchase order. */ - memo?: string; - /** The company the purchase order belongs to. */ - company?: Merge.accounting.PurchaseOrderRequestCompany; - /** The purchase order's total amount. */ - totalAmount?: number; - /** The payment term that applies to this transaction. */ - paymentTerm?: Merge.accounting.PurchaseOrderRequestPaymentTerm; - /** - * The purchase order'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.PurchaseOrderRequestCurrency; - /** If the transaction is inclusive or exclusive of tax. `True` if inclusive, `False` if exclusive. */ - inclusiveOfTax?: boolean; - /** The purchase order's exchange rate. */ - exchangeRate?: string; - trackingCategories?: (Merge.accounting.PurchaseOrderRequestTrackingCategoriesItem | undefined)[]; - lineItems?: Merge.accounting.PurchaseOrderLineItemRequest[]; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.accounting.RemoteFieldRequest[]; -} diff --git a/src/api/resources/accounting/types/PurchaseOrderRequestCompany.ts b/src/api/resources/accounting/types/PurchaseOrderRequestCompany.ts deleted file mode 100644 index 3405bea3e..000000000 --- a/src/api/resources/accounting/types/PurchaseOrderRequestCompany.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 company the purchase order belongs to. - */ -export type PurchaseOrderRequestCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/PurchaseOrderRequestCurrency.ts b/src/api/resources/accounting/types/PurchaseOrderRequestCurrency.ts deleted file mode 100644 index 4cb6c9d7d..000000000 --- a/src/api/resources/accounting/types/PurchaseOrderRequestCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The purchase order'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 PurchaseOrderRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/PurchaseOrderRequestDeliveryAddress.ts b/src/api/resources/accounting/types/PurchaseOrderRequestDeliveryAddress.ts deleted file mode 100644 index d590d3ff9..000000000 --- a/src/api/resources/accounting/types/PurchaseOrderRequestDeliveryAddress.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 purchase order's delivery address. - */ -export type PurchaseOrderRequestDeliveryAddress = string | Merge.accounting.Address; diff --git a/src/api/resources/accounting/types/PurchaseOrderRequestPaymentTerm.ts b/src/api/resources/accounting/types/PurchaseOrderRequestPaymentTerm.ts deleted file mode 100644 index 97ed34bd5..000000000 --- a/src/api/resources/accounting/types/PurchaseOrderRequestPaymentTerm.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 payment term that applies to this transaction. - */ -export type PurchaseOrderRequestPaymentTerm = string | Merge.accounting.PaymentTerm; diff --git a/src/api/resources/accounting/types/PurchaseOrderRequestStatus.ts b/src/api/resources/accounting/types/PurchaseOrderRequestStatus.ts deleted file mode 100644 index 30489378e..000000000 --- a/src/api/resources/accounting/types/PurchaseOrderRequestStatus.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The purchase order's status. - * - * * `DRAFT` - DRAFT - * * `SUBMITTED` - SUBMITTED - * * `AUTHORIZED` - AUTHORIZED - * * `BILLED` - BILLED - * * `DELETED` - DELETED - */ -export type PurchaseOrderRequestStatus = Merge.accounting.PurchaseOrderStatusEnum | string; diff --git a/src/api/resources/accounting/types/PurchaseOrderRequestTrackingCategoriesItem.ts b/src/api/resources/accounting/types/PurchaseOrderRequestTrackingCategoriesItem.ts deleted file mode 100644 index cefc28617..000000000 --- a/src/api/resources/accounting/types/PurchaseOrderRequestTrackingCategoriesItem.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 PurchaseOrderRequestTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/PurchaseOrderRequestVendor.ts b/src/api/resources/accounting/types/PurchaseOrderRequestVendor.ts deleted file mode 100644 index 7f03a26bc..000000000 --- a/src/api/resources/accounting/types/PurchaseOrderRequestVendor.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 party fulfilling the purchase order. - */ -export type PurchaseOrderRequestVendor = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/PurchaseOrderResponse.ts b/src/api/resources/accounting/types/PurchaseOrderResponse.ts deleted file mode 100644 index 37ef28f79..000000000 --- a/src/api/resources/accounting/types/PurchaseOrderResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PurchaseOrderResponse { - model: Merge.accounting.PurchaseOrder; - warnings: Merge.accounting.WarningValidationProblem[]; - errors: Merge.accounting.ErrorValidationProblem[]; - logs?: Merge.accounting.DebugModeLog[]; -} diff --git a/src/api/resources/accounting/types/PurchaseOrderStatus.ts b/src/api/resources/accounting/types/PurchaseOrderStatus.ts deleted file mode 100644 index 044ced572..000000000 --- a/src/api/resources/accounting/types/PurchaseOrderStatus.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The purchase order's status. - * - * * `DRAFT` - DRAFT - * * `SUBMITTED` - SUBMITTED - * * `AUTHORIZED` - AUTHORIZED - * * `BILLED` - BILLED - * * `DELETED` - DELETED - */ -export type PurchaseOrderStatus = Merge.accounting.PurchaseOrderStatusEnum | string; diff --git a/src/api/resources/accounting/types/PurchaseOrderStatusEnum.ts b/src/api/resources/accounting/types/PurchaseOrderStatusEnum.ts deleted file mode 100644 index 9b15d9eb3..000000000 --- a/src/api/resources/accounting/types/PurchaseOrderStatusEnum.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `DRAFT` - DRAFT - * * `SUBMITTED` - SUBMITTED - * * `AUTHORIZED` - AUTHORIZED - * * `BILLED` - BILLED - * * `DELETED` - DELETED - */ -export const PurchaseOrderStatusEnum = { - Draft: "DRAFT", - Submitted: "SUBMITTED", - Authorized: "AUTHORIZED", - Billed: "BILLED", - Deleted: "DELETED", -} as const; -export type PurchaseOrderStatusEnum = (typeof PurchaseOrderStatusEnum)[keyof typeof PurchaseOrderStatusEnum]; diff --git a/src/api/resources/accounting/types/PurchaseOrderTrackingCategoriesItem.ts b/src/api/resources/accounting/types/PurchaseOrderTrackingCategoriesItem.ts deleted file mode 100644 index 2ac323a55..000000000 --- a/src/api/resources/accounting/types/PurchaseOrderTrackingCategoriesItem.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 PurchaseOrderTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/PurchaseOrderVendor.ts b/src/api/resources/accounting/types/PurchaseOrderVendor.ts deleted file mode 100644 index fcc2d05f1..000000000 --- a/src/api/resources/accounting/types/PurchaseOrderVendor.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 party fulfilling the purchase order. - */ -export type PurchaseOrderVendor = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/RemoteData.ts b/src/api/resources/accounting/types/RemoteData.ts deleted file mode 100644 index 3fad40786..000000000 --- a/src/api/resources/accounting/types/RemoteData.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * # The RemoteData Object - * ### Description - * The `RemoteData` object is used to represent the full data pulled from the third-party API for an object. - * - * ### Usage Example - * TODO - */ -export interface RemoteData { - /** The third-party API path that is being called. */ - path: string; - /** The data returned from the third-party for this object in its original, unnormalized format. */ - data?: unknown; -} diff --git a/src/api/resources/accounting/types/RemoteEndpointInfo.ts b/src/api/resources/accounting/types/RemoteEndpointInfo.ts deleted file mode 100644 index f28a1667a..000000000 --- a/src/api/resources/accounting/types/RemoteEndpointInfo.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface RemoteEndpointInfo { - method: string; - urlPath: string; - fieldTraversalPath: unknown[]; -} diff --git a/src/api/resources/accounting/types/RemoteField.ts b/src/api/resources/accounting/types/RemoteField.ts deleted file mode 100644 index 99a11cae3..000000000 --- a/src/api/resources/accounting/types/RemoteField.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface RemoteField { - remoteFieldClass: Merge.accounting.RemoteFieldRemoteFieldClass; - value?: unknown; -} diff --git a/src/api/resources/accounting/types/RemoteFieldApi.ts b/src/api/resources/accounting/types/RemoteFieldApi.ts deleted file mode 100644 index 65692ecd8..000000000 --- a/src/api/resources/accounting/types/RemoteFieldApi.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface RemoteFieldApi { - schema: Record; - remoteKeyName: string; - remoteEndpointInfo: Merge.accounting.RemoteEndpointInfo; - exampleValues?: unknown[]; - advancedMetadata?: Merge.accounting.AdvancedMetadata; - coverage?: Merge.accounting.RemoteFieldApiCoverage; -} diff --git a/src/api/resources/accounting/types/RemoteFieldApiCoverage.ts b/src/api/resources/accounting/types/RemoteFieldApiCoverage.ts deleted file mode 100644 index 3691c464e..000000000 --- a/src/api/resources/accounting/types/RemoteFieldApiCoverage.ts +++ /dev/null @@ -1,3 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export type RemoteFieldApiCoverage = number | number; diff --git a/src/api/resources/accounting/types/RemoteFieldApiResponse.ts b/src/api/resources/accounting/types/RemoteFieldApiResponse.ts deleted file mode 100644 index 3403713a8..000000000 --- a/src/api/resources/accounting/types/RemoteFieldApiResponse.ts +++ /dev/null @@ -1,31 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface RemoteFieldApiResponse { - account?: Merge.accounting.RemoteFieldApi[]; - accountingAttachment?: Merge.accounting.RemoteFieldApi[]; - balanceSheet?: Merge.accounting.RemoteFieldApi[]; - cashFlowStatement?: Merge.accounting.RemoteFieldApi[]; - companyInfo?: Merge.accounting.RemoteFieldApi[]; - contact?: Merge.accounting.RemoteFieldApi[]; - incomeStatement?: Merge.accounting.RemoteFieldApi[]; - creditNote?: Merge.accounting.RemoteFieldApi[]; - item?: Merge.accounting.RemoteFieldApi[]; - purchaseOrder?: Merge.accounting.RemoteFieldApi[]; - trackingCategory?: Merge.accounting.RemoteFieldApi[]; - journalEntry?: Merge.accounting.RemoteFieldApi[]; - taxRate?: Merge.accounting.RemoteFieldApi[]; - invoice?: Merge.accounting.RemoteFieldApi[]; - payment?: Merge.accounting.RemoteFieldApi[]; - expense?: Merge.accounting.RemoteFieldApi[]; - vendorCredit?: Merge.accounting.RemoteFieldApi[]; - transaction?: Merge.accounting.RemoteFieldApi[]; - accountingPeriod?: Merge.accounting.RemoteFieldApi[]; - generalLedgerTransaction?: Merge.accounting.RemoteFieldApi[]; - bankFeedAccount?: Merge.accounting.RemoteFieldApi[]; - employee?: Merge.accounting.RemoteFieldApi[]; - paymentMethod?: Merge.accounting.RemoteFieldApi[]; - project?: Merge.accounting.RemoteFieldApi[]; - paymentTerm?: Merge.accounting.RemoteFieldApi[]; -} diff --git a/src/api/resources/accounting/types/RemoteFieldClass.ts b/src/api/resources/accounting/types/RemoteFieldClass.ts deleted file mode 100644 index 65aa4b378..000000000 --- a/src/api/resources/accounting/types/RemoteFieldClass.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface RemoteFieldClass { - id?: string; - displayName?: string; - remoteKeyName?: string; - description?: string; - isCustom?: boolean; - isCommonModelField?: boolean; - isRequired?: boolean; - fieldType?: Merge.accounting.FieldTypeEnum; - fieldFormat?: Merge.accounting.FieldFormatEnum; - fieldChoices?: string[]; - itemSchema?: Merge.accounting.ItemSchema; -} diff --git a/src/api/resources/accounting/types/RemoteFieldRemoteFieldClass.ts b/src/api/resources/accounting/types/RemoteFieldRemoteFieldClass.ts deleted file mode 100644 index 9eaa23405..000000000 --- a/src/api/resources/accounting/types/RemoteFieldRemoteFieldClass.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 RemoteFieldRemoteFieldClass = string | Merge.accounting.RemoteFieldClass; diff --git a/src/api/resources/accounting/types/RemoteFieldRequest.ts b/src/api/resources/accounting/types/RemoteFieldRequest.ts deleted file mode 100644 index cd70a0eb7..000000000 --- a/src/api/resources/accounting/types/RemoteFieldRequest.ts +++ /dev/null @@ -1,8 +0,0 @@ -// 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; -} diff --git a/src/api/resources/accounting/types/RemoteFieldRequestRemoteFieldClass.ts b/src/api/resources/accounting/types/RemoteFieldRequestRemoteFieldClass.ts deleted file mode 100644 index d9c5ca6aa..000000000 --- a/src/api/resources/accounting/types/RemoteFieldRequestRemoteFieldClass.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 RemoteFieldRequestRemoteFieldClass = string | Merge.accounting.RemoteFieldClass; diff --git a/src/api/resources/accounting/types/RemoteKey.ts b/src/api/resources/accounting/types/RemoteKey.ts deleted file mode 100644 index 04d86d608..000000000 --- a/src/api/resources/accounting/types/RemoteKey.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * # The RemoteKey Object - * ### Description - * The `RemoteKey` object is used to represent a request for a new remote key. - * - * ### Usage Example - * Post a `GenerateRemoteKey` to receive a new `RemoteKey`. - */ -export interface RemoteKey { - name: string; - key: string; -} diff --git a/src/api/resources/accounting/types/RemoteResponse.ts b/src/api/resources/accounting/types/RemoteResponse.ts deleted file mode 100644 index dc7edf9e7..000000000 --- a/src/api/resources/accounting/types/RemoteResponse.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The RemoteResponse Object - * ### Description - * The `RemoteResponse` object is used to represent information returned from a third-party endpoint. - * - * ### Usage Example - * View the `RemoteResponse` returned from your `DataPassthrough`. - */ -export interface RemoteResponse { - method: string; - path: string; - status: number; - response?: unknown; - responseHeaders?: Record; - responseType?: Merge.accounting.ResponseTypeEnum; - headers?: Record; -} diff --git a/src/api/resources/accounting/types/ReportItem.ts b/src/api/resources/accounting/types/ReportItem.ts deleted file mode 100644 index 27e32e28d..000000000 --- a/src/api/resources/accounting/types/ReportItem.ts +++ /dev/null @@ -1,27 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * # The ReportItem Object - * ### Description - * The `ReportItem` object is used to represent a report item for a Balance Sheet, Cash Flow Statement or Profit and Loss Report. - * - * ### Usage Example - * Fetch from the `GET BalanceSheet` endpoint and view the balance sheet's report items. - */ -export interface ReportItem { - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The report item's name. */ - name?: string; - /** The report item's value. */ - value?: number; - 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/). */ - remoteWasDeleted?: boolean; -} diff --git a/src/api/resources/accounting/types/RequestFormatEnum.ts b/src/api/resources/accounting/types/RequestFormatEnum.ts deleted file mode 100644 index 2673da47f..000000000 --- a/src/api/resources/accounting/types/RequestFormatEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `JSON` - JSON - * * `XML` - XML - * * `MULTIPART` - MULTIPART - */ -export const RequestFormatEnum = { - Json: "JSON", - Xml: "XML", - Multipart: "MULTIPART", -} as const; -export type RequestFormatEnum = (typeof RequestFormatEnum)[keyof typeof RequestFormatEnum]; diff --git a/src/api/resources/accounting/types/ResponseTypeEnum.ts b/src/api/resources/accounting/types/ResponseTypeEnum.ts deleted file mode 100644 index dfce6bea7..000000000 --- a/src/api/resources/accounting/types/ResponseTypeEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `JSON` - JSON - * * `BASE64_GZIP` - BASE64_GZIP - */ -export const ResponseTypeEnum = { - Json: "JSON", - Base64Gzip: "BASE64_GZIP", -} as const; -export type ResponseTypeEnum = (typeof ResponseTypeEnum)[keyof typeof ResponseTypeEnum]; diff --git a/src/api/resources/accounting/types/RoleEnum.ts b/src/api/resources/accounting/types/RoleEnum.ts deleted file mode 100644 index 524088eb7..000000000 --- a/src/api/resources/accounting/types/RoleEnum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `ADMIN` - ADMIN - * * `DEVELOPER` - DEVELOPER - * * `MEMBER` - MEMBER - * * `API` - API - * * `SYSTEM` - SYSTEM - * * `MERGE_TEAM` - MERGE_TEAM - */ -export const RoleEnum = { - Admin: "ADMIN", - Developer: "DEVELOPER", - Member: "MEMBER", - Api: "API", - System: "SYSTEM", - MergeTeam: "MERGE_TEAM", -} as const; -export type RoleEnum = (typeof RoleEnum)[keyof typeof RoleEnum]; diff --git a/src/api/resources/accounting/types/SelectiveSyncConfigurationsUsageEnum.ts b/src/api/resources/accounting/types/SelectiveSyncConfigurationsUsageEnum.ts deleted file mode 100644 index 4fce467f7..000000000 --- a/src/api/resources/accounting/types/SelectiveSyncConfigurationsUsageEnum.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `IN_NEXT_SYNC` - IN_NEXT_SYNC - * * `IN_LAST_SYNC` - IN_LAST_SYNC - */ -export const SelectiveSyncConfigurationsUsageEnum = { - InNextSync: "IN_NEXT_SYNC", - InLastSync: "IN_LAST_SYNC", -} as const; -export type SelectiveSyncConfigurationsUsageEnum = - (typeof SelectiveSyncConfigurationsUsageEnum)[keyof typeof SelectiveSyncConfigurationsUsageEnum]; diff --git a/src/api/resources/accounting/types/Status7D1Enum.ts b/src/api/resources/accounting/types/Status7D1Enum.ts deleted file mode 100644 index 73cf53491..000000000 --- a/src/api/resources/accounting/types/Status7D1Enum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `ACTIVE` - ACTIVE - * * `ARCHIVED` - ARCHIVED - */ -export const Status7D1Enum = { - Active: "ACTIVE", - Archived: "ARCHIVED", -} as const; -export type Status7D1Enum = (typeof Status7D1Enum)[keyof typeof Status7D1Enum]; diff --git a/src/api/resources/accounting/types/Status895Enum.ts b/src/api/resources/accounting/types/Status895Enum.ts deleted file mode 100644 index ed4907155..000000000 --- a/src/api/resources/accounting/types/Status895Enum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `ACTIVE` - ACTIVE - * * `INACTIVE` - INACTIVE - */ -export const Status895Enum = { - Active: "ACTIVE", - Inactive: "INACTIVE", -} as const; -export type Status895Enum = (typeof Status895Enum)[keyof typeof Status895Enum]; diff --git a/src/api/resources/accounting/types/StatusFd5Enum.ts b/src/api/resources/accounting/types/StatusFd5Enum.ts deleted file mode 100644 index 2ecbb5852..000000000 --- a/src/api/resources/accounting/types/StatusFd5Enum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `SYNCING` - SYNCING - * * `DONE` - DONE - * * `FAILED` - FAILED - * * `DISABLED` - DISABLED - * * `PAUSED` - PAUSED - * * `PARTIALLY_SYNCED` - PARTIALLY_SYNCED - */ -export const StatusFd5Enum = { - Syncing: "SYNCING", - Done: "DONE", - Failed: "FAILED", - Disabled: "DISABLED", - Paused: "PAUSED", - PartiallySynced: "PARTIALLY_SYNCED", -} as const; -export type StatusFd5Enum = (typeof StatusFd5Enum)[keyof typeof StatusFd5Enum]; diff --git a/src/api/resources/accounting/types/SyncStatus.ts b/src/api/resources/accounting/types/SyncStatus.ts deleted file mode 100644 index b299721db..000000000 --- a/src/api/resources/accounting/types/SyncStatus.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The SyncStatus Object - * ### Description - * The `SyncStatus` object is used to represent the syncing state of an account - * - * ### Usage Example - * View the `SyncStatus` for an account to see how recently its models were synced. - */ -export interface SyncStatus { - modelName: string; - modelId: string; - lastSyncStart?: Date; - nextSyncStart?: Date; - lastSyncResult?: Merge.accounting.LastSyncResultEnum; - lastSyncFinished?: Date; - status: Merge.accounting.SyncStatusStatus; - isInitialSync: boolean; - selectiveSyncConfigurationsUsage?: Merge.accounting.SelectiveSyncConfigurationsUsageEnum; -} diff --git a/src/api/resources/accounting/types/SyncStatusStatus.ts b/src/api/resources/accounting/types/SyncStatusStatus.ts deleted file mode 100644 index ecffae551..000000000 --- a/src/api/resources/accounting/types/SyncStatusStatus.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 SyncStatusStatus = Merge.accounting.StatusFd5Enum | string; diff --git a/src/api/resources/accounting/types/TaxComponent.ts b/src/api/resources/accounting/types/TaxComponent.ts deleted file mode 100644 index d2375c1f3..000000000 --- a/src/api/resources/accounting/types/TaxComponent.ts +++ /dev/null @@ -1,36 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The TaxRate Object - * ### Description - * The `TaxComponent` object is used to represent any sub-taxes that make up the `TaxRate`. - * - * ### Usage Example - * Fetch from the `LIST TaxRates` endpoint and view tax components relevant to a tax rate. - */ -export interface TaxComponent { - 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 tax rate’s name. */ - name?: string; - /** The tax component’s rate. */ - rate?: string; - /** Returns True if the tax component is compound, False if not. */ - isCompound?: boolean; - /** - * Returns PURCHASE if the tax component corresponds to a purchase tax or SALES if the tax component corresponds to a sales tax. - * - * * `SALES` - SALES - * * `PURCHASE` - PURCHASE - */ - componentType?: Merge.accounting.TaxComponentComponentType; - /** 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/accounting/types/TaxComponentComponentType.ts b/src/api/resources/accounting/types/TaxComponentComponentType.ts deleted file mode 100644 index d617e31cf..000000000 --- a/src/api/resources/accounting/types/TaxComponentComponentType.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * Returns PURCHASE if the tax component corresponds to a purchase tax or SALES if the tax component corresponds to a sales tax. - * - * * `SALES` - SALES - * * `PURCHASE` - PURCHASE - */ -export type TaxComponentComponentType = Merge.accounting.ComponentTypeEnum | string; diff --git a/src/api/resources/accounting/types/TaxRate.ts b/src/api/resources/accounting/types/TaxRate.ts deleted file mode 100644 index b627a4df8..000000000 --- a/src/api/resources/accounting/types/TaxRate.ts +++ /dev/null @@ -1,48 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The TaxRate Object - * ### Description - * The `TaxRate` object is used to represent a tax rate. - * - * ### Usage Example - * Fetch from the `LIST TaxRates` endpoint and view tax rates relevant to a company. - */ -export interface TaxRate { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The subsidiary that the tax rate belongs to (in the case of multi-entity systems). */ - company?: Merge.accounting.TaxRateCompany; - /** The tax code associated with this tax rate or group of tax rates from the third-party platform. */ - code?: string; - /** The tax rate’s name. */ - name?: string; - /** The tax rate's description. */ - description?: string; - /** - * The tax rate’s status - `ACTIVE` if an active tax rate, `ARCHIVED` if not active. - * - * * `ACTIVE` - ACTIVE - * * `ARCHIVED` - ARCHIVED - */ - status?: Merge.accounting.TaxRateStatus; - /** The country the tax rate is associated with. */ - country?: string; - /** The tax’s total tax rate - sum of the tax components (not compounded). */ - totalTaxRate?: number; - /** 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[]; - /** 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[]; -} diff --git a/src/api/resources/accounting/types/TaxRateCompany.ts b/src/api/resources/accounting/types/TaxRateCompany.ts deleted file mode 100644 index 548322fdc..000000000 --- a/src/api/resources/accounting/types/TaxRateCompany.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 subsidiary that the tax rate belongs to (in the case of multi-entity systems). - */ -export type TaxRateCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/TaxRateStatus.ts b/src/api/resources/accounting/types/TaxRateStatus.ts deleted file mode 100644 index 58a5c12c1..000000000 --- a/src/api/resources/accounting/types/TaxRateStatus.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 tax rate’s status - `ACTIVE` if an active tax rate, `ARCHIVED` if not active. - * - * * `ACTIVE` - ACTIVE - * * `ARCHIVED` - ARCHIVED - */ -export type TaxRateStatus = Merge.accounting.Status7D1Enum | string; diff --git a/src/api/resources/accounting/types/TaxRateTaxComponentsItem.ts b/src/api/resources/accounting/types/TaxRateTaxComponentsItem.ts deleted file mode 100644 index 916f5412d..000000000 --- a/src/api/resources/accounting/types/TaxRateTaxComponentsItem.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 TaxRateTaxComponentsItem = string | Merge.accounting.TaxComponent; diff --git a/src/api/resources/accounting/types/TrackingCategory.ts b/src/api/resources/accounting/types/TrackingCategory.ts deleted file mode 100644 index 661ffd0ec..000000000 --- a/src/api/resources/accounting/types/TrackingCategory.ts +++ /dev/null @@ -1,43 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The TrackingCategory Object - * ### Description - * A `TrackingCategory` object represents a categorization method used to classify transactions within an accounting platform. They are often used to group records for reporting and analysis purposes. The most common types of `TrackingCategories` are Classes and Departments. - * - * ### Usage Example - * Fetch from the `GET TrackingCategory` endpoint and view a company's tracking category. - */ -export interface TrackingCategory { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The tracking category's name. */ - name?: string; - /** - * The tracking category's status. - * - * * `ACTIVE` - ACTIVE - * * `ARCHIVED` - ARCHIVED - */ - status?: Merge.accounting.TrackingCategoryStatus; - /** - * The tracking category’s type. - * - * * `CLASS` - CLASS - * * `DEPARTMENT` - DEPARTMENT - */ - categoryType?: Merge.accounting.TrackingCategoryCategoryType; - parentCategory?: string; - /** The company the GeneralLedgerTransaction belongs to. */ - company?: Merge.accounting.TrackingCategoryCompany; - /** 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/TrackingCategoryCategoryType.ts b/src/api/resources/accounting/types/TrackingCategoryCategoryType.ts deleted file mode 100644 index 461429e4f..000000000 --- a/src/api/resources/accounting/types/TrackingCategoryCategoryType.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 tracking category’s type. - * - * * `CLASS` - CLASS - * * `DEPARTMENT` - DEPARTMENT - */ -export type TrackingCategoryCategoryType = Merge.accounting.CategoryTypeEnum | string; diff --git a/src/api/resources/accounting/types/TrackingCategoryCompany.ts b/src/api/resources/accounting/types/TrackingCategoryCompany.ts deleted file mode 100644 index 5fe4fd580..000000000 --- a/src/api/resources/accounting/types/TrackingCategoryCompany.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 company the GeneralLedgerTransaction belongs to. - */ -export type TrackingCategoryCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/TrackingCategoryStatus.ts b/src/api/resources/accounting/types/TrackingCategoryStatus.ts deleted file mode 100644 index 0c6c8c239..000000000 --- a/src/api/resources/accounting/types/TrackingCategoryStatus.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 tracking category's status. - * - * * `ACTIVE` - ACTIVE - * * `ARCHIVED` - ARCHIVED - */ -export type TrackingCategoryStatus = Merge.accounting.Status7D1Enum | string; diff --git a/src/api/resources/accounting/types/Transaction.ts b/src/api/resources/accounting/types/Transaction.ts deleted file mode 100644 index bb1c35254..000000000 --- a/src/api/resources/accounting/types/Transaction.ts +++ /dev/null @@ -1,365 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Transaction Object - * ### Description - * The `Transaction` common model includes records of all types of transactions that do not appear in other common models. The type of transaction can be identified through the type field. More specifically, it will contain all types of transactions outside of: - * * __Credit Notes__ - * * __Expenses__ - * * __Invoices__ - * * __Journal Entries__ - * * __Payments__ - * * __Purchase Orders__ - * * __Vendor Credits__ - * - * ### Usage Example - * Fetch from the `GET Transaction` endpoint and view a company's transactions. - */ -export interface Transaction { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The type of transaction, which can by any transaction object not already included in Merge’s common model. */ - transactionType?: string; - /** The transaction's number used for identifying purposes. */ - number?: string; - /** The date upon which the transaction occurred. */ - transactionDate?: Date; - /** The transaction's account. */ - account?: Merge.accounting.TransactionAccount; - /** The contact to whom the transaction relates to. */ - contact?: Merge.accounting.TransactionContact; - /** If the transaction is inclusive or exclusive of tax. `True` if inclusive, `False` if exclusive. */ - inclusiveOfTax?: boolean; - /** The total amount being paid after taxes. */ - totalAmount?: string; - /** - * The transaction'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.TransactionCurrency; - /** The transaction's exchange rate. */ - exchangeRate?: string; - /** The company the transaction belongs to. */ - company?: string; - trackingCategories?: (Merge.accounting.TransactionTrackingCategoriesItem | undefined)[]; - lineItems?: Merge.accounting.TransactionLineItem[]; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - remoteWasDeleted?: boolean; - /** The accounting period that the Transaction was generated in. */ - accountingPeriod?: Merge.accounting.TransactionAccountingPeriod; - fieldMappings?: Record; - remoteData?: Merge.accounting.RemoteData[]; -} diff --git a/src/api/resources/accounting/types/TransactionAccount.ts b/src/api/resources/accounting/types/TransactionAccount.ts deleted file mode 100644 index 03f38102e..000000000 --- a/src/api/resources/accounting/types/TransactionAccount.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 transaction's account. - */ -export type TransactionAccount = string | Merge.accounting.Account; diff --git a/src/api/resources/accounting/types/TransactionAccountingPeriod.ts b/src/api/resources/accounting/types/TransactionAccountingPeriod.ts deleted file mode 100644 index b9f1525d9..000000000 --- a/src/api/resources/accounting/types/TransactionAccountingPeriod.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 Transaction was generated in. - */ -export type TransactionAccountingPeriod = string | Merge.accounting.AccountingPeriod; diff --git a/src/api/resources/accounting/types/TransactionContact.ts b/src/api/resources/accounting/types/TransactionContact.ts deleted file mode 100644 index bb2ec71ba..000000000 --- a/src/api/resources/accounting/types/TransactionContact.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 contact to whom the transaction relates to. - */ -export type TransactionContact = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/TransactionCurrency.ts b/src/api/resources/accounting/types/TransactionCurrency.ts deleted file mode 100644 index 14dac24bb..000000000 --- a/src/api/resources/accounting/types/TransactionCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The transaction'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 TransactionCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/TransactionCurrencyEnum.ts b/src/api/resources/accounting/types/TransactionCurrencyEnum.ts deleted file mode 100644 index 16e6ad3f2..000000000 --- a/src/api/resources/accounting/types/TransactionCurrencyEnum.ts +++ /dev/null @@ -1,619 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `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 const TransactionCurrencyEnum = { - Xua: "XUA", - Afn: "AFN", - Afa: "AFA", - All: "ALL", - Alk: "ALK", - Dzd: "DZD", - Adp: "ADP", - Aoa: "AOA", - Aok: "AOK", - Aon: "AON", - Aor: "AOR", - Ara: "ARA", - Ars: "ARS", - Arm: "ARM", - Arp: "ARP", - Arl: "ARL", - Amd: "AMD", - Awg: "AWG", - Aud: "AUD", - Ats: "ATS", - Azn: "AZN", - Azm: "AZM", - Bsd: "BSD", - Bhd: "BHD", - Bdt: "BDT", - Bbd: "BBD", - Byn: "BYN", - Byb: "BYB", - Byr: "BYR", - Bef: "BEF", - Bec: "BEC", - Bel: "BEL", - Bzd: "BZD", - Bmd: "BMD", - Btn: "BTN", - Bob: "BOB", - Bol: "BOL", - Bov: "BOV", - Bop: "BOP", - Bam: "BAM", - Bad: "BAD", - Ban: "BAN", - Bwp: "BWP", - Brc: "BRC", - Brz: "BRZ", - Bre: "BRE", - Brr: "BRR", - Brn: "BRN", - Brb: "BRB", - Brl: "BRL", - Gbp: "GBP", - Bnd: "BND", - Bgl: "BGL", - Bgn: "BGN", - Bgo: "BGO", - Bgm: "BGM", - Buk: "BUK", - Bif: "BIF", - Xpf: "XPF", - Khr: "KHR", - Cad: "CAD", - Cve: "CVE", - Kyd: "KYD", - Xaf: "XAF", - Cle: "CLE", - Clp: "CLP", - Clf: "CLF", - Cnx: "CNX", - Cny: "CNY", - Cnh: "CNH", - Cop: "COP", - Cou: "COU", - Kmf: "KMF", - Cdf: "CDF", - Crc: "CRC", - Hrd: "HRD", - Hrk: "HRK", - Cuc: "CUC", - Cup: "CUP", - Cyp: "CYP", - Czk: "CZK", - Csk: "CSK", - Dkk: "DKK", - Djf: "DJF", - Dop: "DOP", - Nlg: "NLG", - Xcd: "XCD", - Ddm: "DDM", - Ecs: "ECS", - Ecv: "ECV", - Egp: "EGP", - Gqe: "GQE", - Ern: "ERN", - Eek: "EEK", - Etb: "ETB", - Eur: "EUR", - Xba: "XBA", - Xeu: "XEU", - Xbb: "XBB", - Xbc: "XBC", - Xbd: "XBD", - Fkp: "FKP", - Fjd: "FJD", - Fim: "FIM", - Frf: "FRF", - Xfo: "XFO", - Xfu: "XFU", - Gmd: "GMD", - Gek: "GEK", - Gel: "GEL", - Dem: "DEM", - Ghs: "GHS", - Ghc: "GHC", - Gip: "GIP", - Xau: "XAU", - Grd: "GRD", - Gtq: "GTQ", - Gwp: "GWP", - Gnf: "GNF", - Gns: "GNS", - Gyd: "GYD", - Htg: "HTG", - Hnl: "HNL", - Hkd: "HKD", - Huf: "HUF", - Imp: "IMP", - Isk: "ISK", - Isj: "ISJ", - Inr: "INR", - Idr: "IDR", - Irr: "IRR", - Iqd: "IQD", - Iep: "IEP", - Ils: "ILS", - Ilp: "ILP", - Ilr: "ILR", - Itl: "ITL", - Jmd: "JMD", - Jpy: "JPY", - Jod: "JOD", - Kzt: "KZT", - Kes: "KES", - Kwd: "KWD", - Kgs: "KGS", - Lak: "LAK", - Lvl: "LVL", - Lvr: "LVR", - Lbp: "LBP", - Lsl: "LSL", - Lrd: "LRD", - Lyd: "LYD", - Ltl: "LTL", - Ltt: "LTT", - Lul: "LUL", - Luc: "LUC", - Luf: "LUF", - Mop: "MOP", - Mkd: "MKD", - Mkn: "MKN", - Mga: "MGA", - Mgf: "MGF", - Mwk: "MWK", - Myr: "MYR", - Mvr: "MVR", - Mvp: "MVP", - Mlf: "MLF", - Mtl: "MTL", - Mtp: "MTP", - Mru: "MRU", - Mro: "MRO", - Mur: "MUR", - Mxv: "MXV", - Mxn: "MXN", - Mxp: "MXP", - Mdc: "MDC", - Mdl: "MDL", - Mcf: "MCF", - Mnt: "MNT", - Mad: "MAD", - Maf: "MAF", - Mze: "MZE", - Mzn: "MZN", - Mzm: "MZM", - Mmk: "MMK", - Nad: "NAD", - Npr: "NPR", - Ang: "ANG", - Twd: "TWD", - Nzd: "NZD", - Nio: "NIO", - Nic: "NIC", - Ngn: "NGN", - Kpw: "KPW", - Nok: "NOK", - Omr: "OMR", - Pkr: "PKR", - Xpd: "XPD", - Pab: "PAB", - Pgk: "PGK", - Pyg: "PYG", - Pei: "PEI", - Pen: "PEN", - Pes: "PES", - Php: "PHP", - Xpt: "XPT", - Pln: "PLN", - Plz: "PLZ", - Pte: "PTE", - Gwe: "GWE", - Qar: "QAR", - Xre: "XRE", - Rhd: "RHD", - Ron: "RON", - Rol: "ROL", - Rub: "RUB", - Rur: "RUR", - Rwf: "RWF", - Svc: "SVC", - Wst: "WST", - Sar: "SAR", - Rsd: "RSD", - Csd: "CSD", - Scr: "SCR", - Sll: "SLL", - Xag: "XAG", - Sgd: "SGD", - Skk: "SKK", - Sit: "SIT", - Sbd: "SBD", - Sos: "SOS", - Zar: "ZAR", - Zal: "ZAL", - Krh: "KRH", - Krw: "KRW", - Kro: "KRO", - Ssp: "SSP", - Sur: "SUR", - Esp: "ESP", - Esa: "ESA", - Esb: "ESB", - Xdr: "XDR", - Lkr: "LKR", - Shp: "SHP", - Xsu: "XSU", - Sdd: "SDD", - Sdg: "SDG", - Sdp: "SDP", - Srd: "SRD", - Srg: "SRG", - Szl: "SZL", - Sek: "SEK", - Chf: "CHF", - Syp: "SYP", - Stn: "STN", - Std: "STD", - Tvd: "TVD", - Tjr: "TJR", - Tjs: "TJS", - Tzs: "TZS", - Xts: "XTS", - Thb: "THB", - Xxx: "XXX", - Tpe: "TPE", - Top: "TOP", - Ttd: "TTD", - Tnd: "TND", - Try: "TRY", - Trl: "TRL", - Tmt: "TMT", - Tmm: "TMM", - Usd: "USD", - Usn: "USN", - Uss: "USS", - Ugx: "UGX", - Ugs: "UGS", - Uah: "UAH", - Uak: "UAK", - Aed: "AED", - Uyw: "UYW", - Uyu: "UYU", - Uyp: "UYP", - Uyi: "UYI", - Uzs: "UZS", - Vuv: "VUV", - Ves: "VES", - Veb: "VEB", - Vef: "VEF", - Vnd: "VND", - Vnn: "VNN", - Che: "CHE", - Chw: "CHW", - Xof: "XOF", - Ydd: "YDD", - Yer: "YER", - Yun: "YUN", - Yud: "YUD", - Yum: "YUM", - Yur: "YUR", - Zwn: "ZWN", - Zrn: "ZRN", - Zrz: "ZRZ", - Zmw: "ZMW", - Zmk: "ZMK", - Zwd: "ZWD", - Zwr: "ZWR", - Zwl: "ZWL", -} as const; -export type TransactionCurrencyEnum = (typeof TransactionCurrencyEnum)[keyof typeof TransactionCurrencyEnum]; diff --git a/src/api/resources/accounting/types/TransactionLineItem.ts b/src/api/resources/accounting/types/TransactionLineItem.ts deleted file mode 100644 index 79a3888ef..000000000 --- a/src/api/resources/accounting/types/TransactionLineItem.ts +++ /dev/null @@ -1,355 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The TransactionLineItem Object - * ### Description - * The `TransactionLineItem` object is used to represent a transaction's line items. - * - * ### Usage Example - * Fetch from the `GET TransactionLineItem` endpoint and view the transaction's line items. - */ -export interface TransactionLineItem { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** An internal note used by the business to clarify purpose of the transaction. */ - memo?: string; - /** The line item's unit price. */ - unitPrice?: string; - /** The line item's quantity. */ - quantity?: string; - item?: Merge.accounting.TransactionLineItemItem; - /** The line item's account. */ - account?: string; - /** The line's associated tracking category. */ - trackingCategory?: string; - /** The transaction line item's associated tracking categories. */ - trackingCategories?: (string | undefined)[]; - /** The line item's total. */ - totalLineAmount?: string; - /** The tax rate that applies to this line item. */ - taxRate?: string; - /** - * The line item'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.TransactionLineItemCurrency; - /** The line item's exchange rate. */ - exchangeRate?: string; - /** The company the line 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/). */ - remoteWasDeleted?: boolean; -} diff --git a/src/api/resources/accounting/types/TransactionLineItemCurrency.ts b/src/api/resources/accounting/types/TransactionLineItemCurrency.ts deleted file mode 100644 index 365feb725..000000000 --- a/src/api/resources/accounting/types/TransactionLineItemCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The line item'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 TransactionLineItemCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/TransactionLineItemItem.ts b/src/api/resources/accounting/types/TransactionLineItemItem.ts deleted file mode 100644 index d4917e045..000000000 --- a/src/api/resources/accounting/types/TransactionLineItemItem.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 TransactionLineItemItem = string | Merge.accounting.Item; diff --git a/src/api/resources/accounting/types/TransactionTrackingCategoriesItem.ts b/src/api/resources/accounting/types/TransactionTrackingCategoriesItem.ts deleted file mode 100644 index f46e7426b..000000000 --- a/src/api/resources/accounting/types/TransactionTrackingCategoriesItem.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 TransactionTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/Type2BbEnum.ts b/src/api/resources/accounting/types/Type2BbEnum.ts deleted file mode 100644 index 9794a7ad5..000000000 --- a/src/api/resources/accounting/types/Type2BbEnum.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `INVENTORY` - INVENTORY - * * `NON_INVENTORY` - NON_INVENTORY - * * `SERVICE` - SERVICE - * * `UNKNOWN` - UNKNOWN - */ -export const Type2BbEnum = { - Inventory: "INVENTORY", - NonInventory: "NON_INVENTORY", - Service: "SERVICE", - Unknown: "UNKNOWN", -} as const; -export type Type2BbEnum = (typeof Type2BbEnum)[keyof typeof Type2BbEnum]; diff --git a/src/api/resources/accounting/types/UnderlyingTransactionTypeEnum.ts b/src/api/resources/accounting/types/UnderlyingTransactionTypeEnum.ts deleted file mode 100644 index aaf1395cd..000000000 --- a/src/api/resources/accounting/types/UnderlyingTransactionTypeEnum.ts +++ /dev/null @@ -1,22 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `INVOICE` - INVOICE - * * `EXPENSE` - EXPENSE - * * `TRANSACTION` - TRANSACTION - * * `JOURNAL_ENTRY` - JOURNAL_ENTRY - * * `PAYMENT` - PAYMENT - * * `VENDOR_CREDIT` - VENDOR_CREDIT - * * `CREDIT_NOTE` - CREDIT_NOTE - */ -export const UnderlyingTransactionTypeEnum = { - Invoice: "INVOICE", - Expense: "EXPENSE", - Transaction: "TRANSACTION", - JournalEntry: "JOURNAL_ENTRY", - Payment: "PAYMENT", - VendorCredit: "VENDOR_CREDIT", - CreditNote: "CREDIT_NOTE", -} as const; -export type UnderlyingTransactionTypeEnum = - (typeof UnderlyingTransactionTypeEnum)[keyof typeof UnderlyingTransactionTypeEnum]; diff --git a/src/api/resources/accounting/types/ValidationProblemSource.ts b/src/api/resources/accounting/types/ValidationProblemSource.ts deleted file mode 100644 index 853332073..000000000 --- a/src/api/resources/accounting/types/ValidationProblemSource.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface ValidationProblemSource { - pointer: string; -} diff --git a/src/api/resources/accounting/types/VendorCredit.ts b/src/api/resources/accounting/types/VendorCredit.ts deleted file mode 100644 index 7c26775cd..000000000 --- a/src/api/resources/accounting/types/VendorCredit.ts +++ /dev/null @@ -1,356 +0,0 @@ -// 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 VendorCredit { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The vendor credit's number. */ - number?: string; - /** The vendor credit's transaction date. */ - transactionDate?: Date; - /** The vendor that owes the gift or refund. */ - vendor?: Merge.accounting.VendorCreditVendor; - /** The vendor credit's total amount. */ - totalAmount?: number; - /** - * 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.VendorCreditCurrency; - /** 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?: Merge.accounting.VendorCreditCompany; - lines?: Merge.accounting.VendorCreditLine[]; - trackingCategories?: (Merge.accounting.VendorCreditTrackingCategoriesItem | undefined)[]; - /** A list of VendorCredit Applied to Lines objects. */ - appliedToLines?: Merge.accounting.VendorCreditApplyLineForVendorCredit[]; - /** 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 VendorCredit was generated in. */ - accountingPeriod?: Merge.accounting.VendorCreditAccountingPeriod; - fieldMappings?: Record; - remoteData?: Merge.accounting.RemoteData[]; -} diff --git a/src/api/resources/accounting/types/VendorCreditAccountingPeriod.ts b/src/api/resources/accounting/types/VendorCreditAccountingPeriod.ts deleted file mode 100644 index 7b070b170..000000000 --- a/src/api/resources/accounting/types/VendorCreditAccountingPeriod.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 VendorCredit was generated in. - */ -export type VendorCreditAccountingPeriod = string | Merge.accounting.AccountingPeriod; diff --git a/src/api/resources/accounting/types/VendorCreditApplyLineForInvoice.ts b/src/api/resources/accounting/types/VendorCreditApplyLineForInvoice.ts deleted file mode 100644 index d075dd601..000000000 --- a/src/api/resources/accounting/types/VendorCreditApplyLineForInvoice.ts +++ /dev/null @@ -1,27 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The VendorCreditApplyLine Object - * ### Description - * The `VendorCreditApplyLine` object is used to represent a applied vendor credit. - * - * ### Usage Example - * Fetch from the `GET VendorCredit` endpoint and view the vendor credit's applied to lines. - */ -export interface VendorCreditApplyLineForInvoice { - /** 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; - vendorCredit?: Merge.accounting.VendorCreditApplyLineForInvoiceVendorCredit; - /** Date that the vendor credit is applied to the invoice. */ - appliedDate?: Date; - /** The amount of the VendorCredit applied to the invoice. */ - appliedAmount?: 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/). */ - remoteWasDeleted?: boolean; -} diff --git a/src/api/resources/accounting/types/VendorCreditApplyLineForInvoiceVendorCredit.ts b/src/api/resources/accounting/types/VendorCreditApplyLineForInvoiceVendorCredit.ts deleted file mode 100644 index f6d43dac9..000000000 --- a/src/api/resources/accounting/types/VendorCreditApplyLineForInvoiceVendorCredit.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 VendorCreditApplyLineForInvoiceVendorCredit = string | Merge.accounting.VendorCredit; diff --git a/src/api/resources/accounting/types/VendorCreditApplyLineForVendorCredit.ts b/src/api/resources/accounting/types/VendorCreditApplyLineForVendorCredit.ts deleted file mode 100644 index 21d6f0cd3..000000000 --- a/src/api/resources/accounting/types/VendorCreditApplyLineForVendorCredit.ts +++ /dev/null @@ -1,27 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The VendorCreditApplyLine Object - * ### Description - * The `VendorCreditApplyLine` object is used to represent a applied vendor credit. - * - * ### Usage Example - * Fetch from the `GET VendorCredit` endpoint and view the vendor credit's applied to lines. - */ -export interface VendorCreditApplyLineForVendorCredit { - /** 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; - invoice?: Merge.accounting.VendorCreditApplyLineForVendorCreditInvoice; - /** Date that the vendor credit is applied to the invoice. */ - appliedDate?: Date; - /** The amount of the VendorCredit applied to the invoice. */ - appliedAmount?: 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/). */ - remoteWasDeleted?: boolean; -} diff --git a/src/api/resources/accounting/types/VendorCreditApplyLineForVendorCreditInvoice.ts b/src/api/resources/accounting/types/VendorCreditApplyLineForVendorCreditInvoice.ts deleted file mode 100644 index f9bec79ba..000000000 --- a/src/api/resources/accounting/types/VendorCreditApplyLineForVendorCreditInvoice.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 VendorCreditApplyLineForVendorCreditInvoice = string | Merge.accounting.Invoice; diff --git a/src/api/resources/accounting/types/VendorCreditApplyLineForVendorCreditRequest.ts b/src/api/resources/accounting/types/VendorCreditApplyLineForVendorCreditRequest.ts deleted file mode 100644 index 098fe941e..000000000 --- a/src/api/resources/accounting/types/VendorCreditApplyLineForVendorCreditRequest.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The VendorCreditApplyLine Object - * ### Description - * The `VendorCreditApplyLine` object is used to represent a applied vendor credit. - * - * ### Usage Example - * Fetch from the `GET VendorCredit` endpoint and view the vendor credit's applied to lines. - */ -export interface VendorCreditApplyLineForVendorCreditRequest { - /** The third-party API ID of the matching object. */ - remoteId?: string; - invoice?: Merge.accounting.VendorCreditApplyLineForVendorCreditRequestInvoice; - /** Date that the vendor credit is applied to the invoice. */ - appliedDate?: Date; - /** The amount of the VendorCredit applied to the invoice. */ - appliedAmount?: string; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/accounting/types/VendorCreditApplyLineForVendorCreditRequestInvoice.ts b/src/api/resources/accounting/types/VendorCreditApplyLineForVendorCreditRequestInvoice.ts deleted file mode 100644 index d5c423523..000000000 --- a/src/api/resources/accounting/types/VendorCreditApplyLineForVendorCreditRequestInvoice.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 VendorCreditApplyLineForVendorCreditRequestInvoice = string | Merge.accounting.Invoice; diff --git a/src/api/resources/accounting/types/VendorCreditCompany.ts b/src/api/resources/accounting/types/VendorCreditCompany.ts deleted file mode 100644 index e69ea8c2f..000000000 --- a/src/api/resources/accounting/types/VendorCreditCompany.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 company the vendor credit belongs to. - */ -export type VendorCreditCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/VendorCreditCurrency.ts b/src/api/resources/accounting/types/VendorCreditCurrency.ts deleted file mode 100644 index 1f8450a00..000000000 --- a/src/api/resources/accounting/types/VendorCreditCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// 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 VendorCreditCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/VendorCreditLine.ts b/src/api/resources/accounting/types/VendorCreditLine.ts deleted file mode 100644 index 6f2453966..000000000 --- a/src/api/resources/accounting/types/VendorCreditLine.ts +++ /dev/null @@ -1,41 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The VendorCreditLine Object - * ### Description - * The `VendorCreditLine` object is used to represent a vendor credit's line items. - * - * ### Usage Example - * Fetch from the `GET VendorCredit` endpoint and view the vendor credit's line items. - */ -export interface VendorCreditLine { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The full value of the credit. */ - netAmount?: number; - /** The line's associated tracking category. */ - trackingCategory?: string; - /** The vendor credit line item's associated tracking categories. */ - trackingCategories?: (string | undefined)[]; - /** The line's description. */ - description?: string; - /** The line's account. */ - account?: Merge.accounting.VendorCreditLineAccount; - /** The company the line belongs to. */ - company?: string; - project?: Merge.accounting.VendorCreditLineProject; - contact?: Merge.accounting.VendorCreditLineContact; - /** The tax rate that applies to this line item. */ - taxRate?: string; - /** The vendor credit line item's exchange rate. */ - exchangeRate?: 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/). */ - remoteWasDeleted?: boolean; -} diff --git a/src/api/resources/accounting/types/VendorCreditLineAccount.ts b/src/api/resources/accounting/types/VendorCreditLineAccount.ts deleted file mode 100644 index 361037939..000000000 --- a/src/api/resources/accounting/types/VendorCreditLineAccount.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 line's account. - */ -export type VendorCreditLineAccount = string | Merge.accounting.Account; diff --git a/src/api/resources/accounting/types/VendorCreditLineContact.ts b/src/api/resources/accounting/types/VendorCreditLineContact.ts deleted file mode 100644 index 2f17097b7..000000000 --- a/src/api/resources/accounting/types/VendorCreditLineContact.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 VendorCreditLineContact = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/VendorCreditLineProject.ts b/src/api/resources/accounting/types/VendorCreditLineProject.ts deleted file mode 100644 index 416320890..000000000 --- a/src/api/resources/accounting/types/VendorCreditLineProject.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 VendorCreditLineProject = string | Merge.accounting.Project; diff --git a/src/api/resources/accounting/types/VendorCreditLineRequest.ts b/src/api/resources/accounting/types/VendorCreditLineRequest.ts deleted file mode 100644 index d10020ddf..000000000 --- a/src/api/resources/accounting/types/VendorCreditLineRequest.ts +++ /dev/null @@ -1,36 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The VendorCreditLine Object - * ### Description - * The `VendorCreditLine` object is used to represent a vendor credit's line items. - * - * ### Usage Example - * Fetch from the `GET VendorCredit` endpoint and view the vendor credit's line items. - */ -export interface VendorCreditLineRequest { - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The full value of the credit. */ - netAmount?: number; - /** The line's associated tracking category. */ - trackingCategory?: string; - /** The vendor credit line item's associated tracking categories. */ - trackingCategories?: (string | undefined)[]; - /** The line's description. */ - description?: string; - /** The line's account. */ - account?: Merge.accounting.VendorCreditLineRequestAccount; - /** The company the line belongs to. */ - company?: string; - project?: Merge.accounting.VendorCreditLineRequestProject; - contact?: Merge.accounting.VendorCreditLineRequestContact; - /** The tax rate that applies to this line item. */ - taxRate?: string; - /** The vendor credit line item's exchange rate. */ - exchangeRate?: string; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/accounting/types/VendorCreditLineRequestAccount.ts b/src/api/resources/accounting/types/VendorCreditLineRequestAccount.ts deleted file mode 100644 index 45736bf23..000000000 --- a/src/api/resources/accounting/types/VendorCreditLineRequestAccount.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 line's account. - */ -export type VendorCreditLineRequestAccount = string | Merge.accounting.Account; diff --git a/src/api/resources/accounting/types/VendorCreditLineRequestContact.ts b/src/api/resources/accounting/types/VendorCreditLineRequestContact.ts deleted file mode 100644 index 7bae178ca..000000000 --- a/src/api/resources/accounting/types/VendorCreditLineRequestContact.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 VendorCreditLineRequestContact = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/VendorCreditLineRequestProject.ts b/src/api/resources/accounting/types/VendorCreditLineRequestProject.ts deleted file mode 100644 index 022818131..000000000 --- a/src/api/resources/accounting/types/VendorCreditLineRequestProject.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 VendorCreditLineRequestProject = string | Merge.accounting.Project; diff --git a/src/api/resources/accounting/types/VendorCreditRequest.ts b/src/api/resources/accounting/types/VendorCreditRequest.ts deleted file mode 100644 index 82157074c..000000000 --- a/src/api/resources/accounting/types/VendorCreditRequest.ts +++ /dev/null @@ -1,346 +0,0 @@ -// 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 VendorCreditRequest { - /** The vendor credit's number. */ - number?: string; - /** The vendor credit's transaction date. */ - transactionDate?: Date; - /** The vendor that owes the gift or refund. */ - vendor?: Merge.accounting.VendorCreditRequestVendor; - /** The vendor credit's total amount. */ - totalAmount?: number; - /** - * 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.VendorCreditRequestCurrency; - /** 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?: Merge.accounting.VendorCreditRequestCompany; - trackingCategories?: (Merge.accounting.VendorCreditRequestTrackingCategoriesItem | undefined)[]; - /** A list of VendorCredit Applied to Lines objects. */ - appliedToLines?: Merge.accounting.VendorCreditApplyLineForVendorCreditRequest[]; - /** The accounting period that the VendorCredit was generated in. */ - accountingPeriod?: Merge.accounting.VendorCreditRequestAccountingPeriod; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/accounting/types/VendorCreditRequestAccountingPeriod.ts b/src/api/resources/accounting/types/VendorCreditRequestAccountingPeriod.ts deleted file mode 100644 index e9807ee7f..000000000 --- a/src/api/resources/accounting/types/VendorCreditRequestAccountingPeriod.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 VendorCredit was generated in. - */ -export type VendorCreditRequestAccountingPeriod = string | Merge.accounting.AccountingPeriod; diff --git a/src/api/resources/accounting/types/VendorCreditRequestCompany.ts b/src/api/resources/accounting/types/VendorCreditRequestCompany.ts deleted file mode 100644 index 7879f59e7..000000000 --- a/src/api/resources/accounting/types/VendorCreditRequestCompany.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 company the vendor credit belongs to. - */ -export type VendorCreditRequestCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/VendorCreditRequestCurrency.ts b/src/api/resources/accounting/types/VendorCreditRequestCurrency.ts deleted file mode 100644 index 036db4b66..000000000 --- a/src/api/resources/accounting/types/VendorCreditRequestCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// 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 VendorCreditRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/VendorCreditRequestTrackingCategoriesItem.ts b/src/api/resources/accounting/types/VendorCreditRequestTrackingCategoriesItem.ts deleted file mode 100644 index 7ec321d81..000000000 --- a/src/api/resources/accounting/types/VendorCreditRequestTrackingCategoriesItem.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 VendorCreditRequestTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/VendorCreditRequestVendor.ts b/src/api/resources/accounting/types/VendorCreditRequestVendor.ts deleted file mode 100644 index 81316ad06..000000000 --- a/src/api/resources/accounting/types/VendorCreditRequestVendor.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 vendor that owes the gift or refund. - */ -export type VendorCreditRequestVendor = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/VendorCreditResponse.ts b/src/api/resources/accounting/types/VendorCreditResponse.ts deleted file mode 100644 index 12d15c36c..000000000 --- a/src/api/resources/accounting/types/VendorCreditResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface VendorCreditResponse { - model: Merge.accounting.VendorCredit; - warnings: Merge.accounting.WarningValidationProblem[]; - errors: Merge.accounting.ErrorValidationProblem[]; - logs?: Merge.accounting.DebugModeLog[]; -} diff --git a/src/api/resources/accounting/types/VendorCreditTrackingCategoriesItem.ts b/src/api/resources/accounting/types/VendorCreditTrackingCategoriesItem.ts deleted file mode 100644 index 275e7d778..000000000 --- a/src/api/resources/accounting/types/VendorCreditTrackingCategoriesItem.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 VendorCreditTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/VendorCreditVendor.ts b/src/api/resources/accounting/types/VendorCreditVendor.ts deleted file mode 100644 index 13529b3c7..000000000 --- a/src/api/resources/accounting/types/VendorCreditVendor.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 vendor that owes the gift or refund. - */ -export type VendorCreditVendor = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/WarningValidationProblem.ts b/src/api/resources/accounting/types/WarningValidationProblem.ts deleted file mode 100644 index 54e2e5e63..000000000 --- a/src/api/resources/accounting/types/WarningValidationProblem.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface WarningValidationProblem { - source?: Merge.accounting.ValidationProblemSource; - title: string; - detail: string; - problemType: string; -} diff --git a/src/api/resources/accounting/types/WebhookReceiver.ts b/src/api/resources/accounting/types/WebhookReceiver.ts deleted file mode 100644 index f9c8ebc4b..000000000 --- a/src/api/resources/accounting/types/WebhookReceiver.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface WebhookReceiver { - event: string; - isActive: boolean; - key?: string; -} diff --git a/src/api/resources/accounting/types/index.ts b/src/api/resources/accounting/types/index.ts deleted file mode 100644 index 22194d0a9..000000000 --- a/src/api/resources/accounting/types/index.ts +++ /dev/null @@ -1,515 +0,0 @@ -export * from "./Account"; -export * from "./AccountAccountType"; -export * from "./AccountAccountTypeEnum"; -export * from "./AccountClassification"; -export * from "./AccountCurrency"; -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 "./AccountingAttachment"; -export * from "./AccountingAttachmentRequest"; -export * from "./AccountingAttachmentResponse"; -export * from "./AccountingPeriod"; -export * from "./AccountingPeriodStatus"; -export * from "./AccountingPhoneNumber"; -export * from "./AccountingPhoneNumberRequest"; -export * from "./AccountRequest"; -export * from "./AccountRequestAccountType"; -export * from "./AccountRequestClassification"; -export * from "./AccountRequestCurrency"; -export * from "./AccountRequestStatus"; -export * from "./AccountResponse"; -export * from "./AccountStatus"; -export * from "./AccountStatusEnum"; -export * from "./AccountToken"; -export * from "./Address"; -export * from "./AddressCountry"; -export * from "./AddressRequest"; -export * from "./AddressRequestCountry"; -export * from "./AddressRequestType"; -export * from "./AddressType"; -export * from "./AddressTypeEnum"; -export * from "./AdvancedMetadata"; -export * from "./AsyncPassthroughReciept"; -export * from "./AsyncPostTask"; -export * from "./AsyncPostTaskResult"; -export * from "./AsyncPostTaskStatus"; -export * from "./AsyncPostTaskStatusEnum"; -export * from "./AuditLogEvent"; -export * from "./AuditLogEventEventType"; -export * from "./AuditLogEventRole"; -export * from "./AvailableActions"; -export * from "./BalanceSheet"; -export * from "./BalanceSheetCompany"; -export * from "./BalanceSheetCurrency"; -export * from "./BankFeedAccount"; -export * from "./BankFeedAccountAccountType"; -export * from "./BankFeedAccountAccountTypeEnum"; -export * from "./BankFeedAccountCurrency"; -export * from "./BankFeedAccountFeedStatus"; -export * from "./BankFeedAccountRequest"; -export * from "./BankFeedAccountRequestAccountType"; -export * from "./BankFeedAccountRequestCurrency"; -export * from "./BankFeedAccountRequestFeedStatus"; -export * from "./BankFeedAccountResponse"; -export * from "./BankFeedTransaction"; -export * from "./BankFeedTransactionBankFeedAccount"; -export * from "./BankFeedTransactionCreditOrDebit"; -export * from "./BankFeedTransactionRequestRequest"; -export * from "./BankFeedTransactionRequestRequestBankFeedAccount"; -export * from "./BankFeedTransactionRequestRequestCreditOrDebit"; -export * from "./BankFeedTransactionResponse"; -export * from "./CashFlowStatement"; -export * from "./CashFlowStatementCompany"; -export * from "./CashFlowStatementCurrency"; -export * from "./CategoriesEnum"; -export * from "./CategoryEnum"; -export * from "./CategoryTypeEnum"; -export * from "./ClassificationEnum"; -export * from "./CommonModelScopeApi"; -export * from "./CommonModelScopesBodyRequest"; -export * from "./CompanyInfo"; -export * from "./CompanyInfoCurrency"; -export * from "./ComponentTypeEnum"; -export * from "./Contact"; -export * from "./ContactAddressesItem"; -export * from "./ContactRequest"; -export * from "./ContactRequestAddressesItem"; -export * from "./ContactRequestStatus"; -export * from "./ContactResponse"; -export * from "./ContactStatus"; -export * from "./CountryEnum"; -export * from "./CreditNote"; -export * from "./CreditNoteAccountingPeriod"; -export * from "./CreditNoteAppliedPaymentsItem"; -export * from "./CreditNoteApplyLineForCreditNote"; -export * from "./CreditNoteApplyLineForCreditNoteInvoice"; -export * from "./CreditNoteApplyLineForCreditNoteRequest"; -export * from "./CreditNoteApplyLineForCreditNoteRequestInvoice"; -export * from "./CreditNoteApplyLineForInvoice"; -export * from "./CreditNoteApplyLineForInvoiceCreditNote"; -export * from "./CreditNoteCompany"; -export * from "./CreditNoteContact"; -export * from "./CreditNoteCurrency"; -export * from "./CreditNoteLineItem"; -export * from "./CreditNoteLineItemCompany"; -export * from "./CreditNoteLineItemContact"; -export * from "./CreditNoteLineItemItem"; -export * from "./CreditNoteLineItemProject"; -export * from "./CreditNoteLineItemRequest"; -export * from "./CreditNoteLineItemRequestCompany"; -export * from "./CreditNoteLineItemRequestContact"; -export * from "./CreditNoteLineItemRequestItem"; -export * from "./CreditNoteLineItemRequestProject"; -export * from "./CreditNotePaymentsItem"; -export * from "./CreditNoteRequest"; -export * from "./CreditNoteRequestAccountingPeriod"; -export * from "./CreditNoteRequestAppliedPaymentsItem"; -export * from "./CreditNoteRequestCompany"; -export * from "./CreditNoteRequestContact"; -export * from "./CreditNoteRequestCurrency"; -export * from "./CreditNoteRequestLineItemsItem"; -export * from "./CreditNoteRequestPaymentsItem"; -export * from "./CreditNoteRequestStatus"; -export * from "./CreditNoteRequestTrackingCategoriesItem"; -export * from "./CreditNoteResponse"; -export * from "./CreditNoteStatus"; -export * from "./CreditNoteStatusEnum"; -export * from "./CreditNoteTrackingCategoriesItem"; -export * from "./CreditOrDebitEnum"; -export * from "./DataPassthroughRequest"; -export * from "./DataPassthroughRequestMethod"; -export * from "./DebugModeLog"; -export * from "./DebugModelLogSummary"; -export * from "./Employee"; -export * from "./EmployeeCompany"; -export * from "./EmployeeStatus"; -export * from "./EnabledActionsEnum"; -export * from "./EncodingEnum"; -export * from "./ErrorValidationProblem"; -export * from "./EventTypeEnum"; -export * from "./Expense"; -export * from "./ExpenseAccount"; -export * from "./ExpenseAccountingPeriod"; -export * from "./ExpenseCompany"; -export * from "./ExpenseContact"; -export * from "./ExpenseCurrency"; -export * from "./ExpenseEmployee"; -export * from "./ExpenseLine"; -export * from "./ExpenseLineAccount"; -export * from "./ExpenseLineContact"; -export * from "./ExpenseLineCurrency"; -export * from "./ExpenseLineEmployee"; -export * from "./ExpenseLineItem"; -export * from "./ExpenseLineProject"; -export * from "./ExpenseLineRequest"; -export * from "./ExpenseLineRequestAccount"; -export * from "./ExpenseLineRequestContact"; -export * from "./ExpenseLineRequestCurrency"; -export * from "./ExpenseLineRequestEmployee"; -export * from "./ExpenseLineRequestItem"; -export * from "./ExpenseLineRequestProject"; -export * from "./ExpenseLineRequestTrackingCategoriesItem"; -export * from "./ExpenseLineRequestTrackingCategory"; -export * from "./ExpenseLineTrackingCategoriesItem"; -export * from "./ExpenseLineTrackingCategory"; -export * from "./ExpenseReport"; -export * from "./ExpenseReportCompany"; -export * from "./ExpenseReportLine"; -export * from "./ExpenseReportLineAccount"; -export * from "./ExpenseReportLineCompany"; -export * from "./ExpenseReportLineContact"; -export * from "./ExpenseReportLineEmployee"; -export * from "./ExpenseReportLineProject"; -export * from "./ExpenseReportLineRequest"; -export * from "./ExpenseReportLineRequestAccount"; -export * from "./ExpenseReportLineRequestCompany"; -export * from "./ExpenseReportLineRequestContact"; -export * from "./ExpenseReportLineRequestEmployee"; -export * from "./ExpenseReportLineRequestProject"; -export * from "./ExpenseReportLineRequestTaxRate"; -export * from "./ExpenseReportLineTaxRate"; -export * from "./ExpenseReportRequest"; -export * from "./ExpenseReportRequestAccountingPeriod"; -export * from "./ExpenseReportRequestCompany"; -export * from "./ExpenseReportRequestEmployee"; -export * from "./ExpenseReportResponse"; -export * from "./ExpenseReportStatus"; -export * from "./ExpenseReportStatusEnum"; -export * from "./ExpenseRequest"; -export * from "./ExpenseRequestAccount"; -export * from "./ExpenseRequestAccountingPeriod"; -export * from "./ExpenseRequestCompany"; -export * from "./ExpenseRequestContact"; -export * from "./ExpenseRequestCurrency"; -export * from "./ExpenseRequestEmployee"; -export * from "./ExpenseRequestTrackingCategoriesItem"; -export * from "./ExpenseResponse"; -export * from "./ExpenseTrackingCategoriesItem"; -export * from "./ExternalTargetFieldApi"; -export * from "./ExternalTargetFieldApiResponse"; -export * from "./FeedStatusEnum"; -export * from "./FieldFormatEnum"; -export * from "./FieldMappingApiInstance"; -export * from "./FieldMappingApiInstanceRemoteField"; -export * from "./FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo"; -export * from "./FieldMappingApiInstanceResponse"; -export * from "./FieldMappingApiInstanceTargetField"; -export * from "./FieldMappingInstanceResponse"; -export * from "./FieldPermissionDeserializer"; -export * from "./FieldPermissionDeserializerRequest"; -export * from "./FieldTypeEnum"; -export * from "./GeneralLedgerTransaction"; -export * from "./GeneralLedgerTransactionAccountingPeriod"; -export * from "./GeneralLedgerTransactionCompany"; -export * from "./GeneralLedgerTransactionGeneralLedgerTransactionLinesItem"; -export * from "./GeneralLedgerTransactionLine"; -export * from "./GeneralLedgerTransactionLineAccount"; -export * from "./GeneralLedgerTransactionLineBaseCurrency"; -export * from "./GeneralLedgerTransactionLineCompany"; -export * from "./GeneralLedgerTransactionLineContact"; -export * from "./GeneralLedgerTransactionLineEmployee"; -export * from "./GeneralLedgerTransactionLineItem"; -export * from "./GeneralLedgerTransactionLineProject"; -export * from "./GeneralLedgerTransactionLineTrackingCategoriesItem"; -export * from "./GeneralLedgerTransactionLineTransactionCurrency"; -export * from "./GeneralLedgerTransactionTrackingCategoriesItem"; -export * from "./GeneralLedgerTransactionUnderlyingTransactionType"; -export * from "./IncomeStatement"; -export * from "./IncomeStatementCompany"; -export * from "./IncomeStatementCurrency"; -export * from "./IndividualCommonModelScopeDeserializer"; -export * from "./IndividualCommonModelScopeDeserializerRequest"; -export * from "./Invoice"; -export * from "./InvoiceAccountingPeriod"; -export * from "./InvoiceAppliedCreditNotesItem"; -export * from "./InvoiceAppliedPaymentsItem"; -export * from "./InvoiceAppliedVendorCreditsItem"; -export * from "./InvoiceCompany"; -export * from "./InvoiceContact"; -export * from "./InvoiceCurrency"; -export * from "./InvoiceEmployee"; -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 "./InvoiceLineItemTrackingCategoriesItem"; -export * from "./InvoiceLineItemTrackingCategory"; -export * from "./InvoicePaymentsItem"; -export * from "./InvoicePaymentTerm"; -export * from "./InvoicePurchaseOrdersItem"; -export * from "./InvoiceRequest"; -export * from "./InvoiceRequestCompany"; -export * from "./InvoiceRequestContact"; -export * from "./InvoiceRequestCurrency"; -export * from "./InvoiceRequestEmployee"; -export * from "./InvoiceRequestPaymentsItem"; -export * from "./InvoiceRequestPaymentTerm"; -export * from "./InvoiceRequestPurchaseOrdersItem"; -export * from "./InvoiceRequestStatus"; -export * from "./InvoiceRequestTrackingCategoriesItem"; -export * from "./InvoiceRequestType"; -export * from "./InvoiceResponse"; -export * from "./InvoiceStatus"; -export * from "./InvoiceStatusEnum"; -export * from "./InvoiceTrackingCategoriesItem"; -export * from "./InvoiceType"; -export * from "./InvoiceTypeEnum"; -export * from "./Issue"; -export * from "./IssueStatus"; -export * from "./IssueStatusEnum"; -export * from "./Item"; -export * from "./ItemCompany"; -export * from "./ItemFormatEnum"; -export * from "./ItemPurchaseAccount"; -export * from "./ItemPurchaseTaxRate"; -export * from "./ItemRequestRequest"; -export * from "./ItemRequestRequestCompany"; -export * from "./ItemRequestRequestPurchaseAccount"; -export * from "./ItemRequestRequestPurchaseTaxRate"; -export * from "./ItemRequestRequestSalesAccount"; -export * from "./ItemRequestRequestSalesTaxRate"; -export * from "./ItemRequestRequestStatus"; -export * from "./ItemRequestRequestType"; -export * from "./ItemResponse"; -export * from "./ItemSalesAccount"; -export * from "./ItemSalesTaxRate"; -export * from "./ItemSchema"; -export * from "./ItemStatus"; -export * from "./ItemType"; -export * from "./ItemTypeEnum"; -export * from "./JournalEntry"; -export * from "./JournalEntryAccountingPeriod"; -export * from "./JournalEntryAppliedPaymentsItem"; -export * from "./JournalEntryCompany"; -export * from "./JournalEntryCurrency"; -export * from "./JournalEntryPaymentsItem"; -export * from "./JournalEntryPostingStatus"; -export * from "./JournalEntryRequest"; -export * from "./JournalEntryRequestCompany"; -export * from "./JournalEntryRequestCurrency"; -export * from "./JournalEntryRequestPaymentsItem"; -export * from "./JournalEntryRequestPostingStatus"; -export * from "./JournalEntryRequestTrackingCategoriesItem"; -export * from "./JournalEntryResponse"; -export * from "./JournalEntryTrackingCategoriesItem"; -export * from "./JournalLine"; -export * from "./JournalLineAccount"; -export * from "./JournalLineCurrency"; -export * from "./JournalLineProject"; -export * from "./JournalLineRequest"; -export * from "./JournalLineRequestAccount"; -export * from "./JournalLineRequestCurrency"; -export * from "./JournalLineRequestProject"; -export * from "./JournalLineRequestTrackingCategoriesItem"; -export * from "./JournalLineRequestTrackingCategory"; -export * from "./JournalLineTrackingCategoriesItem"; -export * from "./JournalLineTrackingCategory"; -export * from "./LanguageEnum"; -export * from "./LastSyncResultEnum"; -export * from "./LinkedAccountStatus"; -export * from "./LinkToken"; -export * from "./MetaResponse"; -export * from "./MethodEnum"; -export * from "./MethodTypeEnum"; -export * from "./ModelOperation"; -export * from "./ModelPermissionDeserializer"; -export * from "./ModelPermissionDeserializerRequest"; -export * from "./MultipartFormFieldRequest"; -export * from "./MultipartFormFieldRequestEncoding"; -export * from "./PaginatedAccountDetailsAndActionsList"; -export * from "./PaginatedAccountingAttachmentList"; -export * from "./PaginatedAccountingPeriodList"; -export * from "./PaginatedAccountList"; -export * from "./PaginatedAuditLogEventList"; -export * from "./PaginatedBalanceSheetList"; -export * from "./PaginatedBankFeedAccountList"; -export * from "./PaginatedBankFeedTransactionList"; -export * from "./PaginatedCashFlowStatementList"; -export * from "./PaginatedCompanyInfoList"; -export * from "./PaginatedContactList"; -export * from "./PaginatedCreditNoteList"; -export * from "./PaginatedEmployeeList"; -export * from "./PaginatedExpenseList"; -export * from "./PaginatedExpenseReportLineList"; -export * from "./PaginatedExpenseReportList"; -export * from "./PaginatedGeneralLedgerTransactionList"; -export * from "./PaginatedIncomeStatementList"; -export * from "./PaginatedInvoiceList"; -export * from "./PaginatedIssueList"; -export * from "./PaginatedItemList"; -export * from "./PaginatedJournalEntryList"; -export * from "./PaginatedPaymentList"; -export * from "./PaginatedPaymentMethodList"; -export * from "./PaginatedPaymentTermList"; -export * from "./PaginatedProjectList"; -export * from "./PaginatedPurchaseOrderList"; -export * from "./PaginatedRemoteFieldClassList"; -export * from "./PaginatedSyncStatusList"; -export * from "./PaginatedTaxRateList"; -export * from "./PaginatedTrackingCategoryList"; -export * from "./PaginatedTransactionList"; -export * from "./PaginatedVendorCreditList"; -export * from "./PatchedContactRequest"; -export * from "./PatchedContactRequestAddressesItem"; -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 "./Payment"; -export * from "./PaymentAccount"; -export * from "./PaymentAccountingPeriod"; -export * from "./PaymentAppliedToLinesItem"; -export * from "./PaymentCompany"; -export * from "./PaymentContact"; -export * from "./PaymentCurrency"; -export * from "./PaymentLineItem"; -export * from "./PaymentLineItemRequest"; -export * from "./PaymentMethod"; -export * from "./PaymentMethodMethodType"; -export * from "./PaymentPaymentMethod"; -export * from "./PaymentRequest"; -export * from "./PaymentRequestAccount"; -export * from "./PaymentRequestAccountingPeriod"; -export * from "./PaymentRequestAppliedToLinesItem"; -export * from "./PaymentRequestCompany"; -export * from "./PaymentRequestContact"; -export * from "./PaymentRequestCurrency"; -export * from "./PaymentRequestPaymentMethod"; -export * from "./PaymentRequestTrackingCategoriesItem"; -export * from "./PaymentRequestType"; -export * from "./PaymentResponse"; -export * from "./PaymentTerm"; -export * from "./PaymentTermCompany"; -export * from "./PaymentTrackingCategoriesItem"; -export * from "./PaymentType"; -export * from "./PaymentTypeEnum"; -export * from "./PostingStatusEnum"; -export * from "./Project"; -export * from "./ProjectCompany"; -export * from "./ProjectContact"; -export * from "./PurchaseOrder"; -export * from "./PurchaseOrderAccountingPeriod"; -export * from "./PurchaseOrderCompany"; -export * from "./PurchaseOrderCurrency"; -export * from "./PurchaseOrderDeliveryAddress"; -export * from "./PurchaseOrderLineItem"; -export * from "./PurchaseOrderLineItemCurrency"; -export * from "./PurchaseOrderLineItemItem"; -export * from "./PurchaseOrderLineItemRequest"; -export * from "./PurchaseOrderLineItemRequestCurrency"; -export * from "./PurchaseOrderLineItemRequestItem"; -export * from "./PurchaseOrderPaymentTerm"; -export * from "./PurchaseOrderRequest"; -export * from "./PurchaseOrderRequestCompany"; -export * from "./PurchaseOrderRequestCurrency"; -export * from "./PurchaseOrderRequestDeliveryAddress"; -export * from "./PurchaseOrderRequestPaymentTerm"; -export * from "./PurchaseOrderRequestStatus"; -export * from "./PurchaseOrderRequestTrackingCategoriesItem"; -export * from "./PurchaseOrderRequestVendor"; -export * from "./PurchaseOrderResponse"; -export * from "./PurchaseOrderStatus"; -export * from "./PurchaseOrderStatusEnum"; -export * from "./PurchaseOrderTrackingCategoriesItem"; -export * from "./PurchaseOrderVendor"; -export * from "./RemoteData"; -export * from "./RemoteEndpointInfo"; -export * from "./RemoteField"; -export * from "./RemoteFieldApi"; -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 "./ReportItem"; -export * from "./RequestFormatEnum"; -export * from "./ResponseTypeEnum"; -export * from "./RoleEnum"; -export * from "./SelectiveSyncConfigurationsUsageEnum"; -export * from "./Status7D1Enum"; -export * from "./Status895Enum"; -export * from "./StatusFd5Enum"; -export * from "./SyncStatus"; -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"; -export * from "./TrackingCategoryStatus"; -export * from "./Transaction"; -export * from "./TransactionAccount"; -export * from "./TransactionAccountingPeriod"; -export * from "./TransactionContact"; -export * from "./TransactionCurrency"; -export * from "./TransactionCurrencyEnum"; -export * from "./TransactionLineItem"; -export * from "./TransactionLineItemCurrency"; -export * from "./TransactionLineItemItem"; -export * from "./TransactionTrackingCategoriesItem"; -export * from "./Type2BbEnum"; -export * from "./UnderlyingTransactionTypeEnum"; -export * from "./ValidationProblemSource"; -export * from "./VendorCredit"; -export * from "./VendorCreditAccountingPeriod"; -export * from "./VendorCreditApplyLineForInvoice"; -export * from "./VendorCreditApplyLineForInvoiceVendorCredit"; -export * from "./VendorCreditApplyLineForVendorCredit"; -export * from "./VendorCreditApplyLineForVendorCreditInvoice"; -export * from "./VendorCreditApplyLineForVendorCreditRequest"; -export * from "./VendorCreditApplyLineForVendorCreditRequestInvoice"; -export * from "./VendorCreditCompany"; -export * from "./VendorCreditCurrency"; -export * from "./VendorCreditLine"; -export * from "./VendorCreditLineAccount"; -export * from "./VendorCreditLineContact"; -export * from "./VendorCreditLineProject"; -export * from "./VendorCreditLineRequest"; -export * from "./VendorCreditLineRequestAccount"; -export * from "./VendorCreditLineRequestContact"; -export * from "./VendorCreditLineRequestProject"; -export * from "./VendorCreditRequest"; -export * from "./VendorCreditRequestAccountingPeriod"; -export * from "./VendorCreditRequestCompany"; -export * from "./VendorCreditRequestCurrency"; -export * from "./VendorCreditRequestTrackingCategoriesItem"; -export * from "./VendorCreditRequestVendor"; -export * from "./VendorCreditResponse"; -export * from "./VendorCreditTrackingCategoriesItem"; -export * from "./VendorCreditVendor"; -export * from "./WarningValidationProblem"; -export * from "./WebhookReceiver"; diff --git a/src/api/resources/ats/client/Client.ts b/src/api/resources/ats/client/Client.ts deleted file mode 100644 index 31895b791..000000000 --- a/src/api/resources/ats/client/Client.ts +++ /dev/null @@ -1,214 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type { BaseClientOptions } from "../../../../BaseClient"; -import { type NormalizedClientOptionsWithAuth, normalizeClientOptionsWithAuth } from "../../../../BaseClient"; -import { AccountDetailsClient } from "../resources/accountDetails/client/Client"; -import { AccountTokenClient } from "../resources/accountToken/client/Client"; -import { ActivitiesClient } from "../resources/activities/client/Client"; -import { ApplicationsClient } from "../resources/applications/client/Client"; -import { AsyncPassthroughClient } from "../resources/asyncPassthrough/client/Client"; -import { AttachmentsClient } from "../resources/attachments/client/Client"; -import { AuditTrailClient } from "../resources/auditTrail/client/Client"; -import { AvailableActionsClient } from "../resources/availableActions/client/Client"; -import { CandidatesClient } from "../resources/candidates/client/Client"; -import { DeleteAccountClient } from "../resources/deleteAccount/client/Client"; -import { DepartmentsClient } from "../resources/departments/client/Client"; -import { EeocsClient } from "../resources/eeocs/client/Client"; -import { FieldMappingClient } from "../resources/fieldMapping/client/Client"; -import { ForceResyncClient } from "../resources/forceResync/client/Client"; -import { GenerateKeyClient } from "../resources/generateKey/client/Client"; -import { InterviewsClient } from "../resources/interviews/client/Client"; -import { IssuesClient } from "../resources/issues/client/Client"; -import { JobInterviewStagesClient } from "../resources/jobInterviewStages/client/Client"; -import { JobPostingsClient } from "../resources/jobPostings/client/Client"; -import { JobsClient } from "../resources/jobs/client/Client"; -import { LinkedAccountsClient } from "../resources/linkedAccounts/client/Client"; -import { LinkTokenClient } from "../resources/linkToken/client/Client"; -import { OffersClient } from "../resources/offers/client/Client"; -import { OfficesClient } from "../resources/offices/client/Client"; -import { PassthroughClient } from "../resources/passthrough/client/Client"; -import { RegenerateKeyClient } from "../resources/regenerateKey/client/Client"; -import { RejectReasonsClient } from "../resources/rejectReasons/client/Client"; -import { ScopesClient } from "../resources/scopes/client/Client"; -import { ScorecardsClient } from "../resources/scorecards/client/Client"; -import { SyncStatusClient } from "../resources/syncStatus/client/Client"; -import { TagsClient } from "../resources/tags/client/Client"; -import { UsersClient } from "../resources/users/client/Client"; -import { WebhookReceiversClient } from "../resources/webhookReceivers/client/Client"; - -export declare namespace AtsClient { - export type Options = BaseClientOptions; -} - -export class AtsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - protected _accountDetails: AccountDetailsClient | undefined; - protected _accountToken: AccountTokenClient | undefined; - protected _activities: ActivitiesClient | undefined; - protected _applications: ApplicationsClient | undefined; - protected _asyncPassthrough: AsyncPassthroughClient | undefined; - protected _attachments: AttachmentsClient | undefined; - protected _auditTrail: AuditTrailClient | undefined; - protected _availableActions: AvailableActionsClient | undefined; - protected _candidates: CandidatesClient | undefined; - protected _scopes: ScopesClient | undefined; - protected _deleteAccount: DeleteAccountClient | undefined; - protected _departments: DepartmentsClient | undefined; - protected _eeocs: EeocsClient | undefined; - protected _fieldMapping: FieldMappingClient | undefined; - protected _generateKey: GenerateKeyClient | undefined; - protected _interviews: InterviewsClient | undefined; - protected _issues: IssuesClient | undefined; - protected _jobInterviewStages: JobInterviewStagesClient | undefined; - protected _jobPostings: JobPostingsClient | undefined; - protected _jobs: JobsClient | undefined; - protected _linkToken: LinkTokenClient | undefined; - protected _linkedAccounts: LinkedAccountsClient | undefined; - protected _offers: OffersClient | undefined; - protected _offices: OfficesClient | undefined; - protected _passthrough: PassthroughClient | undefined; - protected _regenerateKey: RegenerateKeyClient | undefined; - protected _rejectReasons: RejectReasonsClient | undefined; - protected _scorecards: ScorecardsClient | undefined; - protected _syncStatus: SyncStatusClient | undefined; - protected _forceResync: ForceResyncClient | undefined; - protected _tags: TagsClient | undefined; - protected _users: UsersClient | undefined; - protected _webhookReceivers: WebhookReceiversClient | undefined; - - constructor(options: AtsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - public get accountDetails(): AccountDetailsClient { - return (this._accountDetails ??= new AccountDetailsClient(this._options)); - } - - public get accountToken(): AccountTokenClient { - return (this._accountToken ??= new AccountTokenClient(this._options)); - } - - public get activities(): ActivitiesClient { - return (this._activities ??= new ActivitiesClient(this._options)); - } - - public get applications(): ApplicationsClient { - return (this._applications ??= new ApplicationsClient(this._options)); - } - - public get asyncPassthrough(): AsyncPassthroughClient { - return (this._asyncPassthrough ??= new AsyncPassthroughClient(this._options)); - } - - public get attachments(): AttachmentsClient { - return (this._attachments ??= new AttachmentsClient(this._options)); - } - - public get auditTrail(): AuditTrailClient { - return (this._auditTrail ??= new AuditTrailClient(this._options)); - } - - public get availableActions(): AvailableActionsClient { - return (this._availableActions ??= new AvailableActionsClient(this._options)); - } - - public get candidates(): CandidatesClient { - return (this._candidates ??= new CandidatesClient(this._options)); - } - - public get scopes(): ScopesClient { - return (this._scopes ??= new ScopesClient(this._options)); - } - - public get deleteAccount(): DeleteAccountClient { - return (this._deleteAccount ??= new DeleteAccountClient(this._options)); - } - - public get departments(): DepartmentsClient { - return (this._departments ??= new DepartmentsClient(this._options)); - } - - public get eeocs(): EeocsClient { - return (this._eeocs ??= new EeocsClient(this._options)); - } - - public get fieldMapping(): FieldMappingClient { - return (this._fieldMapping ??= new FieldMappingClient(this._options)); - } - - public get generateKey(): GenerateKeyClient { - return (this._generateKey ??= new GenerateKeyClient(this._options)); - } - - public get interviews(): InterviewsClient { - return (this._interviews ??= new InterviewsClient(this._options)); - } - - public get issues(): IssuesClient { - return (this._issues ??= new IssuesClient(this._options)); - } - - public get jobInterviewStages(): JobInterviewStagesClient { - return (this._jobInterviewStages ??= new JobInterviewStagesClient(this._options)); - } - - public get jobPostings(): JobPostingsClient { - return (this._jobPostings ??= new JobPostingsClient(this._options)); - } - - public get jobs(): JobsClient { - return (this._jobs ??= new JobsClient(this._options)); - } - - public get linkToken(): LinkTokenClient { - return (this._linkToken ??= new LinkTokenClient(this._options)); - } - - public get linkedAccounts(): LinkedAccountsClient { - return (this._linkedAccounts ??= new LinkedAccountsClient(this._options)); - } - - public get offers(): OffersClient { - return (this._offers ??= new OffersClient(this._options)); - } - - public get offices(): OfficesClient { - return (this._offices ??= new OfficesClient(this._options)); - } - - public get passthrough(): PassthroughClient { - return (this._passthrough ??= new PassthroughClient(this._options)); - } - - public get regenerateKey(): RegenerateKeyClient { - return (this._regenerateKey ??= new RegenerateKeyClient(this._options)); - } - - public get rejectReasons(): RejectReasonsClient { - return (this._rejectReasons ??= new RejectReasonsClient(this._options)); - } - - public get scorecards(): ScorecardsClient { - return (this._scorecards ??= new ScorecardsClient(this._options)); - } - - public get syncStatus(): SyncStatusClient { - return (this._syncStatus ??= new SyncStatusClient(this._options)); - } - - public get forceResync(): ForceResyncClient { - return (this._forceResync ??= new ForceResyncClient(this._options)); - } - - public get tags(): TagsClient { - return (this._tags ??= new TagsClient(this._options)); - } - - public get users(): UsersClient { - return (this._users ??= new UsersClient(this._options)); - } - - public get webhookReceivers(): WebhookReceiversClient { - return (this._webhookReceivers ??= new WebhookReceiversClient(this._options)); - } -} diff --git a/src/api/resources/ats/client/index.ts b/src/api/resources/ats/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/ats/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/ats/exports.ts b/src/api/resources/ats/exports.ts deleted file mode 100644 index 5806dd5b3..000000000 --- a/src/api/resources/ats/exports.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AtsClient } from "./client/Client"; -export * from "./client/index"; -export * from "./resources/index"; diff --git a/src/api/resources/ats/index.ts b/src/api/resources/ats/index.ts deleted file mode 100644 index fb00ab43d..000000000 --- a/src/api/resources/ats/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./client"; -export * from "./resources"; -export * from "./types"; diff --git a/src/api/resources/ats/resources/accountDetails/client/Client.ts b/src/api/resources/ats/resources/accountDetails/client/Client.ts deleted file mode 100644 index aff4efe8c..000000000 --- a/src/api/resources/ats/resources/accountDetails/client/Client.ts +++ /dev/null @@ -1,89 +0,0 @@ -// 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 AccountDetailsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AccountDetailsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AccountDetailsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Get details for a linked account. - * - * @param {AccountDetailsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.accountDetails.retrieve() - */ - public retrieve( - requestOptions?: AccountDetailsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(requestOptions)); - } - - private async __retrieve( - requestOptions?: AccountDetailsClient.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-details", - ), - 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.ats.AccountDetails.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/account-details"); - } -} diff --git a/src/api/resources/ats/resources/accountDetails/client/index.ts b/src/api/resources/ats/resources/accountDetails/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/ats/resources/accountDetails/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/ats/resources/accountDetails/exports.ts b/src/api/resources/ats/resources/accountDetails/exports.ts deleted file mode 100644 index 418f11a73..000000000 --- a/src/api/resources/ats/resources/accountDetails/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AccountDetailsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/accountDetails/index.ts b/src/api/resources/ats/resources/accountDetails/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ats/resources/accountDetails/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ats/resources/accountToken/client/Client.ts b/src/api/resources/ats/resources/accountToken/client/Client.ts deleted file mode 100644 index 9b9fbda56..000000000 --- a/src/api/resources/ats/resources/accountToken/client/Client.ts +++ /dev/null @@ -1,97 +0,0 @@ -// 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 AccountTokenClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AccountTokenClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AccountTokenClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns the account token for the end user with the provided public token. - * - * @param {string} public_token - * @param {AccountTokenClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.accountToken.retrieve("public_token") - */ - public retrieve( - public_token: string, - requestOptions?: AccountTokenClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(public_token, requestOptions)); - } - - private async __retrieve( - public_token: string, - 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/${core.url.encodePathParam(public_token)}`, - ), - 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.ats.AccountToken.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/account-token/{public_token}", - ); - } -} diff --git a/src/api/resources/ats/resources/accountToken/client/index.ts b/src/api/resources/ats/resources/accountToken/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/ats/resources/accountToken/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/ats/resources/accountToken/exports.ts b/src/api/resources/ats/resources/accountToken/exports.ts deleted file mode 100644 index 52f681c49..000000000 --- a/src/api/resources/ats/resources/accountToken/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AccountTokenClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/accountToken/index.ts b/src/api/resources/ats/resources/accountToken/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ats/resources/accountToken/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ats/resources/activities/client/Client.ts b/src/api/resources/ats/resources/activities/client/Client.ts deleted file mode 100644 index 3097293ed..000000000 --- a/src/api/resources/ats/resources/activities/client/Client.ts +++ /dev/null @@ -1,387 +0,0 @@ -// 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 ActivitiesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class ActivitiesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: ActivitiesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Activity` objects. - * - * @param {Merge.ats.ActivitiesListRequest} request - * @param {ActivitiesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Creates an `Activity` object with the given values. - * - * @param {Merge.ats.ActivityEndpointRequest} request - * @param {ActivitiesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.activities.create({ - * isDebugMode: true, - * runAsync: true, - * model: {}, - * remoteUserId: "remote_user_id" - * }) - */ - public create( - request: Merge.ats.ActivityEndpointRequest, - requestOptions?: ActivitiesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.ats.ActivityEndpointRequest, - requestOptions?: ActivitiesClient.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, - "ats/v1/activities", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.ats.ActivityEndpointRequest.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.ats.ActivityResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/activities"); - } - - /** - * Returns an `Activity` object with the given `id`. - * - * @param {string} id - * @param {Merge.ats.ActivitiesRetrieveRequest} request - * @param {ActivitiesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.activities.retrieve("id", { - * expand: "user", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "activity_type", - * showEnumOrigins: "activity_type" - * }) - */ - public retrieve( - id: string, - request: Merge.ats.ActivitiesRetrieveRequest = {}, - requestOptions?: ActivitiesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.ats.ActivitiesRetrieveRequest = {}, - requestOptions?: ActivitiesClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; - const _queryParams: Record = { - expand: expand != null ? expand : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - remote_fields: - remoteFields != null - ? serializers.ats.ActivitiesRetrieveRequestRemoteFields.jsonOrThrow(remoteFields, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - show_enum_origins: - showEnumOrigins != null - ? serializers.ats.ActivitiesRetrieveRequestShowEnumOrigins.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/activities/${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.ats.Activity.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } - - /** - * Returns metadata for `Activity` POSTs. - * - * @param {ActivitiesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.activities.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: ActivitiesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: ActivitiesClient.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/activities/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.ats.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", "/ats/v1/activities/meta/post"); - } -} diff --git a/src/api/resources/ats/resources/activities/client/index.ts b/src/api/resources/ats/resources/activities/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ats/resources/activities/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/activities/client/requests/ActivitiesListRequest.ts b/src/api/resources/ats/resources/activities/client/requests/ActivitiesListRequest.ts deleted file mode 100644 index 84fc25a65..000000000 --- a/src/api/resources/ats/resources/activities/client/requests/ActivitiesListRequest.ts +++ /dev/null @@ -1,53 +0,0 @@ -// 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: "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" - * } - */ -export interface ActivitiesListRequest { - /** 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?: "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. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - pageSize?: number; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: Merge.ats.ActivitiesListRequestRemoteFields; - /** The API provider's ID for the given object. */ - remoteId?: string; - /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ - showEnumOrigins?: Merge.ats.ActivitiesListRequestShowEnumOrigins; - /** If provided, will only return activities done by this user. */ - userId?: string; -} diff --git a/src/api/resources/ats/resources/activities/client/requests/ActivitiesRetrieveRequest.ts b/src/api/resources/ats/resources/activities/client/requests/ActivitiesRetrieveRequest.ts deleted file mode 100644 index d1d74bdf6..000000000 --- a/src/api/resources/ats/resources/activities/client/requests/ActivitiesRetrieveRequest.ts +++ /dev/null @@ -1,26 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * expand: "user", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "activity_type", - * showEnumOrigins: "activity_type" - * } - */ -export interface ActivitiesRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "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). */ - includeShellData?: boolean; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: Merge.ats.ActivitiesRetrieveRequestRemoteFields; - /** 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.ats.ActivitiesRetrieveRequestShowEnumOrigins; -} diff --git a/src/api/resources/ats/resources/activities/client/requests/ActivityEndpointRequest.ts b/src/api/resources/ats/resources/activities/client/requests/ActivityEndpointRequest.ts deleted file mode 100644 index 61d10f863..000000000 --- a/src/api/resources/ats/resources/activities/client/requests/ActivityEndpointRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {}, - * remoteUserId: "remote_user_id" - * } - */ -export interface ActivityEndpointRequest { - /** 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.ats.ActivityRequest; - remoteUserId: string; -} diff --git a/src/api/resources/ats/resources/activities/client/requests/index.ts b/src/api/resources/ats/resources/activities/client/requests/index.ts deleted file mode 100644 index 082cc9240..000000000 --- a/src/api/resources/ats/resources/activities/client/requests/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type { ActivitiesListRequest } from "./ActivitiesListRequest"; -export type { ActivitiesRetrieveRequest } from "./ActivitiesRetrieveRequest"; -export type { ActivityEndpointRequest } from "./ActivityEndpointRequest"; diff --git a/src/api/resources/ats/resources/activities/exports.ts b/src/api/resources/ats/resources/activities/exports.ts deleted file mode 100644 index bc36be9c9..000000000 --- a/src/api/resources/ats/resources/activities/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { ActivitiesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/activities/index.ts b/src/api/resources/ats/resources/activities/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/ats/resources/activities/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/ats/resources/activities/types/ActivitiesListRequestRemoteFields.ts b/src/api/resources/ats/resources/activities/types/ActivitiesListRequestRemoteFields.ts deleted file mode 100644 index a5f87a393..000000000 --- a/src/api/resources/ats/resources/activities/types/ActivitiesListRequestRemoteFields.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const ActivitiesListRequestRemoteFields = { - ActivityType: "activity_type", - ActivityTypeVisibility: "activity_type,visibility", - Visibility: "visibility", -} as const; -export type ActivitiesListRequestRemoteFields = - (typeof ActivitiesListRequestRemoteFields)[keyof typeof ActivitiesListRequestRemoteFields]; diff --git a/src/api/resources/ats/resources/activities/types/ActivitiesListRequestShowEnumOrigins.ts b/src/api/resources/ats/resources/activities/types/ActivitiesListRequestShowEnumOrigins.ts deleted file mode 100644 index 6c9ffdeb5..000000000 --- a/src/api/resources/ats/resources/activities/types/ActivitiesListRequestShowEnumOrigins.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const ActivitiesListRequestShowEnumOrigins = { - ActivityType: "activity_type", - ActivityTypeVisibility: "activity_type,visibility", - Visibility: "visibility", -} as const; -export type ActivitiesListRequestShowEnumOrigins = - (typeof ActivitiesListRequestShowEnumOrigins)[keyof typeof ActivitiesListRequestShowEnumOrigins]; diff --git a/src/api/resources/ats/resources/activities/types/ActivitiesRetrieveRequestRemoteFields.ts b/src/api/resources/ats/resources/activities/types/ActivitiesRetrieveRequestRemoteFields.ts deleted file mode 100644 index 34e915680..000000000 --- a/src/api/resources/ats/resources/activities/types/ActivitiesRetrieveRequestRemoteFields.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const ActivitiesRetrieveRequestRemoteFields = { - ActivityType: "activity_type", - ActivityTypeVisibility: "activity_type,visibility", - Visibility: "visibility", -} as const; -export type ActivitiesRetrieveRequestRemoteFields = - (typeof ActivitiesRetrieveRequestRemoteFields)[keyof typeof ActivitiesRetrieveRequestRemoteFields]; diff --git a/src/api/resources/ats/resources/activities/types/ActivitiesRetrieveRequestShowEnumOrigins.ts b/src/api/resources/ats/resources/activities/types/ActivitiesRetrieveRequestShowEnumOrigins.ts deleted file mode 100644 index f49a765da..000000000 --- a/src/api/resources/ats/resources/activities/types/ActivitiesRetrieveRequestShowEnumOrigins.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const ActivitiesRetrieveRequestShowEnumOrigins = { - ActivityType: "activity_type", - ActivityTypeVisibility: "activity_type,visibility", - Visibility: "visibility", -} as const; -export type ActivitiesRetrieveRequestShowEnumOrigins = - (typeof ActivitiesRetrieveRequestShowEnumOrigins)[keyof typeof ActivitiesRetrieveRequestShowEnumOrigins]; diff --git a/src/api/resources/ats/resources/activities/types/index.ts b/src/api/resources/ats/resources/activities/types/index.ts deleted file mode 100644 index 82c347432..000000000 --- a/src/api/resources/ats/resources/activities/types/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./ActivitiesListRequestRemoteFields"; -export * from "./ActivitiesListRequestShowEnumOrigins"; -export * from "./ActivitiesRetrieveRequestRemoteFields"; -export * from "./ActivitiesRetrieveRequestShowEnumOrigins"; diff --git a/src/api/resources/ats/resources/applications/client/Client.ts b/src/api/resources/ats/resources/applications/client/Client.ts deleted file mode 100644 index 6c532cb32..000000000 --- a/src/api/resources/ats/resources/applications/client/Client.ts +++ /dev/null @@ -1,485 +0,0 @@ -// 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 ApplicationsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class ApplicationsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: ApplicationsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Application` objects. - * - * @param {Merge.ats.ApplicationsListRequest} request - * @param {ApplicationsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Creates an `Application` object with the given values. - * For certain integrations, but not all, our API detects duplicate candidates and will associate applications with existing records in the third-party. New candidates are created and automatically linked to the application. - * - * See our [Help Center article](https://help.merge.dev/en/articles/10012366-updates-to-post-applications-oct-2024) for detailed support per integration. - * - * @param {Merge.ats.ApplicationEndpointRequest} request - * @param {ApplicationsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.applications.create({ - * isDebugMode: true, - * runAsync: true, - * model: {}, - * remoteUserId: "remote_user_id" - * }) - */ - public create( - request: Merge.ats.ApplicationEndpointRequest, - requestOptions?: ApplicationsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.ats.ApplicationEndpointRequest, - requestOptions?: ApplicationsClient.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, - "ats/v1/applications", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.ats.ApplicationEndpointRequest.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.ats.ApplicationResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/applications"); - } - - /** - * Returns an `Application` object with the given `id`. - * - * @param {string} id - * @param {Merge.ats.ApplicationsRetrieveRequest} request - * @param {ApplicationsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.applications.retrieve("id", { - * expand: "candidate", - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.ats.ApplicationsRetrieveRequest = {}, - requestOptions?: ApplicationsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.ats.ApplicationsRetrieveRequest = {}, - requestOptions?: ApplicationsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.ats.ApplicationsRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `ats/v1/applications/${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.ats.Application.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } - - /** - * Updates the `current_stage` field of an `Application` object - * - * @param {string} id - * @param {Merge.ats.UpdateApplicationStageRequest} request - * @param {ApplicationsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.applications.changeStageCreate("id", { - * isDebugMode: true, - * runAsync: true - * }) - */ - public changeStageCreate( - id: string, - request: Merge.ats.UpdateApplicationStageRequest = {}, - requestOptions?: ApplicationsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__changeStageCreate(id, request, requestOptions)); - } - - private async __changeStageCreate( - id: string, - request: Merge.ats.UpdateApplicationStageRequest = {}, - requestOptions?: ApplicationsClient.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, - `ats/v1/applications/${core.url.encodePathParam(id)}/change-stage`, - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.ats.UpdateApplicationStageRequest.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.ats.ApplicationResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/applications/{id}/change-stage", - ); - } - - /** - * Returns metadata for `Application` POSTs. - * - * @param {Merge.ats.ApplicationsMetaPostRetrieveRequest} request - * @param {ApplicationsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.applications.metaPostRetrieve({ - * applicationRemoteTemplateId: "application_remote_template_id" - * }) - */ - public metaPostRetrieve( - request: Merge.ats.ApplicationsMetaPostRetrieveRequest = {}, - requestOptions?: ApplicationsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(request, requestOptions)); - } - - private async __metaPostRetrieve( - request: Merge.ats.ApplicationsMetaPostRetrieveRequest = {}, - requestOptions?: ApplicationsClient.RequestOptions, - ): Promise> { - const { applicationRemoteTemplateId } = request; - const _queryParams: Record = { - application_remote_template_id: applicationRemoteTemplateId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/meta/post", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 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.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", - "/ats/v1/applications/meta/post", - ); - } -} diff --git a/src/api/resources/ats/resources/applications/client/index.ts b/src/api/resources/ats/resources/applications/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ats/resources/applications/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/applications/client/requests/ApplicationEndpointRequest.ts b/src/api/resources/ats/resources/applications/client/requests/ApplicationEndpointRequest.ts deleted file mode 100644 index f63e777da..000000000 --- a/src/api/resources/ats/resources/applications/client/requests/ApplicationEndpointRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {}, - * remoteUserId: "remote_user_id" - * } - */ -export interface ApplicationEndpointRequest { - /** 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.ats.ApplicationRequest; - remoteUserId: string; -} diff --git a/src/api/resources/ats/resources/applications/client/requests/ApplicationsListRequest.ts b/src/api/resources/ats/resources/applications/client/requests/ApplicationsListRequest.ts deleted file mode 100644 index b6acfc9fa..000000000 --- a/src/api/resources/ats/resources/applications/client/requests/ApplicationsListRequest.ts +++ /dev/null @@ -1,62 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * 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" - * } - */ -export interface ApplicationsListRequest { - /** If provided, will only return applications for this candidate. */ - candidateId?: 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; - /** If provided, will only return applications credited to this user. */ - creditedToId?: string; - /** If provided, will only return applications at this interview stage. */ - currentStageId?: string; - /** 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; - /** 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 applications for this job. */ - jobId?: string; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - pageSize?: number; - /** If provided, will only return applications with this reject reason. */ - rejectReasonId?: string; - /** The API provider's ID for the given object. */ - remoteId?: string; - /** If provided, will only return applications with this source. */ - source?: string; -} diff --git a/src/api/resources/ats/resources/applications/client/requests/ApplicationsMetaPostRetrieveRequest.ts b/src/api/resources/ats/resources/applications/client/requests/ApplicationsMetaPostRetrieveRequest.ts deleted file mode 100644 index 6d0f75f37..000000000 --- a/src/api/resources/ats/resources/applications/client/requests/ApplicationsMetaPostRetrieveRequest.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * applicationRemoteTemplateId: "application_remote_template_id" - * } - */ -export interface ApplicationsMetaPostRetrieveRequest { - /** The template ID associated with the nested application in the request. */ - applicationRemoteTemplateId?: string; -} diff --git a/src/api/resources/ats/resources/applications/client/requests/ApplicationsRetrieveRequest.ts b/src/api/resources/ats/resources/applications/client/requests/ApplicationsRetrieveRequest.ts deleted file mode 100644 index 6fcf4a4e1..000000000 --- a/src/api/resources/ats/resources/applications/client/requests/ApplicationsRetrieveRequest.ts +++ /dev/null @@ -1,20 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -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; - /** 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; -} diff --git a/src/api/resources/ats/resources/applications/client/requests/UpdateApplicationStageRequest.ts b/src/api/resources/ats/resources/applications/client/requests/UpdateApplicationStageRequest.ts deleted file mode 100644 index 78aaaf685..000000000 --- a/src/api/resources/ats/resources/applications/client/requests/UpdateApplicationStageRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true - * } - */ -export interface UpdateApplicationStageRequest { - /** 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 interview stage to move the application to. */ - jobInterviewStage?: string; - remoteUserId?: string; -} diff --git a/src/api/resources/ats/resources/applications/client/requests/index.ts b/src/api/resources/ats/resources/applications/client/requests/index.ts deleted file mode 100644 index 9488bd697..000000000 --- a/src/api/resources/ats/resources/applications/client/requests/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type { ApplicationEndpointRequest } from "./ApplicationEndpointRequest"; -export type { ApplicationsListRequest } from "./ApplicationsListRequest"; -export type { ApplicationsMetaPostRetrieveRequest } from "./ApplicationsMetaPostRetrieveRequest"; -export type { ApplicationsRetrieveRequest } from "./ApplicationsRetrieveRequest"; -export type { UpdateApplicationStageRequest } from "./UpdateApplicationStageRequest"; diff --git a/src/api/resources/ats/resources/applications/exports.ts b/src/api/resources/ats/resources/applications/exports.ts deleted file mode 100644 index 557ddfc8c..000000000 --- a/src/api/resources/ats/resources/applications/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { ApplicationsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/applications/index.ts b/src/api/resources/ats/resources/applications/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/ats/resources/applications/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/api/resources/ats/resources/applications/types/index.ts deleted file mode 100644 index 10d68b6c6..000000000 --- a/src/api/resources/ats/resources/applications/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./ApplicationsListRequestExpand"; -export * from "./ApplicationsRetrieveRequestExpand"; diff --git a/src/api/resources/ats/resources/asyncPassthrough/client/Client.ts b/src/api/resources/ats/resources/asyncPassthrough/client/Client.ts deleted file mode 100644 index f3c222a05..000000000 --- a/src/api/resources/ats/resources/asyncPassthrough/client/Client.ts +++ /dev/null @@ -1,170 +0,0 @@ -// 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 AsyncPassthroughClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AsyncPassthroughClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AsyncPassthroughClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Asynchronously pull data from an endpoint not currently supported by Merge. - * - * @param {Merge.ats.DataPassthroughRequest} request - * @param {AsyncPassthroughClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.asyncPassthrough.create({ - * method: "GET", - * path: "/scooters" - * }) - */ - public create( - request: Merge.ats.DataPassthroughRequest, - requestOptions?: AsyncPassthroughClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.ats.DataPassthroughRequest, - requestOptions?: AsyncPassthroughClient.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/async-passthrough", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.ats.DataPassthroughRequest.jsonOrThrow(request, { 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.ats.AsyncPassthroughReciept.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/async-passthrough"); - } - - /** - * Retrieves data from earlier async-passthrough POST request - * - * @param {string} async_passthrough_receipt_id - * @param {AsyncPassthroughClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.asyncPassthrough.retrieve("async_passthrough_receipt_id") - */ - public retrieve( - async_passthrough_receipt_id: string, - requestOptions?: AsyncPassthroughClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(async_passthrough_receipt_id, requestOptions)); - } - - private async __retrieve( - async_passthrough_receipt_id: string, - requestOptions?: AsyncPassthroughClient.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/async-passthrough/${core.url.encodePathParam(async_passthrough_receipt_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.ats.AsyncPassthroughRetrieveResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/async-passthrough/{async_passthrough_receipt_id}", - ); - } -} diff --git a/src/api/resources/ats/resources/asyncPassthrough/client/index.ts b/src/api/resources/ats/resources/asyncPassthrough/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/ats/resources/asyncPassthrough/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/ats/resources/asyncPassthrough/exports.ts b/src/api/resources/ats/resources/asyncPassthrough/exports.ts deleted file mode 100644 index 559d07505..000000000 --- a/src/api/resources/ats/resources/asyncPassthrough/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AsyncPassthroughClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/asyncPassthrough/index.ts b/src/api/resources/ats/resources/asyncPassthrough/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/ats/resources/asyncPassthrough/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/ats/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.ts b/src/api/resources/ats/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.ts deleted file mode 100644 index 1f3ef9b4c..000000000 --- a/src/api/resources/ats/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.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 AsyncPassthroughRetrieveResponse = Merge.ats.RemoteResponse | string; diff --git a/src/api/resources/ats/resources/asyncPassthrough/types/index.ts b/src/api/resources/ats/resources/asyncPassthrough/types/index.ts deleted file mode 100644 index f2b2d0e21..000000000 --- a/src/api/resources/ats/resources/asyncPassthrough/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./AsyncPassthroughRetrieveResponse"; diff --git a/src/api/resources/ats/resources/attachments/client/Client.ts b/src/api/resources/ats/resources/attachments/client/Client.ts deleted file mode 100644 index e22c0aa46..000000000 --- a/src/api/resources/ats/resources/attachments/client/Client.ts +++ /dev/null @@ -1,367 +0,0 @@ -// 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 AttachmentsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AttachmentsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AttachmentsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Attachment` objects. - * - * @param {Merge.ats.AttachmentsListRequest} request - * @param {AttachmentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Creates an `Attachment` object with the given values. - * - * @param {Merge.ats.AttachmentEndpointRequest} request - * @param {AttachmentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.attachments.create({ - * isDebugMode: true, - * runAsync: true, - * model: {}, - * remoteUserId: "remote_user_id" - * }) - */ - public create( - request: Merge.ats.AttachmentEndpointRequest, - requestOptions?: AttachmentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.ats.AttachmentEndpointRequest, - requestOptions?: AttachmentsClient.RequestOptions, - ): Promise> { - const { isDebugMode, runAsync, ..._body } = request; - const _queryParams: Record = { - is_debug_mode: isDebugMode, - run_async: runAsync, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ats/v1/attachments", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.ats.AttachmentEndpointRequest.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.ats.AttachmentResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/attachments"); - } - - /** - * Returns an `Attachment` object with the given `id`. - * - * @param {string} id - * @param {Merge.ats.AttachmentsRetrieveRequest} request - * @param {AttachmentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.attachments.retrieve("id", { - * expand: "candidate", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "attachment_type", - * showEnumOrigins: "attachment_type" - * }) - */ - public retrieve( - id: string, - request: Merge.ats.AttachmentsRetrieveRequest = {}, - requestOptions?: AttachmentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.ats.AttachmentsRetrieveRequest = {}, - requestOptions?: AttachmentsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; - const _queryParams: Record = { - expand: expand != null ? expand : undefined, - include_remote_data: includeRemoteData, - 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, - `ats/v1/attachments/${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.ats.Attachment.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } - - /** - * Returns metadata for `Attachment` POSTs. - * - * @param {AttachmentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.attachments.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: AttachmentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: AttachmentsClient.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/attachments/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.ats.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", "/ats/v1/attachments/meta/post"); - } -} diff --git a/src/api/resources/ats/resources/attachments/client/index.ts b/src/api/resources/ats/resources/attachments/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ats/resources/attachments/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/attachments/client/requests/AttachmentEndpointRequest.ts b/src/api/resources/ats/resources/attachments/client/requests/AttachmentEndpointRequest.ts deleted file mode 100644 index bf0c87c23..000000000 --- a/src/api/resources/ats/resources/attachments/client/requests/AttachmentEndpointRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {}, - * remoteUserId: "remote_user_id" - * } - */ -export interface AttachmentEndpointRequest { - /** 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.ats.AttachmentRequest; - remoteUserId: string; -} diff --git a/src/api/resources/ats/resources/attachments/client/requests/AttachmentsListRequest.ts b/src/api/resources/ats/resources/attachments/client/requests/AttachmentsListRequest.ts deleted file mode 100644 index 4031b8947..000000000 --- a/src/api/resources/ats/resources/attachments/client/requests/AttachmentsListRequest.ts +++ /dev/null @@ -1,51 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * 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" - * } - */ -export interface AttachmentsListRequest { - /** If provided, will only return attachments for this candidate. */ - candidateId?: 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?: "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. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - pageSize?: number; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: "attachment_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?: "attachment_type"; -} diff --git a/src/api/resources/ats/resources/attachments/client/requests/AttachmentsRetrieveRequest.ts b/src/api/resources/ats/resources/attachments/client/requests/AttachmentsRetrieveRequest.ts deleted file mode 100644 index acea419f9..000000000 --- a/src/api/resources/ats/resources/attachments/client/requests/AttachmentsRetrieveRequest.ts +++ /dev/null @@ -1,24 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * expand: "candidate", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "attachment_type", - * showEnumOrigins: "attachment_type" - * } - */ -export interface AttachmentsRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "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). */ - includeShellData?: boolean; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: "attachment_type"; - /** 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?: "attachment_type"; -} diff --git a/src/api/resources/ats/resources/attachments/client/requests/index.ts b/src/api/resources/ats/resources/attachments/client/requests/index.ts deleted file mode 100644 index b3e8ee6f3..000000000 --- a/src/api/resources/ats/resources/attachments/client/requests/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type { AttachmentEndpointRequest } from "./AttachmentEndpointRequest"; -export type { AttachmentsListRequest } from "./AttachmentsListRequest"; -export type { AttachmentsRetrieveRequest } from "./AttachmentsRetrieveRequest"; diff --git a/src/api/resources/ats/resources/attachments/exports.ts b/src/api/resources/ats/resources/attachments/exports.ts deleted file mode 100644 index cdb3146a3..000000000 --- a/src/api/resources/ats/resources/attachments/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AttachmentsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/attachments/index.ts b/src/api/resources/ats/resources/attachments/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ats/resources/attachments/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ats/resources/auditTrail/client/Client.ts b/src/api/resources/ats/resources/auditTrail/client/Client.ts deleted file mode 100644 index 3868adaba..000000000 --- a/src/api/resources/ats/resources/auditTrail/client/Client.ts +++ /dev/null @@ -1,108 +0,0 @@ -// 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 AuditTrailClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AuditTrailClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AuditTrailClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Gets a list of audit trail events. - * - * @param {Merge.ats.AuditTrailListRequest} request - * @param {AuditTrailClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.auditTrail.list({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * endDate: "end_date", - * eventType: "event_type", - * pageSize: 1, - * startDate: "start_date", - * userEmail: "user_email" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } -} diff --git a/src/api/resources/ats/resources/auditTrail/client/index.ts b/src/api/resources/ats/resources/auditTrail/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ats/resources/auditTrail/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/auditTrail/client/requests/AuditTrailListRequest.ts b/src/api/resources/ats/resources/auditTrail/client/requests/AuditTrailListRequest.ts deleted file mode 100644 index 65216f96c..000000000 --- a/src/api/resources/ats/resources/auditTrail/client/requests/AuditTrailListRequest.ts +++ /dev/null @@ -1,27 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * endDate: "end_date", - * eventType: "event_type", - * pageSize: 1, - * startDate: "start_date", - * userEmail: "user_email" - * } - */ -export interface AuditTrailListRequest { - /** The pagination cursor value. */ - cursor?: string; - /** If included, will only include audit trail events that occurred before this time */ - 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. */ - pageSize?: number; - /** If included, will only include audit trail events that occurred after this time */ - startDate?: string; - /** If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. */ - userEmail?: string; -} diff --git a/src/api/resources/ats/resources/auditTrail/client/requests/index.ts b/src/api/resources/ats/resources/auditTrail/client/requests/index.ts deleted file mode 100644 index 1878598de..000000000 --- a/src/api/resources/ats/resources/auditTrail/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { AuditTrailListRequest } from "./AuditTrailListRequest"; diff --git a/src/api/resources/ats/resources/auditTrail/exports.ts b/src/api/resources/ats/resources/auditTrail/exports.ts deleted file mode 100644 index 0a7d225a1..000000000 --- a/src/api/resources/ats/resources/auditTrail/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AuditTrailClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/auditTrail/index.ts b/src/api/resources/ats/resources/auditTrail/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ats/resources/auditTrail/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ats/resources/availableActions/client/Client.ts b/src/api/resources/ats/resources/availableActions/client/Client.ts deleted file mode 100644 index b2003a32e..000000000 --- a/src/api/resources/ats/resources/availableActions/client/Client.ts +++ /dev/null @@ -1,89 +0,0 @@ -// 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 AvailableActionsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AvailableActionsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AvailableActionsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of models and actions available for an account. - * - * @param {AvailableActionsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.availableActions.retrieve() - */ - public retrieve( - requestOptions?: AvailableActionsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(requestOptions)); - } - - private async __retrieve( - requestOptions?: AvailableActionsClient.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/available-actions", - ), - 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.ats.AvailableActions.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/available-actions"); - } -} diff --git a/src/api/resources/ats/resources/availableActions/client/index.ts b/src/api/resources/ats/resources/availableActions/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/ats/resources/availableActions/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/ats/resources/availableActions/exports.ts b/src/api/resources/ats/resources/availableActions/exports.ts deleted file mode 100644 index 660bd32af..000000000 --- a/src/api/resources/ats/resources/availableActions/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AvailableActionsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/availableActions/index.ts b/src/api/resources/ats/resources/availableActions/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ats/resources/availableActions/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ats/resources/candidates/client/Client.ts b/src/api/resources/ats/resources/candidates/client/Client.ts deleted file mode 100644 index 7863aac47..000000000 --- a/src/api/resources/ats/resources/candidates/client/Client.ts +++ /dev/null @@ -1,604 +0,0 @@ -// 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 CandidatesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class CandidatesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: CandidatesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Candidate` objects. - * - * @param {Merge.ats.CandidatesListRequest} request - * @param {CandidatesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Creates a `Candidate` object with the given values. - * - * @param {Merge.ats.CandidateEndpointRequest} request - * @param {CandidatesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.candidates.create({ - * isDebugMode: true, - * runAsync: true, - * model: {}, - * remoteUserId: "remote_user_id" - * }) - */ - public create( - request: Merge.ats.CandidateEndpointRequest, - requestOptions?: CandidatesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.ats.CandidateEndpointRequest, - requestOptions?: CandidatesClient.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, - "ats/v1/candidates", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.ats.CandidateEndpointRequest.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.ats.CandidateResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/candidates"); - } - - /** - * Returns a `Candidate` object with the given `id`. - * - * @param {string} id - * @param {Merge.ats.CandidatesRetrieveRequest} request - * @param {CandidatesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.candidates.retrieve("id", { - * expand: "applications", - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.ats.CandidatesRetrieveRequest = {}, - requestOptions?: CandidatesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.ats.CandidatesRetrieveRequest = {}, - requestOptions?: CandidatesClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.ats.CandidatesRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `ats/v1/candidates/${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.ats.Candidate.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } - - /** - * Updates a `Candidate` object with the given `id`. - * - * @param {string} id - * @param {Merge.ats.PatchedCandidateEndpointRequest} request - * @param {CandidatesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.candidates.partialUpdate("id", { - * isDebugMode: true, - * runAsync: true, - * model: {}, - * remoteUserId: "remote_user_id" - * }) - */ - public partialUpdate( - id: string, - request: Merge.ats.PatchedCandidateEndpointRequest, - requestOptions?: CandidatesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__partialUpdate(id, request, requestOptions)); - } - - private async __partialUpdate( - id: string, - request: Merge.ats.PatchedCandidateEndpointRequest, - requestOptions?: CandidatesClient.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, - `ats/v1/candidates/${core.url.encodePathParam(id)}`, - ), - method: "PATCH", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.ats.PatchedCandidateEndpointRequest.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.ats.CandidateResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/ats/v1/candidates/{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. - * - * @param {string} model_id - * @param {Merge.ats.IgnoreCommonModelRequest} request - * @param {CandidatesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.candidates.ignoreCreate("model_id", { - * reason: "GENERAL_CUSTOMER_REQUEST" - * }) - */ - public ignoreCreate( - model_id: string, - request: Merge.ats.IgnoreCommonModelRequest, - requestOptions?: CandidatesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__ignoreCreate(model_id, request, requestOptions)); - } - - private async __ignoreCreate( - model_id: string, - request: Merge.ats.IgnoreCommonModelRequest, - requestOptions?: CandidatesClient.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/candidates/ignore/${core.url.encodePathParam(model_id)}`, - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.ats.IgnoreCommonModelRequest.jsonOrThrow(request, { 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: undefined, rawResponse: _response.rawResponse }; - } - - if (_response.error.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/candidates/ignore/{model_id}", - ); - } - - /** - * Returns metadata for `Candidate` PATCHs. - * - * @param {string} id - * @param {CandidatesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.candidates.metaPatchRetrieve("id") - */ - public metaPatchRetrieve( - id: string, - requestOptions?: CandidatesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPatchRetrieve(id, requestOptions)); - } - - private async __metaPatchRetrieve( - id: string, - requestOptions?: CandidatesClient.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/candidates/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.ats.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", - "/ats/v1/candidates/meta/patch/{id}", - ); - } - - /** - * Returns metadata for `Candidate` POSTs. - * - * @param {CandidatesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.candidates.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: CandidatesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: CandidatesClient.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/candidates/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.ats.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", "/ats/v1/candidates/meta/post"); - } -} diff --git a/src/api/resources/ats/resources/candidates/client/index.ts b/src/api/resources/ats/resources/candidates/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ats/resources/candidates/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/candidates/client/requests/CandidateEndpointRequest.ts b/src/api/resources/ats/resources/candidates/client/requests/CandidateEndpointRequest.ts deleted file mode 100644 index d6a043590..000000000 --- a/src/api/resources/ats/resources/candidates/client/requests/CandidateEndpointRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {}, - * remoteUserId: "remote_user_id" - * } - */ -export interface CandidateEndpointRequest { - /** 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.ats.CandidateRequest; - remoteUserId: string; -} diff --git a/src/api/resources/ats/resources/candidates/client/requests/CandidatesListRequest.ts b/src/api/resources/ats/resources/candidates/client/requests/CandidatesListRequest.ts deleted file mode 100644 index 406be4caa..000000000 --- a/src/api/resources/ats/resources/candidates/client/requests/CandidatesListRequest.ts +++ /dev/null @@ -1,56 +0,0 @@ -// 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", - * 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" - * } - */ -export interface CandidatesListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** If provided, will only return 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; - /** 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/). */ - 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 candidates with this last name. */ - lastName?: string; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - pageSize?: number; - /** The API provider's ID for the given object. */ - remoteId?: string; - /** If provided, will only return candidates with these tags; multiple tags can be separated by commas. */ - tags?: string; -} diff --git a/src/api/resources/ats/resources/candidates/client/requests/CandidatesRetrieveRequest.ts b/src/api/resources/ats/resources/candidates/client/requests/CandidatesRetrieveRequest.ts deleted file mode 100644 index c4a736357..000000000 --- a/src/api/resources/ats/resources/candidates/client/requests/CandidatesRetrieveRequest.ts +++ /dev/null @@ -1,20 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -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; - /** 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; -} diff --git a/src/api/resources/ats/resources/candidates/client/requests/IgnoreCommonModelRequest.ts b/src/api/resources/ats/resources/candidates/client/requests/IgnoreCommonModelRequest.ts deleted file mode 100644 index 545e610d1..000000000 --- a/src/api/resources/ats/resources/candidates/client/requests/IgnoreCommonModelRequest.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * reason: "GENERAL_CUSTOMER_REQUEST" - * } - */ -export interface IgnoreCommonModelRequest { - reason: Merge.ats.IgnoreCommonModelRequestReason; - message?: string; -} diff --git a/src/api/resources/ats/resources/candidates/client/requests/PatchedCandidateEndpointRequest.ts b/src/api/resources/ats/resources/candidates/client/requests/PatchedCandidateEndpointRequest.ts deleted file mode 100644 index 0122beb45..000000000 --- a/src/api/resources/ats/resources/candidates/client/requests/PatchedCandidateEndpointRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {}, - * remoteUserId: "remote_user_id" - * } - */ -export interface PatchedCandidateEndpointRequest { - /** 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.ats.PatchedCandidateRequest; - remoteUserId: string; -} diff --git a/src/api/resources/ats/resources/candidates/client/requests/index.ts b/src/api/resources/ats/resources/candidates/client/requests/index.ts deleted file mode 100644 index aa3b78a75..000000000 --- a/src/api/resources/ats/resources/candidates/client/requests/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -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/exports.ts b/src/api/resources/ats/resources/candidates/exports.ts deleted file mode 100644 index d4fc9b968..000000000 --- a/src/api/resources/ats/resources/candidates/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { CandidatesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/candidates/index.ts b/src/api/resources/ats/resources/candidates/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/ats/resources/candidates/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/IgnoreCommonModelRequestReason.ts b/src/api/resources/ats/resources/candidates/types/IgnoreCommonModelRequestReason.ts deleted file mode 100644 index 80eb9d0be..000000000 --- a/src/api/resources/ats/resources/candidates/types/IgnoreCommonModelRequestReason.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../index"; - -export type IgnoreCommonModelRequestReason = Merge.ats.ReasonEnum | string; diff --git a/src/api/resources/ats/resources/candidates/types/index.ts b/src/api/resources/ats/resources/candidates/types/index.ts deleted file mode 100644 index 36e0b3d6e..000000000 --- a/src/api/resources/ats/resources/candidates/types/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./CandidatesListRequestExpand"; -export * from "./CandidatesRetrieveRequestExpand"; -export * from "./IgnoreCommonModelRequestReason"; diff --git a/src/api/resources/ats/resources/deleteAccount/client/Client.ts b/src/api/resources/ats/resources/deleteAccount/client/Client.ts deleted file mode 100644 index 4e675c397..000000000 --- a/src/api/resources/ats/resources/deleteAccount/client/Client.ts +++ /dev/null @@ -1,74 +0,0 @@ -// 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"; - -export declare namespace DeleteAccountClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class DeleteAccountClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: DeleteAccountClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Delete a linked account. - * - * @param {DeleteAccountClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.deleteAccount.delete() - */ - public delete(requestOptions?: DeleteAccountClient.RequestOptions): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__delete(requestOptions)); - } - - private async __delete(requestOptions?: DeleteAccountClient.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/delete-account", - ), - 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: undefined, rawResponse: _response.rawResponse }; - } - - if (_response.error.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/delete-account"); - } -} diff --git a/src/api/resources/ats/resources/deleteAccount/client/index.ts b/src/api/resources/ats/resources/deleteAccount/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/ats/resources/deleteAccount/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/ats/resources/deleteAccount/exports.ts b/src/api/resources/ats/resources/deleteAccount/exports.ts deleted file mode 100644 index b2e5e49b6..000000000 --- a/src/api/resources/ats/resources/deleteAccount/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { DeleteAccountClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/deleteAccount/index.ts b/src/api/resources/ats/resources/deleteAccount/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ats/resources/deleteAccount/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ats/resources/departments/client/Client.ts b/src/api/resources/ats/resources/departments/client/Client.ts deleted file mode 100644 index 085ebc346..000000000 --- a/src/api/resources/ats/resources/departments/client/Client.ts +++ /dev/null @@ -1,205 +0,0 @@ -// 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 DepartmentsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class DepartmentsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: DepartmentsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Department` objects. - * - * @param {Merge.ats.DepartmentsListRequest} request - * @param {DepartmentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `Department` object with the given `id`. - * - * @param {string} id - * @param {Merge.ats.DepartmentsRetrieveRequest} request - * @param {DepartmentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.departments.retrieve("id", { - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.ats.DepartmentsRetrieveRequest = {}, - requestOptions?: DepartmentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.ats.DepartmentsRetrieveRequest = {}, - requestOptions?: DepartmentsClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `ats/v1/departments/${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.ats.Department.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/ats/resources/departments/client/index.ts b/src/api/resources/ats/resources/departments/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ats/resources/departments/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/departments/client/requests/DepartmentsListRequest.ts b/src/api/resources/ats/resources/departments/client/requests/DepartmentsListRequest.ts deleted file mode 100644 index ee8d8f01a..000000000 --- a/src/api/resources/ats/resources/departments/client/requests/DepartmentsListRequest.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - * pageSize: 1, - * remoteId: "remote_id" - * } - */ -export interface DepartmentsListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - pageSize?: number; - /** The API provider's ID for the given object. */ - remoteId?: string; -} diff --git a/src/api/resources/ats/resources/departments/client/requests/DepartmentsRetrieveRequest.ts b/src/api/resources/ats/resources/departments/client/requests/DepartmentsRetrieveRequest.ts deleted file mode 100644 index fdf1400ce..000000000 --- a/src/api/resources/ats/resources/departments/client/requests/DepartmentsRetrieveRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * includeRemoteData: true, - * includeShellData: true - * } - */ -export interface DepartmentsRetrieveRequest { - /** 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; -} diff --git a/src/api/resources/ats/resources/departments/client/requests/index.ts b/src/api/resources/ats/resources/departments/client/requests/index.ts deleted file mode 100644 index bcbf19acb..000000000 --- a/src/api/resources/ats/resources/departments/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { DepartmentsListRequest } from "./DepartmentsListRequest"; -export type { DepartmentsRetrieveRequest } from "./DepartmentsRetrieveRequest"; diff --git a/src/api/resources/ats/resources/departments/exports.ts b/src/api/resources/ats/resources/departments/exports.ts deleted file mode 100644 index 7814d4ebe..000000000 --- a/src/api/resources/ats/resources/departments/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { DepartmentsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/departments/index.ts b/src/api/resources/ats/resources/departments/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ats/resources/departments/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ats/resources/eeocs/client/Client.ts b/src/api/resources/ats/resources/eeocs/client/Client.ts deleted file mode 100644 index 8e7f848bb..000000000 --- a/src/api/resources/ats/resources/eeocs/client/Client.ts +++ /dev/null @@ -1,243 +0,0 @@ -// 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 EeocsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class EeocsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: EeocsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `EEOC` objects. - * - * @param {Merge.ats.EeocsListRequest} request - * @param {EeocsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns an `EEOC` object with the given `id`. - * - * @param {string} id - * @param {Merge.ats.EeocsRetrieveRequest} request - * @param {EeocsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.eeocs.retrieve("id", { - * expand: "candidate", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "disability_status", - * showEnumOrigins: "disability_status" - * }) - */ - public retrieve( - id: string, - request: Merge.ats.EeocsRetrieveRequest = {}, - requestOptions?: EeocsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.ats.EeocsRetrieveRequest = {}, - requestOptions?: EeocsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; - const _queryParams: Record = { - expand: expand != null ? expand : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - remote_fields: - remoteFields != null - ? serializers.ats.EeocsRetrieveRequestRemoteFields.jsonOrThrow(remoteFields, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - show_enum_origins: - showEnumOrigins != null - ? serializers.ats.EeocsRetrieveRequestShowEnumOrigins.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/${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.ats.Eeoc.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/ats/resources/eeocs/client/index.ts b/src/api/resources/ats/resources/eeocs/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ats/resources/eeocs/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/eeocs/client/requests/EeocsListRequest.ts b/src/api/resources/ats/resources/eeocs/client/requests/EeocsListRequest.ts deleted file mode 100644 index 69854759d..000000000 --- a/src/api/resources/ats/resources/eeocs/client/requests/EeocsListRequest.ts +++ /dev/null @@ -1,53 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * 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" - * } - */ -export interface EeocsListRequest { - /** If provided, will only return EEOC info for this candidate. */ - candidateId?: 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?: "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. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - pageSize?: number; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: Merge.ats.EeocsListRequestRemoteFields; - /** The API provider's ID for the given object. */ - remoteId?: string; - /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ - showEnumOrigins?: Merge.ats.EeocsListRequestShowEnumOrigins; -} diff --git a/src/api/resources/ats/resources/eeocs/client/requests/EeocsRetrieveRequest.ts b/src/api/resources/ats/resources/eeocs/client/requests/EeocsRetrieveRequest.ts deleted file mode 100644 index 6d64bd2da..000000000 --- a/src/api/resources/ats/resources/eeocs/client/requests/EeocsRetrieveRequest.ts +++ /dev/null @@ -1,26 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * expand: "candidate", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "disability_status", - * showEnumOrigins: "disability_status" - * } - */ -export interface EeocsRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "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). */ - includeShellData?: boolean; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: Merge.ats.EeocsRetrieveRequestRemoteFields; - /** 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.ats.EeocsRetrieveRequestShowEnumOrigins; -} diff --git a/src/api/resources/ats/resources/eeocs/client/requests/index.ts b/src/api/resources/ats/resources/eeocs/client/requests/index.ts deleted file mode 100644 index 179b46603..000000000 --- a/src/api/resources/ats/resources/eeocs/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { EeocsListRequest } from "./EeocsListRequest"; -export type { EeocsRetrieveRequest } from "./EeocsRetrieveRequest"; diff --git a/src/api/resources/ats/resources/eeocs/exports.ts b/src/api/resources/ats/resources/eeocs/exports.ts deleted file mode 100644 index d925f6f90..000000000 --- a/src/api/resources/ats/resources/eeocs/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { EeocsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/eeocs/index.ts b/src/api/resources/ats/resources/eeocs/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/ats/resources/eeocs/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/ats/resources/eeocs/types/EeocsListRequestRemoteFields.ts b/src/api/resources/ats/resources/eeocs/types/EeocsListRequestRemoteFields.ts deleted file mode 100644 index cfad8d718..000000000 --- a/src/api/resources/ats/resources/eeocs/types/EeocsListRequestRemoteFields.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const EeocsListRequestRemoteFields = { - DisabilityStatus: "disability_status", - DisabilityStatusGender: "disability_status,gender", - DisabilityStatusGenderRace: "disability_status,gender,race", - DisabilityStatusGenderRaceVeteranStatus: "disability_status,gender,race,veteran_status", - DisabilityStatusGenderVeteranStatus: "disability_status,gender,veteran_status", - DisabilityStatusRace: "disability_status,race", - DisabilityStatusRaceVeteranStatus: "disability_status,race,veteran_status", - DisabilityStatusVeteranStatus: "disability_status,veteran_status", - Gender: "gender", - GenderRace: "gender,race", - GenderRaceVeteranStatus: "gender,race,veteran_status", - GenderVeteranStatus: "gender,veteran_status", - Race: "race", - RaceVeteranStatus: "race,veteran_status", - VeteranStatus: "veteran_status", -} as const; -export type EeocsListRequestRemoteFields = - (typeof EeocsListRequestRemoteFields)[keyof typeof EeocsListRequestRemoteFields]; diff --git a/src/api/resources/ats/resources/eeocs/types/EeocsListRequestShowEnumOrigins.ts b/src/api/resources/ats/resources/eeocs/types/EeocsListRequestShowEnumOrigins.ts deleted file mode 100644 index 1d8cba560..000000000 --- a/src/api/resources/ats/resources/eeocs/types/EeocsListRequestShowEnumOrigins.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const EeocsListRequestShowEnumOrigins = { - DisabilityStatus: "disability_status", - DisabilityStatusGender: "disability_status,gender", - DisabilityStatusGenderRace: "disability_status,gender,race", - DisabilityStatusGenderRaceVeteranStatus: "disability_status,gender,race,veteran_status", - DisabilityStatusGenderVeteranStatus: "disability_status,gender,veteran_status", - DisabilityStatusRace: "disability_status,race", - DisabilityStatusRaceVeteranStatus: "disability_status,race,veteran_status", - DisabilityStatusVeteranStatus: "disability_status,veteran_status", - Gender: "gender", - GenderRace: "gender,race", - GenderRaceVeteranStatus: "gender,race,veteran_status", - GenderVeteranStatus: "gender,veteran_status", - Race: "race", - RaceVeteranStatus: "race,veteran_status", - VeteranStatus: "veteran_status", -} as const; -export type EeocsListRequestShowEnumOrigins = - (typeof EeocsListRequestShowEnumOrigins)[keyof typeof EeocsListRequestShowEnumOrigins]; diff --git a/src/api/resources/ats/resources/eeocs/types/EeocsRetrieveRequestRemoteFields.ts b/src/api/resources/ats/resources/eeocs/types/EeocsRetrieveRequestRemoteFields.ts deleted file mode 100644 index 57ce46dc2..000000000 --- a/src/api/resources/ats/resources/eeocs/types/EeocsRetrieveRequestRemoteFields.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const EeocsRetrieveRequestRemoteFields = { - DisabilityStatus: "disability_status", - DisabilityStatusGender: "disability_status,gender", - DisabilityStatusGenderRace: "disability_status,gender,race", - DisabilityStatusGenderRaceVeteranStatus: "disability_status,gender,race,veteran_status", - DisabilityStatusGenderVeteranStatus: "disability_status,gender,veteran_status", - DisabilityStatusRace: "disability_status,race", - DisabilityStatusRaceVeteranStatus: "disability_status,race,veteran_status", - DisabilityStatusVeteranStatus: "disability_status,veteran_status", - Gender: "gender", - GenderRace: "gender,race", - GenderRaceVeteranStatus: "gender,race,veteran_status", - GenderVeteranStatus: "gender,veteran_status", - Race: "race", - RaceVeteranStatus: "race,veteran_status", - VeteranStatus: "veteran_status", -} as const; -export type EeocsRetrieveRequestRemoteFields = - (typeof EeocsRetrieveRequestRemoteFields)[keyof typeof EeocsRetrieveRequestRemoteFields]; diff --git a/src/api/resources/ats/resources/eeocs/types/EeocsRetrieveRequestShowEnumOrigins.ts b/src/api/resources/ats/resources/eeocs/types/EeocsRetrieveRequestShowEnumOrigins.ts deleted file mode 100644 index 472764f1b..000000000 --- a/src/api/resources/ats/resources/eeocs/types/EeocsRetrieveRequestShowEnumOrigins.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const EeocsRetrieveRequestShowEnumOrigins = { - DisabilityStatus: "disability_status", - DisabilityStatusGender: "disability_status,gender", - DisabilityStatusGenderRace: "disability_status,gender,race", - DisabilityStatusGenderRaceVeteranStatus: "disability_status,gender,race,veteran_status", - DisabilityStatusGenderVeteranStatus: "disability_status,gender,veteran_status", - DisabilityStatusRace: "disability_status,race", - DisabilityStatusRaceVeteranStatus: "disability_status,race,veteran_status", - DisabilityStatusVeteranStatus: "disability_status,veteran_status", - Gender: "gender", - GenderRace: "gender,race", - GenderRaceVeteranStatus: "gender,race,veteran_status", - GenderVeteranStatus: "gender,veteran_status", - Race: "race", - RaceVeteranStatus: "race,veteran_status", - VeteranStatus: "veteran_status", -} as const; -export type EeocsRetrieveRequestShowEnumOrigins = - (typeof EeocsRetrieveRequestShowEnumOrigins)[keyof typeof EeocsRetrieveRequestShowEnumOrigins]; diff --git a/src/api/resources/ats/resources/eeocs/types/index.ts b/src/api/resources/ats/resources/eeocs/types/index.ts deleted file mode 100644 index 55f674fdc..000000000 --- a/src/api/resources/ats/resources/eeocs/types/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./EeocsListRequestRemoteFields"; -export * from "./EeocsListRequestShowEnumOrigins"; -export * from "./EeocsRetrieveRequestRemoteFields"; -export * from "./EeocsRetrieveRequestShowEnumOrigins"; diff --git a/src/api/resources/ats/resources/fieldMapping/client/Client.ts b/src/api/resources/ats/resources/fieldMapping/client/Client.ts deleted file mode 100644 index 664285953..000000000 --- a/src/api/resources/ats/resources/fieldMapping/client/Client.ts +++ /dev/null @@ -1,473 +0,0 @@ -// 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 FieldMappingClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class FieldMappingClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: FieldMappingClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * 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/). - * - * @param {Merge.ats.FieldMappingsRetrieveRequest} request - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.fieldMapping.fieldMappingsRetrieve({ - * excludeRemoteFieldMetadata: true - * }) - */ - public fieldMappingsRetrieve( - request: Merge.ats.FieldMappingsRetrieveRequest = {}, - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__fieldMappingsRetrieve(request, requestOptions)); - } - - private async __fieldMappingsRetrieve( - request: Merge.ats.FieldMappingsRetrieveRequest = {}, - requestOptions?: FieldMappingClient.RequestOptions, - ): Promise> { - const { excludeRemoteFieldMetadata } = request; - const _queryParams: Record = { - exclude_remote_field_metadata: excludeRemoteFieldMetadata, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/field-mappings", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 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.FieldMappingApiInstanceResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/field-mappings"); - } - - /** - * 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. - * - * @param {Merge.ats.CreateFieldMappingRequest} request - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.fieldMapping.fieldMappingsCreate({ - * excludeRemoteFieldMetadata: true, - * targetFieldName: "example_target_field_name", - * targetFieldDescription: "this is a example description of the target field", - * remoteFieldTraversalPath: ["example_remote_field"], - * remoteMethod: "GET", - * remoteUrlPath: "/example-url-path", - * commonModelName: "ExampleCommonModel" - * }) - */ - public fieldMappingsCreate( - request: Merge.ats.CreateFieldMappingRequest, - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__fieldMappingsCreate(request, requestOptions)); - } - - private async __fieldMappingsCreate( - request: Merge.ats.CreateFieldMappingRequest, - requestOptions?: FieldMappingClient.RequestOptions, - ): Promise> { - const { excludeRemoteFieldMetadata, ..._body } = request; - const _queryParams: Record = { - exclude_remote_field_metadata: excludeRemoteFieldMetadata, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/field-mappings", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.ats.CreateFieldMappingRequest.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.ats.FieldMappingInstanceResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/field-mappings"); - } - - /** - * 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. - * - * @param {string} field_mapping_id - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.fieldMapping.fieldMappingsDestroy("field_mapping_id") - */ - public fieldMappingsDestroy( - field_mapping_id: string, - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__fieldMappingsDestroy(field_mapping_id, requestOptions)); - } - - private async __fieldMappingsDestroy( - field_mapping_id: string, - requestOptions?: FieldMappingClient.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/field-mappings/${core.url.encodePathParam(field_mapping_id)}`, - ), - method: "DELETE", - 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.FieldMappingInstanceResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "DELETE", - "/ats/v1/field-mappings/{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. - * - * @param {string} field_mapping_id - * @param {Merge.ats.PatchedEditFieldMappingRequest} request - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id") - */ - public fieldMappingsPartialUpdate( - field_mapping_id: string, - request: Merge.ats.PatchedEditFieldMappingRequest = {}, - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise( - this.__fieldMappingsPartialUpdate(field_mapping_id, request, requestOptions), - ); - } - - private async __fieldMappingsPartialUpdate( - field_mapping_id: string, - request: Merge.ats.PatchedEditFieldMappingRequest = {}, - requestOptions?: FieldMappingClient.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/field-mappings/${core.url.encodePathParam(field_mapping_id)}`, - ), - method: "PATCH", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.ats.PatchedEditFieldMappingRequest.jsonOrThrow(request, { - 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.ats.FieldMappingInstanceResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "PATCH", - "/ats/v1/field-mappings/{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/). - * - * @param {Merge.ats.RemoteFieldsRetrieveRequest} request - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.fieldMapping.remoteFieldsRetrieve({ - * commonModels: "common_models", - * includeExampleValues: "include_example_values" - * }) - */ - public remoteFieldsRetrieve( - request: Merge.ats.RemoteFieldsRetrieveRequest = {}, - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldsRetrieve(request, requestOptions)); - } - - private async __remoteFieldsRetrieve( - request: Merge.ats.RemoteFieldsRetrieveRequest = {}, - requestOptions?: FieldMappingClient.RequestOptions, - ): Promise> { - const { commonModels, includeExampleValues } = request; - const _queryParams: Record = { - common_models: commonModels, - include_example_values: includeExampleValues, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/remote-fields", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 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.RemoteFieldApiResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/remote-fields"); - } - - /** - * 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/). - * - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.fieldMapping.targetFieldsRetrieve() - */ - public targetFieldsRetrieve( - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__targetFieldsRetrieve(requestOptions)); - } - - private async __targetFieldsRetrieve( - requestOptions?: FieldMappingClient.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/target-fields", - ), - 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.ats.ExternalTargetFieldApiResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/target-fields"); - } -} diff --git a/src/api/resources/ats/resources/fieldMapping/client/index.ts b/src/api/resources/ats/resources/fieldMapping/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ats/resources/fieldMapping/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/api/resources/ats/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts deleted file mode 100644 index e711ea5fc..000000000 --- a/src/api/resources/ats/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ /dev/null @@ -1,30 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * 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" - * } - */ -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; - /** 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. */ - targetFieldDescription: string; - /** 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; - /** The name of the Common Model that the remote field corresponds to in a given category. */ - commonModelName: string; -} diff --git a/src/api/resources/ats/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts b/src/api/resources/ats/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts deleted file mode 100644 index 7235c6e26..000000000 --- a/src/api/resources/ats/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * excludeRemoteFieldMetadata: true - * } - */ -export interface FieldMappingsRetrieveRequest { - /** 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; -} diff --git a/src/api/resources/ats/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts b/src/api/resources/ats/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts deleted file mode 100644 index 0efe65466..000000000 --- a/src/api/resources/ats/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * {} - */ -export interface PatchedEditFieldMappingRequest { - /** 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; -} diff --git a/src/api/resources/ats/resources/fieldMapping/client/requests/RemoteFieldsRetrieveRequest.ts b/src/api/resources/ats/resources/fieldMapping/client/requests/RemoteFieldsRetrieveRequest.ts deleted file mode 100644 index 99718436d..000000000 --- a/src/api/resources/ats/resources/fieldMapping/client/requests/RemoteFieldsRetrieveRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * commonModels: "common_models", - * includeExampleValues: "include_example_values" - * } - */ -export interface RemoteFieldsRetrieveRequest { - /** A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. */ - commonModels?: string; - /** If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. */ - includeExampleValues?: string; -} diff --git a/src/api/resources/ats/resources/fieldMapping/client/requests/index.ts b/src/api/resources/ats/resources/fieldMapping/client/requests/index.ts deleted file mode 100644 index 1b7bf82f2..000000000 --- a/src/api/resources/ats/resources/fieldMapping/client/requests/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export type { CreateFieldMappingRequest } from "./CreateFieldMappingRequest"; -export type { FieldMappingsRetrieveRequest } from "./FieldMappingsRetrieveRequest"; -export type { PatchedEditFieldMappingRequest } from "./PatchedEditFieldMappingRequest"; -export type { RemoteFieldsRetrieveRequest } from "./RemoteFieldsRetrieveRequest"; diff --git a/src/api/resources/ats/resources/fieldMapping/exports.ts b/src/api/resources/ats/resources/fieldMapping/exports.ts deleted file mode 100644 index 62e814785..000000000 --- a/src/api/resources/ats/resources/fieldMapping/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { FieldMappingClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/fieldMapping/index.ts b/src/api/resources/ats/resources/fieldMapping/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ats/resources/fieldMapping/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ats/resources/forceResync/client/Client.ts b/src/api/resources/ats/resources/forceResync/client/Client.ts deleted file mode 100644 index 39c1f816b..000000000 --- a/src/api/resources/ats/resources/forceResync/client/Client.ts +++ /dev/null @@ -1,89 +0,0 @@ -// 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 ForceResyncClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class ForceResyncClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: ForceResyncClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * 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. - * - * @param {ForceResyncClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.forceResync.syncStatusResyncCreate() - */ - public syncStatusResyncCreate( - requestOptions?: ForceResyncClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__syncStatusResyncCreate(requestOptions)); - } - - private async __syncStatusResyncCreate( - requestOptions?: ForceResyncClient.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/sync-status/resync", - ), - 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.forceResync.syncStatusResyncCreate.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/sync-status/resync"); - } -} diff --git a/src/api/resources/ats/resources/forceResync/client/index.ts b/src/api/resources/ats/resources/forceResync/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/ats/resources/forceResync/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/ats/resources/forceResync/exports.ts b/src/api/resources/ats/resources/forceResync/exports.ts deleted file mode 100644 index e9e97915f..000000000 --- a/src/api/resources/ats/resources/forceResync/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { ForceResyncClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/forceResync/index.ts b/src/api/resources/ats/resources/forceResync/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ats/resources/forceResync/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ats/resources/generateKey/client/Client.ts b/src/api/resources/ats/resources/generateKey/client/Client.ts deleted file mode 100644 index 28ad212a4..000000000 --- a/src/api/resources/ats/resources/generateKey/client/Client.ts +++ /dev/null @@ -1,97 +0,0 @@ -// 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 GenerateKeyClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class GenerateKeyClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: GenerateKeyClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Create a remote key. - * - * @param {Merge.ats.GenerateRemoteKeyRequest} request - * @param {GenerateKeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.generateKey.create({ - * name: "Remote Deployment Key 1" - * }) - */ - public create( - request: Merge.ats.GenerateRemoteKeyRequest, - requestOptions?: GenerateKeyClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.ats.GenerateRemoteKeyRequest, - requestOptions?: GenerateKeyClient.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/generate-key", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.ats.GenerateRemoteKeyRequest.jsonOrThrow(request, { 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.ats.RemoteKey.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/generate-key"); - } -} diff --git a/src/api/resources/ats/resources/generateKey/client/index.ts b/src/api/resources/ats/resources/generateKey/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ats/resources/generateKey/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts b/src/api/resources/ats/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts deleted file mode 100644 index 923e28af4..000000000 --- a/src/api/resources/ats/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * name: "Remote Deployment Key 1" - * } - */ -export interface GenerateRemoteKeyRequest { - /** The name of the remote key */ - name: string; -} diff --git a/src/api/resources/ats/resources/generateKey/client/requests/index.ts b/src/api/resources/ats/resources/generateKey/client/requests/index.ts deleted file mode 100644 index 61b0bc4ac..000000000 --- a/src/api/resources/ats/resources/generateKey/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { GenerateRemoteKeyRequest } from "./GenerateRemoteKeyRequest"; diff --git a/src/api/resources/ats/resources/generateKey/exports.ts b/src/api/resources/ats/resources/generateKey/exports.ts deleted file mode 100644 index e6761067f..000000000 --- a/src/api/resources/ats/resources/generateKey/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { GenerateKeyClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/generateKey/index.ts b/src/api/resources/ats/resources/generateKey/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ats/resources/generateKey/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ats/resources/index.ts b/src/api/resources/ats/resources/index.ts deleted file mode 100644 index d89e27fdd..000000000 --- a/src/api/resources/ats/resources/index.ts +++ /dev/null @@ -1,72 +0,0 @@ -export * as accountDetails from "./accountDetails"; -export * as accountToken from "./accountToken"; -export * as activities from "./activities"; -export * from "./activities/client/requests"; -export * from "./activities/types"; -export * as applications from "./applications"; -export * from "./applications/client/requests"; -export * from "./applications/types"; -export * as asyncPassthrough from "./asyncPassthrough"; -export * from "./asyncPassthrough/types"; -export * as attachments from "./attachments"; -export * from "./attachments/client/requests"; -export * as auditTrail from "./auditTrail"; -export * from "./auditTrail/client/requests"; -export * as availableActions from "./availableActions"; -export * as candidates from "./candidates"; -export * from "./candidates/client/requests"; -export * from "./candidates/types"; -export * as deleteAccount from "./deleteAccount"; -export * as departments from "./departments"; -export * from "./departments/client/requests"; -export * as eeocs from "./eeocs"; -export * from "./eeocs/client/requests"; -export * from "./eeocs/types"; -export * as fieldMapping from "./fieldMapping"; -export * from "./fieldMapping/client/requests"; -export * as forceResync from "./forceResync"; -export * as generateKey from "./generateKey"; -export * from "./generateKey/client/requests"; -export * as interviews from "./interviews"; -export * from "./interviews/client/requests"; -export * from "./interviews/types"; -export * as issues from "./issues"; -export * from "./issues/client/requests"; -export * from "./issues/types"; -export * as jobInterviewStages from "./jobInterviewStages"; -export * from "./jobInterviewStages/client/requests"; -export * as jobPostings from "./jobPostings"; -export * from "./jobPostings/client/requests"; -export * from "./jobPostings/types"; -export * as jobs from "./jobs"; -export * from "./jobs/client/requests"; -export * from "./jobs/types"; -export * as linkedAccounts from "./linkedAccounts"; -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 offers from "./offers"; -export * from "./offers/client/requests"; -export * from "./offers/types"; -export * as offices from "./offices"; -export * from "./offices/client/requests"; -export * as passthrough from "./passthrough"; -export * as regenerateKey from "./regenerateKey"; -export * from "./regenerateKey/client/requests"; -export * as rejectReasons from "./rejectReasons"; -export * from "./rejectReasons/client/requests"; -export * as scopes from "./scopes"; -export * from "./scopes/client/requests"; -export * as scorecards from "./scorecards"; -export * from "./scorecards/client/requests"; -export * from "./scorecards/types"; -export * as syncStatus from "./syncStatus"; -export * from "./syncStatus/client/requests"; -export * as tags from "./tags"; -export * from "./tags/client/requests"; -export * as users from "./users"; -export * from "./users/client/requests"; -export * as webhookReceivers from "./webhookReceivers"; -export * from "./webhookReceivers/client/requests"; diff --git a/src/api/resources/ats/resources/interviews/client/Client.ts b/src/api/resources/ats/resources/interviews/client/Client.ts deleted file mode 100644 index d8a7ac131..000000000 --- a/src/api/resources/ats/resources/interviews/client/Client.ts +++ /dev/null @@ -1,388 +0,0 @@ -// 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 InterviewsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class InterviewsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: InterviewsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `ScheduledInterview` objects. - * - * @param {Merge.ats.InterviewsListRequest} request - * @param {InterviewsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Creates a `ScheduledInterview` object with the given values. - * - * @param {Merge.ats.ScheduledInterviewEndpointRequest} request - * @param {InterviewsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.interviews.create({ - * isDebugMode: true, - * runAsync: true, - * model: {}, - * remoteUserId: "remote_user_id" - * }) - */ - public create( - request: Merge.ats.ScheduledInterviewEndpointRequest, - requestOptions?: InterviewsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.ats.ScheduledInterviewEndpointRequest, - requestOptions?: InterviewsClient.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, - "ats/v1/interviews", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.ats.ScheduledInterviewEndpointRequest.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.ats.ScheduledInterviewResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/interviews"); - } - - /** - * Returns a `ScheduledInterview` object with the given `id`. - * - * @param {string} id - * @param {Merge.ats.InterviewsRetrieveRequest} request - * @param {InterviewsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.interviews.retrieve("id", { - * expand: "application", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "status", - * showEnumOrigins: "status" - * }) - */ - public retrieve( - id: string, - request: Merge.ats.InterviewsRetrieveRequest = {}, - requestOptions?: InterviewsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.ats.InterviewsRetrieveRequest = {}, - requestOptions?: InterviewsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.ats.InterviewsRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - 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, - `ats/v1/interviews/${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.ats.ScheduledInterview.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } - - /** - * Returns metadata for `ScheduledInterview` POSTs. - * - * @param {InterviewsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.interviews.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: InterviewsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: InterviewsClient.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/interviews/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.ats.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", "/ats/v1/interviews/meta/post"); - } -} diff --git a/src/api/resources/ats/resources/interviews/client/index.ts b/src/api/resources/ats/resources/interviews/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ats/resources/interviews/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/interviews/client/requests/InterviewsListRequest.ts b/src/api/resources/ats/resources/interviews/client/requests/InterviewsListRequest.ts deleted file mode 100644 index 274bbf37e..000000000 --- a/src/api/resources/ats/resources/interviews/client/requests/InterviewsListRequest.ts +++ /dev/null @@ -1,62 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * 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" - * } - */ -export interface InterviewsListRequest { - /** If provided, will only return interviews for this application. */ - applicationId?: 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.ats.InterviewsListRequestExpand; - /** 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, wll only return interviews organized for this job. */ - jobId?: string; - /** If provided, will only return interviews at this stage. */ - jobInterviewStageId?: string; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** If provided, will only return interviews organized by this user. */ - organizerId?: string; - /** Number of results to return per page. */ - 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/ats/resources/interviews/client/requests/InterviewsRetrieveRequest.ts b/src/api/resources/ats/resources/interviews/client/requests/InterviewsRetrieveRequest.ts deleted file mode 100644 index f19b43e30..000000000 --- a/src/api/resources/ats/resources/interviews/client/requests/InterviewsRetrieveRequest.ts +++ /dev/null @@ -1,26 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * expand: "application", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "status", - * showEnumOrigins: "status" - * } - */ -export interface InterviewsRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ats.InterviewsRetrieveRequestExpand; - /** 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; - /** 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/ats/resources/interviews/client/requests/ScheduledInterviewEndpointRequest.ts b/src/api/resources/ats/resources/interviews/client/requests/ScheduledInterviewEndpointRequest.ts deleted file mode 100644 index e4d531124..000000000 --- a/src/api/resources/ats/resources/interviews/client/requests/ScheduledInterviewEndpointRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {}, - * remoteUserId: "remote_user_id" - * } - */ -export interface ScheduledInterviewEndpointRequest { - /** 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.ats.ScheduledInterviewRequest; - remoteUserId: string; -} diff --git a/src/api/resources/ats/resources/interviews/client/requests/index.ts b/src/api/resources/ats/resources/interviews/client/requests/index.ts deleted file mode 100644 index 0afd5e879..000000000 --- a/src/api/resources/ats/resources/interviews/client/requests/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type { InterviewsListRequest } from "./InterviewsListRequest"; -export type { InterviewsRetrieveRequest } from "./InterviewsRetrieveRequest"; -export type { ScheduledInterviewEndpointRequest } from "./ScheduledInterviewEndpointRequest"; diff --git a/src/api/resources/ats/resources/interviews/exports.ts b/src/api/resources/ats/resources/interviews/exports.ts deleted file mode 100644 index f449c5263..000000000 --- a/src/api/resources/ats/resources/interviews/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { InterviewsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/interviews/index.ts b/src/api/resources/ats/resources/interviews/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/ats/resources/interviews/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/api/resources/ats/resources/interviews/types/index.ts deleted file mode 100644 index 51b55d6c2..000000000 --- a/src/api/resources/ats/resources/interviews/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./InterviewsListRequestExpand"; -export * from "./InterviewsRetrieveRequestExpand"; diff --git a/src/api/resources/ats/resources/issues/client/Client.ts b/src/api/resources/ats/resources/issues/client/Client.ts deleted file mode 100644 index 5b4d73817..000000000 --- a/src/api/resources/ats/resources/issues/client/Client.ts +++ /dev/null @@ -1,209 +0,0 @@ -// 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 IssuesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class IssuesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: IssuesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Gets all issues for Organization. - * - * @param {Merge.ats.IssuesListRequest} request - * @param {IssuesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Get a specific issue. - * - * @param {string} id - * @param {IssuesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.issues.retrieve("id") - */ - public retrieve( - id: string, - requestOptions?: IssuesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, requestOptions)); - } - - private async __retrieve( - id: string, - requestOptions?: IssuesClient.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/issues/${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.ats.Issue.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/ats/resources/issues/client/index.ts b/src/api/resources/ats/resources/issues/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ats/resources/issues/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/issues/client/requests/IssuesListRequest.ts b/src/api/resources/ats/resources/issues/client/requests/IssuesListRequest.ts deleted file mode 100644 index a63191296..000000000 --- a/src/api/resources/ats/resources/issues/client/requests/IssuesListRequest.ts +++ /dev/null @@ -1,55 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * 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" - * } - */ -export interface IssuesListRequest { - accountToken?: string; - /** The pagination cursor value. */ - cursor?: string; - /** If included, will only include issues whose most recent action occurred before this time */ - endDate?: string; - endUserOrganizationName?: string; - /** If provided, will only return issues whose first incident time was after this datetime. */ - firstIncidentTimeAfter?: Date; - /** If provided, will only return issues whose first incident time was before this datetime. */ - firstIncidentTimeBefore?: Date; - /** If true, will include muted issues */ - includeMuted?: string; - integrationName?: string; - /** If provided, will only return issues whose last incident time was after this datetime. */ - lastIncidentTimeAfter?: Date; - /** If provided, will only return issues whose last incident time was before this datetime. */ - lastIncidentTimeBefore?: Date; - /** If provided, will only include issues pertaining to the linked account passed in. */ - linkedAccountId?: string; - /** Number of results to return per page. */ - pageSize?: number; - /** If included, will only include issues whose most recent action occurred after this time */ - startDate?: string; - /** - * Status of the issue. Options: ('ONGOING', 'RESOLVED') - * - * * `ONGOING` - ONGOING - * * `RESOLVED` - RESOLVED - */ - status?: Merge.ats.IssuesListRequestStatus; -} diff --git a/src/api/resources/ats/resources/issues/client/requests/index.ts b/src/api/resources/ats/resources/issues/client/requests/index.ts deleted file mode 100644 index 169c5eb5a..000000000 --- a/src/api/resources/ats/resources/issues/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { IssuesListRequest } from "./IssuesListRequest"; diff --git a/src/api/resources/ats/resources/issues/exports.ts b/src/api/resources/ats/resources/issues/exports.ts deleted file mode 100644 index 85da34cb7..000000000 --- a/src/api/resources/ats/resources/issues/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { IssuesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/issues/index.ts b/src/api/resources/ats/resources/issues/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/ats/resources/issues/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/ats/resources/issues/types/IssuesListRequestStatus.ts b/src/api/resources/ats/resources/issues/types/IssuesListRequestStatus.ts deleted file mode 100644 index 6429e7e23..000000000 --- a/src/api/resources/ats/resources/issues/types/IssuesListRequestStatus.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const IssuesListRequestStatus = { - Ongoing: "ONGOING", - Resolved: "RESOLVED", -} as const; -export type IssuesListRequestStatus = (typeof IssuesListRequestStatus)[keyof typeof IssuesListRequestStatus]; diff --git a/src/api/resources/ats/resources/issues/types/index.ts b/src/api/resources/ats/resources/issues/types/index.ts deleted file mode 100644 index 554cdf48c..000000000 --- a/src/api/resources/ats/resources/issues/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./IssuesListRequestStatus"; diff --git a/src/api/resources/ats/resources/jobInterviewStages/client/Client.ts b/src/api/resources/ats/resources/jobInterviewStages/client/Client.ts deleted file mode 100644 index 43ed565d5..000000000 --- a/src/api/resources/ats/resources/jobInterviewStages/client/Client.ts +++ /dev/null @@ -1,218 +0,0 @@ -// 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 JobInterviewStagesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class JobInterviewStagesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: JobInterviewStagesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `JobInterviewStage` objects. - * - * @param {Merge.ats.JobInterviewStagesListRequest} request - * @param {JobInterviewStagesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `JobInterviewStage` object with the given `id`. - * - * @param {string} id - * @param {Merge.ats.JobInterviewStagesRetrieveRequest} request - * @param {JobInterviewStagesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.jobInterviewStages.retrieve("id", { - * expand: "job", - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.ats.JobInterviewStagesRetrieveRequest = {}, - requestOptions?: JobInterviewStagesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.ats.JobInterviewStagesRetrieveRequest = {}, - requestOptions?: JobInterviewStagesClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - expand: expand != null ? expand : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/${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.ats.JobInterviewStage.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}", - ); - } -} diff --git a/src/api/resources/ats/resources/jobInterviewStages/client/index.ts b/src/api/resources/ats/resources/jobInterviewStages/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ats/resources/jobInterviewStages/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/jobInterviewStages/client/requests/JobInterviewStagesListRequest.ts b/src/api/resources/ats/resources/jobInterviewStages/client/requests/JobInterviewStagesListRequest.ts deleted file mode 100644 index fc770023f..000000000 --- a/src/api/resources/ats/resources/jobInterviewStages/client/requests/JobInterviewStagesListRequest.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * 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" - * } - */ -export interface JobInterviewStagesListRequest { - /** 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?: "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. */ - 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 interview stages for this job. */ - jobId?: string; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** 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/ats/resources/jobInterviewStages/client/requests/JobInterviewStagesRetrieveRequest.ts b/src/api/resources/ats/resources/jobInterviewStages/client/requests/JobInterviewStagesRetrieveRequest.ts deleted file mode 100644 index d11a172c8..000000000 --- a/src/api/resources/ats/resources/jobInterviewStages/client/requests/JobInterviewStagesRetrieveRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @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"; - /** 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; -} diff --git a/src/api/resources/ats/resources/jobInterviewStages/client/requests/index.ts b/src/api/resources/ats/resources/jobInterviewStages/client/requests/index.ts deleted file mode 100644 index 87971b452..000000000 --- a/src/api/resources/ats/resources/jobInterviewStages/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { JobInterviewStagesListRequest } from "./JobInterviewStagesListRequest"; -export type { JobInterviewStagesRetrieveRequest } from "./JobInterviewStagesRetrieveRequest"; diff --git a/src/api/resources/ats/resources/jobInterviewStages/exports.ts b/src/api/resources/ats/resources/jobInterviewStages/exports.ts deleted file mode 100644 index 038796a40..000000000 --- a/src/api/resources/ats/resources/jobInterviewStages/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { JobInterviewStagesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/jobInterviewStages/index.ts b/src/api/resources/ats/resources/jobInterviewStages/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ats/resources/jobInterviewStages/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ats/resources/jobPostings/client/Client.ts b/src/api/resources/ats/resources/jobPostings/client/Client.ts deleted file mode 100644 index 959d3efa9..000000000 --- a/src/api/resources/ats/resources/jobPostings/client/Client.ts +++ /dev/null @@ -1,218 +0,0 @@ -// 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 JobPostingsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class JobPostingsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: JobPostingsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `JobPosting` objects. - * - * @param {Merge.ats.JobPostingsListRequest} request - * @param {JobPostingsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `JobPosting` object with the given `id`. - * - * @param {string} id - * @param {Merge.ats.JobPostingsRetrieveRequest} request - * @param {JobPostingsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.jobPostings.retrieve("id", { - * expand: "job", - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.ats.JobPostingsRetrieveRequest = {}, - requestOptions?: JobPostingsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.ats.JobPostingsRetrieveRequest = {}, - requestOptions?: JobPostingsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - expand: expand != null ? expand : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/${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.ats.JobPosting.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/ats/resources/jobPostings/client/index.ts b/src/api/resources/ats/resources/jobPostings/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ats/resources/jobPostings/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/jobPostings/client/requests/JobPostingsListRequest.ts b/src/api/resources/ats/resources/jobPostings/client/requests/JobPostingsListRequest.ts deleted file mode 100644 index 31b7e7f8a..000000000 --- a/src/api/resources/ats/resources/jobPostings/client/requests/JobPostingsListRequest.ts +++ /dev/null @@ -1,55 +0,0 @@ -// 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: "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" - * } - */ -export interface JobPostingsListRequest { - /** 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?: "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. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - pageSize?: number; - /** The API provider's ID for the given object. */ - remoteId?: string; - /** - * If provided, will only return Job Postings with this status. Options: ('PUBLISHED', 'CLOSED', 'DRAFT', 'INTERNAL', 'PENDING') - * - * * `PUBLISHED` - PUBLISHED - * * `CLOSED` - CLOSED - * * `DRAFT` - DRAFT - * * `INTERNAL` - INTERNAL - * * `PENDING` - PENDING - */ - status?: Merge.ats.JobPostingsListRequestStatus; -} diff --git a/src/api/resources/ats/resources/jobPostings/client/requests/JobPostingsRetrieveRequest.ts b/src/api/resources/ats/resources/jobPostings/client/requests/JobPostingsRetrieveRequest.ts deleted file mode 100644 index ed305cfd7..000000000 --- a/src/api/resources/ats/resources/jobPostings/client/requests/JobPostingsRetrieveRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @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"; - /** 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; -} diff --git a/src/api/resources/ats/resources/jobPostings/client/requests/index.ts b/src/api/resources/ats/resources/jobPostings/client/requests/index.ts deleted file mode 100644 index 59d45dc0d..000000000 --- a/src/api/resources/ats/resources/jobPostings/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { JobPostingsListRequest } from "./JobPostingsListRequest"; -export type { JobPostingsRetrieveRequest } from "./JobPostingsRetrieveRequest"; diff --git a/src/api/resources/ats/resources/jobPostings/exports.ts b/src/api/resources/ats/resources/jobPostings/exports.ts deleted file mode 100644 index 5716579cf..000000000 --- a/src/api/resources/ats/resources/jobPostings/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { JobPostingsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/jobPostings/index.ts b/src/api/resources/ats/resources/jobPostings/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/ats/resources/jobPostings/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/ats/resources/jobPostings/types/JobPostingsListRequestStatus.ts b/src/api/resources/ats/resources/jobPostings/types/JobPostingsListRequestStatus.ts deleted file mode 100644 index 65fc0c223..000000000 --- a/src/api/resources/ats/resources/jobPostings/types/JobPostingsListRequestStatus.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const JobPostingsListRequestStatus = { - Closed: "CLOSED", - Draft: "DRAFT", - Internal: "INTERNAL", - Pending: "PENDING", - Published: "PUBLISHED", -} as const; -export type JobPostingsListRequestStatus = - (typeof JobPostingsListRequestStatus)[keyof typeof JobPostingsListRequestStatus]; diff --git a/src/api/resources/ats/resources/jobPostings/types/index.ts b/src/api/resources/ats/resources/jobPostings/types/index.ts deleted file mode 100644 index 69ba8cfd0..000000000 --- a/src/api/resources/ats/resources/jobPostings/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./JobPostingsListRequestStatus"; diff --git a/src/api/resources/ats/resources/jobs/client/Client.ts b/src/api/resources/ats/resources/jobs/client/Client.ts deleted file mode 100644 index d4cea40fd..000000000 --- a/src/api/resources/ats/resources/jobs/client/Client.ts +++ /dev/null @@ -1,334 +0,0 @@ -// 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 JobsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class JobsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: JobsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Job` objects. - * - * @param {Merge.ats.JobsListRequest} request - * @param {JobsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `Job` object with the given `id`. - * - * @param {string} id - * @param {Merge.ats.JobsRetrieveRequest} request - * @param {JobsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.jobs.retrieve("id", { - * expand: "departments", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "status", - * showEnumOrigins: "status" - * }) - */ - public retrieve( - id: string, - request: Merge.ats.JobsRetrieveRequest = {}, - requestOptions?: JobsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.ats.JobsRetrieveRequest = {}, - requestOptions?: JobsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.ats.JobsRetrieveRequestExpand.jsonOrThrow(expand, { unrecognizedObjectKeys: "strip" }) - : undefined, - include_remote_data: includeRemoteData, - 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, - `ats/v1/jobs/${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.ats.Job.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } - - /** - * Returns a list of `ScreeningQuestion` objects. - * - * @param {string} job_id - * @param {Merge.ats.JobsScreeningQuestionsListRequest} request - * @param {JobsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.jobs.screeningQuestionsList("job_id", { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "job", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * pageSize: 1 - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } -} diff --git a/src/api/resources/ats/resources/jobs/client/index.ts b/src/api/resources/ats/resources/jobs/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ats/resources/jobs/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/jobs/client/requests/JobsListRequest.ts b/src/api/resources/ats/resources/jobs/client/requests/JobsListRequest.ts deleted file mode 100644 index dc76cf5bc..000000000 --- a/src/api/resources/ats/resources/jobs/client/requests/JobsListRequest.ts +++ /dev/null @@ -1,67 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * 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" - * } - */ -export interface JobsListRequest { - /** If provided, will only return jobs with this code. */ - code?: 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.ats.JobsListRequestExpand; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** If provided, will only return jobs for this office; multiple offices can be separated by commas. */ - offices?: string; - /** Number of results to return per page. */ - pageSize?: number; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: "status"; - /** The API provider's ID for the given object. */ - remoteId?: string; - /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ - showEnumOrigins?: "status"; - /** - * If provided, will only return jobs with this status. Options: ('OPEN', 'CLOSED', 'DRAFT', 'ARCHIVED', 'PENDING') - * - * * `OPEN` - OPEN - * * `CLOSED` - CLOSED - * * `DRAFT` - DRAFT - * * `ARCHIVED` - ARCHIVED - * * `PENDING` - PENDING - */ - status?: Merge.ats.JobsListRequestStatus; -} diff --git a/src/api/resources/ats/resources/jobs/client/requests/JobsRetrieveRequest.ts b/src/api/resources/ats/resources/jobs/client/requests/JobsRetrieveRequest.ts deleted file mode 100644 index fc7b7be56..000000000 --- a/src/api/resources/ats/resources/jobs/client/requests/JobsRetrieveRequest.ts +++ /dev/null @@ -1,26 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * expand: "departments", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "status", - * showEnumOrigins: "status" - * } - */ -export interface JobsRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ats.JobsRetrieveRequestExpand; - /** 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; - /** 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/ats/resources/jobs/client/requests/JobsScreeningQuestionsListRequest.ts b/src/api/resources/ats/resources/jobs/client/requests/JobsScreeningQuestionsListRequest.ts deleted file mode 100644 index 0cce6999c..000000000 --- a/src/api/resources/ats/resources/jobs/client/requests/JobsScreeningQuestionsListRequest.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "job", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * pageSize: 1 - * } - */ -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; - /** 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. */ - pageSize?: number; -} diff --git a/src/api/resources/ats/resources/jobs/client/requests/index.ts b/src/api/resources/ats/resources/jobs/client/requests/index.ts deleted file mode 100644 index c3a7ccccd..000000000 --- a/src/api/resources/ats/resources/jobs/client/requests/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type { JobsListRequest } from "./JobsListRequest"; -export type { JobsRetrieveRequest } from "./JobsRetrieveRequest"; -export type { JobsScreeningQuestionsListRequest } from "./JobsScreeningQuestionsListRequest"; diff --git a/src/api/resources/ats/resources/jobs/exports.ts b/src/api/resources/ats/resources/jobs/exports.ts deleted file mode 100644 index 2c3baa12f..000000000 --- a/src/api/resources/ats/resources/jobs/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { JobsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/jobs/index.ts b/src/api/resources/ats/resources/jobs/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/ats/resources/jobs/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/JobsListRequestStatus.ts b/src/api/resources/ats/resources/jobs/types/JobsListRequestStatus.ts deleted file mode 100644 index d8c2369b8..000000000 --- a/src/api/resources/ats/resources/jobs/types/JobsListRequestStatus.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const JobsListRequestStatus = { - Archived: "ARCHIVED", - Closed: "CLOSED", - Draft: "DRAFT", - Open: "OPEN", - Pending: "PENDING", -} as const; -export type JobsListRequestStatus = (typeof JobsListRequestStatus)[keyof typeof JobsListRequestStatus]; 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/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/index.ts b/src/api/resources/ats/resources/jobs/types/index.ts deleted file mode 100644 index ebb23b639..000000000 --- a/src/api/resources/ats/resources/jobs/types/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./JobsListRequestExpand"; -export * from "./JobsListRequestStatus"; -export * from "./JobsRetrieveRequestExpand"; -export * from "./JobsScreeningQuestionsListRequestExpand"; diff --git a/src/api/resources/ats/resources/linkToken/client/Client.ts b/src/api/resources/ats/resources/linkToken/client/Client.ts deleted file mode 100644 index 01624f586..000000000 --- a/src/api/resources/ats/resources/linkToken/client/Client.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 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 LinkTokenClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class LinkTokenClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: LinkTokenClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Creates a link token to be used when linking a new end user. - * - * @param {Merge.ats.EndUserDetailsRequest} request - * @param {LinkTokenClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.linkToken.create({ - * endUserEmailAddress: "example@gmail.com", - * endUserOrganizationName: "Test Organization", - * endUserOriginId: "12345", - * categories: ["hris", "ats"] - * }) - */ - public create( - request: Merge.ats.EndUserDetailsRequest, - requestOptions?: LinkTokenClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.ats.EndUserDetailsRequest, - requestOptions?: LinkTokenClient.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/link-token", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.ats.EndUserDetailsRequest.jsonOrThrow(request, { 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.ats.LinkToken.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/link-token"); - } -} diff --git a/src/api/resources/ats/resources/linkToken/client/index.ts b/src/api/resources/ats/resources/linkToken/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ats/resources/linkToken/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/api/resources/ats/resources/linkToken/client/requests/EndUserDetailsRequest.ts deleted file mode 100644 index 2dab2c828..000000000 --- a/src/api/resources/ats/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ /dev/null @@ -1,46 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * endUserEmailAddress: "example@gmail.com", - * endUserOrganizationName: "Test Organization", - * endUserOriginId: "12345", - * categories: ["hris", "ats"] - * } - */ -export interface EndUserDetailsRequest { - /** Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. */ - endUserEmailAddress: string; - /** Your end user's organization. */ - endUserOrganizationName: string; - /** This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. */ - endUserOriginId: string; - /** The integration categories to show in Merge Link. */ - categories: Merge.ats.CategoriesEnum[]; - /** The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. */ - integration?: string; - /** An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. */ - linkExpiryMins?: number; - /** Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. */ - shouldCreateMagicLinkUrl?: boolean; - /** Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. */ - hideAdminMagicLink?: boolean; - /** An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. */ - commonModels?: Merge.ats.CommonModelScopesBodyRequest[]; - /** When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. */ - categoryCommonModelScopes?: Record; - /** - * The following subset of IETF language tags can be used to configure localization. - * - * * `en` - en - * * `de` - de - */ - language?: Merge.ats.EndUserDetailsRequestLanguage; - /** The boolean that indicates whether initial, periodic, and force syncs will be disabled. */ - areSyncsDisabled?: boolean; - /** A JSON object containing integration-specific configuration options. */ - integrationSpecificConfig?: Record; -} diff --git a/src/api/resources/ats/resources/linkToken/client/requests/index.ts b/src/api/resources/ats/resources/linkToken/client/requests/index.ts deleted file mode 100644 index 67eabb553..000000000 --- a/src/api/resources/ats/resources/linkToken/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { EndUserDetailsRequest } from "./EndUserDetailsRequest"; diff --git a/src/api/resources/ats/resources/linkToken/exports.ts b/src/api/resources/ats/resources/linkToken/exports.ts deleted file mode 100644 index 10e007018..000000000 --- a/src/api/resources/ats/resources/linkToken/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { LinkTokenClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/linkToken/index.ts b/src/api/resources/ats/resources/linkToken/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/ats/resources/linkToken/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/ats/resources/linkToken/types/EndUserDetailsRequestLanguage.ts b/src/api/resources/ats/resources/linkToken/types/EndUserDetailsRequestLanguage.ts deleted file mode 100644 index 8dc3899e4..000000000 --- a/src/api/resources/ats/resources/linkToken/types/EndUserDetailsRequestLanguage.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 following subset of IETF language tags can be used to configure localization. - * - * * `en` - en - * * `de` - de - */ -export type EndUserDetailsRequestLanguage = Merge.ats.LanguageEnum | string; diff --git a/src/api/resources/ats/resources/linkedAccounts/client/Client.ts b/src/api/resources/ats/resources/linkedAccounts/client/Client.ts deleted file mode 100644 index 42b3ce32b..000000000 --- a/src/api/resources/ats/resources/linkedAccounts/client/Client.ts +++ /dev/null @@ -1,141 +0,0 @@ -// 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 LinkedAccountsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class LinkedAccountsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: LinkedAccountsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * List linked accounts for your organization. - * - * @param {Merge.ats.LinkedAccountsListRequest} request - * @param {LinkedAccountsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } -} diff --git a/src/api/resources/ats/resources/linkedAccounts/client/index.ts b/src/api/resources/ats/resources/linkedAccounts/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ats/resources/linkedAccounts/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts b/src/api/resources/ats/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts deleted file mode 100644 index 621690454..000000000 --- a/src/api/resources/ats/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts +++ /dev/null @@ -1,59 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * 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" - * } - */ -export interface LinkedAccountsListRequest { - /** - * Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - * - * * `hris` - hris - * * `ats` - ats - * * `accounting` - accounting - * * `ticketing` - ticketing - * * `crm` - crm - * * `mktg` - mktg - * * `filestorage` - filestorage - */ - category?: Merge.ats.LinkedAccountsListRequestCategory; - /** The pagination cursor value. */ - cursor?: string; - /** If provided, will only return linked accounts associated with the given email address. */ - endUserEmailAddress?: string; - /** If provided, will only return linked accounts associated with the given organization name. */ - endUserOrganizationName?: string; - /** If provided, will only return linked accounts associated with the given origin ID. */ - endUserOriginId?: string; - /** Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. */ - endUserOriginIds?: string; - id?: string; - /** Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. */ - ids?: string; - /** If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. */ - includeDuplicates?: boolean; - /** If provided, will only return linked accounts associated with the given integration name. */ - 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. */ - pageSize?: number; - /** Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` */ - status?: string; -} diff --git a/src/api/resources/ats/resources/linkedAccounts/client/requests/index.ts b/src/api/resources/ats/resources/linkedAccounts/client/requests/index.ts deleted file mode 100644 index ae4db9c3b..000000000 --- a/src/api/resources/ats/resources/linkedAccounts/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { LinkedAccountsListRequest } from "./LinkedAccountsListRequest"; diff --git a/src/api/resources/ats/resources/linkedAccounts/exports.ts b/src/api/resources/ats/resources/linkedAccounts/exports.ts deleted file mode 100644 index 236b70b1a..000000000 --- a/src/api/resources/ats/resources/linkedAccounts/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { LinkedAccountsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/linkedAccounts/index.ts b/src/api/resources/ats/resources/linkedAccounts/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/ats/resources/linkedAccounts/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/ats/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts b/src/api/resources/ats/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts deleted file mode 100644 index 61bd028eb..000000000 --- a/src/api/resources/ats/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const LinkedAccountsListRequestCategory = { - Accounting: "accounting", - Ats: "ats", - Crm: "crm", - Filestorage: "filestorage", - Hris: "hris", - Mktg: "mktg", - Ticketing: "ticketing", -} as const; -export type LinkedAccountsListRequestCategory = - (typeof LinkedAccountsListRequestCategory)[keyof typeof LinkedAccountsListRequestCategory]; diff --git a/src/api/resources/ats/resources/linkedAccounts/types/index.ts b/src/api/resources/ats/resources/linkedAccounts/types/index.ts deleted file mode 100644 index 91de6010a..000000000 --- a/src/api/resources/ats/resources/linkedAccounts/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./LinkedAccountsListRequestCategory"; diff --git a/src/api/resources/ats/resources/offers/client/Client.ts b/src/api/resources/ats/resources/offers/client/Client.ts deleted file mode 100644 index ea6f417c7..000000000 --- a/src/api/resources/ats/resources/offers/client/Client.ts +++ /dev/null @@ -1,234 +0,0 @@ -// 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 OffersClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class OffersClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: OffersClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Offer` objects. - * - * @param {Merge.ats.OffersListRequest} request - * @param {OffersClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns an `Offer` object with the given `id`. - * - * @param {string} id - * @param {Merge.ats.OffersRetrieveRequest} request - * @param {OffersClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.offers.retrieve("id", { - * expand: "application", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "status", - * showEnumOrigins: "status" - * }) - */ - public retrieve( - id: string, - request: Merge.ats.OffersRetrieveRequest = {}, - requestOptions?: OffersClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.ats.OffersRetrieveRequest = {}, - requestOptions?: OffersClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.ats.OffersRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - 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, - `ats/v1/offers/${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.ats.Offer.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/ats/resources/offers/client/index.ts b/src/api/resources/ats/resources/offers/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ats/resources/offers/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/offers/client/requests/OffersListRequest.ts b/src/api/resources/ats/resources/offers/client/requests/OffersListRequest.ts deleted file mode 100644 index 69571c37f..000000000 --- a/src/api/resources/ats/resources/offers/client/requests/OffersListRequest.ts +++ /dev/null @@ -1,56 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * 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" - * } - */ -export interface OffersListRequest { - /** If provided, will only return offers for this application. */ - applicationId?: 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; - /** If provided, will only return offers created by this user. */ - creatorId?: string; - /** 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; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - 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/ats/resources/offers/client/requests/OffersRetrieveRequest.ts b/src/api/resources/ats/resources/offers/client/requests/OffersRetrieveRequest.ts deleted file mode 100644 index 5b416ad43..000000000 --- a/src/api/resources/ats/resources/offers/client/requests/OffersRetrieveRequest.ts +++ /dev/null @@ -1,26 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * expand: "application", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "status", - * showEnumOrigins: "status" - * } - */ -export interface OffersRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ats.OffersRetrieveRequestExpand; - /** 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; - /** 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/ats/resources/offers/client/requests/index.ts b/src/api/resources/ats/resources/offers/client/requests/index.ts deleted file mode 100644 index 77d92470b..000000000 --- a/src/api/resources/ats/resources/offers/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { OffersListRequest } from "./OffersListRequest"; -export type { OffersRetrieveRequest } from "./OffersRetrieveRequest"; diff --git a/src/api/resources/ats/resources/offers/exports.ts b/src/api/resources/ats/resources/offers/exports.ts deleted file mode 100644 index 33a24eecf..000000000 --- a/src/api/resources/ats/resources/offers/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { OffersClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/offers/index.ts b/src/api/resources/ats/resources/offers/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/ats/resources/offers/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/api/resources/ats/resources/offers/types/index.ts deleted file mode 100644 index 4b81bcdb5..000000000 --- a/src/api/resources/ats/resources/offers/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./OffersListRequestExpand"; -export * from "./OffersRetrieveRequestExpand"; diff --git a/src/api/resources/ats/resources/offices/client/Client.ts b/src/api/resources/ats/resources/offices/client/Client.ts deleted file mode 100644 index c4a2d0469..000000000 --- a/src/api/resources/ats/resources/offices/client/Client.ts +++ /dev/null @@ -1,205 +0,0 @@ -// 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 OfficesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class OfficesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: OfficesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Office` objects. - * - * @param {Merge.ats.OfficesListRequest} request - * @param {OfficesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns an `Office` object with the given `id`. - * - * @param {string} id - * @param {Merge.ats.OfficesRetrieveRequest} request - * @param {OfficesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.offices.retrieve("id", { - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.ats.OfficesRetrieveRequest = {}, - requestOptions?: OfficesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.ats.OfficesRetrieveRequest = {}, - requestOptions?: OfficesClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `ats/v1/offices/${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.ats.Office.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/ats/resources/offices/client/index.ts b/src/api/resources/ats/resources/offices/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ats/resources/offices/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/offices/client/requests/OfficesListRequest.ts b/src/api/resources/ats/resources/offices/client/requests/OfficesListRequest.ts deleted file mode 100644 index 77f14bb02..000000000 --- a/src/api/resources/ats/resources/offices/client/requests/OfficesListRequest.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - * pageSize: 1, - * remoteId: "remote_id" - * } - */ -export interface OfficesListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - pageSize?: number; - /** The API provider's ID for the given object. */ - remoteId?: string; -} diff --git a/src/api/resources/ats/resources/offices/client/requests/OfficesRetrieveRequest.ts b/src/api/resources/ats/resources/offices/client/requests/OfficesRetrieveRequest.ts deleted file mode 100644 index b4ebd515e..000000000 --- a/src/api/resources/ats/resources/offices/client/requests/OfficesRetrieveRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * includeRemoteData: true, - * includeShellData: true - * } - */ -export interface OfficesRetrieveRequest { - /** 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; -} diff --git a/src/api/resources/ats/resources/offices/client/requests/index.ts b/src/api/resources/ats/resources/offices/client/requests/index.ts deleted file mode 100644 index 4276271a8..000000000 --- a/src/api/resources/ats/resources/offices/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { OfficesListRequest } from "./OfficesListRequest"; -export type { OfficesRetrieveRequest } from "./OfficesRetrieveRequest"; diff --git a/src/api/resources/ats/resources/offices/exports.ts b/src/api/resources/ats/resources/offices/exports.ts deleted file mode 100644 index 9d9bf0eee..000000000 --- a/src/api/resources/ats/resources/offices/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { OfficesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/offices/index.ts b/src/api/resources/ats/resources/offices/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ats/resources/offices/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ats/resources/passthrough/client/Client.ts b/src/api/resources/ats/resources/passthrough/client/Client.ts deleted file mode 100644 index 9077de5ab..000000000 --- a/src/api/resources/ats/resources/passthrough/client/Client.ts +++ /dev/null @@ -1,98 +0,0 @@ -// 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 PassthroughClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class PassthroughClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: PassthroughClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Pull data from an endpoint not currently supported by Merge. - * - * @param {Merge.ats.DataPassthroughRequest} request - * @param {PassthroughClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.passthrough.create({ - * method: "GET", - * path: "/scooters" - * }) - */ - public create( - request: Merge.ats.DataPassthroughRequest, - requestOptions?: PassthroughClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.ats.DataPassthroughRequest, - requestOptions?: PassthroughClient.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/passthrough", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.ats.DataPassthroughRequest.jsonOrThrow(request, { 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.ats.RemoteResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/passthrough"); - } -} diff --git a/src/api/resources/ats/resources/passthrough/client/index.ts b/src/api/resources/ats/resources/passthrough/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/ats/resources/passthrough/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/ats/resources/passthrough/exports.ts b/src/api/resources/ats/resources/passthrough/exports.ts deleted file mode 100644 index 645fbb4b8..000000000 --- a/src/api/resources/ats/resources/passthrough/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { PassthroughClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/passthrough/index.ts b/src/api/resources/ats/resources/passthrough/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ats/resources/passthrough/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ats/resources/regenerateKey/client/Client.ts b/src/api/resources/ats/resources/regenerateKey/client/Client.ts deleted file mode 100644 index 56afdfc42..000000000 --- a/src/api/resources/ats/resources/regenerateKey/client/Client.ts +++ /dev/null @@ -1,99 +0,0 @@ -// 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 RegenerateKeyClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class RegenerateKeyClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: RegenerateKeyClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Exchange remote keys. - * - * @param {Merge.ats.RemoteKeyForRegenerationRequest} request - * @param {RegenerateKeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.regenerateKey.create({ - * name: "Remote Deployment Key 1" - * }) - */ - public create( - request: Merge.ats.RemoteKeyForRegenerationRequest, - requestOptions?: RegenerateKeyClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.ats.RemoteKeyForRegenerationRequest, - requestOptions?: RegenerateKeyClient.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/regenerate-key", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.ats.RemoteKeyForRegenerationRequest.jsonOrThrow(request, { - 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.ats.RemoteKey.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/regenerate-key"); - } -} diff --git a/src/api/resources/ats/resources/regenerateKey/client/index.ts b/src/api/resources/ats/resources/regenerateKey/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ats/resources/regenerateKey/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts b/src/api/resources/ats/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts deleted file mode 100644 index 19dc4fa80..000000000 --- a/src/api/resources/ats/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * name: "Remote Deployment Key 1" - * } - */ -export interface RemoteKeyForRegenerationRequest { - /** The name of the remote key */ - name: string; -} diff --git a/src/api/resources/ats/resources/regenerateKey/client/requests/index.ts b/src/api/resources/ats/resources/regenerateKey/client/requests/index.ts deleted file mode 100644 index 339a5503f..000000000 --- a/src/api/resources/ats/resources/regenerateKey/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { RemoteKeyForRegenerationRequest } from "./RemoteKeyForRegenerationRequest"; diff --git a/src/api/resources/ats/resources/regenerateKey/exports.ts b/src/api/resources/ats/resources/regenerateKey/exports.ts deleted file mode 100644 index f9276142f..000000000 --- a/src/api/resources/ats/resources/regenerateKey/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { RegenerateKeyClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/regenerateKey/index.ts b/src/api/resources/ats/resources/regenerateKey/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ats/resources/regenerateKey/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ats/resources/rejectReasons/client/Client.ts b/src/api/resources/ats/resources/rejectReasons/client/Client.ts deleted file mode 100644 index 0f7151605..000000000 --- a/src/api/resources/ats/resources/rejectReasons/client/Client.ts +++ /dev/null @@ -1,205 +0,0 @@ -// 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 RejectReasonsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class RejectReasonsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: RejectReasonsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `RejectReason` objects. - * - * @param {Merge.ats.RejectReasonsListRequest} request - * @param {RejectReasonsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `RejectReason` object with the given `id`. - * - * @param {string} id - * @param {Merge.ats.RejectReasonsRetrieveRequest} request - * @param {RejectReasonsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.rejectReasons.retrieve("id", { - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.ats.RejectReasonsRetrieveRequest = {}, - requestOptions?: RejectReasonsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.ats.RejectReasonsRetrieveRequest = {}, - requestOptions?: RejectReasonsClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `ats/v1/reject-reasons/${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.ats.RejectReason.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/ats/resources/rejectReasons/client/index.ts b/src/api/resources/ats/resources/rejectReasons/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ats/resources/rejectReasons/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/rejectReasons/client/requests/RejectReasonsListRequest.ts b/src/api/resources/ats/resources/rejectReasons/client/requests/RejectReasonsListRequest.ts deleted file mode 100644 index d83e5a6d7..000000000 --- a/src/api/resources/ats/resources/rejectReasons/client/requests/RejectReasonsListRequest.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - * pageSize: 1, - * remoteId: "remote_id" - * } - */ -export interface RejectReasonsListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - pageSize?: number; - /** The API provider's ID for the given object. */ - remoteId?: string; -} diff --git a/src/api/resources/ats/resources/rejectReasons/client/requests/RejectReasonsRetrieveRequest.ts b/src/api/resources/ats/resources/rejectReasons/client/requests/RejectReasonsRetrieveRequest.ts deleted file mode 100644 index 257255233..000000000 --- a/src/api/resources/ats/resources/rejectReasons/client/requests/RejectReasonsRetrieveRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * includeRemoteData: true, - * includeShellData: true - * } - */ -export interface RejectReasonsRetrieveRequest { - /** 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; -} diff --git a/src/api/resources/ats/resources/rejectReasons/client/requests/index.ts b/src/api/resources/ats/resources/rejectReasons/client/requests/index.ts deleted file mode 100644 index 39adf08d5..000000000 --- a/src/api/resources/ats/resources/rejectReasons/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { RejectReasonsListRequest } from "./RejectReasonsListRequest"; -export type { RejectReasonsRetrieveRequest } from "./RejectReasonsRetrieveRequest"; diff --git a/src/api/resources/ats/resources/rejectReasons/exports.ts b/src/api/resources/ats/resources/rejectReasons/exports.ts deleted file mode 100644 index 082169181..000000000 --- a/src/api/resources/ats/resources/rejectReasons/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { RejectReasonsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/rejectReasons/index.ts b/src/api/resources/ats/resources/rejectReasons/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ats/resources/rejectReasons/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ats/resources/scopes/client/Client.ts b/src/api/resources/ats/resources/scopes/client/Client.ts deleted file mode 100644 index 4582fe9ac..000000000 --- a/src/api/resources/ats/resources/scopes/client/Client.ts +++ /dev/null @@ -1,253 +0,0 @@ -// 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 ScopesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class ScopesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: ScopesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * 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). - * - * @param {ScopesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.scopes.defaultScopesRetrieve() - */ - public defaultScopesRetrieve( - requestOptions?: ScopesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__defaultScopesRetrieve(requestOptions)); - } - - private async __defaultScopesRetrieve( - requestOptions?: ScopesClient.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/default-scopes", - ), - 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.ats.CommonModelScopeApi.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/default-scopes"); - } - - /** - * 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). - * - * @param {ScopesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.scopes.linkedAccountScopesRetrieve() - */ - public linkedAccountScopesRetrieve( - requestOptions?: ScopesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__linkedAccountScopesRetrieve(requestOptions)); - } - - private async __linkedAccountScopesRetrieve( - requestOptions?: ScopesClient.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/linked-account-scopes", - ), - 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.ats.CommonModelScopeApi.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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-account-scopes"); - } - - /** - * 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) - * - * @param {Merge.ats.LinkedAccountCommonModelScopeDeserializerRequest} request - * @param {ScopesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.scopes.linkedAccountScopesCreate({ - * commonModels: [{ - * modelName: "Employee", - * modelPermissions: { - * "READ": { - * isEnabled: true - * }, - * "WRITE": { - * isEnabled: false - * } - * }, - * fieldPermissions: { - * enabledFields: ["avatar", "home_location"], - * disabledFields: ["work_location"] - * } - * }, { - * modelName: "Benefit", - * modelPermissions: { - * "WRITE": { - * isEnabled: false - * } - * } - * }] - * }) - */ - public linkedAccountScopesCreate( - request: Merge.ats.LinkedAccountCommonModelScopeDeserializerRequest, - requestOptions?: ScopesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__linkedAccountScopesCreate(request, requestOptions)); - } - - private async __linkedAccountScopesCreate( - request: Merge.ats.LinkedAccountCommonModelScopeDeserializerRequest, - requestOptions?: ScopesClient.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/linked-account-scopes", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.ats.LinkedAccountCommonModelScopeDeserializerRequest.jsonOrThrow(request, { - 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.ats.CommonModelScopeApi.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/linked-account-scopes", - ); - } -} diff --git a/src/api/resources/ats/resources/scopes/client/index.ts b/src/api/resources/ats/resources/scopes/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ats/resources/scopes/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts b/src/api/resources/ats/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts deleted file mode 100644 index 5896c824d..000000000 --- a/src/api/resources/ats/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts +++ /dev/null @@ -1,35 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * commonModels: [{ - * modelName: "Employee", - * modelPermissions: { - * "READ": { - * isEnabled: true - * }, - * "WRITE": { - * isEnabled: false - * } - * }, - * fieldPermissions: { - * enabledFields: ["avatar", "home_location"], - * disabledFields: ["work_location"] - * } - * }, { - * modelName: "Benefit", - * modelPermissions: { - * "WRITE": { - * isEnabled: false - * } - * } - * }] - * } - */ -export interface LinkedAccountCommonModelScopeDeserializerRequest { - /** The common models you want to update the scopes for */ - commonModels: Merge.ats.IndividualCommonModelScopeDeserializerRequest[]; -} diff --git a/src/api/resources/ats/resources/scopes/client/requests/index.ts b/src/api/resources/ats/resources/scopes/client/requests/index.ts deleted file mode 100644 index b77c0e5da..000000000 --- a/src/api/resources/ats/resources/scopes/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { LinkedAccountCommonModelScopeDeserializerRequest } from "./LinkedAccountCommonModelScopeDeserializerRequest"; diff --git a/src/api/resources/ats/resources/scopes/exports.ts b/src/api/resources/ats/resources/scopes/exports.ts deleted file mode 100644 index c641749fe..000000000 --- a/src/api/resources/ats/resources/scopes/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { ScopesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/scopes/index.ts b/src/api/resources/ats/resources/scopes/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ats/resources/scopes/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ats/resources/scorecards/client/Client.ts b/src/api/resources/ats/resources/scorecards/client/Client.ts deleted file mode 100644 index 1cb17c6df..000000000 --- a/src/api/resources/ats/resources/scorecards/client/Client.ts +++ /dev/null @@ -1,239 +0,0 @@ -// 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 ScorecardsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class ScorecardsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: ScorecardsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Scorecard` objects. - * - * @param {Merge.ats.ScorecardsListRequest} request - * @param {ScorecardsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `Scorecard` object with the given `id`. - * - * @param {string} id - * @param {Merge.ats.ScorecardsRetrieveRequest} request - * @param {ScorecardsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.scorecards.retrieve("id", { - * expand: "application", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "overall_recommendation", - * showEnumOrigins: "overall_recommendation" - * }) - */ - public retrieve( - id: string, - request: Merge.ats.ScorecardsRetrieveRequest = {}, - requestOptions?: ScorecardsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.ats.ScorecardsRetrieveRequest = {}, - requestOptions?: ScorecardsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.ats.ScorecardsRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - 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, - `ats/v1/scorecards/${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.ats.Scorecard.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/ats/resources/scorecards/client/index.ts b/src/api/resources/ats/resources/scorecards/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ats/resources/scorecards/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/scorecards/client/requests/ScorecardsListRequest.ts b/src/api/resources/ats/resources/scorecards/client/requests/ScorecardsListRequest.ts deleted file mode 100644 index 65053aa7a..000000000 --- a/src/api/resources/ats/resources/scorecards/client/requests/ScorecardsListRequest.ts +++ /dev/null @@ -1,59 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * 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" - * } - */ -export interface ScorecardsListRequest { - /** If provided, will only return scorecards for this application. */ - applicationId?: 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.ats.ScorecardsListRequestExpand; - /** 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 scorecards for this interview. */ - interviewId?: string; - /** If provided, will only return scorecards for this interviewer. */ - interviewerId?: string; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - pageSize?: number; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: "overall_recommendation"; - /** 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?: "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 deleted file mode 100644 index a18a6e5e4..000000000 --- a/src/api/resources/ats/resources/scorecards/client/requests/ScorecardsRetrieveRequest.ts +++ /dev/null @@ -1,26 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * expand: "application", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "overall_recommendation", - * showEnumOrigins: "overall_recommendation" - * } - */ -export interface ScorecardsRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ats.ScorecardsRetrieveRequestExpand; - /** 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; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: "overall_recommendation"; - /** 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?: "overall_recommendation"; -} diff --git a/src/api/resources/ats/resources/scorecards/client/requests/index.ts b/src/api/resources/ats/resources/scorecards/client/requests/index.ts deleted file mode 100644 index 6624553d2..000000000 --- a/src/api/resources/ats/resources/scorecards/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { ScorecardsListRequest } from "./ScorecardsListRequest"; -export type { ScorecardsRetrieveRequest } from "./ScorecardsRetrieveRequest"; diff --git a/src/api/resources/ats/resources/scorecards/exports.ts b/src/api/resources/ats/resources/scorecards/exports.ts deleted file mode 100644 index 80aa0ad5f..000000000 --- a/src/api/resources/ats/resources/scorecards/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { ScorecardsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/scorecards/index.ts b/src/api/resources/ats/resources/scorecards/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/ats/resources/scorecards/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/api/resources/ats/resources/scorecards/types/index.ts deleted file mode 100644 index abc9dc751..000000000 --- a/src/api/resources/ats/resources/scorecards/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./ScorecardsListRequestExpand"; -export * from "./ScorecardsRetrieveRequestExpand"; diff --git a/src/api/resources/ats/resources/syncStatus/client/Client.ts b/src/api/resources/ats/resources/syncStatus/client/Client.ts deleted file mode 100644 index 4ca7aedb2..000000000 --- a/src/api/resources/ats/resources/syncStatus/client/Client.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 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 SyncStatusClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class SyncStatusClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: SyncStatusClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * 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). - * - * @param {Merge.ats.SyncStatusListRequest} request - * @param {SyncStatusClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.syncStatus.list({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * pageSize: 1 - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } -} diff --git a/src/api/resources/ats/resources/syncStatus/client/index.ts b/src/api/resources/ats/resources/syncStatus/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ats/resources/syncStatus/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/syncStatus/client/requests/SyncStatusListRequest.ts b/src/api/resources/ats/resources/syncStatus/client/requests/SyncStatusListRequest.ts deleted file mode 100644 index 2bbace517..000000000 --- a/src/api/resources/ats/resources/syncStatus/client/requests/SyncStatusListRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * pageSize: 1 - * } - */ -export interface SyncStatusListRequest { - /** The pagination cursor value. */ - cursor?: string; - /** Number of results to return per page. */ - pageSize?: number; -} diff --git a/src/api/resources/ats/resources/syncStatus/client/requests/index.ts b/src/api/resources/ats/resources/syncStatus/client/requests/index.ts deleted file mode 100644 index 9c815333a..000000000 --- a/src/api/resources/ats/resources/syncStatus/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { SyncStatusListRequest } from "./SyncStatusListRequest"; diff --git a/src/api/resources/ats/resources/syncStatus/exports.ts b/src/api/resources/ats/resources/syncStatus/exports.ts deleted file mode 100644 index 9593edcc7..000000000 --- a/src/api/resources/ats/resources/syncStatus/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { SyncStatusClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/syncStatus/index.ts b/src/api/resources/ats/resources/syncStatus/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ats/resources/syncStatus/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ats/resources/tags/client/Client.ts b/src/api/resources/ats/resources/tags/client/Client.ts deleted file mode 100644 index 9ac38e007..000000000 --- a/src/api/resources/ats/resources/tags/client/Client.ts +++ /dev/null @@ -1,127 +0,0 @@ -// 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 TagsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class TagsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: TagsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Tag` objects. - * - * @param {Merge.ats.TagsListRequest} request - * @param {TagsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } -} diff --git a/src/api/resources/ats/resources/tags/client/index.ts b/src/api/resources/ats/resources/tags/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ats/resources/tags/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/tags/client/requests/TagsListRequest.ts b/src/api/resources/ats/resources/tags/client/requests/TagsListRequest.ts deleted file mode 100644 index 363d84271..000000000 --- a/src/api/resources/ats/resources/tags/client/requests/TagsListRequest.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - * pageSize: 1, - * remoteId: "remote_id" - * } - */ -export interface TagsListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - pageSize?: number; - /** The API provider's ID for the given object. */ - remoteId?: string; -} diff --git a/src/api/resources/ats/resources/tags/client/requests/index.ts b/src/api/resources/ats/resources/tags/client/requests/index.ts deleted file mode 100644 index 05894c756..000000000 --- a/src/api/resources/ats/resources/tags/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { TagsListRequest } from "./TagsListRequest"; diff --git a/src/api/resources/ats/resources/tags/exports.ts b/src/api/resources/ats/resources/tags/exports.ts deleted file mode 100644 index c0ea39bb2..000000000 --- a/src/api/resources/ats/resources/tags/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { TagsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/tags/index.ts b/src/api/resources/ats/resources/tags/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ats/resources/tags/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ats/resources/users/client/Client.ts b/src/api/resources/ats/resources/users/client/Client.ts deleted file mode 100644 index 21e0b02fe..000000000 --- a/src/api/resources/ats/resources/users/client/Client.ts +++ /dev/null @@ -1,218 +0,0 @@ -// 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 UsersClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class UsersClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: UsersClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `RemoteUser` objects. - * - * @param {Merge.ats.UsersListRequest} request - * @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `RemoteUser` object with the given `id`. - * - * @param {string} id - * @param {Merge.ats.UsersRetrieveRequest} request - * @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.users.retrieve("id", { - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "access_role", - * showEnumOrigins: "access_role" - * }) - */ - public retrieve( - id: string, - request: Merge.ats.UsersRetrieveRequest = {}, - requestOptions?: UsersClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.ats.UsersRetrieveRequest = {}, - requestOptions?: UsersClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeShellData, remoteFields, 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, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/${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.ats.RemoteUser.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/ats/resources/users/client/index.ts b/src/api/resources/ats/resources/users/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ats/resources/users/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/users/client/requests/UsersListRequest.ts b/src/api/resources/ats/resources/users/client/requests/UsersListRequest.ts deleted file mode 100644 index c0835bcb6..000000000 --- a/src/api/resources/ats/resources/users/client/requests/UsersListRequest.ts +++ /dev/null @@ -1,48 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * 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" - * } - */ -export interface UsersListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** If provided, will only return remote users with the given email address */ - email?: string; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - pageSize?: number; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: "access_role"; - /** 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?: "access_role"; -} diff --git a/src/api/resources/ats/resources/users/client/requests/UsersRetrieveRequest.ts b/src/api/resources/ats/resources/users/client/requests/UsersRetrieveRequest.ts deleted file mode 100644 index 99f259f6a..000000000 --- a/src/api/resources/ats/resources/users/client/requests/UsersRetrieveRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "access_role", - * showEnumOrigins: "access_role" - * } - */ -export interface UsersRetrieveRequest { - /** 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; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: "access_role"; - /** 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?: "access_role"; -} diff --git a/src/api/resources/ats/resources/users/client/requests/index.ts b/src/api/resources/ats/resources/users/client/requests/index.ts deleted file mode 100644 index cd759fb96..000000000 --- a/src/api/resources/ats/resources/users/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { UsersListRequest } from "./UsersListRequest"; -export type { UsersRetrieveRequest } from "./UsersRetrieveRequest"; diff --git a/src/api/resources/ats/resources/users/exports.ts b/src/api/resources/ats/resources/users/exports.ts deleted file mode 100644 index e416b996a..000000000 --- a/src/api/resources/ats/resources/users/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { UsersClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/users/index.ts b/src/api/resources/ats/resources/users/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ats/resources/users/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ats/resources/webhookReceivers/client/Client.ts b/src/api/resources/ats/resources/webhookReceivers/client/Client.ts deleted file mode 100644 index 0e4117fc4..000000000 --- a/src/api/resources/ats/resources/webhookReceivers/client/Client.ts +++ /dev/null @@ -1,162 +0,0 @@ -// 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 WebhookReceiversClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class WebhookReceiversClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: WebhookReceiversClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `WebhookReceiver` objects. - * - * @param {WebhookReceiversClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.webhookReceivers.list() - */ - public list( - requestOptions?: WebhookReceiversClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(requestOptions)); - } - - private async __list( - requestOptions?: WebhookReceiversClient.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/webhook-receivers", - ), - 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.ats.webhookReceivers.list.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/webhook-receivers"); - } - - /** - * Creates a `WebhookReceiver` object with the given values. - * - * @param {Merge.ats.WebhookReceiverRequest} request - * @param {WebhookReceiversClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ats.webhookReceivers.create({ - * event: "event", - * isActive: true - * }) - */ - public create( - request: Merge.ats.WebhookReceiverRequest, - requestOptions?: WebhookReceiversClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.ats.WebhookReceiverRequest, - requestOptions?: WebhookReceiversClient.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/webhook-receivers", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.ats.WebhookReceiverRequest.jsonOrThrow(request, { 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.ats.WebhookReceiver.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/webhook-receivers"); - } -} diff --git a/src/api/resources/ats/resources/webhookReceivers/client/index.ts b/src/api/resources/ats/resources/webhookReceivers/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ats/resources/webhookReceivers/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts b/src/api/resources/ats/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts deleted file mode 100644 index bcc11dbe7..000000000 --- a/src/api/resources/ats/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * event: "event", - * isActive: true - * } - */ -export interface WebhookReceiverRequest { - event: string; - isActive: boolean; - key?: string; -} diff --git a/src/api/resources/ats/resources/webhookReceivers/client/requests/index.ts b/src/api/resources/ats/resources/webhookReceivers/client/requests/index.ts deleted file mode 100644 index 0e668b74d..000000000 --- a/src/api/resources/ats/resources/webhookReceivers/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { WebhookReceiverRequest } from "./WebhookReceiverRequest"; diff --git a/src/api/resources/ats/resources/webhookReceivers/exports.ts b/src/api/resources/ats/resources/webhookReceivers/exports.ts deleted file mode 100644 index d0527565a..000000000 --- a/src/api/resources/ats/resources/webhookReceivers/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { WebhookReceiversClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ats/resources/webhookReceivers/index.ts b/src/api/resources/ats/resources/webhookReceivers/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ats/resources/webhookReceivers/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ats/types/AccessRoleEnum.ts b/src/api/resources/ats/types/AccessRoleEnum.ts deleted file mode 100644 index a565aeebf..000000000 --- a/src/api/resources/ats/types/AccessRoleEnum.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `SUPER_ADMIN` - SUPER_ADMIN - * * `ADMIN` - ADMIN - * * `TEAM_MEMBER` - TEAM_MEMBER - * * `LIMITED_TEAM_MEMBER` - LIMITED_TEAM_MEMBER - * * `INTERVIEWER` - INTERVIEWER - */ -export const AccessRoleEnum = { - SuperAdmin: "SUPER_ADMIN", - Admin: "ADMIN", - TeamMember: "TEAM_MEMBER", - LimitedTeamMember: "LIMITED_TEAM_MEMBER", - Interviewer: "INTERVIEWER", -} as const; -export type AccessRoleEnum = (typeof AccessRoleEnum)[keyof typeof AccessRoleEnum]; diff --git a/src/api/resources/ats/types/AccountDetails.ts b/src/api/resources/ats/types/AccountDetails.ts deleted file mode 100644 index 81c35434d..000000000 --- a/src/api/resources/ats/types/AccountDetails.ts +++ /dev/null @@ -1,20 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AccountDetails { - id?: string; - integration?: string; - integrationSlug?: string; - category?: Merge.ats.AccountDetailsCategory; - endUserOriginId?: string; - endUserOrganizationName?: string; - endUserEmailAddress?: string; - status?: string; - webhookListenerUrl?: string; - /** Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets. */ - isDuplicate?: boolean; - accountType?: string; - /** The time at which account completes the linking flow. */ - completedAt?: Date; -} diff --git a/src/api/resources/ats/types/AccountDetailsAndActions.ts b/src/api/resources/ats/types/AccountDetailsAndActions.ts deleted file mode 100644 index e5cd397b6..000000000 --- a/src/api/resources/ats/types/AccountDetailsAndActions.ts +++ /dev/null @@ -1,30 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The LinkedAccount Object - * ### Description - * The `LinkedAccount` object is used to represent an end user's link with a specific integration. - * - * ### Usage Example - * View a list of your organization's `LinkedAccount` objects. - */ -export interface AccountDetailsAndActions { - id: string; - category?: Merge.ats.AccountDetailsAndActionsCategory; - status: Merge.ats.AccountDetailsAndActionsStatus; - statusDetail?: string; - endUserOriginId?: string; - endUserOrganizationName: string; - endUserEmailAddress: string; - /** The tenant or domain the customer has provided access to. */ - subdomain?: string; - webhookListenerUrl: string; - /** Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets. */ - isDuplicate?: boolean; - integration?: Merge.ats.AccountDetailsAndActionsIntegration; - accountType: string; - completedAt: Date; - integrationSpecificFields?: Record; -} diff --git a/src/api/resources/ats/types/AccountDetailsAndActionsCategory.ts b/src/api/resources/ats/types/AccountDetailsAndActionsCategory.ts deleted file mode 100644 index 36caac75b..000000000 --- a/src/api/resources/ats/types/AccountDetailsAndActionsCategory.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 AccountDetailsAndActionsCategory = Merge.ats.CategoryEnum | string; diff --git a/src/api/resources/ats/types/AccountDetailsAndActionsIntegration.ts b/src/api/resources/ats/types/AccountDetailsAndActionsIntegration.ts deleted file mode 100644 index 176498ae7..000000000 --- a/src/api/resources/ats/types/AccountDetailsAndActionsIntegration.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AccountDetailsAndActionsIntegration { - name: string; - categories: Merge.ats.CategoriesEnum[]; - image?: string; - squareImage?: string; - color: string; - slug: string; - passthroughAvailable: boolean; - availableModelOperations?: Merge.ats.ModelOperation[]; -} diff --git a/src/api/resources/ats/types/AccountDetailsAndActionsStatus.ts b/src/api/resources/ats/types/AccountDetailsAndActionsStatus.ts deleted file mode 100644 index 895ac0400..000000000 --- a/src/api/resources/ats/types/AccountDetailsAndActionsStatus.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 AccountDetailsAndActionsStatus = Merge.ats.AccountDetailsAndActionsStatusEnum | string; diff --git a/src/api/resources/ats/types/AccountDetailsAndActionsStatusEnum.ts b/src/api/resources/ats/types/AccountDetailsAndActionsStatusEnum.ts deleted file mode 100644 index ab1273765..000000000 --- a/src/api/resources/ats/types/AccountDetailsAndActionsStatusEnum.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `COMPLETE` - COMPLETE - * * `INCOMPLETE` - INCOMPLETE - * * `RELINK_NEEDED` - RELINK_NEEDED - * * `IDLE` - IDLE - */ -export const AccountDetailsAndActionsStatusEnum = { - Complete: "COMPLETE", - Incomplete: "INCOMPLETE", - RelinkNeeded: "RELINK_NEEDED", - Idle: "IDLE", -} as const; -export type AccountDetailsAndActionsStatusEnum = - (typeof AccountDetailsAndActionsStatusEnum)[keyof typeof AccountDetailsAndActionsStatusEnum]; diff --git a/src/api/resources/ats/types/AccountDetailsCategory.ts b/src/api/resources/ats/types/AccountDetailsCategory.ts deleted file mode 100644 index 289af8a0a..000000000 --- a/src/api/resources/ats/types/AccountDetailsCategory.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export type AccountDetailsCategory = Merge.ats.CategoryEnum | string; diff --git a/src/api/resources/ats/types/AccountIntegration.ts b/src/api/resources/ats/types/AccountIntegration.ts deleted file mode 100644 index f8e11861d..000000000 --- a/src/api/resources/ats/types/AccountIntegration.ts +++ /dev/null @@ -1,25 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AccountIntegration { - /** Company name. */ - name: string; - /** Optional. This shortened name appears in places with limited space, usually in conjunction with the platform's logo (e.g., Merge Link menu).

Example: Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors) */ - abbreviatedName?: string; - /** Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris]. */ - categories?: Merge.ats.CategoriesEnum[]; - /** Company logo in rectangular shape. */ - image?: string; - /** Company logo in square shape. */ - squareImage?: string; - /** The color of this integration used for buttons and text throughout the app and landing pages. Choose a darker, saturated color. */ - color?: string; - slug?: string; - /** Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []} */ - apiEndpointsToDocumentationUrls?: Record; - /** Setup guide URL for third party webhook creation. Exposed in Merge Docs. */ - webhookSetupGuideUrl?: string; - /** Category or categories this integration is in beta status for. */ - categoryBetaStatus?: Record; -} diff --git a/src/api/resources/ats/types/AccountToken.ts b/src/api/resources/ats/types/AccountToken.ts deleted file mode 100644 index 0d24e1dd6..000000000 --- a/src/api/resources/ats/types/AccountToken.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AccountToken { - accountToken: string; - integration: Merge.ats.AccountIntegration; - id: string; -} diff --git a/src/api/resources/ats/types/Activity.ts b/src/api/resources/ats/types/Activity.ts deleted file mode 100644 index b1bee7e33..000000000 --- a/src/api/resources/ats/types/Activity.ts +++ /dev/null @@ -1,49 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Activity Object - * ### Description - * The `Activity` object is used to represent an activity for a candidate performed by a user. - * ### Usage Example - * Fetch from the `LIST Activities` endpoint and filter by `ID` to show all activities. - */ -export interface Activity { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The user that performed the action. */ - user?: Merge.ats.ActivityUser; - /** When the third party's activity was created. */ - remoteCreatedAt?: Date; - /** - * The activity's type. - * - * * `NOTE` - NOTE - * * `EMAIL` - EMAIL - * * `OTHER` - OTHER - */ - activityType?: Merge.ats.ActivityActivityType; - /** The activity's subject. */ - subject?: string; - /** The activity's body. */ - body?: string; - /** - * The activity's visibility. - * - * * `ADMIN_ONLY` - ADMIN_ONLY - * * `PUBLIC` - PUBLIC - * * `PRIVATE` - PRIVATE - */ - visibility?: Merge.ats.ActivityVisibility; - candidate?: 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/). */ - remoteWasDeleted?: boolean; - fieldMappings?: Record; - remoteData?: Merge.ats.RemoteData[]; -} diff --git a/src/api/resources/ats/types/ActivityActivityType.ts b/src/api/resources/ats/types/ActivityActivityType.ts deleted file mode 100644 index 65b95d62b..000000000 --- a/src/api/resources/ats/types/ActivityActivityType.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 ActivityActivityType = Merge.ats.ActivityTypeEnum | string; diff --git a/src/api/resources/ats/types/ActivityRequest.ts b/src/api/resources/ats/types/ActivityRequest.ts deleted file mode 100644 index 4767f62be..000000000 --- a/src/api/resources/ats/types/ActivityRequest.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Activity Object - * ### Description - * The `Activity` object is used to represent an activity for a candidate performed by a user. - * ### Usage Example - * Fetch from the `LIST Activities` endpoint and filter by `ID` to show all activities. - */ -export interface ActivityRequest { - /** The user that performed the action. */ - user?: Merge.ats.ActivityRequestUser; - /** - * The activity's type. - * - * * `NOTE` - NOTE - * * `EMAIL` - EMAIL - * * `OTHER` - OTHER - */ - activityType?: Merge.ats.ActivityRequestActivityType; - /** The activity's subject. */ - subject?: string; - /** The activity's body. */ - body?: string; - /** - * The activity's visibility. - * - * * `ADMIN_ONLY` - ADMIN_ONLY - * * `PUBLIC` - PUBLIC - * * `PRIVATE` - PRIVATE - */ - visibility?: Merge.ats.ActivityRequestVisibility; - candidate?: string; - integrationParams?: Record; - linkedAccountParams?: Record; -} 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/ActivityRequestUser.ts b/src/api/resources/ats/types/ActivityRequestUser.ts deleted file mode 100644 index 74ebe7b0f..000000000 --- a/src/api/resources/ats/types/ActivityRequestUser.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 user that performed the action. - */ -export type ActivityRequestUser = string | Merge.ats.RemoteUser; diff --git a/src/api/resources/ats/types/ActivityRequestVisibility.ts b/src/api/resources/ats/types/ActivityRequestVisibility.ts deleted file mode 100644 index e4903d407..000000000 --- a/src/api/resources/ats/types/ActivityRequestVisibility.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 visibility. - * - * * `ADMIN_ONLY` - ADMIN_ONLY - * * `PUBLIC` - PUBLIC - * * `PRIVATE` - PRIVATE - */ -export type ActivityRequestVisibility = Merge.ats.VisibilityEnum | string; diff --git a/src/api/resources/ats/types/ActivityResponse.ts b/src/api/resources/ats/types/ActivityResponse.ts deleted file mode 100644 index 2035540e2..000000000 --- a/src/api/resources/ats/types/ActivityResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface ActivityResponse { - model: Merge.ats.Activity; - warnings: Merge.ats.WarningValidationProblem[]; - errors: Merge.ats.ErrorValidationProblem[]; - logs?: Merge.ats.DebugModeLog[]; -} diff --git a/src/api/resources/ats/types/ActivityTypeEnum.ts b/src/api/resources/ats/types/ActivityTypeEnum.ts deleted file mode 100644 index 2fadda0e5..000000000 --- a/src/api/resources/ats/types/ActivityTypeEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `NOTE` - NOTE - * * `EMAIL` - EMAIL - * * `OTHER` - OTHER - */ -export const ActivityTypeEnum = { - Note: "NOTE", - Email: "EMAIL", - Other: "OTHER", -} as const; -export type ActivityTypeEnum = (typeof ActivityTypeEnum)[keyof typeof ActivityTypeEnum]; diff --git a/src/api/resources/ats/types/ActivityUser.ts b/src/api/resources/ats/types/ActivityUser.ts deleted file mode 100644 index 64aeb496e..000000000 --- a/src/api/resources/ats/types/ActivityUser.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 user that performed the action. - */ -export type ActivityUser = string | Merge.ats.RemoteUser; diff --git a/src/api/resources/ats/types/ActivityVisibility.ts b/src/api/resources/ats/types/ActivityVisibility.ts deleted file mode 100644 index f9904f7ef..000000000 --- a/src/api/resources/ats/types/ActivityVisibility.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 visibility. - * - * * `ADMIN_ONLY` - ADMIN_ONLY - * * `PUBLIC` - PUBLIC - * * `PRIVATE` - PRIVATE - */ -export type ActivityVisibility = Merge.ats.VisibilityEnum | string; diff --git a/src/api/resources/ats/types/AdvancedMetadata.ts b/src/api/resources/ats/types/AdvancedMetadata.ts deleted file mode 100644 index e5877563c..000000000 --- a/src/api/resources/ats/types/AdvancedMetadata.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface AdvancedMetadata { - id: string; - displayName?: string; - description?: string; - isRequired?: boolean; - isCustom?: boolean; - fieldChoices?: unknown[]; -} diff --git a/src/api/resources/ats/types/Application.ts b/src/api/resources/ats/types/Application.ts deleted file mode 100644 index 18a6f1e7e..000000000 --- a/src/api/resources/ats/types/Application.ts +++ /dev/null @@ -1,43 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Application Object - * ### Description - * The Application Object is used to represent a candidate's journey through a particular Job's recruiting process. If a Candidate applies for multiple Jobs, there will be a separate Application for each Job if the third-party integration allows it. - * - * ### Usage Example - * Fetch from the `LIST Applications` endpoint and filter by `ID` to show all applications. - */ -export interface Application { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The candidate applying. */ - candidate?: Merge.ats.ApplicationCandidate; - /** The job being applied for. */ - job?: Merge.ats.ApplicationJob; - /** When the application was submitted. */ - appliedAt?: Date; - /** When the application was rejected. */ - rejectedAt?: Date; - offers?: (Merge.ats.ApplicationOffersItem | undefined)[]; - /** The application's source. */ - source?: string; - /** The user credited for this application. */ - creditedTo?: Merge.ats.ApplicationCreditedTo; - screeningQuestionAnswers?: Merge.ats.ApplicationScreeningQuestionAnswersItem[]; - /** The application's current stage. */ - currentStage?: Merge.ats.ApplicationCurrentStage; - /** The application's reason for rejection. */ - rejectReason?: Merge.ats.ApplicationRejectReason; - /** 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.ats.RemoteData[]; -} diff --git a/src/api/resources/ats/types/ApplicationCandidate.ts b/src/api/resources/ats/types/ApplicationCandidate.ts deleted file mode 100644 index 0cb61c967..000000000 --- a/src/api/resources/ats/types/ApplicationCandidate.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 candidate applying. - */ -export type ApplicationCandidate = string | Merge.ats.Candidate; diff --git a/src/api/resources/ats/types/ApplicationCreditedTo.ts b/src/api/resources/ats/types/ApplicationCreditedTo.ts deleted file mode 100644 index 660cdaa7c..000000000 --- a/src/api/resources/ats/types/ApplicationCreditedTo.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 user credited for this application. - */ -export type ApplicationCreditedTo = string | Merge.ats.RemoteUser; diff --git a/src/api/resources/ats/types/ApplicationCurrentStage.ts b/src/api/resources/ats/types/ApplicationCurrentStage.ts deleted file mode 100644 index f77915a82..000000000 --- a/src/api/resources/ats/types/ApplicationCurrentStage.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 application's current stage. - */ -export type ApplicationCurrentStage = string | Merge.ats.JobInterviewStage; diff --git a/src/api/resources/ats/types/ApplicationJob.ts b/src/api/resources/ats/types/ApplicationJob.ts deleted file mode 100644 index d094a6008..000000000 --- a/src/api/resources/ats/types/ApplicationJob.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 job being applied for. - */ -export type ApplicationJob = string | Merge.ats.Job; diff --git a/src/api/resources/ats/types/ApplicationOffersItem.ts b/src/api/resources/ats/types/ApplicationOffersItem.ts deleted file mode 100644 index 666118924..000000000 --- a/src/api/resources/ats/types/ApplicationOffersItem.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 ApplicationOffersItem = string | Merge.ats.Offer; diff --git a/src/api/resources/ats/types/ApplicationRejectReason.ts b/src/api/resources/ats/types/ApplicationRejectReason.ts deleted file mode 100644 index b91d6d32b..000000000 --- a/src/api/resources/ats/types/ApplicationRejectReason.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 application's reason for rejection. - */ -export type ApplicationRejectReason = string | Merge.ats.RejectReason; diff --git a/src/api/resources/ats/types/ApplicationRequest.ts b/src/api/resources/ats/types/ApplicationRequest.ts deleted file mode 100644 index 3c3406510..000000000 --- a/src/api/resources/ats/types/ApplicationRequest.ts +++ /dev/null @@ -1,35 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Application Object - * ### Description - * The Application Object is used to represent a candidate's journey through a particular Job's recruiting process. If a Candidate applies for multiple Jobs, there will be a separate Application for each Job if the third-party integration allows it. - * - * ### Usage Example - * Fetch from the `LIST Applications` endpoint and filter by `ID` to show all applications. - */ -export interface ApplicationRequest { - /** The candidate applying. */ - candidate?: Merge.ats.ApplicationRequestCandidate; - /** The job being applied for. */ - job?: Merge.ats.ApplicationRequestJob; - /** When the application was submitted. */ - appliedAt?: Date; - /** When the application was rejected. */ - rejectedAt?: Date; - offers?: (Merge.ats.ApplicationRequestOffersItem | undefined)[]; - /** The application's source. */ - source?: string; - /** The user credited for this application. */ - creditedTo?: Merge.ats.ApplicationRequestCreditedTo; - screeningQuestionAnswers?: Merge.ats.ApplicationRequestScreeningQuestionAnswersItem[]; - /** The application's current stage. */ - currentStage?: Merge.ats.ApplicationRequestCurrentStage; - /** The application's reason for rejection. */ - rejectReason?: Merge.ats.ApplicationRequestRejectReason; - remoteTemplateId?: string; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/ats/types/ApplicationRequestCandidate.ts b/src/api/resources/ats/types/ApplicationRequestCandidate.ts deleted file mode 100644 index 92192d117..000000000 --- a/src/api/resources/ats/types/ApplicationRequestCandidate.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 candidate applying. - */ -export type ApplicationRequestCandidate = string | Merge.ats.Candidate; diff --git a/src/api/resources/ats/types/ApplicationRequestCreditedTo.ts b/src/api/resources/ats/types/ApplicationRequestCreditedTo.ts deleted file mode 100644 index 0977952bd..000000000 --- a/src/api/resources/ats/types/ApplicationRequestCreditedTo.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 user credited for this application. - */ -export type ApplicationRequestCreditedTo = string | Merge.ats.RemoteUser; diff --git a/src/api/resources/ats/types/ApplicationRequestCurrentStage.ts b/src/api/resources/ats/types/ApplicationRequestCurrentStage.ts deleted file mode 100644 index 4867cde1c..000000000 --- a/src/api/resources/ats/types/ApplicationRequestCurrentStage.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 application's current stage. - */ -export type ApplicationRequestCurrentStage = string | Merge.ats.JobInterviewStage; diff --git a/src/api/resources/ats/types/ApplicationRequestJob.ts b/src/api/resources/ats/types/ApplicationRequestJob.ts deleted file mode 100644 index b78e3412a..000000000 --- a/src/api/resources/ats/types/ApplicationRequestJob.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 job being applied for. - */ -export type ApplicationRequestJob = string | Merge.ats.Job; diff --git a/src/api/resources/ats/types/ApplicationRequestOffersItem.ts b/src/api/resources/ats/types/ApplicationRequestOffersItem.ts deleted file mode 100644 index d9f716d84..000000000 --- a/src/api/resources/ats/types/ApplicationRequestOffersItem.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 ApplicationRequestOffersItem = string | Merge.ats.Offer; diff --git a/src/api/resources/ats/types/ApplicationRequestRejectReason.ts b/src/api/resources/ats/types/ApplicationRequestRejectReason.ts deleted file mode 100644 index 72016f84f..000000000 --- a/src/api/resources/ats/types/ApplicationRequestRejectReason.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 application's reason for rejection. - */ -export type ApplicationRequestRejectReason = string | Merge.ats.RejectReason; diff --git a/src/api/resources/ats/types/ApplicationRequestScreeningQuestionAnswersItem.ts b/src/api/resources/ats/types/ApplicationRequestScreeningQuestionAnswersItem.ts deleted file mode 100644 index 471dce1b0..000000000 --- a/src/api/resources/ats/types/ApplicationRequestScreeningQuestionAnswersItem.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 ApplicationRequestScreeningQuestionAnswersItem = string | Merge.ats.ScreeningQuestionAnswerRequest; diff --git a/src/api/resources/ats/types/ApplicationResponse.ts b/src/api/resources/ats/types/ApplicationResponse.ts deleted file mode 100644 index 930f9d424..000000000 --- a/src/api/resources/ats/types/ApplicationResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface ApplicationResponse { - model: Merge.ats.Application; - warnings: Merge.ats.WarningValidationProblem[]; - errors: Merge.ats.ErrorValidationProblem[]; - logs?: Merge.ats.DebugModeLog[]; -} diff --git a/src/api/resources/ats/types/ApplicationScreeningQuestionAnswersItem.ts b/src/api/resources/ats/types/ApplicationScreeningQuestionAnswersItem.ts deleted file mode 100644 index 0e3ea0e1d..000000000 --- a/src/api/resources/ats/types/ApplicationScreeningQuestionAnswersItem.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 ApplicationScreeningQuestionAnswersItem = string | Merge.ats.ScreeningQuestionAnswer; diff --git a/src/api/resources/ats/types/AsyncPassthroughReciept.ts b/src/api/resources/ats/types/AsyncPassthroughReciept.ts deleted file mode 100644 index d8bace047..000000000 --- a/src/api/resources/ats/types/AsyncPassthroughReciept.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface AsyncPassthroughReciept { - asyncPassthroughReceiptId: string; -} diff --git a/src/api/resources/ats/types/Attachment.ts b/src/api/resources/ats/types/Attachment.ts deleted file mode 100644 index 083d95942..000000000 --- a/src/api/resources/ats/types/Attachment.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Attachment Object - * ### Description - * The `Attachment` object is used to represent a file attached to a candidate. - * ### Usage Example - * Fetch from the `LIST Attachments` endpoint and view attachments accessible by a company. - */ -export interface Attachment { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The attachment's name. */ - fileName?: string; - /** The attachment's url. */ - fileUrl?: string; - candidate?: string; - /** - * The attachment's type. - * - * * `RESUME` - RESUME - * * `COVER_LETTER` - COVER_LETTER - * * `OFFER_LETTER` - OFFER_LETTER - * * `OTHER` - OTHER - */ - attachmentType?: Merge.ats.AttachmentAttachmentType; - /** 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.ats.RemoteData[]; -} diff --git a/src/api/resources/ats/types/AttachmentAttachmentType.ts b/src/api/resources/ats/types/AttachmentAttachmentType.ts deleted file mode 100644 index 9ad4a003f..000000000 --- a/src/api/resources/ats/types/AttachmentAttachmentType.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 attachment's type. - * - * * `RESUME` - RESUME - * * `COVER_LETTER` - COVER_LETTER - * * `OFFER_LETTER` - OFFER_LETTER - * * `OTHER` - OTHER - */ -export type AttachmentAttachmentType = Merge.ats.AttachmentTypeEnum | string; diff --git a/src/api/resources/ats/types/AttachmentRequest.ts b/src/api/resources/ats/types/AttachmentRequest.ts deleted file mode 100644 index 48d665e71..000000000 --- a/src/api/resources/ats/types/AttachmentRequest.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Attachment Object - * ### Description - * The `Attachment` object is used to represent a file attached to a candidate. - * ### Usage Example - * Fetch from the `LIST Attachments` endpoint and view attachments accessible by a company. - */ -export interface AttachmentRequest { - /** The attachment's name. */ - fileName?: string; - /** The attachment's url. */ - fileUrl?: string; - candidate?: string; - /** - * The attachment's type. - * - * * `RESUME` - RESUME - * * `COVER_LETTER` - COVER_LETTER - * * `OFFER_LETTER` - OFFER_LETTER - * * `OTHER` - OTHER - */ - attachmentType?: Merge.ats.AttachmentRequestAttachmentType; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/ats/types/AttachmentRequestAttachmentType.ts b/src/api/resources/ats/types/AttachmentRequestAttachmentType.ts deleted file mode 100644 index f935ac57e..000000000 --- a/src/api/resources/ats/types/AttachmentRequestAttachmentType.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 attachment's type. - * - * * `RESUME` - RESUME - * * `COVER_LETTER` - COVER_LETTER - * * `OFFER_LETTER` - OFFER_LETTER - * * `OTHER` - OTHER - */ -export type AttachmentRequestAttachmentType = Merge.ats.AttachmentTypeEnum | string; diff --git a/src/api/resources/ats/types/AttachmentResponse.ts b/src/api/resources/ats/types/AttachmentResponse.ts deleted file mode 100644 index 1f6ebfa10..000000000 --- a/src/api/resources/ats/types/AttachmentResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AttachmentResponse { - model: Merge.ats.Attachment; - warnings: Merge.ats.WarningValidationProblem[]; - errors: Merge.ats.ErrorValidationProblem[]; - logs?: Merge.ats.DebugModeLog[]; -} diff --git a/src/api/resources/ats/types/AttachmentTypeEnum.ts b/src/api/resources/ats/types/AttachmentTypeEnum.ts deleted file mode 100644 index 2de7e5f25..000000000 --- a/src/api/resources/ats/types/AttachmentTypeEnum.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `RESUME` - RESUME - * * `COVER_LETTER` - COVER_LETTER - * * `OFFER_LETTER` - OFFER_LETTER - * * `OTHER` - OTHER - */ -export const AttachmentTypeEnum = { - Resume: "RESUME", - CoverLetter: "COVER_LETTER", - OfferLetter: "OFFER_LETTER", - Other: "OTHER", -} as const; -export type AttachmentTypeEnum = (typeof AttachmentTypeEnum)[keyof typeof AttachmentTypeEnum]; diff --git a/src/api/resources/ats/types/AuditLogEvent.ts b/src/api/resources/ats/types/AuditLogEvent.ts deleted file mode 100644 index b9f43c5ae..000000000 --- a/src/api/resources/ats/types/AuditLogEvent.ts +++ /dev/null @@ -1,73 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AuditLogEvent { - id?: string; - /** The User's full name at the time of this Event occurring. */ - userName?: string; - /** The User's email at the time of this Event occurring. */ - userEmail?: string; - /** - * Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. - * - * * `ADMIN` - ADMIN - * * `DEVELOPER` - DEVELOPER - * * `MEMBER` - MEMBER - * * `API` - API - * * `SYSTEM` - SYSTEM - * * `MERGE_TEAM` - MERGE_TEAM - */ - role: Merge.ats.AuditLogEventRole; - ipAddress: string; - /** - * Designates the type of event that occurred. - * - * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * * `INVITED_USER` - INVITED_USER - * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * * `CREATED_DESTINATION` - CREATED_DESTINATION - * * `DELETED_DESTINATION` - DELETED_DESTINATION - * * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * * `CHANGED_SCOPES` - CHANGED_SCOPES - * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * * `RESET_PASSWORD` - RESET_PASSWORD - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * * `MUTED_ISSUE` - MUTED_ISSUE - * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - */ - eventType: Merge.ats.AuditLogEventEventType; - eventDescription: string; - createdAt?: Date; -} diff --git a/src/api/resources/ats/types/AuditLogEventEventType.ts b/src/api/resources/ats/types/AuditLogEventEventType.ts deleted file mode 100644 index 8e91da4af..000000000 --- a/src/api/resources/ats/types/AuditLogEventEventType.ts +++ /dev/null @@ -1,52 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * Designates the type of event that occurred. - * - * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * * `INVITED_USER` - INVITED_USER - * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * * `CREATED_DESTINATION` - CREATED_DESTINATION - * * `DELETED_DESTINATION` - DELETED_DESTINATION - * * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * * `CHANGED_SCOPES` - CHANGED_SCOPES - * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * * `RESET_PASSWORD` - RESET_PASSWORD - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * * `MUTED_ISSUE` - MUTED_ISSUE - * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - */ -export type AuditLogEventEventType = Merge.ats.EventTypeEnum | string; diff --git a/src/api/resources/ats/types/AuditLogEventRole.ts b/src/api/resources/ats/types/AuditLogEventRole.ts deleted file mode 100644 index 1d184fac1..000000000 --- a/src/api/resources/ats/types/AuditLogEventRole.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. - * - * * `ADMIN` - ADMIN - * * `DEVELOPER` - DEVELOPER - * * `MEMBER` - MEMBER - * * `API` - API - * * `SYSTEM` - SYSTEM - * * `MERGE_TEAM` - MERGE_TEAM - */ -export type AuditLogEventRole = Merge.ats.RoleEnum | string; diff --git a/src/api/resources/ats/types/AvailableActions.ts b/src/api/resources/ats/types/AvailableActions.ts deleted file mode 100644 index a1fc8d525..000000000 --- a/src/api/resources/ats/types/AvailableActions.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The AvailableActions Object - * ### Description - * The `Activity` object is used to see all available model/operation combinations for an integration. - * - * ### Usage Example - * Fetch all the actions available for the `Zenefits` integration. - */ -export interface AvailableActions { - integration: Merge.ats.AccountIntegration; - passthroughAvailable: boolean; - availableModelOperations?: Merge.ats.ModelOperation[]; -} diff --git a/src/api/resources/ats/types/Candidate.ts b/src/api/resources/ats/types/Candidate.ts deleted file mode 100644 index 86d6697c6..000000000 --- a/src/api/resources/ats/types/Candidate.ts +++ /dev/null @@ -1,53 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Candidate Object - * ### Description - * The `Candidate` object is used to represent profile information about a given Candidate. Because it is specific to a Candidate, this information stays constant across applications. - * ### Usage Example - * Fetch from the `LIST Candidates` endpoint and filter by `ID` to show all candidates. - */ -export interface Candidate { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The candidate's first name. */ - firstName?: string; - /** The candidate's last name. */ - lastName?: string; - /** The candidate's current company. */ - company?: string; - /** The candidate's current title. */ - title?: string; - /** When the third party's candidate was created. */ - remoteCreatedAt?: Date; - /** When the third party's candidate was updated. */ - remoteUpdatedAt?: Date; - /** When the most recent interaction with the candidate occurred. */ - lastInteractionAt?: Date; - /** Whether or not the candidate is private. */ - isPrivate?: boolean; - /** Whether or not the candidate can be emailed. */ - canEmail?: boolean; - /** The candidate's locations. */ - locations?: (string | undefined)[]; - phoneNumbers?: Merge.ats.PhoneNumber[]; - emailAddresses?: Merge.ats.EmailAddress[]; - urls?: Merge.ats.Url[]; - /** Array of `Tag` names as strings. */ - tags?: (string | undefined)[]; - /** Array of `Application` object IDs. */ - applications?: (Merge.ats.CandidateApplicationsItem | undefined)[]; - /** Array of `Attachment` object IDs. */ - attachments?: (Merge.ats.CandidateAttachmentsItem | 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; - remoteData?: Merge.ats.RemoteData[]; -} diff --git a/src/api/resources/ats/types/CandidateApplicationsItem.ts b/src/api/resources/ats/types/CandidateApplicationsItem.ts deleted file mode 100644 index 69d47fd61..000000000 --- a/src/api/resources/ats/types/CandidateApplicationsItem.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 CandidateApplicationsItem = string | Merge.ats.Application; diff --git a/src/api/resources/ats/types/CandidateAttachmentsItem.ts b/src/api/resources/ats/types/CandidateAttachmentsItem.ts deleted file mode 100644 index 71c342768..000000000 --- a/src/api/resources/ats/types/CandidateAttachmentsItem.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 CandidateAttachmentsItem = string | Merge.ats.Attachment; diff --git a/src/api/resources/ats/types/CandidateRequest.ts b/src/api/resources/ats/types/CandidateRequest.ts deleted file mode 100644 index 74679c7c6..000000000 --- a/src/api/resources/ats/types/CandidateRequest.ts +++ /dev/null @@ -1,41 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Candidate Object - * ### Description - * The `Candidate` object is used to represent profile information about a given Candidate. Because it is specific to a Candidate, this information stays constant across applications. - * ### Usage Example - * Fetch from the `LIST Candidates` endpoint and filter by `ID` to show all candidates. - */ -export interface CandidateRequest { - /** The candidate's first name. */ - firstName?: string; - /** The candidate's last name. */ - lastName?: string; - /** The candidate's current company. */ - company?: string; - /** The candidate's current title. */ - title?: string; - /** When the most recent interaction with the candidate occurred. */ - lastInteractionAt?: Date; - /** Whether or not the candidate is private. */ - isPrivate?: boolean; - /** Whether or not the candidate can be emailed. */ - canEmail?: boolean; - /** The candidate's locations. */ - locations?: (string | undefined)[]; - phoneNumbers?: Merge.ats.PhoneNumberRequest[]; - emailAddresses?: Merge.ats.EmailAddressRequest[]; - urls?: Merge.ats.UrlRequest[]; - /** Array of `Tag` names as strings. */ - tags?: (string | undefined)[]; - /** Array of `Application` object IDs. */ - applications?: (Merge.ats.CandidateRequestApplicationsItem | undefined)[]; - /** Array of `Attachment` object IDs. */ - attachments?: (Merge.ats.CandidateRequestAttachmentsItem | undefined)[]; - remoteTemplateId?: string; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/ats/types/CandidateRequestApplicationsItem.ts b/src/api/resources/ats/types/CandidateRequestApplicationsItem.ts deleted file mode 100644 index d2d4fe3b3..000000000 --- a/src/api/resources/ats/types/CandidateRequestApplicationsItem.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 CandidateRequestApplicationsItem = string | Merge.ats.Application; diff --git a/src/api/resources/ats/types/CandidateRequestAttachmentsItem.ts b/src/api/resources/ats/types/CandidateRequestAttachmentsItem.ts deleted file mode 100644 index 197184f71..000000000 --- a/src/api/resources/ats/types/CandidateRequestAttachmentsItem.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 CandidateRequestAttachmentsItem = string | Merge.ats.Attachment; diff --git a/src/api/resources/ats/types/CandidateResponse.ts b/src/api/resources/ats/types/CandidateResponse.ts deleted file mode 100644 index 8ffc73f92..000000000 --- a/src/api/resources/ats/types/CandidateResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface CandidateResponse { - model: Merge.ats.Candidate; - warnings: Merge.ats.WarningValidationProblem[]; - errors: Merge.ats.ErrorValidationProblem[]; - logs?: Merge.ats.DebugModeLog[]; -} diff --git a/src/api/resources/ats/types/CategoriesEnum.ts b/src/api/resources/ats/types/CategoriesEnum.ts deleted file mode 100644 index fadfd2764..000000000 --- a/src/api/resources/ats/types/CategoriesEnum.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `hris` - hris - * * `ats` - ats - * * `accounting` - accounting - * * `ticketing` - ticketing - * * `crm` - crm - * * `mktg` - mktg - * * `filestorage` - filestorage - */ -export const CategoriesEnum = { - Hris: "hris", - Ats: "ats", - Accounting: "accounting", - Ticketing: "ticketing", - Crm: "crm", - Mktg: "mktg", - Filestorage: "filestorage", -} as const; -export type CategoriesEnum = (typeof CategoriesEnum)[keyof typeof CategoriesEnum]; diff --git a/src/api/resources/ats/types/CategoryEnum.ts b/src/api/resources/ats/types/CategoryEnum.ts deleted file mode 100644 index f2cd1da08..000000000 --- a/src/api/resources/ats/types/CategoryEnum.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `hris` - hris - * * `ats` - ats - * * `accounting` - accounting - * * `ticketing` - ticketing - * * `crm` - crm - * * `mktg` - mktg - * * `filestorage` - filestorage - */ -export const CategoryEnum = { - Hris: "hris", - Ats: "ats", - Accounting: "accounting", - Ticketing: "ticketing", - Crm: "crm", - Mktg: "mktg", - Filestorage: "filestorage", -} as const; -export type CategoryEnum = (typeof CategoryEnum)[keyof typeof CategoryEnum]; diff --git a/src/api/resources/ats/types/CommonModelScopeApi.ts b/src/api/resources/ats/types/CommonModelScopeApi.ts deleted file mode 100644 index f0e41b47c..000000000 --- a/src/api/resources/ats/types/CommonModelScopeApi.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface CommonModelScopeApi { - /** The common models you want to update the scopes for */ - commonModels: Merge.ats.IndividualCommonModelScopeDeserializer[]; -} diff --git a/src/api/resources/ats/types/CommonModelScopesBodyRequest.ts b/src/api/resources/ats/types/CommonModelScopesBodyRequest.ts deleted file mode 100644 index abb0f99a8..000000000 --- a/src/api/resources/ats/types/CommonModelScopesBodyRequest.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface CommonModelScopesBodyRequest { - modelId: string; - enabledActions: Merge.ats.EnabledActionsEnum[]; - disabledFields: string[]; -} diff --git a/src/api/resources/ats/types/DataPassthroughRequest.ts b/src/api/resources/ats/types/DataPassthroughRequest.ts deleted file mode 100644 index 80f83d15b..000000000 --- a/src/api/resources/ats/types/DataPassthroughRequest.ts +++ /dev/null @@ -1,28 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The DataPassthrough Object - * ### Description - * The `DataPassthrough` object is used to send information to an otherwise-unsupported third-party endpoint. - * - * ### Usage Example - * Create a `DataPassthrough` to get team hierarchies from your Rippling integration. - */ -export interface DataPassthroughRequest { - method: Merge.ats.MethodEnum; - /** The path of the request in the third party's platform. */ - path: string; - /** An optional override of the third party's base url for the request. */ - baseUrlOverride?: string; - /** The data with the request. You must include a `request_format` parameter matching the data's format */ - data?: string; - /** Pass an array of `MultipartFormField` objects in here instead of using the `data` param if `request_format` is set to `MULTIPART`. */ - multipartFormData?: Merge.ats.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.ats.RequestFormatEnum; - /** 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/ats/types/DebugModeLog.ts b/src/api/resources/ats/types/DebugModeLog.ts deleted file mode 100644 index 2ae63918e..000000000 --- a/src/api/resources/ats/types/DebugModeLog.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface DebugModeLog { - logId: string; - dashboardView: string; - logSummary: Merge.ats.DebugModelLogSummary; -} diff --git a/src/api/resources/ats/types/DebugModelLogSummary.ts b/src/api/resources/ats/types/DebugModelLogSummary.ts deleted file mode 100644 index ffce707e3..000000000 --- a/src/api/resources/ats/types/DebugModelLogSummary.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface DebugModelLogSummary { - url: string; - method: string; - statusCode: number; -} diff --git a/src/api/resources/ats/types/Department.ts b/src/api/resources/ats/types/Department.ts deleted file mode 100644 index e2b9b71cb..000000000 --- a/src/api/resources/ats/types/Department.ts +++ /dev/null @@ -1,26 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Department Object - * ### Description - * The `Department` object is used to represent a department within a company. - * ### Usage Example - * Fetch from the `LIST Departments` endpoint and view the departments within a company. - */ -export interface Department { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The department's name. */ - name?: 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/). */ - remoteWasDeleted?: boolean; - fieldMappings?: Record; - remoteData?: Merge.ats.RemoteData[]; -} diff --git a/src/api/resources/ats/types/DisabilityStatusEnum.ts b/src/api/resources/ats/types/DisabilityStatusEnum.ts deleted file mode 100644 index a0a2eefd1..000000000 --- a/src/api/resources/ats/types/DisabilityStatusEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY` - YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY - * * `NO_I_DONT_HAVE_A_DISABILITY` - NO_I_DONT_HAVE_A_DISABILITY - * * `I_DONT_WISH_TO_ANSWER` - I_DONT_WISH_TO_ANSWER - */ -export const DisabilityStatusEnum = { - YesIHaveADisabilityOrPreviouslyHadADisability: "YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY", - NoIDontHaveADisability: "NO_I_DONT_HAVE_A_DISABILITY", - IDontWishToAnswer: "I_DONT_WISH_TO_ANSWER", -} as const; -export type DisabilityStatusEnum = (typeof DisabilityStatusEnum)[keyof typeof DisabilityStatusEnum]; diff --git a/src/api/resources/ats/types/Eeoc.ts b/src/api/resources/ats/types/Eeoc.ts deleted file mode 100644 index f8fb44683..000000000 --- a/src/api/resources/ats/types/Eeoc.ts +++ /dev/null @@ -1,67 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The EEOC Object - * ### Description - * The `EEOC` object is used to represent the Equal Employment Opportunity Commission information for a candidate (race, gender, veteran status, disability status). - * ### Usage Example - * Fetch from the `LIST EEOCs` endpoint and filter by `candidate` to show all EEOC information for a candidate. - */ -export interface Eeoc { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The candidate being represented. */ - candidate?: Merge.ats.EeocCandidate; - /** When the information was submitted. */ - submittedAt?: Date; - /** - * The candidate's race. - * - * * `AMERICAN_INDIAN_OR_ALASKAN_NATIVE` - AMERICAN_INDIAN_OR_ALASKAN_NATIVE - * * `ASIAN` - ASIAN - * * `BLACK_OR_AFRICAN_AMERICAN` - BLACK_OR_AFRICAN_AMERICAN - * * `HISPANIC_OR_LATINO` - HISPANIC_OR_LATINO - * * `WHITE` - WHITE - * * `NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER` - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER - * * `TWO_OR_MORE_RACES` - TWO_OR_MORE_RACES - * * `DECLINE_TO_SELF_IDENTIFY` - DECLINE_TO_SELF_IDENTIFY - */ - race?: Merge.ats.EeocRace; - /** - * The candidate's gender. - * - * * `MALE` - MALE - * * `FEMALE` - FEMALE - * * `NON-BINARY` - NON-BINARY - * * `OTHER` - OTHER - * * `DECLINE_TO_SELF_IDENTIFY` - DECLINE_TO_SELF_IDENTIFY - */ - gender?: Merge.ats.EeocGender; - /** - * The candidate's veteran status. - * - * * `I_AM_NOT_A_PROTECTED_VETERAN` - I_AM_NOT_A_PROTECTED_VETERAN - * * `I_IDENTIFY_AS_ONE_OR_MORE_OF_THE_CLASSIFICATIONS_OF_A_PROTECTED_VETERAN` - I_IDENTIFY_AS_ONE_OR_MORE_OF_THE_CLASSIFICATIONS_OF_A_PROTECTED_VETERAN - * * `I_DONT_WISH_TO_ANSWER` - I_DONT_WISH_TO_ANSWER - */ - veteranStatus?: Merge.ats.EeocVeteranStatus; - /** - * The candidate's disability status. - * - * * `YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY` - YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY - * * `NO_I_DONT_HAVE_A_DISABILITY` - NO_I_DONT_HAVE_A_DISABILITY - * * `I_DONT_WISH_TO_ANSWER` - I_DONT_WISH_TO_ANSWER - */ - disabilityStatus?: Merge.ats.EeocDisabilityStatus; - /** 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.ats.RemoteData[]; -} diff --git a/src/api/resources/ats/types/EeocCandidate.ts b/src/api/resources/ats/types/EeocCandidate.ts deleted file mode 100644 index a1a483205..000000000 --- a/src/api/resources/ats/types/EeocCandidate.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 candidate being represented. - */ -export type EeocCandidate = string | Merge.ats.Candidate; diff --git a/src/api/resources/ats/types/EeocDisabilityStatus.ts b/src/api/resources/ats/types/EeocDisabilityStatus.ts deleted file mode 100644 index ec23418ae..000000000 --- a/src/api/resources/ats/types/EeocDisabilityStatus.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 candidate's disability status. - * - * * `YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY` - YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY - * * `NO_I_DONT_HAVE_A_DISABILITY` - NO_I_DONT_HAVE_A_DISABILITY - * * `I_DONT_WISH_TO_ANSWER` - I_DONT_WISH_TO_ANSWER - */ -export type EeocDisabilityStatus = Merge.ats.DisabilityStatusEnum | string; diff --git a/src/api/resources/ats/types/EeocGender.ts b/src/api/resources/ats/types/EeocGender.ts deleted file mode 100644 index 7ce403ef0..000000000 --- a/src/api/resources/ats/types/EeocGender.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The candidate's gender. - * - * * `MALE` - MALE - * * `FEMALE` - FEMALE - * * `NON-BINARY` - NON-BINARY - * * `OTHER` - OTHER - * * `DECLINE_TO_SELF_IDENTIFY` - DECLINE_TO_SELF_IDENTIFY - */ -export type EeocGender = Merge.ats.GenderEnum | string; diff --git a/src/api/resources/ats/types/EeocRace.ts b/src/api/resources/ats/types/EeocRace.ts deleted file mode 100644 index 1d0a1cfb1..000000000 --- a/src/api/resources/ats/types/EeocRace.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The candidate's race. - * - * * `AMERICAN_INDIAN_OR_ALASKAN_NATIVE` - AMERICAN_INDIAN_OR_ALASKAN_NATIVE - * * `ASIAN` - ASIAN - * * `BLACK_OR_AFRICAN_AMERICAN` - BLACK_OR_AFRICAN_AMERICAN - * * `HISPANIC_OR_LATINO` - HISPANIC_OR_LATINO - * * `WHITE` - WHITE - * * `NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER` - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER - * * `TWO_OR_MORE_RACES` - TWO_OR_MORE_RACES - * * `DECLINE_TO_SELF_IDENTIFY` - DECLINE_TO_SELF_IDENTIFY - */ -export type EeocRace = Merge.ats.RaceEnum | string; diff --git a/src/api/resources/ats/types/EeocVeteranStatus.ts b/src/api/resources/ats/types/EeocVeteranStatus.ts deleted file mode 100644 index 762cd9019..000000000 --- a/src/api/resources/ats/types/EeocVeteranStatus.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 candidate's veteran status. - * - * * `I_AM_NOT_A_PROTECTED_VETERAN` - I_AM_NOT_A_PROTECTED_VETERAN - * * `I_IDENTIFY_AS_ONE_OR_MORE_OF_THE_CLASSIFICATIONS_OF_A_PROTECTED_VETERAN` - I_IDENTIFY_AS_ONE_OR_MORE_OF_THE_CLASSIFICATIONS_OF_A_PROTECTED_VETERAN - * * `I_DONT_WISH_TO_ANSWER` - I_DONT_WISH_TO_ANSWER - */ -export type EeocVeteranStatus = Merge.ats.VeteranStatusEnum | string; diff --git a/src/api/resources/ats/types/EmailAddress.ts b/src/api/resources/ats/types/EmailAddress.ts deleted file mode 100644 index cec28ef65..000000000 --- a/src/api/resources/ats/types/EmailAddress.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The EmailAddress Object - * ### Description - * The `EmailAddress` object is used to represent a candidate's email address. - * ### Usage Example - * Fetch from the `GET Candidate` endpoint and view their email addresses. - */ -export interface EmailAddress { - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The email address. */ - value?: string; - /** - * The type of email address. - * - * * `PERSONAL` - PERSONAL - * * `WORK` - WORK - * * `OTHER` - OTHER - */ - emailAddressType?: Merge.ats.EmailAddressEmailAddressType; - /** 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/EmailAddressEmailAddressType.ts b/src/api/resources/ats/types/EmailAddressEmailAddressType.ts deleted file mode 100644 index 252d22599..000000000 --- a/src/api/resources/ats/types/EmailAddressEmailAddressType.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 type of email address. - * - * * `PERSONAL` - PERSONAL - * * `WORK` - WORK - * * `OTHER` - OTHER - */ -export type EmailAddressEmailAddressType = Merge.ats.EmailAddressTypeEnum | string; diff --git a/src/api/resources/ats/types/EmailAddressRequest.ts b/src/api/resources/ats/types/EmailAddressRequest.ts deleted file mode 100644 index 7b8cdc510..000000000 --- a/src/api/resources/ats/types/EmailAddressRequest.ts +++ /dev/null @@ -1,25 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The EmailAddress Object - * ### Description - * The `EmailAddress` object is used to represent a candidate's email address. - * ### Usage Example - * Fetch from the `GET Candidate` endpoint and view their email addresses. - */ -export interface EmailAddressRequest { - /** The email address. */ - value?: string; - /** - * The type of email address. - * - * * `PERSONAL` - PERSONAL - * * `WORK` - WORK - * * `OTHER` - OTHER - */ - emailAddressType?: Merge.ats.EmailAddressRequestEmailAddressType; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/ats/types/EmailAddressRequestEmailAddressType.ts b/src/api/resources/ats/types/EmailAddressRequestEmailAddressType.ts deleted file mode 100644 index 02993eddd..000000000 --- a/src/api/resources/ats/types/EmailAddressRequestEmailAddressType.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 type of email address. - * - * * `PERSONAL` - PERSONAL - * * `WORK` - WORK - * * `OTHER` - OTHER - */ -export type EmailAddressRequestEmailAddressType = Merge.ats.EmailAddressTypeEnum | string; diff --git a/src/api/resources/ats/types/EmailAddressTypeEnum.ts b/src/api/resources/ats/types/EmailAddressTypeEnum.ts deleted file mode 100644 index d9d19ef98..000000000 --- a/src/api/resources/ats/types/EmailAddressTypeEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `PERSONAL` - PERSONAL - * * `WORK` - WORK - * * `OTHER` - OTHER - */ -export const EmailAddressTypeEnum = { - Personal: "PERSONAL", - Work: "WORK", - Other: "OTHER", -} as const; -export type EmailAddressTypeEnum = (typeof EmailAddressTypeEnum)[keyof typeof EmailAddressTypeEnum]; diff --git a/src/api/resources/ats/types/EnabledActionsEnum.ts b/src/api/resources/ats/types/EnabledActionsEnum.ts deleted file mode 100644 index f6ce6a343..000000000 --- a/src/api/resources/ats/types/EnabledActionsEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `READ` - READ - * * `WRITE` - WRITE - */ -export const EnabledActionsEnum = { - Read: "READ", - Write: "WRITE", -} as const; -export type EnabledActionsEnum = (typeof EnabledActionsEnum)[keyof typeof EnabledActionsEnum]; diff --git a/src/api/resources/ats/types/EncodingEnum.ts b/src/api/resources/ats/types/EncodingEnum.ts deleted file mode 100644 index 538e90395..000000000 --- a/src/api/resources/ats/types/EncodingEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `RAW` - RAW - * * `BASE64` - BASE64 - * * `GZIP_BASE64` - GZIP_BASE64 - */ -export const EncodingEnum = { - Raw: "RAW", - Base64: "BASE64", - GzipBase64: "GZIP_BASE64", -} as const; -export type EncodingEnum = (typeof EncodingEnum)[keyof typeof EncodingEnum]; diff --git a/src/api/resources/ats/types/ErrorValidationProblem.ts b/src/api/resources/ats/types/ErrorValidationProblem.ts deleted file mode 100644 index c20d5582b..000000000 --- a/src/api/resources/ats/types/ErrorValidationProblem.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface ErrorValidationProblem { - source?: Merge.ats.ValidationProblemSource; - title: string; - detail: string; - problemType: string; -} diff --git a/src/api/resources/ats/types/EventTypeEnum.ts b/src/api/resources/ats/types/EventTypeEnum.ts deleted file mode 100644 index 4e8aee7f7..000000000 --- a/src/api/resources/ats/types/EventTypeEnum.ts +++ /dev/null @@ -1,93 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * * `INVITED_USER` - INVITED_USER - * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * * `CREATED_DESTINATION` - CREATED_DESTINATION - * * `DELETED_DESTINATION` - DELETED_DESTINATION - * * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * * `CHANGED_SCOPES` - CHANGED_SCOPES - * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * * `RESET_PASSWORD` - RESET_PASSWORD - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * * `MUTED_ISSUE` - MUTED_ISSUE - * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - */ -export const EventTypeEnum = { - CreatedRemoteProductionApiKey: "CREATED_REMOTE_PRODUCTION_API_KEY", - DeletedRemoteProductionApiKey: "DELETED_REMOTE_PRODUCTION_API_KEY", - CreatedTestApiKey: "CREATED_TEST_API_KEY", - DeletedTestApiKey: "DELETED_TEST_API_KEY", - RegeneratedProductionApiKey: "REGENERATED_PRODUCTION_API_KEY", - RegeneratedWebhookSignature: "REGENERATED_WEBHOOK_SIGNATURE", - InvitedUser: "INVITED_USER", - TwoFactorAuthEnabled: "TWO_FACTOR_AUTH_ENABLED", - TwoFactorAuthDisabled: "TWO_FACTOR_AUTH_DISABLED", - DeletedLinkedAccount: "DELETED_LINKED_ACCOUNT", - DeletedAllCommonModelsForLinkedAccount: "DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT", - CreatedDestination: "CREATED_DESTINATION", - DeletedDestination: "DELETED_DESTINATION", - ChangedDestination: "CHANGED_DESTINATION", - ChangedScopes: "CHANGED_SCOPES", - ChangedPersonalInformation: "CHANGED_PERSONAL_INFORMATION", - ChangedOrganizationSettings: "CHANGED_ORGANIZATION_SETTINGS", - EnabledIntegration: "ENABLED_INTEGRATION", - DisabledIntegration: "DISABLED_INTEGRATION", - EnabledCategory: "ENABLED_CATEGORY", - DisabledCategory: "DISABLED_CATEGORY", - ChangedPassword: "CHANGED_PASSWORD", - ResetPassword: "RESET_PASSWORD", - EnabledRedactUnmappedDataForOrganization: "ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION", - EnabledRedactUnmappedDataForLinkedAccount: "ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT", - DisabledRedactUnmappedDataForOrganization: "DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION", - DisabledRedactUnmappedDataForLinkedAccount: "DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT", - CreatedIntegrationWideFieldMapping: "CREATED_INTEGRATION_WIDE_FIELD_MAPPING", - CreatedLinkedAccountFieldMapping: "CREATED_LINKED_ACCOUNT_FIELD_MAPPING", - ChangedIntegrationWideFieldMapping: "CHANGED_INTEGRATION_WIDE_FIELD_MAPPING", - ChangedLinkedAccountFieldMapping: "CHANGED_LINKED_ACCOUNT_FIELD_MAPPING", - DeletedIntegrationWideFieldMapping: "DELETED_INTEGRATION_WIDE_FIELD_MAPPING", - DeletedLinkedAccountFieldMapping: "DELETED_LINKED_ACCOUNT_FIELD_MAPPING", - CreatedLinkedAccountCommonModelOverride: "CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE", - ChangedLinkedAccountCommonModelOverride: "CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE", - DeletedLinkedAccountCommonModelOverride: "DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE", - ForcedLinkedAccountResync: "FORCED_LINKED_ACCOUNT_RESYNC", - MutedIssue: "MUTED_ISSUE", - GeneratedMagicLink: "GENERATED_MAGIC_LINK", - EnabledMergeWebhook: "ENABLED_MERGE_WEBHOOK", - DisabledMergeWebhook: "DISABLED_MERGE_WEBHOOK", - MergeWebhookTargetChanged: "MERGE_WEBHOOK_TARGET_CHANGED", - EndUserCredentialsAccessed: "END_USER_CREDENTIALS_ACCESSED", -} as const; -export type EventTypeEnum = (typeof EventTypeEnum)[keyof typeof EventTypeEnum]; diff --git a/src/api/resources/ats/types/ExternalTargetFieldApi.ts b/src/api/resources/ats/types/ExternalTargetFieldApi.ts deleted file mode 100644 index 7823d0137..000000000 --- a/src/api/resources/ats/types/ExternalTargetFieldApi.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface ExternalTargetFieldApi { - name?: string; - description?: string; - isMapped?: string; -} diff --git a/src/api/resources/ats/types/ExternalTargetFieldApiResponse.ts b/src/api/resources/ats/types/ExternalTargetFieldApiResponse.ts deleted file mode 100644 index e8b99e577..000000000 --- a/src/api/resources/ats/types/ExternalTargetFieldApiResponse.ts +++ /dev/null @@ -1,22 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface ExternalTargetFieldApiResponse { - activity?: Merge.ats.ExternalTargetFieldApi[]; - application?: Merge.ats.ExternalTargetFieldApi[]; - attachment?: Merge.ats.ExternalTargetFieldApi[]; - candidate?: Merge.ats.ExternalTargetFieldApi[]; - department?: Merge.ats.ExternalTargetFieldApi[]; - eeoc?: Merge.ats.ExternalTargetFieldApi[]; - scheduledInterview?: Merge.ats.ExternalTargetFieldApi[]; - job?: Merge.ats.ExternalTargetFieldApi[]; - jobPosting?: Merge.ats.ExternalTargetFieldApi[]; - jobInterviewStage?: Merge.ats.ExternalTargetFieldApi[]; - offer?: Merge.ats.ExternalTargetFieldApi[]; - office?: Merge.ats.ExternalTargetFieldApi[]; - rejectReason?: Merge.ats.ExternalTargetFieldApi[]; - scorecard?: Merge.ats.ExternalTargetFieldApi[]; - tag?: Merge.ats.ExternalTargetFieldApi[]; - remoteUser?: Merge.ats.ExternalTargetFieldApi[]; -} diff --git a/src/api/resources/ats/types/FieldMappingApiInstance.ts b/src/api/resources/ats/types/FieldMappingApiInstance.ts deleted file mode 100644 index c2693faba..000000000 --- a/src/api/resources/ats/types/FieldMappingApiInstance.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface FieldMappingApiInstance { - id?: string; - isIntegrationWide?: boolean; - targetField?: Merge.ats.FieldMappingApiInstanceTargetField; - remoteField?: Merge.ats.FieldMappingApiInstanceRemoteField; -} diff --git a/src/api/resources/ats/types/FieldMappingApiInstanceRemoteField.ts b/src/api/resources/ats/types/FieldMappingApiInstanceRemoteField.ts deleted file mode 100644 index f0bb2ae55..000000000 --- a/src/api/resources/ats/types/FieldMappingApiInstanceRemoteField.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface FieldMappingApiInstanceRemoteField { - remoteKeyName?: string; - schema?: Record; - remoteEndpointInfo: Merge.ats.FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo; -} diff --git a/src/api/resources/ats/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts b/src/api/resources/ats/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts deleted file mode 100644 index 1f6e6cb3c..000000000 --- a/src/api/resources/ats/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo { - method?: string; - urlPath?: string; - fieldTraversalPath?: string[]; -} diff --git a/src/api/resources/ats/types/FieldMappingApiInstanceResponse.ts b/src/api/resources/ats/types/FieldMappingApiInstanceResponse.ts deleted file mode 100644 index 207597b56..000000000 --- a/src/api/resources/ats/types/FieldMappingApiInstanceResponse.ts +++ /dev/null @@ -1,22 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface FieldMappingApiInstanceResponse { - activity?: Merge.ats.FieldMappingApiInstance[]; - application?: Merge.ats.FieldMappingApiInstance[]; - attachment?: Merge.ats.FieldMappingApiInstance[]; - candidate?: Merge.ats.FieldMappingApiInstance[]; - department?: Merge.ats.FieldMappingApiInstance[]; - eeoc?: Merge.ats.FieldMappingApiInstance[]; - scheduledInterview?: Merge.ats.FieldMappingApiInstance[]; - job?: Merge.ats.FieldMappingApiInstance[]; - jobPosting?: Merge.ats.FieldMappingApiInstance[]; - jobInterviewStage?: Merge.ats.FieldMappingApiInstance[]; - offer?: Merge.ats.FieldMappingApiInstance[]; - office?: Merge.ats.FieldMappingApiInstance[]; - rejectReason?: Merge.ats.FieldMappingApiInstance[]; - scorecard?: Merge.ats.FieldMappingApiInstance[]; - tag?: Merge.ats.FieldMappingApiInstance[]; - remoteUser?: Merge.ats.FieldMappingApiInstance[]; -} diff --git a/src/api/resources/ats/types/FieldMappingApiInstanceTargetField.ts b/src/api/resources/ats/types/FieldMappingApiInstanceTargetField.ts deleted file mode 100644 index da6fd1317..000000000 --- a/src/api/resources/ats/types/FieldMappingApiInstanceTargetField.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface FieldMappingApiInstanceTargetField { - name: string; - description: string; - isOrganizationWide: boolean; -} diff --git a/src/api/resources/ats/types/FieldMappingInstanceResponse.ts b/src/api/resources/ats/types/FieldMappingInstanceResponse.ts deleted file mode 100644 index 9c631649e..000000000 --- a/src/api/resources/ats/types/FieldMappingInstanceResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface FieldMappingInstanceResponse { - model: Merge.ats.FieldMappingApiInstance; - warnings: Merge.ats.WarningValidationProblem[]; - errors: Merge.ats.ErrorValidationProblem[]; - logs?: Merge.ats.DebugModeLog[]; -} diff --git a/src/api/resources/ats/types/FieldPermissionDeserializer.ts b/src/api/resources/ats/types/FieldPermissionDeserializer.ts deleted file mode 100644 index 62ec4f2de..000000000 --- a/src/api/resources/ats/types/FieldPermissionDeserializer.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface FieldPermissionDeserializer { - enabledFields?: unknown[]; - disabledFields?: unknown[]; -} diff --git a/src/api/resources/ats/types/FieldPermissionDeserializerRequest.ts b/src/api/resources/ats/types/FieldPermissionDeserializerRequest.ts deleted file mode 100644 index 768c90546..000000000 --- a/src/api/resources/ats/types/FieldPermissionDeserializerRequest.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface FieldPermissionDeserializerRequest { - enabledFields?: unknown[]; - disabledFields?: unknown[]; -} diff --git a/src/api/resources/ats/types/GenderEnum.ts b/src/api/resources/ats/types/GenderEnum.ts deleted file mode 100644 index 9fbc31fa9..000000000 --- a/src/api/resources/ats/types/GenderEnum.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `MALE` - MALE - * * `FEMALE` - FEMALE - * * `NON-BINARY` - NON-BINARY - * * `OTHER` - OTHER - * * `DECLINE_TO_SELF_IDENTIFY` - DECLINE_TO_SELF_IDENTIFY - */ -export const GenderEnum = { - Male: "MALE", - Female: "FEMALE", - NonBinary: "NON-BINARY", - Other: "OTHER", - DeclineToSelfIdentify: "DECLINE_TO_SELF_IDENTIFY", -} as const; -export type GenderEnum = (typeof GenderEnum)[keyof typeof GenderEnum]; diff --git a/src/api/resources/ats/types/IndividualCommonModelScopeDeserializer.ts b/src/api/resources/ats/types/IndividualCommonModelScopeDeserializer.ts deleted file mode 100644 index 33d934591..000000000 --- a/src/api/resources/ats/types/IndividualCommonModelScopeDeserializer.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface IndividualCommonModelScopeDeserializer { - modelName: string; - modelPermissions?: Record; - fieldPermissions?: Merge.ats.FieldPermissionDeserializer; -} diff --git a/src/api/resources/ats/types/IndividualCommonModelScopeDeserializerRequest.ts b/src/api/resources/ats/types/IndividualCommonModelScopeDeserializerRequest.ts deleted file mode 100644 index be5260908..000000000 --- a/src/api/resources/ats/types/IndividualCommonModelScopeDeserializerRequest.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface IndividualCommonModelScopeDeserializerRequest { - modelName: string; - modelPermissions?: Record; - fieldPermissions?: Merge.ats.FieldPermissionDeserializerRequest; -} diff --git a/src/api/resources/ats/types/Issue.ts b/src/api/resources/ats/types/Issue.ts deleted file mode 100644 index 71490be50..000000000 --- a/src/api/resources/ats/types/Issue.ts +++ /dev/null @@ -1,20 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface Issue { - id?: string; - /** - * Status of the issue. Options: ('ONGOING', 'RESOLVED') - * - * * `ONGOING` - ONGOING - * * `RESOLVED` - RESOLVED - */ - status?: Merge.ats.IssueStatus; - errorDescription: string; - endUser?: Record; - firstIncidentTime?: Date; - lastIncidentTime?: Date; - isMuted?: boolean; - errorDetails?: string[]; -} diff --git a/src/api/resources/ats/types/IssueStatus.ts b/src/api/resources/ats/types/IssueStatus.ts deleted file mode 100644 index 1ba0deee0..000000000 --- a/src/api/resources/ats/types/IssueStatus.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * Status of the issue. Options: ('ONGOING', 'RESOLVED') - * - * * `ONGOING` - ONGOING - * * `RESOLVED` - RESOLVED - */ -export type IssueStatus = Merge.ats.IssueStatusEnum | string; diff --git a/src/api/resources/ats/types/IssueStatusEnum.ts b/src/api/resources/ats/types/IssueStatusEnum.ts deleted file mode 100644 index 03b0cd555..000000000 --- a/src/api/resources/ats/types/IssueStatusEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `ONGOING` - ONGOING - * * `RESOLVED` - RESOLVED - */ -export const IssueStatusEnum = { - Ongoing: "ONGOING", - Resolved: "RESOLVED", -} as const; -export type IssueStatusEnum = (typeof IssueStatusEnum)[keyof typeof IssueStatusEnum]; diff --git a/src/api/resources/ats/types/Job.ts b/src/api/resources/ats/types/Job.ts deleted file mode 100644 index 8440622af..000000000 --- a/src/api/resources/ats/types/Job.ts +++ /dev/null @@ -1,65 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Job Object - * ### Description - * The `Job` object can be used to track any jobs that are currently or will be open/closed for applications. - * ### Usage Example - * Fetch from the `LIST Jobs` endpoint to show all job postings. - */ -export interface Job { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The job's name. */ - name?: string; - /** The job's description. */ - description?: string; - /** The job's code. Typically an additional identifier used to reference the particular job that is displayed on the ATS. */ - code?: string; - /** - * The job's status. - * - * * `OPEN` - OPEN - * * `CLOSED` - CLOSED - * * `DRAFT` - DRAFT - * * `ARCHIVED` - ARCHIVED - * * `PENDING` - PENDING - */ - status?: Merge.ats.JobStatus; - /** - * The job's type. - * - * * `POSTING` - POSTING - * * `REQUISITION` - REQUISITION - * * `PROFILE` - PROFILE - */ - type?: Merge.ats.JobType; - /** IDs of `JobPosting` objects that serve as job postings for this `Job`. */ - jobPostings?: (string | undefined)[]; - jobPostingUrls?: Merge.ats.Url[]; - /** When the third party's job was created. */ - remoteCreatedAt?: Date; - /** When the third party's job was updated. */ - remoteUpdatedAt?: Date; - /** Whether the job is confidential. */ - confidential?: boolean; - /** IDs of `Department` objects for this `Job`. */ - departments?: (Merge.ats.JobDepartmentsItem | undefined)[]; - /** IDs of `Office` objects for this `Job`. */ - offices?: (Merge.ats.JobOfficesItem | undefined)[]; - /** IDs of `RemoteUser` objects that serve as hiring managers for this `Job`. */ - hiringManagers?: (Merge.ats.JobHiringManagersItem | undefined)[]; - /** IDs of `RemoteUser` objects that serve as recruiters for this `Job`. */ - recruiters?: (Merge.ats.JobRecruitersItem | 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; - remoteData?: Merge.ats.RemoteData[]; -} diff --git a/src/api/resources/ats/types/JobDepartmentsItem.ts b/src/api/resources/ats/types/JobDepartmentsItem.ts deleted file mode 100644 index 7461be9c0..000000000 --- a/src/api/resources/ats/types/JobDepartmentsItem.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 JobDepartmentsItem = string | Merge.ats.Department; diff --git a/src/api/resources/ats/types/JobHiringManagersItem.ts b/src/api/resources/ats/types/JobHiringManagersItem.ts deleted file mode 100644 index 97d76b323..000000000 --- a/src/api/resources/ats/types/JobHiringManagersItem.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 JobHiringManagersItem = string | Merge.ats.RemoteUser; diff --git a/src/api/resources/ats/types/JobInterviewStage.ts b/src/api/resources/ats/types/JobInterviewStage.ts deleted file mode 100644 index a1bdd9003..000000000 --- a/src/api/resources/ats/types/JobInterviewStage.ts +++ /dev/null @@ -1,30 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The JobInterviewStage Object - * ### Description - * The `JobInterviewStage` object is used to represent a particular recruiting stage for an `Application`. A given `Application` typically has the `JobInterviewStage` object represented in the current_stage field. - * ### Usage Example - * Fetch from the `LIST JobInterviewStages` endpoint and view the job interview stages used by a company. - */ -export interface JobInterviewStage { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** Standard stage names are offered by ATS systems but can be modified by users. */ - name?: string; - /** This field is populated only if the stage is specific to a particular job. If the stage is generic, this field will not be populated. */ - job?: Merge.ats.JobInterviewStageJob; - /** The stage’s order, with the lowest values ordered first. If the third-party does not return details on the order of stages, this field will not be populated. */ - stageOrder?: number; - /** 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.ats.RemoteData[]; -} diff --git a/src/api/resources/ats/types/JobInterviewStageJob.ts b/src/api/resources/ats/types/JobInterviewStageJob.ts deleted file mode 100644 index a629b93a7..000000000 --- a/src/api/resources/ats/types/JobInterviewStageJob.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * This field is populated only if the stage is specific to a particular job. If the stage is generic, this field will not be populated. - */ -export type JobInterviewStageJob = string | Merge.ats.Job; diff --git a/src/api/resources/ats/types/JobOfficesItem.ts b/src/api/resources/ats/types/JobOfficesItem.ts deleted file mode 100644 index 7af9c9c7b..000000000 --- a/src/api/resources/ats/types/JobOfficesItem.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 JobOfficesItem = string | Merge.ats.Office; diff --git a/src/api/resources/ats/types/JobPosting.ts b/src/api/resources/ats/types/JobPosting.ts deleted file mode 100644 index 8ea990474..000000000 --- a/src/api/resources/ats/types/JobPosting.ts +++ /dev/null @@ -1,48 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The JobPosting Object - * ### Description - * The `JobPosting` object represents an external announcement on a job board created by an organization to attract qualified candidates to apply for a specific `Job` opening - * ### Usage Example - * Fetch from the `LIST JobPostings` endpoint to show all job postings. - */ -export interface JobPosting { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The job posting’s title. */ - title?: string; - /** The Url object is used to represent hyperlinks for a candidate to apply to a given job. */ - jobPostingUrls?: Merge.ats.JobPostingJobPostingUrlsItem[]; - /** ID of `Job` object for this `JobPosting`. */ - job?: Merge.ats.JobPostingJob; - /** - * The job posting's status. - * - * * `PUBLISHED` - PUBLISHED - * * `CLOSED` - CLOSED - * * `DRAFT` - DRAFT - * * `INTERNAL` - INTERNAL - * * `PENDING` - PENDING - */ - status?: Merge.ats.JobPostingStatus; - /** The job posting’s content. */ - content?: string; - /** When the third party's job posting was created. */ - remoteCreatedAt?: Date; - /** When the third party's job posting was updated. */ - remoteUpdatedAt?: Date; - /** Indicates whether the job posting is internal or external. */ - isInternal?: boolean; - /** 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.ats.RemoteData[]; -} diff --git a/src/api/resources/ats/types/JobPostingJob.ts b/src/api/resources/ats/types/JobPostingJob.ts deleted file mode 100644 index 75346590e..000000000 --- a/src/api/resources/ats/types/JobPostingJob.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * ID of `Job` object for this `JobPosting`. - */ -export type JobPostingJob = string | Merge.ats.Job; diff --git a/src/api/resources/ats/types/JobPostingJobPostingUrlsItem.ts b/src/api/resources/ats/types/JobPostingJobPostingUrlsItem.ts deleted file mode 100644 index 374052bf1..000000000 --- a/src/api/resources/ats/types/JobPostingJobPostingUrlsItem.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 JobPostingJobPostingUrlsItem = string | Merge.ats.Url; diff --git a/src/api/resources/ats/types/JobPostingStatus.ts b/src/api/resources/ats/types/JobPostingStatus.ts deleted file mode 100644 index ed7b2a454..000000000 --- a/src/api/resources/ats/types/JobPostingStatus.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The job posting's status. - * - * * `PUBLISHED` - PUBLISHED - * * `CLOSED` - CLOSED - * * `DRAFT` - DRAFT - * * `INTERNAL` - INTERNAL - * * `PENDING` - PENDING - */ -export type JobPostingStatus = Merge.ats.JobPostingStatusEnum | string; diff --git a/src/api/resources/ats/types/JobPostingStatusEnum.ts b/src/api/resources/ats/types/JobPostingStatusEnum.ts deleted file mode 100644 index 90dfa2bcd..000000000 --- a/src/api/resources/ats/types/JobPostingStatusEnum.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `PUBLISHED` - PUBLISHED - * * `CLOSED` - CLOSED - * * `DRAFT` - DRAFT - * * `INTERNAL` - INTERNAL - * * `PENDING` - PENDING - */ -export const JobPostingStatusEnum = { - Published: "PUBLISHED", - Closed: "CLOSED", - Draft: "DRAFT", - Internal: "INTERNAL", - Pending: "PENDING", -} as const; -export type JobPostingStatusEnum = (typeof JobPostingStatusEnum)[keyof typeof JobPostingStatusEnum]; diff --git a/src/api/resources/ats/types/JobRecruitersItem.ts b/src/api/resources/ats/types/JobRecruitersItem.ts deleted file mode 100644 index dbb968b09..000000000 --- a/src/api/resources/ats/types/JobRecruitersItem.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 JobRecruitersItem = string | Merge.ats.RemoteUser; diff --git a/src/api/resources/ats/types/JobStatus.ts b/src/api/resources/ats/types/JobStatus.ts deleted file mode 100644 index 1133f1110..000000000 --- a/src/api/resources/ats/types/JobStatus.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The job's status. - * - * * `OPEN` - OPEN - * * `CLOSED` - CLOSED - * * `DRAFT` - DRAFT - * * `ARCHIVED` - ARCHIVED - * * `PENDING` - PENDING - */ -export type JobStatus = Merge.ats.JobStatusEnum | string; diff --git a/src/api/resources/ats/types/JobStatusEnum.ts b/src/api/resources/ats/types/JobStatusEnum.ts deleted file mode 100644 index 4fc57da8c..000000000 --- a/src/api/resources/ats/types/JobStatusEnum.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `OPEN` - OPEN - * * `CLOSED` - CLOSED - * * `DRAFT` - DRAFT - * * `ARCHIVED` - ARCHIVED - * * `PENDING` - PENDING - */ -export const JobStatusEnum = { - Open: "OPEN", - Closed: "CLOSED", - Draft: "DRAFT", - Archived: "ARCHIVED", - Pending: "PENDING", -} as const; -export type JobStatusEnum = (typeof JobStatusEnum)[keyof typeof JobStatusEnum]; diff --git a/src/api/resources/ats/types/JobType.ts b/src/api/resources/ats/types/JobType.ts deleted file mode 100644 index 54df4485a..000000000 --- a/src/api/resources/ats/types/JobType.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 job's type. - * - * * `POSTING` - POSTING - * * `REQUISITION` - REQUISITION - * * `PROFILE` - PROFILE - */ -export type JobType = Merge.ats.JobTypeEnum | string; diff --git a/src/api/resources/ats/types/JobTypeEnum.ts b/src/api/resources/ats/types/JobTypeEnum.ts deleted file mode 100644 index 1f649054c..000000000 --- a/src/api/resources/ats/types/JobTypeEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `POSTING` - POSTING - * * `REQUISITION` - REQUISITION - * * `PROFILE` - PROFILE - */ -export const JobTypeEnum = { - Posting: "POSTING", - Requisition: "REQUISITION", - Profile: "PROFILE", -} as const; -export type JobTypeEnum = (typeof JobTypeEnum)[keyof typeof JobTypeEnum]; diff --git a/src/api/resources/ats/types/LanguageEnum.ts b/src/api/resources/ats/types/LanguageEnum.ts deleted file mode 100644 index 603fc6498..000000000 --- a/src/api/resources/ats/types/LanguageEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `en` - en - * * `de` - de - */ -export const LanguageEnum = { - En: "en", - De: "de", -} as const; -export type LanguageEnum = (typeof LanguageEnum)[keyof typeof LanguageEnum]; diff --git a/src/api/resources/ats/types/LastSyncResultEnum.ts b/src/api/resources/ats/types/LastSyncResultEnum.ts deleted file mode 100644 index 3baf8309b..000000000 --- a/src/api/resources/ats/types/LastSyncResultEnum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `SYNCING` - SYNCING - * * `DONE` - DONE - * * `FAILED` - FAILED - * * `DISABLED` - DISABLED - * * `PAUSED` - PAUSED - * * `PARTIALLY_SYNCED` - PARTIALLY_SYNCED - */ -export const LastSyncResultEnum = { - Syncing: "SYNCING", - Done: "DONE", - Failed: "FAILED", - Disabled: "DISABLED", - Paused: "PAUSED", - PartiallySynced: "PARTIALLY_SYNCED", -} as const; -export type LastSyncResultEnum = (typeof LastSyncResultEnum)[keyof typeof LastSyncResultEnum]; diff --git a/src/api/resources/ats/types/LinkToken.ts b/src/api/resources/ats/types/LinkToken.ts deleted file mode 100644 index 09879f9b1..000000000 --- a/src/api/resources/ats/types/LinkToken.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface LinkToken { - linkToken: string; - integrationName?: string; - magicLinkUrl?: string; -} diff --git a/src/api/resources/ats/types/LinkedAccountStatus.ts b/src/api/resources/ats/types/LinkedAccountStatus.ts deleted file mode 100644 index fa55c41fb..000000000 --- a/src/api/resources/ats/types/LinkedAccountStatus.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface LinkedAccountStatus { - linkedAccountStatus: string; - canMakeRequest: boolean; -} diff --git a/src/api/resources/ats/types/MetaResponse.ts b/src/api/resources/ats/types/MetaResponse.ts deleted file mode 100644 index ca5d97355..000000000 --- a/src/api/resources/ats/types/MetaResponse.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface MetaResponse { - requestSchema: Record; - remoteFieldClasses?: Record; - status?: Merge.ats.LinkedAccountStatus; - hasConditionalParams: boolean; - hasRequiredLinkedAccountParams: boolean; -} diff --git a/src/api/resources/ats/types/MethodEnum.ts b/src/api/resources/ats/types/MethodEnum.ts deleted file mode 100644 index b8fb03bb0..000000000 --- a/src/api/resources/ats/types/MethodEnum.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `GET` - GET - * * `OPTIONS` - OPTIONS - * * `HEAD` - HEAD - * * `POST` - POST - * * `PUT` - PUT - * * `PATCH` - PATCH - * * `DELETE` - DELETE - */ -export const MethodEnum = { - Get: "GET", - Options: "OPTIONS", - Head: "HEAD", - Post: "POST", - Put: "PUT", - Patch: "PATCH", - Delete: "DELETE", -} as const; -export type MethodEnum = (typeof MethodEnum)[keyof typeof MethodEnum]; diff --git a/src/api/resources/ats/types/ModelOperation.ts b/src/api/resources/ats/types/ModelOperation.ts deleted file mode 100644 index 520f668d9..000000000 --- a/src/api/resources/ats/types/ModelOperation.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * # The ModelOperation Object - * ### Description - * The `ModelOperation` object is used to represent the operations that are currently supported for a given model. - * - * ### Usage Example - * View what operations are supported for the `Candidate` endpoint. - */ -export interface ModelOperation { - modelName: string; - availableOperations: string[]; - requiredPostParameters: string[]; - supportedFields: string[]; -} diff --git a/src/api/resources/ats/types/ModelPermissionDeserializer.ts b/src/api/resources/ats/types/ModelPermissionDeserializer.ts deleted file mode 100644 index 58b672e56..000000000 --- a/src/api/resources/ats/types/ModelPermissionDeserializer.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface ModelPermissionDeserializer { - isEnabled?: boolean; -} diff --git a/src/api/resources/ats/types/ModelPermissionDeserializerRequest.ts b/src/api/resources/ats/types/ModelPermissionDeserializerRequest.ts deleted file mode 100644 index 1e140a95a..000000000 --- a/src/api/resources/ats/types/ModelPermissionDeserializerRequest.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface ModelPermissionDeserializerRequest { - isEnabled?: boolean; -} diff --git a/src/api/resources/ats/types/MultipartFormFieldRequest.ts b/src/api/resources/ats/types/MultipartFormFieldRequest.ts deleted file mode 100644 index f17ea7d32..000000000 --- a/src/api/resources/ats/types/MultipartFormFieldRequest.ts +++ /dev/null @@ -1,30 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The MultipartFormField Object - * ### Description - * The `MultipartFormField` object is used to represent fields in an HTTP request using `multipart/form-data`. - * - * ### Usage Example - * Create a `MultipartFormField` to define a multipart form entry. - */ -export interface MultipartFormFieldRequest { - /** The name of the form field */ - name: string; - /** The data for the form field. */ - data: string; - /** - * The encoding of the value of `data`. Defaults to `RAW` if not defined. - * - * * `RAW` - RAW - * * `BASE64` - BASE64 - * * `GZIP_BASE64` - GZIP_BASE64 - */ - encoding?: Merge.ats.MultipartFormFieldRequestEncoding; - /** 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. */ - contentType?: string; -} diff --git a/src/api/resources/ats/types/MultipartFormFieldRequestEncoding.ts b/src/api/resources/ats/types/MultipartFormFieldRequestEncoding.ts deleted file mode 100644 index 2c4a8f301..000000000 --- a/src/api/resources/ats/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.ats.EncodingEnum | string; diff --git a/src/api/resources/ats/types/Offer.ts b/src/api/resources/ats/types/Offer.ts deleted file mode 100644 index fe69d76f1..000000000 --- a/src/api/resources/ats/types/Offer.ts +++ /dev/null @@ -1,50 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Offer Object - * ### Description - * The `Offer` object is used to represent an offer for a candidate's application specific to a job. - * ### Usage Example - * Fetch from the `LIST Offers` endpoint and filter by `ID` to show all offers. - */ -export interface Offer { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The application who is receiving the offer. */ - application?: Merge.ats.OfferApplication; - /** The user who created the offer. */ - creator?: Merge.ats.OfferCreator; - /** When the third party's offer was created. */ - remoteCreatedAt?: Date; - /** When the offer was closed. */ - closedAt?: Date; - /** When the offer was sent. */ - sentAt?: Date; - /** The employment start date on the offer. */ - startDate?: Date; - /** - * The offer's status. - * - * * `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.OfferStatus; - /** 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.ats.RemoteData[]; -} diff --git a/src/api/resources/ats/types/OfferApplication.ts b/src/api/resources/ats/types/OfferApplication.ts deleted file mode 100644 index d3ed7b7b4..000000000 --- a/src/api/resources/ats/types/OfferApplication.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 application who is receiving the offer. - */ -export type OfferApplication = string | Merge.ats.Application; diff --git a/src/api/resources/ats/types/OfferCreator.ts b/src/api/resources/ats/types/OfferCreator.ts deleted file mode 100644 index 6c8e814bf..000000000 --- a/src/api/resources/ats/types/OfferCreator.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 user who created the offer. - */ -export type OfferCreator = string | Merge.ats.RemoteUser; diff --git a/src/api/resources/ats/types/OfferStatus.ts b/src/api/resources/ats/types/OfferStatus.ts deleted file mode 100644 index 16dc5e976..000000000 --- a/src/api/resources/ats/types/OfferStatus.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The offer's status. - * - * * `DRAFT` - DRAFT - * * `APPROVAL-SENT` - APPROVAL-SENT - * * `APPROVED` - APPROVED - * * `SENT` - SENT - * * `SENT-MANUALLY` - SENT-MANUALLY - * * `OPENED` - OPENED - * * `DENIED` - DENIED - * * `SIGNED` - SIGNED - * * `DEPRECATED` - DEPRECATED - */ -export type OfferStatus = Merge.ats.OfferStatusEnum | string; diff --git a/src/api/resources/ats/types/OfferStatusEnum.ts b/src/api/resources/ats/types/OfferStatusEnum.ts deleted file mode 100644 index 26e5ed650..000000000 --- a/src/api/resources/ats/types/OfferStatusEnum.ts +++ /dev/null @@ -1,25 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `DRAFT` - DRAFT - * * `APPROVAL-SENT` - APPROVAL-SENT - * * `APPROVED` - APPROVED - * * `SENT` - SENT - * * `SENT-MANUALLY` - SENT-MANUALLY - * * `OPENED` - OPENED - * * `DENIED` - DENIED - * * `SIGNED` - SIGNED - * * `DEPRECATED` - DEPRECATED - */ -export const OfferStatusEnum = { - Draft: "DRAFT", - ApprovalSent: "APPROVAL-SENT", - Approved: "APPROVED", - Sent: "SENT", - SentManually: "SENT-MANUALLY", - Opened: "OPENED", - Denied: "DENIED", - Signed: "SIGNED", - Deprecated: "DEPRECATED", -} as const; -export type OfferStatusEnum = (typeof OfferStatusEnum)[keyof typeof OfferStatusEnum]; diff --git a/src/api/resources/ats/types/Office.ts b/src/api/resources/ats/types/Office.ts deleted file mode 100644 index 10d27eaae..000000000 --- a/src/api/resources/ats/types/Office.ts +++ /dev/null @@ -1,28 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Office Object - * ### Description - * The `Office` object is used to represent an office within a company. A given `Job` has the `Office` ID in its offices field. - * ### Usage Example - * Fetch from the `LIST Offices` endpoint and view the offices within a company. - */ -export interface Office { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The office's name. */ - name?: string; - /** The office's location. */ - location?: 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/). */ - remoteWasDeleted?: boolean; - fieldMappings?: Record; - remoteData?: Merge.ats.RemoteData[]; -} diff --git a/src/api/resources/ats/types/OverallRecommendationEnum.ts b/src/api/resources/ats/types/OverallRecommendationEnum.ts deleted file mode 100644 index 98454299c..000000000 --- a/src/api/resources/ats/types/OverallRecommendationEnum.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `DEFINITELY_NO` - DEFINITELY_NO - * * `NO` - NO - * * `YES` - YES - * * `STRONG_YES` - STRONG_YES - * * `NO_DECISION` - NO_DECISION - */ -export const OverallRecommendationEnum = { - DefinitelyNo: "DEFINITELY_NO", - No: "NO", - Yes: "YES", - StrongYes: "STRONG_YES", - NoDecision: "NO_DECISION", -} as const; -export type OverallRecommendationEnum = (typeof OverallRecommendationEnum)[keyof typeof OverallRecommendationEnum]; diff --git a/src/api/resources/ats/types/PaginatedAccountDetailsAndActionsList.ts b/src/api/resources/ats/types/PaginatedAccountDetailsAndActionsList.ts deleted file mode 100644 index 278d56086..000000000 --- a/src/api/resources/ats/types/PaginatedAccountDetailsAndActionsList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedAccountDetailsAndActionsList { - next?: string; - previous?: string; - results?: Merge.ats.AccountDetailsAndActions[]; -} diff --git a/src/api/resources/ats/types/PaginatedActivityList.ts b/src/api/resources/ats/types/PaginatedActivityList.ts deleted file mode 100644 index daa02d860..000000000 --- a/src/api/resources/ats/types/PaginatedActivityList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedActivityList { - next?: string; - previous?: string; - results?: Merge.ats.Activity[]; -} diff --git a/src/api/resources/ats/types/PaginatedApplicationList.ts b/src/api/resources/ats/types/PaginatedApplicationList.ts deleted file mode 100644 index 6a6e3ef52..000000000 --- a/src/api/resources/ats/types/PaginatedApplicationList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedApplicationList { - next?: string; - previous?: string; - results?: Merge.ats.Application[]; -} diff --git a/src/api/resources/ats/types/PaginatedAttachmentList.ts b/src/api/resources/ats/types/PaginatedAttachmentList.ts deleted file mode 100644 index f48f20074..000000000 --- a/src/api/resources/ats/types/PaginatedAttachmentList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedAttachmentList { - next?: string; - previous?: string; - results?: Merge.ats.Attachment[]; -} diff --git a/src/api/resources/ats/types/PaginatedAuditLogEventList.ts b/src/api/resources/ats/types/PaginatedAuditLogEventList.ts deleted file mode 100644 index 14c4d5794..000000000 --- a/src/api/resources/ats/types/PaginatedAuditLogEventList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedAuditLogEventList { - next?: string; - previous?: string; - results?: Merge.ats.AuditLogEvent[]; -} diff --git a/src/api/resources/ats/types/PaginatedCandidateList.ts b/src/api/resources/ats/types/PaginatedCandidateList.ts deleted file mode 100644 index f9000ccb3..000000000 --- a/src/api/resources/ats/types/PaginatedCandidateList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedCandidateList { - next?: string; - previous?: string; - results?: Merge.ats.Candidate[]; -} diff --git a/src/api/resources/ats/types/PaginatedDepartmentList.ts b/src/api/resources/ats/types/PaginatedDepartmentList.ts deleted file mode 100644 index e34b06446..000000000 --- a/src/api/resources/ats/types/PaginatedDepartmentList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedDepartmentList { - next?: string; - previous?: string; - results?: Merge.ats.Department[]; -} diff --git a/src/api/resources/ats/types/PaginatedEeocList.ts b/src/api/resources/ats/types/PaginatedEeocList.ts deleted file mode 100644 index 1d47e2bb8..000000000 --- a/src/api/resources/ats/types/PaginatedEeocList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedEeocList { - next?: string; - previous?: string; - results?: Merge.ats.Eeoc[]; -} diff --git a/src/api/resources/ats/types/PaginatedIssueList.ts b/src/api/resources/ats/types/PaginatedIssueList.ts deleted file mode 100644 index faf27f3a6..000000000 --- a/src/api/resources/ats/types/PaginatedIssueList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedIssueList { - next?: string; - previous?: string; - results?: Merge.ats.Issue[]; -} diff --git a/src/api/resources/ats/types/PaginatedJobInterviewStageList.ts b/src/api/resources/ats/types/PaginatedJobInterviewStageList.ts deleted file mode 100644 index cf6e60e88..000000000 --- a/src/api/resources/ats/types/PaginatedJobInterviewStageList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedJobInterviewStageList { - next?: string; - previous?: string; - results?: Merge.ats.JobInterviewStage[]; -} diff --git a/src/api/resources/ats/types/PaginatedJobList.ts b/src/api/resources/ats/types/PaginatedJobList.ts deleted file mode 100644 index 7ecbf5fe4..000000000 --- a/src/api/resources/ats/types/PaginatedJobList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedJobList { - next?: string; - previous?: string; - results?: Merge.ats.Job[]; -} diff --git a/src/api/resources/ats/types/PaginatedJobPostingList.ts b/src/api/resources/ats/types/PaginatedJobPostingList.ts deleted file mode 100644 index 0dce710ac..000000000 --- a/src/api/resources/ats/types/PaginatedJobPostingList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedJobPostingList { - next?: string; - previous?: string; - results?: Merge.ats.JobPosting[]; -} diff --git a/src/api/resources/ats/types/PaginatedOfferList.ts b/src/api/resources/ats/types/PaginatedOfferList.ts deleted file mode 100644 index 84cf83abf..000000000 --- a/src/api/resources/ats/types/PaginatedOfferList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedOfferList { - next?: string; - previous?: string; - results?: Merge.ats.Offer[]; -} diff --git a/src/api/resources/ats/types/PaginatedOfficeList.ts b/src/api/resources/ats/types/PaginatedOfficeList.ts deleted file mode 100644 index 32707466b..000000000 --- a/src/api/resources/ats/types/PaginatedOfficeList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedOfficeList { - next?: string; - previous?: string; - results?: Merge.ats.Office[]; -} diff --git a/src/api/resources/ats/types/PaginatedRejectReasonList.ts b/src/api/resources/ats/types/PaginatedRejectReasonList.ts deleted file mode 100644 index 8a57e6075..000000000 --- a/src/api/resources/ats/types/PaginatedRejectReasonList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedRejectReasonList { - next?: string; - previous?: string; - results?: Merge.ats.RejectReason[]; -} diff --git a/src/api/resources/ats/types/PaginatedRemoteUserList.ts b/src/api/resources/ats/types/PaginatedRemoteUserList.ts deleted file mode 100644 index 74e1463dd..000000000 --- a/src/api/resources/ats/types/PaginatedRemoteUserList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedRemoteUserList { - next?: string; - previous?: string; - results?: Merge.ats.RemoteUser[]; -} diff --git a/src/api/resources/ats/types/PaginatedScheduledInterviewList.ts b/src/api/resources/ats/types/PaginatedScheduledInterviewList.ts deleted file mode 100644 index a94ac8062..000000000 --- a/src/api/resources/ats/types/PaginatedScheduledInterviewList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedScheduledInterviewList { - next?: string; - previous?: string; - results?: Merge.ats.ScheduledInterview[]; -} diff --git a/src/api/resources/ats/types/PaginatedScorecardList.ts b/src/api/resources/ats/types/PaginatedScorecardList.ts deleted file mode 100644 index 22ba2e993..000000000 --- a/src/api/resources/ats/types/PaginatedScorecardList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedScorecardList { - next?: string; - previous?: string; - results?: Merge.ats.Scorecard[]; -} diff --git a/src/api/resources/ats/types/PaginatedScreeningQuestionList.ts b/src/api/resources/ats/types/PaginatedScreeningQuestionList.ts deleted file mode 100644 index f8633c442..000000000 --- a/src/api/resources/ats/types/PaginatedScreeningQuestionList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedScreeningQuestionList { - next?: string; - previous?: string; - results?: Merge.ats.ScreeningQuestion[]; -} diff --git a/src/api/resources/ats/types/PaginatedSyncStatusList.ts b/src/api/resources/ats/types/PaginatedSyncStatusList.ts deleted file mode 100644 index 4df185939..000000000 --- a/src/api/resources/ats/types/PaginatedSyncStatusList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedSyncStatusList { - next?: string; - previous?: string; - results?: Merge.ats.SyncStatus[]; -} diff --git a/src/api/resources/ats/types/PaginatedTagList.ts b/src/api/resources/ats/types/PaginatedTagList.ts deleted file mode 100644 index 763eb27dc..000000000 --- a/src/api/resources/ats/types/PaginatedTagList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedTagList { - next?: string; - previous?: string; - results?: Merge.ats.Tag[]; -} diff --git a/src/api/resources/ats/types/PatchedCandidateRequest.ts b/src/api/resources/ats/types/PatchedCandidateRequest.ts deleted file mode 100644 index 27e70b390..000000000 --- a/src/api/resources/ats/types/PatchedCandidateRequest.ts +++ /dev/null @@ -1,41 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Candidate Object - * ### Description - * The `Candidate` object is used to represent profile information about a given Candidate. Because it is specific to a Candidate, this information stays constant across applications. - * ### Usage Example - * Fetch from the `LIST Candidates` endpoint and filter by `ID` to show all candidates. - */ -export interface PatchedCandidateRequest { - /** The candidate's first name. */ - firstName?: string; - /** The candidate's last name. */ - lastName?: string; - /** The candidate's current company. */ - company?: string; - /** The candidate's current title. */ - title?: string; - /** When the most recent interaction with the candidate occurred. */ - lastInteractionAt?: Date; - /** Whether or not the candidate is private. */ - isPrivate?: boolean; - /** Whether or not the candidate can be emailed. */ - canEmail?: boolean; - /** The candidate's locations. */ - locations?: (string | undefined)[]; - phoneNumbers?: Merge.ats.PhoneNumberRequest[]; - emailAddresses?: Merge.ats.EmailAddressRequest[]; - urls?: Merge.ats.UrlRequest[]; - /** Array of `Tag` names as strings. */ - tags?: (string | undefined)[]; - /** Array of `Application` object IDs. */ - applications?: (string | undefined)[]; - /** Array of `Attachment` object IDs. */ - attachments?: (string | undefined)[]; - remoteTemplateId?: string; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/ats/types/PhoneNumber.ts b/src/api/resources/ats/types/PhoneNumber.ts deleted file mode 100644 index 1e1b23887..000000000 --- a/src/api/resources/ats/types/PhoneNumber.ts +++ /dev/null @@ -1,31 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The PhoneNumber Object - * ### Description - * The `PhoneNumber` object is used to represent a candidate's phone number. - * ### Usage Example - * Fetch from the `GET Candidate` endpoint and view their phone numbers. - */ -export interface PhoneNumber { - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The phone number. */ - value?: string; - /** - * The type of phone number. - * - * * `HOME` - HOME - * * `WORK` - WORK - * * `MOBILE` - MOBILE - * * `SKYPE` - SKYPE - * * `OTHER` - OTHER - */ - phoneNumberType?: Merge.ats.PhoneNumberPhoneNumberType; - /** 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/PhoneNumberPhoneNumberType.ts b/src/api/resources/ats/types/PhoneNumberPhoneNumberType.ts deleted file mode 100644 index 30082535f..000000000 --- a/src/api/resources/ats/types/PhoneNumberPhoneNumberType.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The type of phone number. - * - * * `HOME` - HOME - * * `WORK` - WORK - * * `MOBILE` - MOBILE - * * `SKYPE` - SKYPE - * * `OTHER` - OTHER - */ -export type PhoneNumberPhoneNumberType = Merge.ats.PhoneNumberTypeEnum | string; diff --git a/src/api/resources/ats/types/PhoneNumberRequest.ts b/src/api/resources/ats/types/PhoneNumberRequest.ts deleted file mode 100644 index 76b0f81a6..000000000 --- a/src/api/resources/ats/types/PhoneNumberRequest.ts +++ /dev/null @@ -1,27 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The PhoneNumber Object - * ### Description - * The `PhoneNumber` object is used to represent a candidate's phone number. - * ### Usage Example - * Fetch from the `GET Candidate` endpoint and view their phone numbers. - */ -export interface PhoneNumberRequest { - /** The phone number. */ - value?: string; - /** - * The type of phone number. - * - * * `HOME` - HOME - * * `WORK` - WORK - * * `MOBILE` - MOBILE - * * `SKYPE` - SKYPE - * * `OTHER` - OTHER - */ - phoneNumberType?: Merge.ats.PhoneNumberRequestPhoneNumberType; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/ats/types/PhoneNumberRequestPhoneNumberType.ts b/src/api/resources/ats/types/PhoneNumberRequestPhoneNumberType.ts deleted file mode 100644 index 1d69ac947..000000000 --- a/src/api/resources/ats/types/PhoneNumberRequestPhoneNumberType.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The type of phone number. - * - * * `HOME` - HOME - * * `WORK` - WORK - * * `MOBILE` - MOBILE - * * `SKYPE` - SKYPE - * * `OTHER` - OTHER - */ -export type PhoneNumberRequestPhoneNumberType = Merge.ats.PhoneNumberTypeEnum | string; diff --git a/src/api/resources/ats/types/PhoneNumberTypeEnum.ts b/src/api/resources/ats/types/PhoneNumberTypeEnum.ts deleted file mode 100644 index 2b835cb12..000000000 --- a/src/api/resources/ats/types/PhoneNumberTypeEnum.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `HOME` - HOME - * * `WORK` - WORK - * * `MOBILE` - MOBILE - * * `SKYPE` - SKYPE - * * `OTHER` - OTHER - */ -export const PhoneNumberTypeEnum = { - Home: "HOME", - Work: "WORK", - Mobile: "MOBILE", - Skype: "SKYPE", - Other: "OTHER", -} as const; -export type PhoneNumberTypeEnum = (typeof PhoneNumberTypeEnum)[keyof typeof PhoneNumberTypeEnum]; diff --git a/src/api/resources/ats/types/RaceEnum.ts b/src/api/resources/ats/types/RaceEnum.ts deleted file mode 100644 index 45efa2fe2..000000000 --- a/src/api/resources/ats/types/RaceEnum.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `AMERICAN_INDIAN_OR_ALASKAN_NATIVE` - AMERICAN_INDIAN_OR_ALASKAN_NATIVE - * * `ASIAN` - ASIAN - * * `BLACK_OR_AFRICAN_AMERICAN` - BLACK_OR_AFRICAN_AMERICAN - * * `HISPANIC_OR_LATINO` - HISPANIC_OR_LATINO - * * `WHITE` - WHITE - * * `NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER` - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER - * * `TWO_OR_MORE_RACES` - TWO_OR_MORE_RACES - * * `DECLINE_TO_SELF_IDENTIFY` - DECLINE_TO_SELF_IDENTIFY - */ -export const RaceEnum = { - AmericanIndianOrAlaskanNative: "AMERICAN_INDIAN_OR_ALASKAN_NATIVE", - Asian: "ASIAN", - BlackOrAfricanAmerican: "BLACK_OR_AFRICAN_AMERICAN", - HispanicOrLatino: "HISPANIC_OR_LATINO", - White: "WHITE", - NativeHawaiianOrOtherPacificIslander: "NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER", - TwoOrMoreRaces: "TWO_OR_MORE_RACES", - DeclineToSelfIdentify: "DECLINE_TO_SELF_IDENTIFY", -} as const; -export type RaceEnum = (typeof RaceEnum)[keyof typeof RaceEnum]; diff --git a/src/api/resources/ats/types/ReasonEnum.ts b/src/api/resources/ats/types/ReasonEnum.ts deleted file mode 100644 index 68e1eab2f..000000000 --- a/src/api/resources/ats/types/ReasonEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `GENERAL_CUSTOMER_REQUEST` - GENERAL_CUSTOMER_REQUEST - * * `GDPR` - GDPR - * * `OTHER` - OTHER - */ -export const ReasonEnum = { - GeneralCustomerRequest: "GENERAL_CUSTOMER_REQUEST", - Gdpr: "GDPR", - Other: "OTHER", -} as const; -export type ReasonEnum = (typeof ReasonEnum)[keyof typeof ReasonEnum]; diff --git a/src/api/resources/ats/types/RejectReason.ts b/src/api/resources/ats/types/RejectReason.ts deleted file mode 100644 index c1aa389a9..000000000 --- a/src/api/resources/ats/types/RejectReason.ts +++ /dev/null @@ -1,26 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The RejectReason Object - * ### Description - * The `RejectReason` object is used to represent a reason for rejecting an application. These can typically be configured within an ATS system. - * ### Usage Example - * Fetch from the `LIST RejectReasons` endpoint and filter by `ID` to show all reasons. - */ -export interface RejectReason { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The rejection reason’s name. */ - name?: 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/). */ - remoteWasDeleted?: boolean; - fieldMappings?: Record; - remoteData?: Merge.ats.RemoteData[]; -} diff --git a/src/api/resources/ats/types/RemoteData.ts b/src/api/resources/ats/types/RemoteData.ts deleted file mode 100644 index 3fad40786..000000000 --- a/src/api/resources/ats/types/RemoteData.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * # The RemoteData Object - * ### Description - * The `RemoteData` object is used to represent the full data pulled from the third-party API for an object. - * - * ### Usage Example - * TODO - */ -export interface RemoteData { - /** The third-party API path that is being called. */ - path: string; - /** The data returned from the third-party for this object in its original, unnormalized format. */ - data?: unknown; -} diff --git a/src/api/resources/ats/types/RemoteEndpointInfo.ts b/src/api/resources/ats/types/RemoteEndpointInfo.ts deleted file mode 100644 index f28a1667a..000000000 --- a/src/api/resources/ats/types/RemoteEndpointInfo.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface RemoteEndpointInfo { - method: string; - urlPath: string; - fieldTraversalPath: unknown[]; -} diff --git a/src/api/resources/ats/types/RemoteFieldApi.ts b/src/api/resources/ats/types/RemoteFieldApi.ts deleted file mode 100644 index b813d9839..000000000 --- a/src/api/resources/ats/types/RemoteFieldApi.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface RemoteFieldApi { - schema: Record; - remoteKeyName: string; - remoteEndpointInfo: Merge.ats.RemoteEndpointInfo; - exampleValues?: unknown[]; - advancedMetadata?: Merge.ats.AdvancedMetadata; - coverage?: Merge.ats.RemoteFieldApiCoverage; -} diff --git a/src/api/resources/ats/types/RemoteFieldApiCoverage.ts b/src/api/resources/ats/types/RemoteFieldApiCoverage.ts deleted file mode 100644 index 3691c464e..000000000 --- a/src/api/resources/ats/types/RemoteFieldApiCoverage.ts +++ /dev/null @@ -1,3 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export type RemoteFieldApiCoverage = number | number; diff --git a/src/api/resources/ats/types/RemoteFieldApiResponse.ts b/src/api/resources/ats/types/RemoteFieldApiResponse.ts deleted file mode 100644 index 61d4db5b6..000000000 --- a/src/api/resources/ats/types/RemoteFieldApiResponse.ts +++ /dev/null @@ -1,22 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface RemoteFieldApiResponse { - activity?: Merge.ats.RemoteFieldApi[]; - application?: Merge.ats.RemoteFieldApi[]; - attachment?: Merge.ats.RemoteFieldApi[]; - candidate?: Merge.ats.RemoteFieldApi[]; - department?: Merge.ats.RemoteFieldApi[]; - eeoc?: Merge.ats.RemoteFieldApi[]; - scheduledInterview?: Merge.ats.RemoteFieldApi[]; - job?: Merge.ats.RemoteFieldApi[]; - jobPosting?: Merge.ats.RemoteFieldApi[]; - jobInterviewStage?: Merge.ats.RemoteFieldApi[]; - offer?: Merge.ats.RemoteFieldApi[]; - office?: Merge.ats.RemoteFieldApi[]; - rejectReason?: Merge.ats.RemoteFieldApi[]; - scorecard?: Merge.ats.RemoteFieldApi[]; - tag?: Merge.ats.RemoteFieldApi[]; - remoteUser?: Merge.ats.RemoteFieldApi[]; -} diff --git a/src/api/resources/ats/types/RemoteKey.ts b/src/api/resources/ats/types/RemoteKey.ts deleted file mode 100644 index 04d86d608..000000000 --- a/src/api/resources/ats/types/RemoteKey.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * # The RemoteKey Object - * ### Description - * The `RemoteKey` object is used to represent a request for a new remote key. - * - * ### Usage Example - * Post a `GenerateRemoteKey` to receive a new `RemoteKey`. - */ -export interface RemoteKey { - name: string; - key: string; -} diff --git a/src/api/resources/ats/types/RemoteResponse.ts b/src/api/resources/ats/types/RemoteResponse.ts deleted file mode 100644 index 9a55d367a..000000000 --- a/src/api/resources/ats/types/RemoteResponse.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The RemoteResponse Object - * ### Description - * The `RemoteResponse` object is used to represent information returned from a third-party endpoint. - * - * ### Usage Example - * View the `RemoteResponse` returned from your `DataPassthrough`. - */ -export interface RemoteResponse { - method: string; - path: string; - status: number; - response?: unknown; - responseHeaders?: Record; - responseType?: Merge.ats.RemoteResponseResponseType; - headers?: Record; -} diff --git a/src/api/resources/ats/types/RemoteResponseResponseType.ts b/src/api/resources/ats/types/RemoteResponseResponseType.ts deleted file mode 100644 index 9ab364d01..000000000 --- a/src/api/resources/ats/types/RemoteResponseResponseType.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 RemoteResponseResponseType = Merge.ats.ResponseTypeEnum | string; diff --git a/src/api/resources/ats/types/RemoteUser.ts b/src/api/resources/ats/types/RemoteUser.ts deleted file mode 100644 index 3e388e04b..000000000 --- a/src/api/resources/ats/types/RemoteUser.ts +++ /dev/null @@ -1,44 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The RemoteUser Object - * ### Description - * The `RemoteUser` object is used to represent a user with a login to the ATS system. - * ### Usage Example - * Fetch from the `LIST RemoteUsers` endpoint to show all users for a third party. - */ -export interface RemoteUser { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The user's first name. */ - firstName?: string; - /** The user's last name. */ - lastName?: string; - /** The user's email. */ - email?: string; - /** Whether the user's account had been disabled. */ - disabled?: boolean; - /** When the third party's user was created. */ - remoteCreatedAt?: Date; - /** - * The user's role. - * - * * `SUPER_ADMIN` - SUPER_ADMIN - * * `ADMIN` - ADMIN - * * `TEAM_MEMBER` - TEAM_MEMBER - * * `LIMITED_TEAM_MEMBER` - LIMITED_TEAM_MEMBER - * * `INTERVIEWER` - INTERVIEWER - */ - accessRole?: Merge.ats.RemoteUserAccessRole; - /** 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.ats.RemoteData[]; -} diff --git a/src/api/resources/ats/types/RemoteUserAccessRole.ts b/src/api/resources/ats/types/RemoteUserAccessRole.ts deleted file mode 100644 index b7dcbea12..000000000 --- a/src/api/resources/ats/types/RemoteUserAccessRole.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The user's role. - * - * * `SUPER_ADMIN` - SUPER_ADMIN - * * `ADMIN` - ADMIN - * * `TEAM_MEMBER` - TEAM_MEMBER - * * `LIMITED_TEAM_MEMBER` - LIMITED_TEAM_MEMBER - * * `INTERVIEWER` - INTERVIEWER - */ -export type RemoteUserAccessRole = Merge.ats.AccessRoleEnum | string; diff --git a/src/api/resources/ats/types/RequestFormatEnum.ts b/src/api/resources/ats/types/RequestFormatEnum.ts deleted file mode 100644 index 2673da47f..000000000 --- a/src/api/resources/ats/types/RequestFormatEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `JSON` - JSON - * * `XML` - XML - * * `MULTIPART` - MULTIPART - */ -export const RequestFormatEnum = { - Json: "JSON", - Xml: "XML", - Multipart: "MULTIPART", -} as const; -export type RequestFormatEnum = (typeof RequestFormatEnum)[keyof typeof RequestFormatEnum]; diff --git a/src/api/resources/ats/types/ResponseTypeEnum.ts b/src/api/resources/ats/types/ResponseTypeEnum.ts deleted file mode 100644 index dfce6bea7..000000000 --- a/src/api/resources/ats/types/ResponseTypeEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `JSON` - JSON - * * `BASE64_GZIP` - BASE64_GZIP - */ -export const ResponseTypeEnum = { - Json: "JSON", - Base64Gzip: "BASE64_GZIP", -} as const; -export type ResponseTypeEnum = (typeof ResponseTypeEnum)[keyof typeof ResponseTypeEnum]; diff --git a/src/api/resources/ats/types/RoleEnum.ts b/src/api/resources/ats/types/RoleEnum.ts deleted file mode 100644 index 524088eb7..000000000 --- a/src/api/resources/ats/types/RoleEnum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `ADMIN` - ADMIN - * * `DEVELOPER` - DEVELOPER - * * `MEMBER` - MEMBER - * * `API` - API - * * `SYSTEM` - SYSTEM - * * `MERGE_TEAM` - MERGE_TEAM - */ -export const RoleEnum = { - Admin: "ADMIN", - Developer: "DEVELOPER", - Member: "MEMBER", - Api: "API", - System: "SYSTEM", - MergeTeam: "MERGE_TEAM", -} as const; -export type RoleEnum = (typeof RoleEnum)[keyof typeof RoleEnum]; diff --git a/src/api/resources/ats/types/ScheduledInterview.ts b/src/api/resources/ats/types/ScheduledInterview.ts deleted file mode 100644 index 6c9d50888..000000000 --- a/src/api/resources/ats/types/ScheduledInterview.ts +++ /dev/null @@ -1,50 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The ScheduledInterview Object - * ### Description - * The `ScheduledInterview` object is used to represent a scheduled interview for a given candidate’s application to a job. An `Application` can have multiple `ScheduledInterview`s depending on the particular hiring process. - * ### Usage Example - * Fetch from the `LIST ScheduledInterviews` endpoint and filter by `interviewers` to show all office locations. - */ -export interface ScheduledInterview { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The application being interviewed. */ - application?: Merge.ats.ScheduledInterviewApplication; - /** The stage of the interview. */ - jobInterviewStage?: Merge.ats.ScheduledInterviewJobInterviewStage; - /** The user organizing the interview. */ - organizer?: Merge.ats.ScheduledInterviewOrganizer; - /** Array of `RemoteUser` IDs. */ - interviewers?: (Merge.ats.ScheduledInterviewInterviewersItem | undefined)[]; - /** The interview's location. */ - location?: string; - /** When the interview was started. */ - startAt?: Date; - /** When the interview was ended. */ - endAt?: Date; - /** When the third party's interview was created. */ - remoteCreatedAt?: Date; - /** When the third party's interview was updated. */ - remoteUpdatedAt?: Date; - /** - * The interview's status. - * - * * `SCHEDULED` - SCHEDULED - * * `AWAITING_FEEDBACK` - AWAITING_FEEDBACK - * * `COMPLETE` - COMPLETE - */ - status?: Merge.ats.ScheduledInterviewStatus; - /** 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.ats.RemoteData[]; -} diff --git a/src/api/resources/ats/types/ScheduledInterviewApplication.ts b/src/api/resources/ats/types/ScheduledInterviewApplication.ts deleted file mode 100644 index e30bfc6ec..000000000 --- a/src/api/resources/ats/types/ScheduledInterviewApplication.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 application being interviewed. - */ -export type ScheduledInterviewApplication = string | Merge.ats.Application; diff --git a/src/api/resources/ats/types/ScheduledInterviewInterviewersItem.ts b/src/api/resources/ats/types/ScheduledInterviewInterviewersItem.ts deleted file mode 100644 index 52a600b0e..000000000 --- a/src/api/resources/ats/types/ScheduledInterviewInterviewersItem.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 ScheduledInterviewInterviewersItem = string | Merge.ats.RemoteUser; diff --git a/src/api/resources/ats/types/ScheduledInterviewJobInterviewStage.ts b/src/api/resources/ats/types/ScheduledInterviewJobInterviewStage.ts deleted file mode 100644 index 8d5702e15..000000000 --- a/src/api/resources/ats/types/ScheduledInterviewJobInterviewStage.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 stage of the interview. - */ -export type ScheduledInterviewJobInterviewStage = string | Merge.ats.JobInterviewStage; diff --git a/src/api/resources/ats/types/ScheduledInterviewOrganizer.ts b/src/api/resources/ats/types/ScheduledInterviewOrganizer.ts deleted file mode 100644 index 34d4f6aef..000000000 --- a/src/api/resources/ats/types/ScheduledInterviewOrganizer.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 user organizing the interview. - */ -export type ScheduledInterviewOrganizer = string | Merge.ats.RemoteUser; diff --git a/src/api/resources/ats/types/ScheduledInterviewRequest.ts b/src/api/resources/ats/types/ScheduledInterviewRequest.ts deleted file mode 100644 index ca5e1af4d..000000000 --- a/src/api/resources/ats/types/ScheduledInterviewRequest.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The ScheduledInterview Object - * ### Description - * The `ScheduledInterview` object is used to represent a scheduled interview for a given candidate’s application to a job. An `Application` can have multiple `ScheduledInterview`s depending on the particular hiring process. - * ### Usage Example - * Fetch from the `LIST ScheduledInterviews` endpoint and filter by `interviewers` to show all office locations. - */ -export interface ScheduledInterviewRequest { - /** The application being interviewed. */ - application?: Merge.ats.ScheduledInterviewRequestApplication; - /** The stage of the interview. */ - jobInterviewStage?: Merge.ats.ScheduledInterviewRequestJobInterviewStage; - /** The user organizing the interview. */ - organizer?: Merge.ats.ScheduledInterviewRequestOrganizer; - /** Array of `RemoteUser` IDs. */ - interviewers?: (Merge.ats.ScheduledInterviewRequestInterviewersItem | undefined)[]; - /** The interview's location. */ - location?: string; - /** When the interview was started. */ - startAt?: Date; - /** When the interview was ended. */ - endAt?: Date; - /** - * The interview's status. - * - * * `SCHEDULED` - SCHEDULED - * * `AWAITING_FEEDBACK` - AWAITING_FEEDBACK - * * `COMPLETE` - COMPLETE - */ - status?: Merge.ats.ScheduledInterviewRequestStatus; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/ats/types/ScheduledInterviewRequestApplication.ts b/src/api/resources/ats/types/ScheduledInterviewRequestApplication.ts deleted file mode 100644 index 80f9831c0..000000000 --- a/src/api/resources/ats/types/ScheduledInterviewRequestApplication.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 application being interviewed. - */ -export type ScheduledInterviewRequestApplication = string | Merge.ats.Application; diff --git a/src/api/resources/ats/types/ScheduledInterviewRequestInterviewersItem.ts b/src/api/resources/ats/types/ScheduledInterviewRequestInterviewersItem.ts deleted file mode 100644 index 8efdfa3f9..000000000 --- a/src/api/resources/ats/types/ScheduledInterviewRequestInterviewersItem.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 ScheduledInterviewRequestInterviewersItem = string | Merge.ats.RemoteUser; diff --git a/src/api/resources/ats/types/ScheduledInterviewRequestJobInterviewStage.ts b/src/api/resources/ats/types/ScheduledInterviewRequestJobInterviewStage.ts deleted file mode 100644 index a11eaa3a8..000000000 --- a/src/api/resources/ats/types/ScheduledInterviewRequestJobInterviewStage.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 stage of the interview. - */ -export type ScheduledInterviewRequestJobInterviewStage = string | Merge.ats.JobInterviewStage; diff --git a/src/api/resources/ats/types/ScheduledInterviewRequestOrganizer.ts b/src/api/resources/ats/types/ScheduledInterviewRequestOrganizer.ts deleted file mode 100644 index 59f4ea566..000000000 --- a/src/api/resources/ats/types/ScheduledInterviewRequestOrganizer.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 user organizing the interview. - */ -export type ScheduledInterviewRequestOrganizer = string | Merge.ats.RemoteUser; diff --git a/src/api/resources/ats/types/ScheduledInterviewRequestStatus.ts b/src/api/resources/ats/types/ScheduledInterviewRequestStatus.ts deleted file mode 100644 index 18040c62d..000000000 --- a/src/api/resources/ats/types/ScheduledInterviewRequestStatus.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 interview's status. - * - * * `SCHEDULED` - SCHEDULED - * * `AWAITING_FEEDBACK` - AWAITING_FEEDBACK - * * `COMPLETE` - COMPLETE - */ -export type ScheduledInterviewRequestStatus = Merge.ats.ScheduledInterviewStatusEnum | string; diff --git a/src/api/resources/ats/types/ScheduledInterviewResponse.ts b/src/api/resources/ats/types/ScheduledInterviewResponse.ts deleted file mode 100644 index 274d891aa..000000000 --- a/src/api/resources/ats/types/ScheduledInterviewResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface ScheduledInterviewResponse { - model: Merge.ats.ScheduledInterview; - warnings: Merge.ats.WarningValidationProblem[]; - errors: Merge.ats.ErrorValidationProblem[]; - logs?: Merge.ats.DebugModeLog[]; -} diff --git a/src/api/resources/ats/types/ScheduledInterviewStatus.ts b/src/api/resources/ats/types/ScheduledInterviewStatus.ts deleted file mode 100644 index 87157894b..000000000 --- a/src/api/resources/ats/types/ScheduledInterviewStatus.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 interview's status. - * - * * `SCHEDULED` - SCHEDULED - * * `AWAITING_FEEDBACK` - AWAITING_FEEDBACK - * * `COMPLETE` - COMPLETE - */ -export type ScheduledInterviewStatus = Merge.ats.ScheduledInterviewStatusEnum | string; diff --git a/src/api/resources/ats/types/ScheduledInterviewStatusEnum.ts b/src/api/resources/ats/types/ScheduledInterviewStatusEnum.ts deleted file mode 100644 index 293ad919c..000000000 --- a/src/api/resources/ats/types/ScheduledInterviewStatusEnum.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `SCHEDULED` - SCHEDULED - * * `AWAITING_FEEDBACK` - AWAITING_FEEDBACK - * * `COMPLETE` - COMPLETE - */ -export const ScheduledInterviewStatusEnum = { - Scheduled: "SCHEDULED", - AwaitingFeedback: "AWAITING_FEEDBACK", - Complete: "COMPLETE", -} as const; -export type ScheduledInterviewStatusEnum = - (typeof ScheduledInterviewStatusEnum)[keyof typeof ScheduledInterviewStatusEnum]; diff --git a/src/api/resources/ats/types/Scorecard.ts b/src/api/resources/ats/types/Scorecard.ts deleted file mode 100644 index a851b9eb2..000000000 --- a/src/api/resources/ats/types/Scorecard.ts +++ /dev/null @@ -1,44 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Scorecard Object - * ### Description - * The `Scorecard` object is used to represent an interviewer's candidate recommendation based on a particular interview. - * ### Usage Example - * Fetch from the `LIST Scorecards` endpoint and filter by `application` to show all scorecard for an applicant. - */ -export interface Scorecard { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The application being scored. */ - application?: Merge.ats.ScorecardApplication; - /** The interview being scored. */ - interview?: Merge.ats.ScorecardInterview; - /** The interviewer doing the scoring. */ - interviewer?: Merge.ats.ScorecardInterviewer; - /** When the third party's scorecard was created. */ - remoteCreatedAt?: Date; - /** When the scorecard was submitted. */ - submittedAt?: Date; - /** - * The inteviewer's recommendation. - * - * * `DEFINITELY_NO` - DEFINITELY_NO - * * `NO` - NO - * * `YES` - YES - * * `STRONG_YES` - STRONG_YES - * * `NO_DECISION` - NO_DECISION - */ - overallRecommendation?: Merge.ats.ScorecardOverallRecommendation; - /** 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.ats.RemoteData[]; -} diff --git a/src/api/resources/ats/types/ScorecardApplication.ts b/src/api/resources/ats/types/ScorecardApplication.ts deleted file mode 100644 index c4d1160f8..000000000 --- a/src/api/resources/ats/types/ScorecardApplication.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 application being scored. - */ -export type ScorecardApplication = string | Merge.ats.Application; diff --git a/src/api/resources/ats/types/ScorecardInterview.ts b/src/api/resources/ats/types/ScorecardInterview.ts deleted file mode 100644 index ce8b1e1bf..000000000 --- a/src/api/resources/ats/types/ScorecardInterview.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 interview being scored. - */ -export type ScorecardInterview = string | Merge.ats.ScheduledInterview; diff --git a/src/api/resources/ats/types/ScorecardInterviewer.ts b/src/api/resources/ats/types/ScorecardInterviewer.ts deleted file mode 100644 index 499196999..000000000 --- a/src/api/resources/ats/types/ScorecardInterviewer.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 interviewer doing the scoring. - */ -export type ScorecardInterviewer = string | Merge.ats.RemoteUser; diff --git a/src/api/resources/ats/types/ScorecardOverallRecommendation.ts b/src/api/resources/ats/types/ScorecardOverallRecommendation.ts deleted file mode 100644 index 0b7233115..000000000 --- a/src/api/resources/ats/types/ScorecardOverallRecommendation.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The inteviewer's recommendation. - * - * * `DEFINITELY_NO` - DEFINITELY_NO - * * `NO` - NO - * * `YES` - YES - * * `STRONG_YES` - STRONG_YES - * * `NO_DECISION` - NO_DECISION - */ -export type ScorecardOverallRecommendation = Merge.ats.OverallRecommendationEnum | string; diff --git a/src/api/resources/ats/types/ScreeningQuestion.ts b/src/api/resources/ats/types/ScreeningQuestion.ts deleted file mode 100644 index bca2a72f9..000000000 --- a/src/api/resources/ats/types/ScreeningQuestion.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The ScreeningQuestion Object - * ### Description - * The `ScreeningQuestion` object is used to represent questions asked to screen candidates for a job. - * - * ### Usage Example - * TODO - */ -export interface ScreeningQuestion { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The job associated with the screening question. */ - job?: Merge.ats.ScreeningQuestionJob; - /** The description of the screening question */ - description?: string; - /** The title of the screening question */ - title?: string; - /** - * The data type for the screening question. - * - * * `DATE` - DATE - * * `FILE` - FILE - * * `SINGLE_SELECT` - SINGLE_SELECT - * * `MULTI_SELECT` - MULTI_SELECT - * * `SINGLE_LINE_TEXT` - SINGLE_LINE_TEXT - * * `MULTI_LINE_TEXT` - MULTI_LINE_TEXT - * * `NUMERIC` - NUMERIC - * * `BOOLEAN` - BOOLEAN - */ - type?: Merge.ats.ScreeningQuestionType; - /** Whether or not the screening question is required. */ - required?: boolean; - options?: unknown[]; - /** 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/ScreeningQuestionAnswer.ts b/src/api/resources/ats/types/ScreeningQuestionAnswer.ts deleted file mode 100644 index 991f6ae69..000000000 --- a/src/api/resources/ats/types/ScreeningQuestionAnswer.ts +++ /dev/null @@ -1,27 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The ScreeningQuestionAnswer Object - * ### Description - * The `ScreeningQuestionAnswer` object is used to represent candidate responses to a screening question, for a specific application. - * - * ### Usage Example - * TODO - */ -export interface ScreeningQuestionAnswer { - 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 screening question associated with the candidate’s answer. To determine the data type of the answer, you can expand on the screening question by adding `screening_question_answers.question` to the `expand` query parameter. */ - question?: Merge.ats.ScreeningQuestionAnswerQuestion; - /** The candidate’s response to the screening question. */ - answer?: 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/). */ - remoteWasDeleted?: boolean; -} diff --git a/src/api/resources/ats/types/ScreeningQuestionAnswerQuestion.ts b/src/api/resources/ats/types/ScreeningQuestionAnswerQuestion.ts deleted file mode 100644 index 14a729622..000000000 --- a/src/api/resources/ats/types/ScreeningQuestionAnswerQuestion.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 screening question associated with the candidate’s answer. To determine the data type of the answer, you can expand on the screening question by adding `screening_question_answers.question` to the `expand` query parameter. - */ -export type ScreeningQuestionAnswerQuestion = string | Merge.ats.ScreeningQuestion; diff --git a/src/api/resources/ats/types/ScreeningQuestionAnswerRequest.ts b/src/api/resources/ats/types/ScreeningQuestionAnswerRequest.ts deleted file mode 100644 index 36bea1868..000000000 --- a/src/api/resources/ats/types/ScreeningQuestionAnswerRequest.ts +++ /dev/null @@ -1,22 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The ScreeningQuestionAnswer Object - * ### Description - * The `ScreeningQuestionAnswer` object is used to represent candidate responses to a screening question, for a specific application. - * - * ### Usage Example - * TODO - */ -export interface ScreeningQuestionAnswerRequest { - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The screening question associated with the candidate’s answer. To determine the data type of the answer, you can expand on the screening question by adding `screening_question_answers.question` to the `expand` query parameter. */ - question?: Merge.ats.ScreeningQuestionAnswerRequestQuestion; - /** The candidate’s response to the screening question. */ - answer?: string; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/ats/types/ScreeningQuestionAnswerRequestQuestion.ts b/src/api/resources/ats/types/ScreeningQuestionAnswerRequestQuestion.ts deleted file mode 100644 index dabe0f113..000000000 --- a/src/api/resources/ats/types/ScreeningQuestionAnswerRequestQuestion.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 screening question associated with the candidate’s answer. To determine the data type of the answer, you can expand on the screening question by adding `screening_question_answers.question` to the `expand` query parameter. - */ -export type ScreeningQuestionAnswerRequestQuestion = string | Merge.ats.ScreeningQuestion; diff --git a/src/api/resources/ats/types/ScreeningQuestionJob.ts b/src/api/resources/ats/types/ScreeningQuestionJob.ts deleted file mode 100644 index 5e14f18fd..000000000 --- a/src/api/resources/ats/types/ScreeningQuestionJob.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 job associated with the screening question. - */ -export type ScreeningQuestionJob = string | Merge.ats.Job; diff --git a/src/api/resources/ats/types/ScreeningQuestionOption.ts b/src/api/resources/ats/types/ScreeningQuestionOption.ts deleted file mode 100644 index 5830da0ec..000000000 --- a/src/api/resources/ats/types/ScreeningQuestionOption.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * # The ScreeningQuestionOption Object - * ### Description - * The `ScreeningQuestionOption` object is used to represent options for a `ScreeningQuestion` object - * - * ### Usage Example - * TODO - */ -export interface ScreeningQuestionOption { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** Available response options */ - label?: 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/). */ - remoteWasDeleted?: boolean; -} diff --git a/src/api/resources/ats/types/ScreeningQuestionType.ts b/src/api/resources/ats/types/ScreeningQuestionType.ts deleted file mode 100644 index 49c8f24ab..000000000 --- a/src/api/resources/ats/types/ScreeningQuestionType.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The data type for the screening question. - * - * * `DATE` - DATE - * * `FILE` - FILE - * * `SINGLE_SELECT` - SINGLE_SELECT - * * `MULTI_SELECT` - MULTI_SELECT - * * `SINGLE_LINE_TEXT` - SINGLE_LINE_TEXT - * * `MULTI_LINE_TEXT` - MULTI_LINE_TEXT - * * `NUMERIC` - NUMERIC - * * `BOOLEAN` - BOOLEAN - */ -export type ScreeningQuestionType = Merge.ats.ScreeningQuestionTypeEnum | string; diff --git a/src/api/resources/ats/types/ScreeningQuestionTypeEnum.ts b/src/api/resources/ats/types/ScreeningQuestionTypeEnum.ts deleted file mode 100644 index 4da2246c1..000000000 --- a/src/api/resources/ats/types/ScreeningQuestionTypeEnum.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `DATE` - DATE - * * `FILE` - FILE - * * `SINGLE_SELECT` - SINGLE_SELECT - * * `MULTI_SELECT` - MULTI_SELECT - * * `SINGLE_LINE_TEXT` - SINGLE_LINE_TEXT - * * `MULTI_LINE_TEXT` - MULTI_LINE_TEXT - * * `NUMERIC` - NUMERIC - * * `BOOLEAN` - BOOLEAN - */ -export const ScreeningQuestionTypeEnum = { - Date: "DATE", - File: "FILE", - SingleSelect: "SINGLE_SELECT", - MultiSelect: "MULTI_SELECT", - SingleLineText: "SINGLE_LINE_TEXT", - MultiLineText: "MULTI_LINE_TEXT", - Numeric: "NUMERIC", - Boolean: "BOOLEAN", -} as const; -export type ScreeningQuestionTypeEnum = (typeof ScreeningQuestionTypeEnum)[keyof typeof ScreeningQuestionTypeEnum]; diff --git a/src/api/resources/ats/types/SelectiveSyncConfigurationsUsageEnum.ts b/src/api/resources/ats/types/SelectiveSyncConfigurationsUsageEnum.ts deleted file mode 100644 index 4fce467f7..000000000 --- a/src/api/resources/ats/types/SelectiveSyncConfigurationsUsageEnum.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `IN_NEXT_SYNC` - IN_NEXT_SYNC - * * `IN_LAST_SYNC` - IN_LAST_SYNC - */ -export const SelectiveSyncConfigurationsUsageEnum = { - InNextSync: "IN_NEXT_SYNC", - InLastSync: "IN_LAST_SYNC", -} as const; -export type SelectiveSyncConfigurationsUsageEnum = - (typeof SelectiveSyncConfigurationsUsageEnum)[keyof typeof SelectiveSyncConfigurationsUsageEnum]; diff --git a/src/api/resources/ats/types/StatusFd5Enum.ts b/src/api/resources/ats/types/StatusFd5Enum.ts deleted file mode 100644 index 2ecbb5852..000000000 --- a/src/api/resources/ats/types/StatusFd5Enum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `SYNCING` - SYNCING - * * `DONE` - DONE - * * `FAILED` - FAILED - * * `DISABLED` - DISABLED - * * `PAUSED` - PAUSED - * * `PARTIALLY_SYNCED` - PARTIALLY_SYNCED - */ -export const StatusFd5Enum = { - Syncing: "SYNCING", - Done: "DONE", - Failed: "FAILED", - Disabled: "DISABLED", - Paused: "PAUSED", - PartiallySynced: "PARTIALLY_SYNCED", -} as const; -export type StatusFd5Enum = (typeof StatusFd5Enum)[keyof typeof StatusFd5Enum]; diff --git a/src/api/resources/ats/types/SyncStatus.ts b/src/api/resources/ats/types/SyncStatus.ts deleted file mode 100644 index d976ecb5b..000000000 --- a/src/api/resources/ats/types/SyncStatus.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The SyncStatus Object - * ### Description - * The `SyncStatus` object is used to represent the syncing state of an account - * - * ### Usage Example - * View the `SyncStatus` for an account to see how recently its models were synced. - */ -export interface SyncStatus { - modelName: string; - modelId: string; - lastSyncStart?: Date; - nextSyncStart?: Date; - lastSyncResult?: Merge.ats.SyncStatusLastSyncResult; - lastSyncFinished?: Date; - status: Merge.ats.SyncStatusStatus; - isInitialSync: boolean; - selectiveSyncConfigurationsUsage?: Merge.ats.SelectiveSyncConfigurationsUsageEnum; -} diff --git a/src/api/resources/ats/types/SyncStatusLastSyncResult.ts b/src/api/resources/ats/types/SyncStatusLastSyncResult.ts deleted file mode 100644 index df7e29e8b..000000000 --- a/src/api/resources/ats/types/SyncStatusLastSyncResult.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 SyncStatusLastSyncResult = Merge.ats.LastSyncResultEnum | string; diff --git a/src/api/resources/ats/types/SyncStatusStatus.ts b/src/api/resources/ats/types/SyncStatusStatus.ts deleted file mode 100644 index cec6bd5b4..000000000 --- a/src/api/resources/ats/types/SyncStatusStatus.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 SyncStatusStatus = Merge.ats.StatusFd5Enum | string; diff --git a/src/api/resources/ats/types/Tag.ts b/src/api/resources/ats/types/Tag.ts deleted file mode 100644 index 9feb72cc5..000000000 --- a/src/api/resources/ats/types/Tag.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * # The Tag Object - * ### Description - * The `Tag` object is used to represent a tag for a candidate. - * ### Usage Example - * Fetch from the `LIST Tags` endpoint and view the tags used within a company. - */ -export interface Tag { - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The tag's name. */ - name?: 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/). */ - remoteWasDeleted?: boolean; - fieldMappings?: Record; - remoteData?: (Record | undefined)[]; -} diff --git a/src/api/resources/ats/types/Url.ts b/src/api/resources/ats/types/Url.ts deleted file mode 100644 index 9f86222d7..000000000 --- a/src/api/resources/ats/types/Url.ts +++ /dev/null @@ -1,33 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Url Object - * ### Description - * The `Url` object is used to represent hyperlinks associated with the parent model. - * ### Usage Example - * Fetch from the `GET Candidate` endpoint and view their website urls. - */ -export interface Url { - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The site's url. */ - value?: string; - /** - * The type of site. - * - * * `PERSONAL` - PERSONAL - * * `COMPANY` - COMPANY - * * `PORTFOLIO` - PORTFOLIO - * * `BLOG` - BLOG - * * `SOCIAL_MEDIA` - SOCIAL_MEDIA - * * `OTHER` - OTHER - * * `JOB_POSTING` - JOB_POSTING - */ - urlType?: Merge.ats.UrlUrlType; - /** 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/UrlRequest.ts b/src/api/resources/ats/types/UrlRequest.ts deleted file mode 100644 index 0b7df31f6..000000000 --- a/src/api/resources/ats/types/UrlRequest.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Url Object - * ### Description - * The `Url` object is used to represent hyperlinks associated with the parent model. - * ### Usage Example - * Fetch from the `GET Candidate` endpoint and view their website urls. - */ -export interface UrlRequest { - /** The site's url. */ - value?: string; - /** - * The type of site. - * - * * `PERSONAL` - PERSONAL - * * `COMPANY` - COMPANY - * * `PORTFOLIO` - PORTFOLIO - * * `BLOG` - BLOG - * * `SOCIAL_MEDIA` - SOCIAL_MEDIA - * * `OTHER` - OTHER - * * `JOB_POSTING` - JOB_POSTING - */ - urlType?: Merge.ats.UrlRequestUrlType; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/ats/types/UrlRequestUrlType.ts b/src/api/resources/ats/types/UrlRequestUrlType.ts deleted file mode 100644 index 84ac1ffc6..000000000 --- a/src/api/resources/ats/types/UrlRequestUrlType.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The type of site. - * - * * `PERSONAL` - PERSONAL - * * `COMPANY` - COMPANY - * * `PORTFOLIO` - PORTFOLIO - * * `BLOG` - BLOG - * * `SOCIAL_MEDIA` - SOCIAL_MEDIA - * * `OTHER` - OTHER - * * `JOB_POSTING` - JOB_POSTING - */ -export type UrlRequestUrlType = Merge.ats.UrlTypeEnum | string; diff --git a/src/api/resources/ats/types/UrlTypeEnum.ts b/src/api/resources/ats/types/UrlTypeEnum.ts deleted file mode 100644 index 3c8bf94eb..000000000 --- a/src/api/resources/ats/types/UrlTypeEnum.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `PERSONAL` - PERSONAL - * * `COMPANY` - COMPANY - * * `PORTFOLIO` - PORTFOLIO - * * `BLOG` - BLOG - * * `SOCIAL_MEDIA` - SOCIAL_MEDIA - * * `OTHER` - OTHER - * * `JOB_POSTING` - JOB_POSTING - */ -export const UrlTypeEnum = { - Personal: "PERSONAL", - Company: "COMPANY", - Portfolio: "PORTFOLIO", - Blog: "BLOG", - SocialMedia: "SOCIAL_MEDIA", - Other: "OTHER", - JobPosting: "JOB_POSTING", -} as const; -export type UrlTypeEnum = (typeof UrlTypeEnum)[keyof typeof UrlTypeEnum]; diff --git a/src/api/resources/ats/types/UrlUrlType.ts b/src/api/resources/ats/types/UrlUrlType.ts deleted file mode 100644 index 3f0bbc83c..000000000 --- a/src/api/resources/ats/types/UrlUrlType.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The type of site. - * - * * `PERSONAL` - PERSONAL - * * `COMPANY` - COMPANY - * * `PORTFOLIO` - PORTFOLIO - * * `BLOG` - BLOG - * * `SOCIAL_MEDIA` - SOCIAL_MEDIA - * * `OTHER` - OTHER - * * `JOB_POSTING` - JOB_POSTING - */ -export type UrlUrlType = Merge.ats.UrlTypeEnum | string; diff --git a/src/api/resources/ats/types/ValidationProblemSource.ts b/src/api/resources/ats/types/ValidationProblemSource.ts deleted file mode 100644 index 853332073..000000000 --- a/src/api/resources/ats/types/ValidationProblemSource.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface ValidationProblemSource { - pointer: string; -} diff --git a/src/api/resources/ats/types/VeteranStatusEnum.ts b/src/api/resources/ats/types/VeteranStatusEnum.ts deleted file mode 100644 index 1a0fb0dc7..000000000 --- a/src/api/resources/ats/types/VeteranStatusEnum.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `I_AM_NOT_A_PROTECTED_VETERAN` - I_AM_NOT_A_PROTECTED_VETERAN - * * `I_IDENTIFY_AS_ONE_OR_MORE_OF_THE_CLASSIFICATIONS_OF_A_PROTECTED_VETERAN` - I_IDENTIFY_AS_ONE_OR_MORE_OF_THE_CLASSIFICATIONS_OF_A_PROTECTED_VETERAN - * * `I_DONT_WISH_TO_ANSWER` - I_DONT_WISH_TO_ANSWER - */ -export const VeteranStatusEnum = { - IAmNotAProtectedVeteran: "I_AM_NOT_A_PROTECTED_VETERAN", - IIdentifyAsOneOrMoreOfTheClassificationsOfAProtectedVeteran: - "I_IDENTIFY_AS_ONE_OR_MORE_OF_THE_CLASSIFICATIONS_OF_A_PROTECTED_VETERAN", - IDontWishToAnswer: "I_DONT_WISH_TO_ANSWER", -} as const; -export type VeteranStatusEnum = (typeof VeteranStatusEnum)[keyof typeof VeteranStatusEnum]; diff --git a/src/api/resources/ats/types/VisibilityEnum.ts b/src/api/resources/ats/types/VisibilityEnum.ts deleted file mode 100644 index c277ac675..000000000 --- a/src/api/resources/ats/types/VisibilityEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `ADMIN_ONLY` - ADMIN_ONLY - * * `PUBLIC` - PUBLIC - * * `PRIVATE` - PRIVATE - */ -export const VisibilityEnum = { - AdminOnly: "ADMIN_ONLY", - Public: "PUBLIC", - Private: "PRIVATE", -} as const; -export type VisibilityEnum = (typeof VisibilityEnum)[keyof typeof VisibilityEnum]; diff --git a/src/api/resources/ats/types/WarningValidationProblem.ts b/src/api/resources/ats/types/WarningValidationProblem.ts deleted file mode 100644 index ea4a3c7f7..000000000 --- a/src/api/resources/ats/types/WarningValidationProblem.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface WarningValidationProblem { - source?: Merge.ats.ValidationProblemSource; - title: string; - detail: string; - problemType: string; -} diff --git a/src/api/resources/ats/types/WebhookReceiver.ts b/src/api/resources/ats/types/WebhookReceiver.ts deleted file mode 100644 index f9c8ebc4b..000000000 --- a/src/api/resources/ats/types/WebhookReceiver.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface WebhookReceiver { - event: string; - isActive: boolean; - key?: string; -} diff --git a/src/api/resources/ats/types/index.ts b/src/api/resources/ats/types/index.ts deleted file mode 100644 index c8264290b..000000000 --- a/src/api/resources/ats/types/index.ts +++ /dev/null @@ -1,217 +0,0 @@ -export * from "./AccessRoleEnum"; -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 "./Activity"; -export * from "./ActivityActivityType"; -export * from "./ActivityRequest"; -export * from "./ActivityRequestActivityType"; -export * from "./ActivityRequestUser"; -export * from "./ActivityRequestVisibility"; -export * from "./ActivityResponse"; -export * from "./ActivityTypeEnum"; -export * from "./ActivityUser"; -export * from "./ActivityVisibility"; -export * from "./AdvancedMetadata"; -export * from "./Application"; -export * from "./ApplicationCandidate"; -export * from "./ApplicationCreditedTo"; -export * from "./ApplicationCurrentStage"; -export * from "./ApplicationJob"; -export * from "./ApplicationOffersItem"; -export * from "./ApplicationRejectReason"; -export * from "./ApplicationRequest"; -export * from "./ApplicationRequestCandidate"; -export * from "./ApplicationRequestCreditedTo"; -export * from "./ApplicationRequestCurrentStage"; -export * from "./ApplicationRequestJob"; -export * from "./ApplicationRequestOffersItem"; -export * from "./ApplicationRequestRejectReason"; -export * from "./ApplicationRequestScreeningQuestionAnswersItem"; -export * from "./ApplicationResponse"; -export * from "./ApplicationScreeningQuestionAnswersItem"; -export * from "./AsyncPassthroughReciept"; -export * from "./Attachment"; -export * from "./AttachmentAttachmentType"; -export * from "./AttachmentRequest"; -export * from "./AttachmentRequestAttachmentType"; -export * from "./AttachmentResponse"; -export * from "./AttachmentTypeEnum"; -export * from "./AuditLogEvent"; -export * from "./AuditLogEventEventType"; -export * from "./AuditLogEventRole"; -export * from "./AvailableActions"; -export * from "./Candidate"; -export * from "./CandidateApplicationsItem"; -export * from "./CandidateAttachmentsItem"; -export * from "./CandidateRequest"; -export * from "./CandidateRequestApplicationsItem"; -export * from "./CandidateRequestAttachmentsItem"; -export * from "./CandidateResponse"; -export * from "./CategoriesEnum"; -export * from "./CategoryEnum"; -export * from "./CommonModelScopeApi"; -export * from "./CommonModelScopesBodyRequest"; -export * from "./DataPassthroughRequest"; -export * from "./DebugModeLog"; -export * from "./DebugModelLogSummary"; -export * from "./Department"; -export * from "./DisabilityStatusEnum"; -export * from "./Eeoc"; -export * from "./EeocCandidate"; -export * from "./EeocDisabilityStatus"; -export * from "./EeocGender"; -export * from "./EeocRace"; -export * from "./EeocVeteranStatus"; -export * from "./EmailAddress"; -export * from "./EmailAddressEmailAddressType"; -export * from "./EmailAddressRequest"; -export * from "./EmailAddressRequestEmailAddressType"; -export * from "./EmailAddressTypeEnum"; -export * from "./EnabledActionsEnum"; -export * from "./EncodingEnum"; -export * from "./ErrorValidationProblem"; -export * from "./EventTypeEnum"; -export * from "./ExternalTargetFieldApi"; -export * from "./ExternalTargetFieldApiResponse"; -export * from "./FieldMappingApiInstance"; -export * from "./FieldMappingApiInstanceRemoteField"; -export * from "./FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo"; -export * from "./FieldMappingApiInstanceResponse"; -export * from "./FieldMappingApiInstanceTargetField"; -export * from "./FieldMappingInstanceResponse"; -export * from "./FieldPermissionDeserializer"; -export * from "./FieldPermissionDeserializerRequest"; -export * from "./GenderEnum"; -export * from "./IndividualCommonModelScopeDeserializer"; -export * from "./IndividualCommonModelScopeDeserializerRequest"; -export * from "./Issue"; -export * from "./IssueStatus"; -export * from "./IssueStatusEnum"; -export * from "./Job"; -export * from "./JobDepartmentsItem"; -export * from "./JobHiringManagersItem"; -export * from "./JobInterviewStage"; -export * from "./JobInterviewStageJob"; -export * from "./JobOfficesItem"; -export * from "./JobPosting"; -export * from "./JobPostingJob"; -export * from "./JobPostingJobPostingUrlsItem"; -export * from "./JobPostingStatus"; -export * from "./JobPostingStatusEnum"; -export * from "./JobRecruitersItem"; -export * from "./JobStatus"; -export * from "./JobStatusEnum"; -export * from "./JobType"; -export * from "./JobTypeEnum"; -export * from "./LanguageEnum"; -export * from "./LastSyncResultEnum"; -export * from "./LinkedAccountStatus"; -export * from "./LinkToken"; -export * from "./MetaResponse"; -export * from "./MethodEnum"; -export * from "./ModelOperation"; -export * from "./ModelPermissionDeserializer"; -export * from "./ModelPermissionDeserializerRequest"; -export * from "./MultipartFormFieldRequest"; -export * from "./MultipartFormFieldRequestEncoding"; -export * from "./Offer"; -export * from "./OfferApplication"; -export * from "./OfferCreator"; -export * from "./OfferStatus"; -export * from "./OfferStatusEnum"; -export * from "./Office"; -export * from "./OverallRecommendationEnum"; -export * from "./PaginatedAccountDetailsAndActionsList"; -export * from "./PaginatedActivityList"; -export * from "./PaginatedApplicationList"; -export * from "./PaginatedAttachmentList"; -export * from "./PaginatedAuditLogEventList"; -export * from "./PaginatedCandidateList"; -export * from "./PaginatedDepartmentList"; -export * from "./PaginatedEeocList"; -export * from "./PaginatedIssueList"; -export * from "./PaginatedJobInterviewStageList"; -export * from "./PaginatedJobList"; -export * from "./PaginatedJobPostingList"; -export * from "./PaginatedOfferList"; -export * from "./PaginatedOfficeList"; -export * from "./PaginatedRejectReasonList"; -export * from "./PaginatedRemoteUserList"; -export * from "./PaginatedScheduledInterviewList"; -export * from "./PaginatedScorecardList"; -export * from "./PaginatedScreeningQuestionList"; -export * from "./PaginatedSyncStatusList"; -export * from "./PaginatedTagList"; -export * from "./PatchedCandidateRequest"; -export * from "./PhoneNumber"; -export * from "./PhoneNumberPhoneNumberType"; -export * from "./PhoneNumberRequest"; -export * from "./PhoneNumberRequestPhoneNumberType"; -export * from "./PhoneNumberTypeEnum"; -export * from "./RaceEnum"; -export * from "./ReasonEnum"; -export * from "./RejectReason"; -export * from "./RemoteData"; -export * from "./RemoteEndpointInfo"; -export * from "./RemoteFieldApi"; -export * from "./RemoteFieldApiCoverage"; -export * from "./RemoteFieldApiResponse"; -export * from "./RemoteKey"; -export * from "./RemoteResponse"; -export * from "./RemoteResponseResponseType"; -export * from "./RemoteUser"; -export * from "./RemoteUserAccessRole"; -export * from "./RequestFormatEnum"; -export * from "./ResponseTypeEnum"; -export * from "./RoleEnum"; -export * from "./ScheduledInterview"; -export * from "./ScheduledInterviewApplication"; -export * from "./ScheduledInterviewInterviewersItem"; -export * from "./ScheduledInterviewJobInterviewStage"; -export * from "./ScheduledInterviewOrganizer"; -export * from "./ScheduledInterviewRequest"; -export * from "./ScheduledInterviewRequestApplication"; -export * from "./ScheduledInterviewRequestInterviewersItem"; -export * from "./ScheduledInterviewRequestJobInterviewStage"; -export * from "./ScheduledInterviewRequestOrganizer"; -export * from "./ScheduledInterviewRequestStatus"; -export * from "./ScheduledInterviewResponse"; -export * from "./ScheduledInterviewStatus"; -export * from "./ScheduledInterviewStatusEnum"; -export * from "./Scorecard"; -export * from "./ScorecardApplication"; -export * from "./ScorecardInterview"; -export * from "./ScorecardInterviewer"; -export * from "./ScorecardOverallRecommendation"; -export * from "./ScreeningQuestion"; -export * from "./ScreeningQuestionAnswer"; -export * from "./ScreeningQuestionAnswerQuestion"; -export * from "./ScreeningQuestionAnswerRequest"; -export * from "./ScreeningQuestionAnswerRequestQuestion"; -export * from "./ScreeningQuestionJob"; -export * from "./ScreeningQuestionOption"; -export * from "./ScreeningQuestionType"; -export * from "./ScreeningQuestionTypeEnum"; -export * from "./SelectiveSyncConfigurationsUsageEnum"; -export * from "./StatusFd5Enum"; -export * from "./SyncStatus"; -export * from "./SyncStatusLastSyncResult"; -export * from "./SyncStatusStatus"; -export * from "./Tag"; -export * from "./Url"; -export * from "./UrlRequest"; -export * from "./UrlRequestUrlType"; -export * from "./UrlTypeEnum"; -export * from "./UrlUrlType"; -export * from "./ValidationProblemSource"; -export * from "./VeteranStatusEnum"; -export * from "./VisibilityEnum"; -export * from "./WarningValidationProblem"; -export * from "./WebhookReceiver"; diff --git a/src/api/resources/crm/client/Client.ts b/src/api/resources/crm/client/Client.ts deleted file mode 100644 index ce6bad79b..000000000 --- a/src/api/resources/crm/client/Client.ts +++ /dev/null @@ -1,202 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type { BaseClientOptions } from "../../../../BaseClient"; -import { type NormalizedClientOptionsWithAuth, normalizeClientOptionsWithAuth } from "../../../../BaseClient"; -import { AccountDetailsClient } from "../resources/accountDetails/client/Client"; -import { AccountsClient } from "../resources/accounts/client/Client"; -import { AccountTokenClient } from "../resources/accountToken/client/Client"; -import { AssociationsClient } from "../resources/associations/client/Client"; -import { AssociationTypesClient } from "../resources/associationTypes/client/Client"; -import { AsyncPassthroughClient } from "../resources/asyncPassthrough/client/Client"; -import { AuditTrailClient } from "../resources/auditTrail/client/Client"; -import { AvailableActionsClient } from "../resources/availableActions/client/Client"; -import { ContactsClient } from "../resources/contacts/client/Client"; -import { CustomObjectClassesClient } from "../resources/customObjectClasses/client/Client"; -import { CustomObjectsClient } from "../resources/customObjects/client/Client"; -import { DeleteAccountClient } from "../resources/deleteAccount/client/Client"; -import { EngagementsClient } from "../resources/engagements/client/Client"; -import { EngagementTypesClient } from "../resources/engagementTypes/client/Client"; -import { FieldMappingClient } from "../resources/fieldMapping/client/Client"; -import { ForceResyncClient } from "../resources/forceResync/client/Client"; -import { GenerateKeyClient } from "../resources/generateKey/client/Client"; -import { IssuesClient } from "../resources/issues/client/Client"; -import { LeadsClient } from "../resources/leads/client/Client"; -import { LinkedAccountsClient } from "../resources/linkedAccounts/client/Client"; -import { LinkTokenClient } from "../resources/linkToken/client/Client"; -import { NotesClient } from "../resources/notes/client/Client"; -import { OpportunitiesClient } from "../resources/opportunities/client/Client"; -import { PassthroughClient } from "../resources/passthrough/client/Client"; -import { RegenerateKeyClient } from "../resources/regenerateKey/client/Client"; -import { ScopesClient } from "../resources/scopes/client/Client"; -import { StagesClient } from "../resources/stages/client/Client"; -import { SyncStatusClient } from "../resources/syncStatus/client/Client"; -import { TasksClient } from "../resources/tasks/client/Client"; -import { UsersClient } from "../resources/users/client/Client"; -import { WebhookReceiversClient } from "../resources/webhookReceivers/client/Client"; - -export declare namespace CrmClient { - export type Options = BaseClientOptions; -} - -export class CrmClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - protected _accountDetails: AccountDetailsClient | undefined; - protected _accountToken: AccountTokenClient | undefined; - protected _accounts: AccountsClient | undefined; - protected _asyncPassthrough: AsyncPassthroughClient | undefined; - protected _auditTrail: AuditTrailClient | undefined; - protected _availableActions: AvailableActionsClient | undefined; - protected _contacts: ContactsClient | undefined; - protected _customObjectClasses: CustomObjectClassesClient | undefined; - protected _associationTypes: AssociationTypesClient | undefined; - protected _customObjects: CustomObjectsClient | undefined; - protected _associations: AssociationsClient | undefined; - protected _scopes: ScopesClient | undefined; - protected _deleteAccount: DeleteAccountClient | undefined; - protected _engagementTypes: EngagementTypesClient | undefined; - protected _engagements: EngagementsClient | undefined; - protected _fieldMapping: FieldMappingClient | undefined; - protected _generateKey: GenerateKeyClient | undefined; - protected _issues: IssuesClient | undefined; - protected _leads: LeadsClient | undefined; - protected _linkToken: LinkTokenClient | undefined; - protected _linkedAccounts: LinkedAccountsClient | undefined; - protected _notes: NotesClient | undefined; - protected _opportunities: OpportunitiesClient | undefined; - protected _passthrough: PassthroughClient | undefined; - protected _regenerateKey: RegenerateKeyClient | undefined; - protected _stages: StagesClient | undefined; - protected _syncStatus: SyncStatusClient | undefined; - protected _forceResync: ForceResyncClient | undefined; - protected _tasks: TasksClient | undefined; - protected _users: UsersClient | undefined; - protected _webhookReceivers: WebhookReceiversClient | undefined; - - constructor(options: CrmClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - public get accountDetails(): AccountDetailsClient { - return (this._accountDetails ??= new AccountDetailsClient(this._options)); - } - - public get accountToken(): AccountTokenClient { - return (this._accountToken ??= new AccountTokenClient(this._options)); - } - - public get accounts(): AccountsClient { - return (this._accounts ??= new AccountsClient(this._options)); - } - - public get asyncPassthrough(): AsyncPassthroughClient { - return (this._asyncPassthrough ??= new AsyncPassthroughClient(this._options)); - } - - public get auditTrail(): AuditTrailClient { - return (this._auditTrail ??= new AuditTrailClient(this._options)); - } - - public get availableActions(): AvailableActionsClient { - return (this._availableActions ??= new AvailableActionsClient(this._options)); - } - - public get contacts(): ContactsClient { - return (this._contacts ??= new ContactsClient(this._options)); - } - - public get customObjectClasses(): CustomObjectClassesClient { - return (this._customObjectClasses ??= new CustomObjectClassesClient(this._options)); - } - - public get associationTypes(): AssociationTypesClient { - return (this._associationTypes ??= new AssociationTypesClient(this._options)); - } - - public get customObjects(): CustomObjectsClient { - return (this._customObjects ??= new CustomObjectsClient(this._options)); - } - - public get associations(): AssociationsClient { - return (this._associations ??= new AssociationsClient(this._options)); - } - - public get scopes(): ScopesClient { - return (this._scopes ??= new ScopesClient(this._options)); - } - - public get deleteAccount(): DeleteAccountClient { - return (this._deleteAccount ??= new DeleteAccountClient(this._options)); - } - - public get engagementTypes(): EngagementTypesClient { - return (this._engagementTypes ??= new EngagementTypesClient(this._options)); - } - - public get engagements(): EngagementsClient { - return (this._engagements ??= new EngagementsClient(this._options)); - } - - public get fieldMapping(): FieldMappingClient { - return (this._fieldMapping ??= new FieldMappingClient(this._options)); - } - - public get generateKey(): GenerateKeyClient { - return (this._generateKey ??= new GenerateKeyClient(this._options)); - } - - public get issues(): IssuesClient { - return (this._issues ??= new IssuesClient(this._options)); - } - - public get leads(): LeadsClient { - return (this._leads ??= new LeadsClient(this._options)); - } - - public get linkToken(): LinkTokenClient { - return (this._linkToken ??= new LinkTokenClient(this._options)); - } - - public get linkedAccounts(): LinkedAccountsClient { - return (this._linkedAccounts ??= new LinkedAccountsClient(this._options)); - } - - public get notes(): NotesClient { - return (this._notes ??= new NotesClient(this._options)); - } - - public get opportunities(): OpportunitiesClient { - return (this._opportunities ??= new OpportunitiesClient(this._options)); - } - - public get passthrough(): PassthroughClient { - return (this._passthrough ??= new PassthroughClient(this._options)); - } - - public get regenerateKey(): RegenerateKeyClient { - return (this._regenerateKey ??= new RegenerateKeyClient(this._options)); - } - - public get stages(): StagesClient { - return (this._stages ??= new StagesClient(this._options)); - } - - public get syncStatus(): SyncStatusClient { - return (this._syncStatus ??= new SyncStatusClient(this._options)); - } - - public get forceResync(): ForceResyncClient { - return (this._forceResync ??= new ForceResyncClient(this._options)); - } - - public get tasks(): TasksClient { - return (this._tasks ??= new TasksClient(this._options)); - } - - public get users(): UsersClient { - return (this._users ??= new UsersClient(this._options)); - } - - public get webhookReceivers(): WebhookReceiversClient { - return (this._webhookReceivers ??= new WebhookReceiversClient(this._options)); - } -} diff --git a/src/api/resources/crm/client/index.ts b/src/api/resources/crm/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/crm/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/crm/exports.ts b/src/api/resources/crm/exports.ts deleted file mode 100644 index 5606555fa..000000000 --- a/src/api/resources/crm/exports.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { CrmClient } from "./client/Client"; -export * from "./client/index"; -export * from "./resources/index"; diff --git a/src/api/resources/crm/index.ts b/src/api/resources/crm/index.ts deleted file mode 100644 index fb00ab43d..000000000 --- a/src/api/resources/crm/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./client"; -export * from "./resources"; -export * from "./types"; diff --git a/src/api/resources/crm/resources/accountDetails/client/Client.ts b/src/api/resources/crm/resources/accountDetails/client/Client.ts deleted file mode 100644 index c7567abab..000000000 --- a/src/api/resources/crm/resources/accountDetails/client/Client.ts +++ /dev/null @@ -1,89 +0,0 @@ -// 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 AccountDetailsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AccountDetailsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AccountDetailsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Get details for a linked account. - * - * @param {AccountDetailsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.accountDetails.retrieve() - */ - public retrieve( - requestOptions?: AccountDetailsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(requestOptions)); - } - - private async __retrieve( - requestOptions?: AccountDetailsClient.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-details", - ), - 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.crm.AccountDetails.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/account-details"); - } -} diff --git a/src/api/resources/crm/resources/accountDetails/client/index.ts b/src/api/resources/crm/resources/accountDetails/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/crm/resources/accountDetails/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/crm/resources/accountDetails/exports.ts b/src/api/resources/crm/resources/accountDetails/exports.ts deleted file mode 100644 index 418f11a73..000000000 --- a/src/api/resources/crm/resources/accountDetails/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AccountDetailsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/accountDetails/index.ts b/src/api/resources/crm/resources/accountDetails/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/crm/resources/accountDetails/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/crm/resources/accountToken/client/Client.ts b/src/api/resources/crm/resources/accountToken/client/Client.ts deleted file mode 100644 index 6770a64c9..000000000 --- a/src/api/resources/crm/resources/accountToken/client/Client.ts +++ /dev/null @@ -1,97 +0,0 @@ -// 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 AccountTokenClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AccountTokenClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AccountTokenClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns the account token for the end user with the provided public token. - * - * @param {string} public_token - * @param {AccountTokenClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.accountToken.retrieve("public_token") - */ - public retrieve( - public_token: string, - requestOptions?: AccountTokenClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(public_token, requestOptions)); - } - - private async __retrieve( - public_token: string, - 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/${core.url.encodePathParam(public_token)}`, - ), - 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.crm.AccountToken.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/account-token/{public_token}", - ); - } -} diff --git a/src/api/resources/crm/resources/accountToken/client/index.ts b/src/api/resources/crm/resources/accountToken/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/crm/resources/accountToken/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/crm/resources/accountToken/exports.ts b/src/api/resources/crm/resources/accountToken/exports.ts deleted file mode 100644 index 52f681c49..000000000 --- a/src/api/resources/crm/resources/accountToken/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AccountTokenClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/accountToken/index.ts b/src/api/resources/crm/resources/accountToken/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/crm/resources/accountToken/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/crm/resources/accounts/client/Client.ts b/src/api/resources/crm/resources/accounts/client/Client.ts deleted file mode 100644 index 16c19058c..000000000 --- a/src/api/resources/crm/resources/accounts/client/Client.ts +++ /dev/null @@ -1,621 +0,0 @@ -// 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 AccountsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AccountsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AccountsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Account` objects. - * - * @param {Merge.crm.AccountsListRequest} request - * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Creates an `Account` object with the given values. - * - * @param {Merge.crm.CrmAccountEndpointRequest} request - * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.accounts.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public create( - request: Merge.crm.CrmAccountEndpointRequest, - requestOptions?: AccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.crm.CrmAccountEndpointRequest, - requestOptions?: AccountsClient.RequestOptions, - ): Promise> { - const { isDebugMode, runAsync, ..._body } = request; - const _queryParams: Record = { - is_debug_mode: isDebugMode, - run_async: runAsync, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/accounts", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.crm.CrmAccountEndpointRequest.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.crm.CrmAccountResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/accounts"); - } - - /** - * Returns an `Account` object with the given `id`. - * - * @param {string} id - * @param {Merge.crm.AccountsRetrieveRequest} request - * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.accounts.retrieve("id", { - * expand: "owner", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.crm.AccountsRetrieveRequest = {}, - requestOptions?: AccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.crm.AccountsRetrieveRequest = {}, - requestOptions?: AccountsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeRemoteFields, includeShellData } = request; - const _queryParams: Record = { - expand: expand != null ? expand : undefined, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `crm/v1/accounts/${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.crm.Account.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } - - /** - * Updates an `Account` object with the given `id`. - * - * @param {string} id - * @param {Merge.crm.PatchedCrmAccountEndpointRequest} request - * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.accounts.partialUpdate("id", { - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public partialUpdate( - id: string, - request: Merge.crm.PatchedCrmAccountEndpointRequest, - requestOptions?: AccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__partialUpdate(id, request, requestOptions)); - } - - private async __partialUpdate( - id: string, - request: Merge.crm.PatchedCrmAccountEndpointRequest, - requestOptions?: AccountsClient.RequestOptions, - ): Promise> { - const { isDebugMode, runAsync, ..._body } = request; - const _queryParams: Record = { - is_debug_mode: isDebugMode, - run_async: runAsync, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `crm/v1/accounts/${core.url.encodePathParam(id)}`, - ), - method: "PATCH", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.crm.PatchedCrmAccountEndpointRequest.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.crm.CrmAccountResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/crm/v1/accounts/{id}"); - } - - /** - * Returns metadata for `CRMAccount` PATCHs. - * - * @param {string} id - * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.accounts.metaPatchRetrieve("id") - */ - public metaPatchRetrieve( - id: string, - requestOptions?: AccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPatchRetrieve(id, requestOptions)); - } - - private async __metaPatchRetrieve( - id: string, - requestOptions?: AccountsClient.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/accounts/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.crm.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", - "/crm/v1/accounts/meta/patch/{id}", - ); - } - - /** - * Returns metadata for `CRMAccount` POSTs. - * - * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.accounts.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: AccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: AccountsClient.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/accounts/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.crm.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", "/crm/v1/accounts/meta/post"); - } - - /** - * Returns a list of `RemoteFieldClass` objects. - * - * @param {Merge.crm.AccountsRemoteFieldClassesListRequest} request - * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.accounts.remoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * }) - */ - public remoteFieldClassesList( - request: Merge.crm.AccountsRemoteFieldClassesListRequest = {}, - requestOptions?: AccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); - } - - private 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, - ); - const _response = await (this._options.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", - ); - } -} diff --git a/src/api/resources/crm/resources/accounts/client/index.ts b/src/api/resources/crm/resources/accounts/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/crm/resources/accounts/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/crm/resources/accounts/client/requests/AccountsListRequest.ts b/src/api/resources/crm/resources/accounts/client/requests/AccountsListRequest.ts deleted file mode 100644 index 4a7ccf78f..000000000 --- a/src/api/resources/crm/resources/accounts/client/requests/AccountsListRequest.ts +++ /dev/null @@ -1,51 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * 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" - * } - */ -export interface AccountsListRequest { - /** 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?: "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. */ - 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; - /** If provided, will only return accounts with this name. */ - name?: string; - /** If provided, will only return accounts with this owner. */ - ownerId?: string; - /** 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/crm/resources/accounts/client/requests/AccountsRemoteFieldClassesListRequest.ts b/src/api/resources/crm/resources/accounts/client/requests/AccountsRemoteFieldClassesListRequest.ts deleted file mode 100644 index e7bc71de5..000000000 --- a/src/api/resources/crm/resources/accounts/client/requests/AccountsRemoteFieldClassesListRequest.ts +++ /dev/null @@ -1,33 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * } - */ -export interface AccountsRemoteFieldClassesListRequest { - /** 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 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 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. */ - 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 deleted file mode 100644 index fa529092f..000000000 --- a/src/api/resources/crm/resources/accounts/client/requests/AccountsRetrieveRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * expand: "owner", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * } - */ -export interface AccountsRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "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. */ - 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; -} diff --git a/src/api/resources/crm/resources/accounts/client/requests/CrmAccountEndpointRequest.ts b/src/api/resources/crm/resources/accounts/client/requests/CrmAccountEndpointRequest.ts deleted file mode 100644 index af116c1e8..000000000 --- a/src/api/resources/crm/resources/accounts/client/requests/CrmAccountEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface CrmAccountEndpointRequest { - /** 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.crm.AccountRequest; -} diff --git a/src/api/resources/crm/resources/accounts/client/requests/PatchedCrmAccountEndpointRequest.ts b/src/api/resources/crm/resources/accounts/client/requests/PatchedCrmAccountEndpointRequest.ts deleted file mode 100644 index 954201f4a..000000000 --- a/src/api/resources/crm/resources/accounts/client/requests/PatchedCrmAccountEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface PatchedCrmAccountEndpointRequest { - /** 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.crm.PatchedAccountRequest; -} diff --git a/src/api/resources/crm/resources/accounts/client/requests/index.ts b/src/api/resources/crm/resources/accounts/client/requests/index.ts deleted file mode 100644 index 185e56874..000000000 --- a/src/api/resources/crm/resources/accounts/client/requests/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type { AccountsListRequest } from "./AccountsListRequest"; -export type { AccountsRemoteFieldClassesListRequest } from "./AccountsRemoteFieldClassesListRequest"; -export type { AccountsRetrieveRequest } from "./AccountsRetrieveRequest"; -export type { CrmAccountEndpointRequest } from "./CrmAccountEndpointRequest"; -export type { PatchedCrmAccountEndpointRequest } from "./PatchedCrmAccountEndpointRequest"; diff --git a/src/api/resources/crm/resources/accounts/exports.ts b/src/api/resources/crm/resources/accounts/exports.ts deleted file mode 100644 index 11698f7e4..000000000 --- a/src/api/resources/crm/resources/accounts/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AccountsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/accounts/index.ts b/src/api/resources/crm/resources/accounts/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/crm/resources/accounts/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/crm/resources/associationTypes/client/Client.ts b/src/api/resources/crm/resources/associationTypes/client/Client.ts deleted file mode 100644 index f9fe6a7bd..000000000 --- a/src/api/resources/crm/resources/associationTypes/client/Client.ts +++ /dev/null @@ -1,405 +0,0 @@ -// 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 AssociationTypesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AssociationTypesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AssociationTypesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `AssociationType` objects. - * - * @param {string} custom_object_class_id - * @param {Merge.crm.CustomObjectClassesAssociationTypesListRequest} request - * @param {AssociationTypesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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), - ); - } - - 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, - }); - 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", - ); - } - - /** - * Creates an `AssociationType` object with the given values. - * - * @param {string} custom_object_class_id - * @param {Merge.crm.CrmAssociationTypeEndpointRequest} request - * @param {AssociationTypesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * } - * }) - */ - public customObjectClassesAssociationTypesCreate( - custom_object_class_id: string, - request: Merge.crm.CrmAssociationTypeEndpointRequest, - requestOptions?: AssociationTypesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise( - this.__customObjectClassesAssociationTypesCreate(custom_object_class_id, request, requestOptions), - ); - } - - private async __customObjectClassesAssociationTypesCreate( - custom_object_class_id: string, - request: Merge.crm.CrmAssociationTypeEndpointRequest, - requestOptions?: AssociationTypesClient.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, - `crm/v1/custom-object-classes/${core.url.encodePathParam(custom_object_class_id)}/association-types`, - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.crm.CrmAssociationTypeEndpointRequest.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.crm.CrmAssociationTypeResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/custom-object-classes/{custom_object_class_id}/association-types", - ); - } - - /** - * Returns an `AssociationType` object with the given `id`. - * - * @param {string} custom_object_class_id - * @param {string} id - * @param {Merge.crm.CustomObjectClassesAssociationTypesRetrieveRequest} request - * @param {AssociationTypesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("custom_object_class_id", "id", { - * expand: "target_object_classes", - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public customObjectClassesAssociationTypesRetrieve( - custom_object_class_id: string, - id: string, - request: Merge.crm.CustomObjectClassesAssociationTypesRetrieveRequest = {}, - requestOptions?: AssociationTypesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise( - this.__customObjectClassesAssociationTypesRetrieve(custom_object_class_id, id, request, requestOptions), - ); - } - - private async __customObjectClassesAssociationTypesRetrieve( - custom_object_class_id: string, - id: string, - request: Merge.crm.CustomObjectClassesAssociationTypesRetrieveRequest = {}, - requestOptions?: AssociationTypesClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - expand: expand != null ? expand : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/${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.crm.AssociationType.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}", - ); - } - - /** - * Returns metadata for `CRMAssociationType` POSTs. - * - * @param {string} custom_object_class_id - * @param {AssociationTypesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRetrieve("custom_object_class_id") - */ - public customObjectClassesAssociationTypesMetaPostRetrieve( - custom_object_class_id: string, - requestOptions?: AssociationTypesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise( - this.__customObjectClassesAssociationTypesMetaPostRetrieve(custom_object_class_id, requestOptions), - ); - } - - private async __customObjectClassesAssociationTypesMetaPostRetrieve( - custom_object_class_id: string, - requestOptions?: AssociationTypesClient.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/custom-object-classes/${core.url.encodePathParam(custom_object_class_id)}/association-types/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.crm.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", - "/crm/v1/custom-object-classes/{custom_object_class_id}/association-types/meta/post", - ); - } -} diff --git a/src/api/resources/crm/resources/associationTypes/client/index.ts b/src/api/resources/crm/resources/associationTypes/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/crm/resources/associationTypes/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/crm/resources/associationTypes/client/requests/CrmAssociationTypeEndpointRequest.ts b/src/api/resources/crm/resources/associationTypes/client/requests/CrmAssociationTypeEndpointRequest.ts deleted file mode 100644 index af00c8e44..000000000 --- a/src/api/resources/crm/resources/associationTypes/client/requests/CrmAssociationTypeEndpointRequest.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: { - * sourceObjectClass: { - * id: "id", - * originType: "CUSTOM_OBJECT" - * }, - * targetObjectClasses: [{ - * id: "id", - * originType: "CUSTOM_OBJECT" - * }], - * remoteKeyName: "remote_key_name" - * } - * } - */ -export interface CrmAssociationTypeEndpointRequest { - /** 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.crm.AssociationTypeRequestRequest; -} diff --git a/src/api/resources/crm/resources/associationTypes/client/requests/CustomObjectClassesAssociationTypesListRequest.ts b/src/api/resources/crm/resources/associationTypes/client/requests/CustomObjectClassesAssociationTypesListRequest.ts deleted file mode 100644 index 9edf74932..000000000 --- a/src/api/resources/crm/resources/associationTypes/client/requests/CustomObjectClassesAssociationTypesListRequest.ts +++ /dev/null @@ -1,42 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * 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" - * } - */ -export interface CustomObjectClassesAssociationTypesListRequest { - /** 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?: "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. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - 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 deleted file mode 100644 index 429c89354..000000000 --- a/src/api/resources/crm/resources/associationTypes/client/requests/CustomObjectClassesAssociationTypesRetrieveRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @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"; - /** 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; -} diff --git a/src/api/resources/crm/resources/associationTypes/client/requests/index.ts b/src/api/resources/crm/resources/associationTypes/client/requests/index.ts deleted file mode 100644 index e724dbda8..000000000 --- a/src/api/resources/crm/resources/associationTypes/client/requests/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type { CrmAssociationTypeEndpointRequest } from "./CrmAssociationTypeEndpointRequest"; -export type { CustomObjectClassesAssociationTypesListRequest } from "./CustomObjectClassesAssociationTypesListRequest"; -export type { CustomObjectClassesAssociationTypesRetrieveRequest } from "./CustomObjectClassesAssociationTypesRetrieveRequest"; diff --git a/src/api/resources/crm/resources/associationTypes/exports.ts b/src/api/resources/crm/resources/associationTypes/exports.ts deleted file mode 100644 index 42ef1df5b..000000000 --- a/src/api/resources/crm/resources/associationTypes/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AssociationTypesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/associationTypes/index.ts b/src/api/resources/crm/resources/associationTypes/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/crm/resources/associationTypes/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/crm/resources/associations/client/Client.ts b/src/api/resources/crm/resources/associations/client/Client.ts deleted file mode 100644 index 17b16dbd4..000000000 --- a/src/api/resources/crm/resources/associations/client/Client.ts +++ /dev/null @@ -1,256 +0,0 @@ -// 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 AssociationsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AssociationsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AssociationsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Association` objects. - * - * @param {string} custom_object_class_id - * @param {string} object_id - * @param {Merge.crm.CustomObjectClassesCustomObjectsAssociationsListRequest} request - * @param {AssociationsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } - - /** - * Creates an Association between `source_object_id` and `target_object_id` of type `association_type_id`. - * - * @param {string} source_class_id - * @param {string} source_object_id - * @param {string} target_class_id - * @param {string} target_object_id - * @param {string} association_type_id - * @param {Merge.crm.CustomObjectClassesCustomObjectsAssociationsUpdateRequest} request - * @param {AssociationsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate("source_class_id", "source_object_id", "target_class_id", "target_object_id", "association_type_id", { - * isDebugMode: true, - * runAsync: true - * }) - */ - public customObjectClassesCustomObjectsAssociationsUpdate( - source_class_id: string, - source_object_id: string, - target_class_id: string, - target_object_id: string, - association_type_id: string, - request: Merge.crm.CustomObjectClassesCustomObjectsAssociationsUpdateRequest = {}, - requestOptions?: AssociationsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise( - this.__customObjectClassesCustomObjectsAssociationsUpdate( - source_class_id, - source_object_id, - target_class_id, - target_object_id, - association_type_id, - request, - requestOptions, - ), - ); - } - - private async __customObjectClassesCustomObjectsAssociationsUpdate( - source_class_id: string, - source_object_id: string, - target_class_id: string, - target_object_id: string, - association_type_id: string, - request: Merge.crm.CustomObjectClassesCustomObjectsAssociationsUpdateRequest = {}, - requestOptions?: AssociationsClient.RequestOptions, - ): Promise> { - const { isDebugMode, runAsync } = 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, - `crm/v1/custom-object-classes/${core.url.encodePathParam(source_class_id)}/custom-objects/${core.url.encodePathParam(source_object_id)}/associations/${core.url.encodePathParam(target_class_id)}/${core.url.encodePathParam(target_object_id)}/${core.url.encodePathParam(association_type_id)}`, - ), - method: "PUT", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 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.Association.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "PUT", - "/crm/v1/custom-object-classes/{source_class_id}/custom-objects/{source_object_id}/associations/{target_class_id}/{target_object_id}/{association_type_id}", - ); - } -} diff --git a/src/api/resources/crm/resources/associations/client/index.ts b/src/api/resources/crm/resources/associations/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/crm/resources/associations/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/crm/resources/associations/client/requests/CustomObjectClassesCustomObjectsAssociationsListRequest.ts b/src/api/resources/crm/resources/associations/client/requests/CustomObjectClassesCustomObjectsAssociationsListRequest.ts deleted file mode 100644 index f2046de64..000000000 --- a/src/api/resources/crm/resources/associations/client/requests/CustomObjectClassesCustomObjectsAssociationsListRequest.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * 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" - * } - */ -export interface CustomObjectClassesCustomObjectsAssociationsListRequest { - /** If provided, will only return opportunities with this association_type. */ - associationTypeId?: 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?: "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. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - pageSize?: number; - /** The API provider's ID for the given object. */ - remoteId?: string; -} diff --git a/src/api/resources/crm/resources/associations/client/requests/CustomObjectClassesCustomObjectsAssociationsUpdateRequest.ts b/src/api/resources/crm/resources/associations/client/requests/CustomObjectClassesCustomObjectsAssociationsUpdateRequest.ts deleted file mode 100644 index 0d4e2d1e3..000000000 --- a/src/api/resources/crm/resources/associations/client/requests/CustomObjectClassesCustomObjectsAssociationsUpdateRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true - * } - */ -export interface CustomObjectClassesCustomObjectsAssociationsUpdateRequest { - /** 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; -} diff --git a/src/api/resources/crm/resources/associations/client/requests/index.ts b/src/api/resources/crm/resources/associations/client/requests/index.ts deleted file mode 100644 index 8126ebfcb..000000000 --- a/src/api/resources/crm/resources/associations/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { CustomObjectClassesCustomObjectsAssociationsListRequest } from "./CustomObjectClassesCustomObjectsAssociationsListRequest"; -export type { CustomObjectClassesCustomObjectsAssociationsUpdateRequest } from "./CustomObjectClassesCustomObjectsAssociationsUpdateRequest"; diff --git a/src/api/resources/crm/resources/associations/exports.ts b/src/api/resources/crm/resources/associations/exports.ts deleted file mode 100644 index a72a30eb0..000000000 --- a/src/api/resources/crm/resources/associations/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AssociationsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/associations/index.ts b/src/api/resources/crm/resources/associations/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/crm/resources/associations/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/crm/resources/asyncPassthrough/client/Client.ts b/src/api/resources/crm/resources/asyncPassthrough/client/Client.ts deleted file mode 100644 index e3980d9a0..000000000 --- a/src/api/resources/crm/resources/asyncPassthrough/client/Client.ts +++ /dev/null @@ -1,170 +0,0 @@ -// 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 AsyncPassthroughClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AsyncPassthroughClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AsyncPassthroughClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Asynchronously pull data from an endpoint not currently supported by Merge. - * - * @param {Merge.crm.DataPassthroughRequest} request - * @param {AsyncPassthroughClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.asyncPassthrough.create({ - * method: "GET", - * path: "/scooters" - * }) - */ - public create( - request: Merge.crm.DataPassthroughRequest, - requestOptions?: AsyncPassthroughClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.crm.DataPassthroughRequest, - requestOptions?: AsyncPassthroughClient.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/async-passthrough", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.crm.DataPassthroughRequest.jsonOrThrow(request, { 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.crm.AsyncPassthroughReciept.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/async-passthrough"); - } - - /** - * Retrieves data from earlier async-passthrough POST request - * - * @param {string} async_passthrough_receipt_id - * @param {AsyncPassthroughClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.asyncPassthrough.retrieve("async_passthrough_receipt_id") - */ - public retrieve( - async_passthrough_receipt_id: string, - requestOptions?: AsyncPassthroughClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(async_passthrough_receipt_id, requestOptions)); - } - - private async __retrieve( - async_passthrough_receipt_id: string, - requestOptions?: AsyncPassthroughClient.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/async-passthrough/${core.url.encodePathParam(async_passthrough_receipt_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.crm.AsyncPassthroughRetrieveResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/async-passthrough/{async_passthrough_receipt_id}", - ); - } -} diff --git a/src/api/resources/crm/resources/asyncPassthrough/client/index.ts b/src/api/resources/crm/resources/asyncPassthrough/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/crm/resources/asyncPassthrough/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/crm/resources/asyncPassthrough/exports.ts b/src/api/resources/crm/resources/asyncPassthrough/exports.ts deleted file mode 100644 index 559d07505..000000000 --- a/src/api/resources/crm/resources/asyncPassthrough/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AsyncPassthroughClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/asyncPassthrough/index.ts b/src/api/resources/crm/resources/asyncPassthrough/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/crm/resources/asyncPassthrough/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/crm/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.ts b/src/api/resources/crm/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.ts deleted file mode 100644 index 24be734fd..000000000 --- a/src/api/resources/crm/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.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 AsyncPassthroughRetrieveResponse = Merge.crm.RemoteResponse | string; diff --git a/src/api/resources/crm/resources/asyncPassthrough/types/index.ts b/src/api/resources/crm/resources/asyncPassthrough/types/index.ts deleted file mode 100644 index f2b2d0e21..000000000 --- a/src/api/resources/crm/resources/asyncPassthrough/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./AsyncPassthroughRetrieveResponse"; diff --git a/src/api/resources/crm/resources/auditTrail/client/Client.ts b/src/api/resources/crm/resources/auditTrail/client/Client.ts deleted file mode 100644 index 583a3ddb8..000000000 --- a/src/api/resources/crm/resources/auditTrail/client/Client.ts +++ /dev/null @@ -1,108 +0,0 @@ -// 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 AuditTrailClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AuditTrailClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AuditTrailClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Gets a list of audit trail events. - * - * @param {Merge.crm.AuditTrailListRequest} request - * @param {AuditTrailClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.auditTrail.list({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * endDate: "end_date", - * eventType: "event_type", - * pageSize: 1, - * startDate: "start_date", - * userEmail: "user_email" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } -} diff --git a/src/api/resources/crm/resources/auditTrail/client/index.ts b/src/api/resources/crm/resources/auditTrail/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/crm/resources/auditTrail/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/crm/resources/auditTrail/client/requests/AuditTrailListRequest.ts b/src/api/resources/crm/resources/auditTrail/client/requests/AuditTrailListRequest.ts deleted file mode 100644 index 65216f96c..000000000 --- a/src/api/resources/crm/resources/auditTrail/client/requests/AuditTrailListRequest.ts +++ /dev/null @@ -1,27 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * endDate: "end_date", - * eventType: "event_type", - * pageSize: 1, - * startDate: "start_date", - * userEmail: "user_email" - * } - */ -export interface AuditTrailListRequest { - /** The pagination cursor value. */ - cursor?: string; - /** If included, will only include audit trail events that occurred before this time */ - 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. */ - pageSize?: number; - /** If included, will only include audit trail events that occurred after this time */ - startDate?: string; - /** If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. */ - userEmail?: string; -} diff --git a/src/api/resources/crm/resources/auditTrail/client/requests/index.ts b/src/api/resources/crm/resources/auditTrail/client/requests/index.ts deleted file mode 100644 index 1878598de..000000000 --- a/src/api/resources/crm/resources/auditTrail/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { AuditTrailListRequest } from "./AuditTrailListRequest"; diff --git a/src/api/resources/crm/resources/auditTrail/exports.ts b/src/api/resources/crm/resources/auditTrail/exports.ts deleted file mode 100644 index 0a7d225a1..000000000 --- a/src/api/resources/crm/resources/auditTrail/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AuditTrailClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/auditTrail/index.ts b/src/api/resources/crm/resources/auditTrail/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/crm/resources/auditTrail/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/crm/resources/availableActions/client/Client.ts b/src/api/resources/crm/resources/availableActions/client/Client.ts deleted file mode 100644 index bbaea6018..000000000 --- a/src/api/resources/crm/resources/availableActions/client/Client.ts +++ /dev/null @@ -1,89 +0,0 @@ -// 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 AvailableActionsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AvailableActionsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AvailableActionsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of models and actions available for an account. - * - * @param {AvailableActionsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.availableActions.retrieve() - */ - public retrieve( - requestOptions?: AvailableActionsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(requestOptions)); - } - - private async __retrieve( - requestOptions?: AvailableActionsClient.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/available-actions", - ), - 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.crm.AvailableActions.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/available-actions"); - } -} diff --git a/src/api/resources/crm/resources/availableActions/client/index.ts b/src/api/resources/crm/resources/availableActions/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/crm/resources/availableActions/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/crm/resources/availableActions/exports.ts b/src/api/resources/crm/resources/availableActions/exports.ts deleted file mode 100644 index 660bd32af..000000000 --- a/src/api/resources/crm/resources/availableActions/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AvailableActionsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/availableActions/index.ts b/src/api/resources/crm/resources/availableActions/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/crm/resources/availableActions/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/crm/resources/contacts/client/Client.ts b/src/api/resources/crm/resources/contacts/client/Client.ts deleted file mode 100644 index 618c5967e..000000000 --- a/src/api/resources/crm/resources/contacts/client/Client.ts +++ /dev/null @@ -1,703 +0,0 @@ -// 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 ContactsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class ContactsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: ContactsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Contact` objects. - * - * @param {Merge.crm.ContactsListRequest} request - * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Creates a `Contact` object with the given values. - * - * @param {Merge.crm.CrmContactEndpointRequest} request - * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.contacts.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public create( - request: Merge.crm.CrmContactEndpointRequest, - requestOptions?: ContactsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.crm.CrmContactEndpointRequest, - requestOptions?: ContactsClient.RequestOptions, - ): Promise> { - const { isDebugMode, runAsync, ..._body } = request; - const _queryParams: Record = { - is_debug_mode: isDebugMode, - run_async: runAsync, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/contacts", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.crm.CrmContactEndpointRequest.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.crm.CrmContactResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/contacts"); - } - - /** - * Returns a `Contact` object with the given `id`. - * - * @param {string} id - * @param {Merge.crm.ContactsRetrieveRequest} request - * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.contacts.retrieve("id", { - * expand: "account", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.crm.ContactsRetrieveRequest = {}, - requestOptions?: ContactsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.crm.ContactsRetrieveRequest = {}, - requestOptions?: ContactsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeRemoteFields, includeShellData } = request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.crm.ContactsRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `crm/v1/contacts/${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.crm.Contact.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } - - /** - * Updates a `Contact` object with the given `id`. - * - * @param {string} id - * @param {Merge.crm.PatchedCrmContactEndpointRequest} request - * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.contacts.partialUpdate("id", { - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public partialUpdate( - id: string, - request: Merge.crm.PatchedCrmContactEndpointRequest, - requestOptions?: ContactsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__partialUpdate(id, request, requestOptions)); - } - - private async __partialUpdate( - id: string, - request: Merge.crm.PatchedCrmContactEndpointRequest, - requestOptions?: ContactsClient.RequestOptions, - ): Promise> { - const { isDebugMode, runAsync, ..._body } = request; - const _queryParams: Record = { - is_debug_mode: isDebugMode, - run_async: runAsync, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `crm/v1/contacts/${core.url.encodePathParam(id)}`, - ), - method: "PATCH", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.crm.PatchedCrmContactEndpointRequest.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.crm.CrmContactResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/crm/v1/contacts/{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. - * - * @param {string} model_id - * @param {Merge.crm.IgnoreCommonModelRequest} request - * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.contacts.ignoreCreate("model_id", { - * reason: "GENERAL_CUSTOMER_REQUEST" - * }) - */ - public ignoreCreate( - model_id: string, - request: Merge.crm.IgnoreCommonModelRequest, - requestOptions?: ContactsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__ignoreCreate(model_id, request, requestOptions)); - } - - private async __ignoreCreate( - model_id: string, - request: Merge.crm.IgnoreCommonModelRequest, - requestOptions?: ContactsClient.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/contacts/ignore/${core.url.encodePathParam(model_id)}`, - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.crm.IgnoreCommonModelRequest.jsonOrThrow(request, { 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: undefined, rawResponse: _response.rawResponse }; - } - - if (_response.error.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/contacts/ignore/{model_id}", - ); - } - - /** - * Returns metadata for `CRMContact` PATCHs. - * - * @param {string} id - * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.contacts.metaPatchRetrieve("id") - */ - public metaPatchRetrieve( - id: string, - requestOptions?: ContactsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPatchRetrieve(id, requestOptions)); - } - - private async __metaPatchRetrieve( - id: string, - requestOptions?: ContactsClient.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/contacts/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.crm.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", - "/crm/v1/contacts/meta/patch/{id}", - ); - } - - /** - * Returns metadata for `CRMContact` POSTs. - * - * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.contacts.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: ContactsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: ContactsClient.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/contacts/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.crm.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", "/crm/v1/contacts/meta/post"); - } - - /** - * Returns a list of `RemoteFieldClass` objects. - * - * @param {Merge.crm.ContactsRemoteFieldClassesListRequest} request - * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.contacts.remoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * }) - */ - public remoteFieldClassesList( - request: Merge.crm.ContactsRemoteFieldClassesListRequest = {}, - requestOptions?: ContactsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); - } - - private 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, - ); - const _response = await (this._options.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", - ); - } -} diff --git a/src/api/resources/crm/resources/contacts/client/index.ts b/src/api/resources/crm/resources/contacts/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/crm/resources/contacts/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/crm/resources/contacts/client/requests/ContactsListRequest.ts b/src/api/resources/crm/resources/contacts/client/requests/ContactsListRequest.ts deleted file mode 100644 index 63c79d2f1..000000000 --- a/src/api/resources/crm/resources/contacts/client/requests/ContactsListRequest.ts +++ /dev/null @@ -1,56 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * 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" - * } - */ -export interface ContactsListRequest { - /** If provided, will only return contacts with this account. */ - accountId?: string; - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** If provided, will only return contacts 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; - /** 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. */ - pageSize?: number; - /** If provided, will only return contacts matching the phone numbers; multiple phone numbers can be separated by commas. */ - phoneNumbers?: string; - /** The API provider's ID for the given object. */ - remoteId?: 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 deleted file mode 100644 index 111315793..000000000 --- a/src/api/resources/crm/resources/contacts/client/requests/ContactsRemoteFieldClassesListRequest.ts +++ /dev/null @@ -1,33 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * } - */ -export interface ContactsRemoteFieldClassesListRequest { - /** 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 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 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. */ - 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 deleted file mode 100644 index 56a3f7097..000000000 --- a/src/api/resources/crm/resources/contacts/client/requests/ContactsRetrieveRequest.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * expand: "account", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * } - */ -export interface ContactsRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.crm.ContactsRetrieveRequestExpand; - /** 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; -} diff --git a/src/api/resources/crm/resources/contacts/client/requests/CrmContactEndpointRequest.ts b/src/api/resources/crm/resources/contacts/client/requests/CrmContactEndpointRequest.ts deleted file mode 100644 index 56413d54b..000000000 --- a/src/api/resources/crm/resources/contacts/client/requests/CrmContactEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface CrmContactEndpointRequest { - /** 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.crm.ContactRequest; -} diff --git a/src/api/resources/crm/resources/contacts/client/requests/PatchedCrmContactEndpointRequest.ts b/src/api/resources/crm/resources/contacts/client/requests/PatchedCrmContactEndpointRequest.ts deleted file mode 100644 index 9008c55ed..000000000 --- a/src/api/resources/crm/resources/contacts/client/requests/PatchedCrmContactEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface PatchedCrmContactEndpointRequest { - /** 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.crm.PatchedContactRequest; -} diff --git a/src/api/resources/crm/resources/contacts/client/requests/index.ts b/src/api/resources/crm/resources/contacts/client/requests/index.ts deleted file mode 100644 index 837b22942..000000000 --- a/src/api/resources/crm/resources/contacts/client/requests/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type { ContactsListRequest } from "./ContactsListRequest"; -export type { ContactsRemoteFieldClassesListRequest } from "./ContactsRemoteFieldClassesListRequest"; -export type { ContactsRetrieveRequest } from "./ContactsRetrieveRequest"; -export type { CrmContactEndpointRequest } from "./CrmContactEndpointRequest"; -export type { PatchedCrmContactEndpointRequest } from "./PatchedCrmContactEndpointRequest"; diff --git a/src/api/resources/crm/resources/contacts/exports.ts b/src/api/resources/crm/resources/contacts/exports.ts deleted file mode 100644 index d5052718a..000000000 --- a/src/api/resources/crm/resources/contacts/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { ContactsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/contacts/index.ts b/src/api/resources/crm/resources/contacts/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/crm/resources/contacts/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/api/resources/crm/resources/contacts/types/index.ts deleted file mode 100644 index 1f8bc8653..000000000 --- a/src/api/resources/crm/resources/contacts/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./ContactsListRequestExpand"; -export * from "./ContactsRetrieveRequestExpand"; diff --git a/src/api/resources/crm/resources/customObjectClasses/client/Client.ts b/src/api/resources/crm/resources/customObjectClasses/client/Client.ts deleted file mode 100644 index 53d9b1e91..000000000 --- a/src/api/resources/crm/resources/customObjectClasses/client/Client.ts +++ /dev/null @@ -1,215 +0,0 @@ -// 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 CustomObjectClassesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class CustomObjectClassesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: CustomObjectClassesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `CustomObjectClass` objects. - * - * @param {Merge.crm.CustomObjectClassesListRequest} request - * @param {CustomObjectClassesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `CustomObjectClass` object with the given `id`. - * - * @param {string} id - * @param {Merge.crm.CustomObjectClassesRetrieveRequest} request - * @param {CustomObjectClassesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.customObjectClasses.retrieve("id", { - * expand: "fields", - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.crm.CustomObjectClassesRetrieveRequest = {}, - requestOptions?: CustomObjectClassesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.crm.CustomObjectClassesRetrieveRequest = {}, - requestOptions?: CustomObjectClassesClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - expand: expand != null ? expand : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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(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.crm.CustomObjectClass.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}", - ); - } -} diff --git a/src/api/resources/crm/resources/customObjectClasses/client/index.ts b/src/api/resources/crm/resources/customObjectClasses/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/crm/resources/customObjectClasses/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/crm/resources/customObjectClasses/client/requests/CustomObjectClassesListRequest.ts b/src/api/resources/crm/resources/customObjectClasses/client/requests/CustomObjectClassesListRequest.ts deleted file mode 100644 index ce7b88d4d..000000000 --- a/src/api/resources/crm/resources/customObjectClasses/client/requests/CustomObjectClassesListRequest.ts +++ /dev/null @@ -1,42 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * 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" - * } - */ -export interface CustomObjectClassesListRequest { - /** 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?: "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. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - 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 deleted file mode 100644 index 9e0642b17..000000000 --- a/src/api/resources/crm/resources/customObjectClasses/client/requests/CustomObjectClassesRetrieveRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @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"; - /** 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; -} diff --git a/src/api/resources/crm/resources/customObjectClasses/client/requests/index.ts b/src/api/resources/crm/resources/customObjectClasses/client/requests/index.ts deleted file mode 100644 index ea7cc09eb..000000000 --- a/src/api/resources/crm/resources/customObjectClasses/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { CustomObjectClassesListRequest } from "./CustomObjectClassesListRequest"; -export type { CustomObjectClassesRetrieveRequest } from "./CustomObjectClassesRetrieveRequest"; diff --git a/src/api/resources/crm/resources/customObjectClasses/exports.ts b/src/api/resources/crm/resources/customObjectClasses/exports.ts deleted file mode 100644 index cac7a80ff..000000000 --- a/src/api/resources/crm/resources/customObjectClasses/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { CustomObjectClassesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/customObjectClasses/index.ts b/src/api/resources/crm/resources/customObjectClasses/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/crm/resources/customObjectClasses/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/crm/resources/customObjects/client/Client.ts b/src/api/resources/crm/resources/customObjects/client/Client.ts deleted file mode 100644 index ec68ca99a..000000000 --- a/src/api/resources/crm/resources/customObjects/client/Client.ts +++ /dev/null @@ -1,502 +0,0 @@ -// 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 CustomObjectsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class CustomObjectsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: CustomObjectsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `CustomObject` objects. - * - * @param {string} custom_object_class_id - * @param {Merge.crm.CustomObjectClassesCustomObjectsListRequest} request - * @param {CustomObjectsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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), - ); - } - - 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, - }); - 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", - ); - } - - /** - * Creates a `CustomObject` object with the given values. - * - * @param {string} custom_object_class_id - * @param {Merge.crm.CrmCustomObjectEndpointRequest} request - * @param {CustomObjectsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_object_class_id", { - * isDebugMode: true, - * runAsync: true, - * model: { - * fields: { - * "test_field": "hello" - * } - * } - * }) - */ - public customObjectClassesCustomObjectsCreate( - custom_object_class_id: string, - request: Merge.crm.CrmCustomObjectEndpointRequest, - requestOptions?: CustomObjectsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise( - this.__customObjectClassesCustomObjectsCreate(custom_object_class_id, request, requestOptions), - ); - } - - private async __customObjectClassesCustomObjectsCreate( - custom_object_class_id: string, - request: Merge.crm.CrmCustomObjectEndpointRequest, - requestOptions?: CustomObjectsClient.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, - `crm/v1/custom-object-classes/${core.url.encodePathParam(custom_object_class_id)}/custom-objects`, - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.crm.CrmCustomObjectEndpointRequest.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.crm.CrmCustomObjectResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/custom-object-classes/{custom_object_class_id}/custom-objects", - ); - } - - /** - * Returns a `CustomObject` object with the given `id`. - * - * @param {string} custom_object_class_id - * @param {string} id - * @param {Merge.crm.CustomObjectClassesCustomObjectsRetrieveRequest} request - * @param {CustomObjectsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve("custom_object_class_id", "id", { - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * }) - */ - public customObjectClassesCustomObjectsRetrieve( - custom_object_class_id: string, - id: string, - request: Merge.crm.CustomObjectClassesCustomObjectsRetrieveRequest = {}, - requestOptions?: CustomObjectsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise( - this.__customObjectClassesCustomObjectsRetrieve(custom_object_class_id, id, request, requestOptions), - ); - } - - private async __customObjectClassesCustomObjectsRetrieve( - custom_object_class_id: string, - id: string, - request: Merge.crm.CustomObjectClassesCustomObjectsRetrieveRequest = {}, - requestOptions?: CustomObjectsClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeRemoteFields, includeShellData } = request; - const _queryParams: Record = { - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `crm/v1/custom-object-classes/${core.url.encodePathParam(custom_object_class_id)}/custom-objects/${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.crm.CustomObject.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}", - ); - } - - /** - * Returns metadata for `CRMCustomObject` POSTs. - * - * @param {string} custom_object_class_id - * @param {CustomObjectsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve("custom_object_class_id") - */ - public customObjectClassesCustomObjectsMetaPostRetrieve( - custom_object_class_id: string, - requestOptions?: CustomObjectsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise( - this.__customObjectClassesCustomObjectsMetaPostRetrieve(custom_object_class_id, requestOptions), - ); - } - - private async __customObjectClassesCustomObjectsMetaPostRetrieve( - custom_object_class_id: string, - requestOptions?: CustomObjectsClient.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/custom-object-classes/${core.url.encodePathParam(custom_object_class_id)}/custom-objects/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.crm.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", - "/crm/v1/custom-object-classes/{custom_object_class_id}/custom-objects/meta/post", - ); - } - - /** - * Returns a list of `RemoteFieldClass` objects. - * - * @param {Merge.crm.CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest} request - * @param {CustomObjectsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * }) - */ - public customObjectClassesCustomObjectsRemoteFieldClassesList( - request: Merge.crm.CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest = {}, - requestOptions?: CustomObjectsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise( - this.__customObjectClassesCustomObjectsRemoteFieldClassesList(request, requestOptions), - ); - } - - 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, - }); - 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/index.ts b/src/api/resources/crm/resources/customObjects/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/crm/resources/customObjects/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/crm/resources/customObjects/client/requests/CrmCustomObjectEndpointRequest.ts b/src/api/resources/crm/resources/customObjects/client/requests/CrmCustomObjectEndpointRequest.ts deleted file mode 100644 index 58daef2ba..000000000 --- a/src/api/resources/crm/resources/customObjects/client/requests/CrmCustomObjectEndpointRequest.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: { - * fields: { - * "test_field": "hello" - * } - * } - * } - */ -export interface CrmCustomObjectEndpointRequest { - /** 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.crm.CustomObjectRequest; -} diff --git a/src/api/resources/crm/resources/customObjects/client/requests/CustomObjectClassesCustomObjectsListRequest.ts b/src/api/resources/crm/resources/customObjects/client/requests/CustomObjectClassesCustomObjectsListRequest.ts deleted file mode 100644 index 1b224b424..000000000 --- a/src/api/resources/crm/resources/customObjects/client/requests/CustomObjectClassesCustomObjectsListRequest.ts +++ /dev/null @@ -1,42 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - * pageSize: 1, - * remoteId: "remote_id" - * } - */ -export interface CustomObjectClassesCustomObjectsListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include 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. */ - 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 deleted file mode 100644 index 98763ce36..000000000 --- a/src/api/resources/crm/resources/customObjects/client/requests/CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest.ts +++ /dev/null @@ -1,33 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * } - */ -export interface CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest { - /** 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 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 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. */ - pageSize?: number; -} diff --git a/src/api/resources/crm/resources/customObjects/client/requests/CustomObjectClassesCustomObjectsRetrieveRequest.ts b/src/api/resources/crm/resources/customObjects/client/requests/CustomObjectClassesCustomObjectsRetrieveRequest.ts deleted file mode 100644 index ab50f1eb1..000000000 --- a/src/api/resources/crm/resources/customObjects/client/requests/CustomObjectClassesCustomObjectsRetrieveRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * } - */ -export interface CustomObjectClassesCustomObjectsRetrieveRequest { - /** 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; -} diff --git a/src/api/resources/crm/resources/customObjects/client/requests/index.ts b/src/api/resources/crm/resources/customObjects/client/requests/index.ts deleted file mode 100644 index d93ec048d..000000000 --- a/src/api/resources/crm/resources/customObjects/client/requests/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export type { CrmCustomObjectEndpointRequest } from "./CrmCustomObjectEndpointRequest"; -export type { CustomObjectClassesCustomObjectsListRequest } from "./CustomObjectClassesCustomObjectsListRequest"; -export type { CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest } from "./CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest"; -export type { CustomObjectClassesCustomObjectsRetrieveRequest } from "./CustomObjectClassesCustomObjectsRetrieveRequest"; diff --git a/src/api/resources/crm/resources/customObjects/exports.ts b/src/api/resources/crm/resources/customObjects/exports.ts deleted file mode 100644 index 23ffd465c..000000000 --- a/src/api/resources/crm/resources/customObjects/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { CustomObjectsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/customObjects/index.ts b/src/api/resources/crm/resources/customObjects/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/crm/resources/customObjects/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/crm/resources/deleteAccount/client/Client.ts b/src/api/resources/crm/resources/deleteAccount/client/Client.ts deleted file mode 100644 index d8516997b..000000000 --- a/src/api/resources/crm/resources/deleteAccount/client/Client.ts +++ /dev/null @@ -1,74 +0,0 @@ -// 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"; - -export declare namespace DeleteAccountClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class DeleteAccountClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: DeleteAccountClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Delete a linked account. - * - * @param {DeleteAccountClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.deleteAccount.delete() - */ - public delete(requestOptions?: DeleteAccountClient.RequestOptions): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__delete(requestOptions)); - } - - private async __delete(requestOptions?: DeleteAccountClient.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/delete-account", - ), - 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: undefined, rawResponse: _response.rawResponse }; - } - - if (_response.error.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/delete-account"); - } -} diff --git a/src/api/resources/crm/resources/deleteAccount/client/index.ts b/src/api/resources/crm/resources/deleteAccount/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/crm/resources/deleteAccount/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/crm/resources/deleteAccount/exports.ts b/src/api/resources/crm/resources/deleteAccount/exports.ts deleted file mode 100644 index b2e5e49b6..000000000 --- a/src/api/resources/crm/resources/deleteAccount/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { DeleteAccountClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/deleteAccount/index.ts b/src/api/resources/crm/resources/deleteAccount/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/crm/resources/deleteAccount/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/crm/resources/engagementTypes/client/Client.ts b/src/api/resources/crm/resources/engagementTypes/client/Client.ts deleted file mode 100644 index 4faca2ee1..000000000 --- a/src/api/resources/crm/resources/engagementTypes/client/Client.ts +++ /dev/null @@ -1,311 +0,0 @@ -// 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 EngagementTypesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class EngagementTypesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: EngagementTypesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `EngagementType` objects. - * - * @param {Merge.crm.EngagementTypesListRequest} request - * @param {EngagementTypesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns an `EngagementType` object with the given `id`. - * - * @param {string} id - * @param {Merge.crm.EngagementTypesRetrieveRequest} request - * @param {EngagementTypesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.engagementTypes.retrieve("id", { - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.crm.EngagementTypesRetrieveRequest = {}, - requestOptions?: EngagementTypesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.crm.EngagementTypesRetrieveRequest = {}, - requestOptions?: EngagementTypesClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeRemoteFields, includeShellData } = request; - const _queryParams: Record = { - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `crm/v1/engagement-types/${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.crm.EngagementType.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } - - /** - * Returns a list of `RemoteFieldClass` objects. - * - * @param {Merge.crm.EngagementTypesRemoteFieldClassesListRequest} request - * @param {EngagementTypesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.engagementTypes.remoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } -} diff --git a/src/api/resources/crm/resources/engagementTypes/client/index.ts b/src/api/resources/crm/resources/engagementTypes/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/crm/resources/engagementTypes/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/crm/resources/engagementTypes/client/requests/EngagementTypesListRequest.ts b/src/api/resources/crm/resources/engagementTypes/client/requests/EngagementTypesListRequest.ts deleted file mode 100644 index 4c6d75602..000000000 --- a/src/api/resources/crm/resources/engagementTypes/client/requests/EngagementTypesListRequest.ts +++ /dev/null @@ -1,42 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - * pageSize: 1, - * remoteId: "remote_id" - * } - */ -export interface EngagementTypesListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include 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. */ - 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 deleted file mode 100644 index 375e5a19b..000000000 --- a/src/api/resources/crm/resources/engagementTypes/client/requests/EngagementTypesRemoteFieldClassesListRequest.ts +++ /dev/null @@ -1,33 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * } - */ -export interface EngagementTypesRemoteFieldClassesListRequest { - /** 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 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 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. */ - pageSize?: number; -} diff --git a/src/api/resources/crm/resources/engagementTypes/client/requests/EngagementTypesRetrieveRequest.ts b/src/api/resources/crm/resources/engagementTypes/client/requests/EngagementTypesRetrieveRequest.ts deleted file mode 100644 index 2819426a7..000000000 --- a/src/api/resources/crm/resources/engagementTypes/client/requests/EngagementTypesRetrieveRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * } - */ -export interface EngagementTypesRetrieveRequest { - /** 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; -} diff --git a/src/api/resources/crm/resources/engagementTypes/client/requests/index.ts b/src/api/resources/crm/resources/engagementTypes/client/requests/index.ts deleted file mode 100644 index b3210a80a..000000000 --- a/src/api/resources/crm/resources/engagementTypes/client/requests/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type { EngagementTypesListRequest } from "./EngagementTypesListRequest"; -export type { EngagementTypesRemoteFieldClassesListRequest } from "./EngagementTypesRemoteFieldClassesListRequest"; -export type { EngagementTypesRetrieveRequest } from "./EngagementTypesRetrieveRequest"; diff --git a/src/api/resources/crm/resources/engagementTypes/exports.ts b/src/api/resources/crm/resources/engagementTypes/exports.ts deleted file mode 100644 index bb52b252c..000000000 --- a/src/api/resources/crm/resources/engagementTypes/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { EngagementTypesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/engagementTypes/index.ts b/src/api/resources/crm/resources/engagementTypes/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/crm/resources/engagementTypes/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/crm/resources/engagements/client/Client.ts b/src/api/resources/crm/resources/engagements/client/Client.ts deleted file mode 100644 index 891b1b1e1..000000000 --- a/src/api/resources/crm/resources/engagements/client/Client.ts +++ /dev/null @@ -1,631 +0,0 @@ -// 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 EngagementsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class EngagementsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: EngagementsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Engagement` objects. - * - * @param {Merge.crm.EngagementsListRequest} request - * @param {EngagementsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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") - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Creates an `Engagement` object with the given values. - * - * @param {Merge.crm.EngagementEndpointRequest} request - * @param {EngagementsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.engagements.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public create( - request: Merge.crm.EngagementEndpointRequest, - requestOptions?: EngagementsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.crm.EngagementEndpointRequest, - requestOptions?: EngagementsClient.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, - "crm/v1/engagements", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.crm.EngagementEndpointRequest.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.crm.EngagementResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/engagements"); - } - - /** - * Returns an `Engagement` object with the given `id`. - * - * @param {string} id - * @param {Merge.crm.EngagementsRetrieveRequest} request - * @param {EngagementsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.engagements.retrieve("id", { - * expand: "account", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.crm.EngagementsRetrieveRequest = {}, - requestOptions?: EngagementsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.crm.EngagementsRetrieveRequest = {}, - requestOptions?: EngagementsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeRemoteFields, includeShellData } = request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.crm.EngagementsRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `crm/v1/engagements/${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.crm.Engagement.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } - - /** - * Updates an `Engagement` object with the given `id`. - * - * @param {string} id - * @param {Merge.crm.PatchedEngagementEndpointRequest} request - * @param {EngagementsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.engagements.partialUpdate("id", { - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public partialUpdate( - id: string, - request: Merge.crm.PatchedEngagementEndpointRequest, - requestOptions?: EngagementsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__partialUpdate(id, request, requestOptions)); - } - - private async __partialUpdate( - id: string, - request: Merge.crm.PatchedEngagementEndpointRequest, - requestOptions?: EngagementsClient.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, - `crm/v1/engagements/${core.url.encodePathParam(id)}`, - ), - method: "PATCH", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.crm.PatchedEngagementEndpointRequest.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.crm.EngagementResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/crm/v1/engagements/{id}"); - } - - /** - * Returns metadata for `Engagement` PATCHs. - * - * @param {string} id - * @param {EngagementsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.engagements.metaPatchRetrieve("id") - */ - public metaPatchRetrieve( - id: string, - requestOptions?: EngagementsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPatchRetrieve(id, requestOptions)); - } - - private async __metaPatchRetrieve( - id: string, - requestOptions?: EngagementsClient.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/engagements/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.crm.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", - "/crm/v1/engagements/meta/patch/{id}", - ); - } - - /** - * Returns metadata for `Engagement` POSTs. - * - * @param {EngagementsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.engagements.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: EngagementsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: EngagementsClient.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/engagements/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.crm.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", "/crm/v1/engagements/meta/post"); - } - - /** - * Returns a list of `RemoteFieldClass` objects. - * - * @param {Merge.crm.EngagementsRemoteFieldClassesListRequest} request - * @param {EngagementsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.engagements.remoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } -} diff --git a/src/api/resources/crm/resources/engagements/client/index.ts b/src/api/resources/crm/resources/engagements/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/crm/resources/engagements/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/crm/resources/engagements/client/requests/EngagementEndpointRequest.ts b/src/api/resources/crm/resources/engagements/client/requests/EngagementEndpointRequest.ts deleted file mode 100644 index dd955e850..000000000 --- a/src/api/resources/crm/resources/engagements/client/requests/EngagementEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface EngagementEndpointRequest { - /** 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.crm.EngagementRequest; -} diff --git a/src/api/resources/crm/resources/engagements/client/requests/EngagementsListRequest.ts b/src/api/resources/crm/resources/engagements/client/requests/EngagementsListRequest.ts deleted file mode 100644 index 7083834aa..000000000 --- a/src/api/resources/crm/resources/engagements/client/requests/EngagementsListRequest.ts +++ /dev/null @@ -1,53 +0,0 @@ -// 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: "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") - * } - */ -export interface EngagementsListRequest { - /** 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.crm.EngagementsListRequestExpand; - /** 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. */ - pageSize?: number; - /** The API provider's ID for the given object. */ - remoteId?: string; - /** If provided, will only return engagements started after this datetime. */ - startedAfter?: Date; - /** If provided, will only return engagements started before this datetime. */ - startedBefore?: Date; -} diff --git a/src/api/resources/crm/resources/engagements/client/requests/EngagementsRemoteFieldClassesListRequest.ts b/src/api/resources/crm/resources/engagements/client/requests/EngagementsRemoteFieldClassesListRequest.ts deleted file mode 100644 index 8b2413649..000000000 --- a/src/api/resources/crm/resources/engagements/client/requests/EngagementsRemoteFieldClassesListRequest.ts +++ /dev/null @@ -1,33 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * } - */ -export interface EngagementsRemoteFieldClassesListRequest { - /** 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 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 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. */ - 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 deleted file mode 100644 index 9dab8b684..000000000 --- a/src/api/resources/crm/resources/engagements/client/requests/EngagementsRetrieveRequest.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * expand: "account", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * } - */ -export interface EngagementsRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.crm.EngagementsRetrieveRequestExpand; - /** 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; -} diff --git a/src/api/resources/crm/resources/engagements/client/requests/PatchedEngagementEndpointRequest.ts b/src/api/resources/crm/resources/engagements/client/requests/PatchedEngagementEndpointRequest.ts deleted file mode 100644 index 72bed2493..000000000 --- a/src/api/resources/crm/resources/engagements/client/requests/PatchedEngagementEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface PatchedEngagementEndpointRequest { - /** 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.crm.PatchedEngagementRequest; -} diff --git a/src/api/resources/crm/resources/engagements/client/requests/index.ts b/src/api/resources/crm/resources/engagements/client/requests/index.ts deleted file mode 100644 index d2cdba333..000000000 --- a/src/api/resources/crm/resources/engagements/client/requests/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type { EngagementEndpointRequest } from "./EngagementEndpointRequest"; -export type { EngagementsListRequest } from "./EngagementsListRequest"; -export type { EngagementsRemoteFieldClassesListRequest } from "./EngagementsRemoteFieldClassesListRequest"; -export type { EngagementsRetrieveRequest } from "./EngagementsRetrieveRequest"; -export type { PatchedEngagementEndpointRequest } from "./PatchedEngagementEndpointRequest"; diff --git a/src/api/resources/crm/resources/engagements/exports.ts b/src/api/resources/crm/resources/engagements/exports.ts deleted file mode 100644 index 0e5929b77..000000000 --- a/src/api/resources/crm/resources/engagements/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { EngagementsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/engagements/index.ts b/src/api/resources/crm/resources/engagements/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/crm/resources/engagements/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/api/resources/crm/resources/engagements/types/index.ts deleted file mode 100644 index 742b3ef68..000000000 --- a/src/api/resources/crm/resources/engagements/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./EngagementsListRequestExpand"; -export * from "./EngagementsRetrieveRequestExpand"; diff --git a/src/api/resources/crm/resources/fieldMapping/client/Client.ts b/src/api/resources/crm/resources/fieldMapping/client/Client.ts deleted file mode 100644 index 078d9e149..000000000 --- a/src/api/resources/crm/resources/fieldMapping/client/Client.ts +++ /dev/null @@ -1,473 +0,0 @@ -// 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 FieldMappingClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class FieldMappingClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: FieldMappingClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * 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/). - * - * @param {Merge.crm.FieldMappingsRetrieveRequest} request - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.fieldMapping.fieldMappingsRetrieve({ - * excludeRemoteFieldMetadata: true - * }) - */ - public fieldMappingsRetrieve( - request: Merge.crm.FieldMappingsRetrieveRequest = {}, - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__fieldMappingsRetrieve(request, requestOptions)); - } - - private async __fieldMappingsRetrieve( - request: Merge.crm.FieldMappingsRetrieveRequest = {}, - requestOptions?: FieldMappingClient.RequestOptions, - ): Promise> { - const { excludeRemoteFieldMetadata } = request; - const _queryParams: Record = { - exclude_remote_field_metadata: excludeRemoteFieldMetadata, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/field-mappings", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 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.FieldMappingApiInstanceResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/field-mappings"); - } - - /** - * 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. - * - * @param {Merge.crm.CreateFieldMappingRequest} request - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public fieldMappingsCreate( - request: Merge.crm.CreateFieldMappingRequest, - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__fieldMappingsCreate(request, requestOptions)); - } - - private async __fieldMappingsCreate( - request: Merge.crm.CreateFieldMappingRequest, - requestOptions?: FieldMappingClient.RequestOptions, - ): Promise> { - const { excludeRemoteFieldMetadata, ..._body } = request; - const _queryParams: Record = { - exclude_remote_field_metadata: excludeRemoteFieldMetadata, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/field-mappings", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.crm.CreateFieldMappingRequest.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.crm.FieldMappingInstanceResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/field-mappings"); - } - - /** - * 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. - * - * @param {string} field_mapping_id - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id") - */ - public fieldMappingsDestroy( - field_mapping_id: string, - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__fieldMappingsDestroy(field_mapping_id, requestOptions)); - } - - private async __fieldMappingsDestroy( - field_mapping_id: string, - requestOptions?: FieldMappingClient.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/field-mappings/${core.url.encodePathParam(field_mapping_id)}`, - ), - method: "DELETE", - 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.FieldMappingInstanceResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "DELETE", - "/crm/v1/field-mappings/{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. - * - * @param {string} field_mapping_id - * @param {Merge.crm.PatchedEditFieldMappingRequest} request - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id") - */ - public fieldMappingsPartialUpdate( - field_mapping_id: string, - request: Merge.crm.PatchedEditFieldMappingRequest = {}, - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise( - this.__fieldMappingsPartialUpdate(field_mapping_id, request, requestOptions), - ); - } - - private async __fieldMappingsPartialUpdate( - field_mapping_id: string, - request: Merge.crm.PatchedEditFieldMappingRequest = {}, - requestOptions?: FieldMappingClient.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/field-mappings/${core.url.encodePathParam(field_mapping_id)}`, - ), - method: "PATCH", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.crm.PatchedEditFieldMappingRequest.jsonOrThrow(request, { - 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.crm.FieldMappingInstanceResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "PATCH", - "/crm/v1/field-mappings/{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/). - * - * @param {Merge.crm.RemoteFieldsRetrieveRequest} request - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.fieldMapping.remoteFieldsRetrieve({ - * commonModels: "common_models", - * includeExampleValues: "include_example_values" - * }) - */ - public remoteFieldsRetrieve( - request: Merge.crm.RemoteFieldsRetrieveRequest = {}, - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldsRetrieve(request, requestOptions)); - } - - private async __remoteFieldsRetrieve( - request: Merge.crm.RemoteFieldsRetrieveRequest = {}, - requestOptions?: FieldMappingClient.RequestOptions, - ): Promise> { - const { commonModels, includeExampleValues } = request; - const _queryParams: Record = { - common_models: commonModels, - include_example_values: includeExampleValues, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/remote-fields", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 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.RemoteFieldApiResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/remote-fields"); - } - - /** - * 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/). - * - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.fieldMapping.targetFieldsRetrieve() - */ - public targetFieldsRetrieve( - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__targetFieldsRetrieve(requestOptions)); - } - - private async __targetFieldsRetrieve( - requestOptions?: FieldMappingClient.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/target-fields", - ), - 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.crm.ExternalTargetFieldApiResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/target-fields"); - } -} diff --git a/src/api/resources/crm/resources/fieldMapping/client/index.ts b/src/api/resources/crm/resources/fieldMapping/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/crm/resources/fieldMapping/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/crm/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/api/resources/crm/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts deleted file mode 100644 index e711ea5fc..000000000 --- a/src/api/resources/crm/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ /dev/null @@ -1,30 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * 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" - * } - */ -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; - /** 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. */ - targetFieldDescription: string; - /** 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; - /** The name of the Common Model that the remote field corresponds to in a given category. */ - commonModelName: string; -} diff --git a/src/api/resources/crm/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts b/src/api/resources/crm/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts deleted file mode 100644 index 7235c6e26..000000000 --- a/src/api/resources/crm/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * excludeRemoteFieldMetadata: true - * } - */ -export interface FieldMappingsRetrieveRequest { - /** 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; -} diff --git a/src/api/resources/crm/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts b/src/api/resources/crm/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts deleted file mode 100644 index 0efe65466..000000000 --- a/src/api/resources/crm/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * {} - */ -export interface PatchedEditFieldMappingRequest { - /** 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; -} diff --git a/src/api/resources/crm/resources/fieldMapping/client/requests/RemoteFieldsRetrieveRequest.ts b/src/api/resources/crm/resources/fieldMapping/client/requests/RemoteFieldsRetrieveRequest.ts deleted file mode 100644 index 99718436d..000000000 --- a/src/api/resources/crm/resources/fieldMapping/client/requests/RemoteFieldsRetrieveRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * commonModels: "common_models", - * includeExampleValues: "include_example_values" - * } - */ -export interface RemoteFieldsRetrieveRequest { - /** A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. */ - commonModels?: string; - /** If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. */ - includeExampleValues?: string; -} diff --git a/src/api/resources/crm/resources/fieldMapping/client/requests/index.ts b/src/api/resources/crm/resources/fieldMapping/client/requests/index.ts deleted file mode 100644 index 1b7bf82f2..000000000 --- a/src/api/resources/crm/resources/fieldMapping/client/requests/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export type { CreateFieldMappingRequest } from "./CreateFieldMappingRequest"; -export type { FieldMappingsRetrieveRequest } from "./FieldMappingsRetrieveRequest"; -export type { PatchedEditFieldMappingRequest } from "./PatchedEditFieldMappingRequest"; -export type { RemoteFieldsRetrieveRequest } from "./RemoteFieldsRetrieveRequest"; diff --git a/src/api/resources/crm/resources/fieldMapping/exports.ts b/src/api/resources/crm/resources/fieldMapping/exports.ts deleted file mode 100644 index 62e814785..000000000 --- a/src/api/resources/crm/resources/fieldMapping/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { FieldMappingClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/fieldMapping/index.ts b/src/api/resources/crm/resources/fieldMapping/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/crm/resources/fieldMapping/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/crm/resources/forceResync/client/Client.ts b/src/api/resources/crm/resources/forceResync/client/Client.ts deleted file mode 100644 index 77e496433..000000000 --- a/src/api/resources/crm/resources/forceResync/client/Client.ts +++ /dev/null @@ -1,89 +0,0 @@ -// 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 ForceResyncClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class ForceResyncClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: ForceResyncClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * 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. - * - * @param {ForceResyncClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.forceResync.syncStatusResyncCreate() - */ - public syncStatusResyncCreate( - requestOptions?: ForceResyncClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__syncStatusResyncCreate(requestOptions)); - } - - private async __syncStatusResyncCreate( - requestOptions?: ForceResyncClient.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/sync-status/resync", - ), - 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.forceResync.syncStatusResyncCreate.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/sync-status/resync"); - } -} diff --git a/src/api/resources/crm/resources/forceResync/client/index.ts b/src/api/resources/crm/resources/forceResync/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/crm/resources/forceResync/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/crm/resources/forceResync/exports.ts b/src/api/resources/crm/resources/forceResync/exports.ts deleted file mode 100644 index e9e97915f..000000000 --- a/src/api/resources/crm/resources/forceResync/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { ForceResyncClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/forceResync/index.ts b/src/api/resources/crm/resources/forceResync/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/crm/resources/forceResync/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/crm/resources/generateKey/client/Client.ts b/src/api/resources/crm/resources/generateKey/client/Client.ts deleted file mode 100644 index fbca66eb5..000000000 --- a/src/api/resources/crm/resources/generateKey/client/Client.ts +++ /dev/null @@ -1,97 +0,0 @@ -// 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 GenerateKeyClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class GenerateKeyClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: GenerateKeyClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Create a remote key. - * - * @param {Merge.crm.GenerateRemoteKeyRequest} request - * @param {GenerateKeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.generateKey.create({ - * name: "Remote Deployment Key 1" - * }) - */ - public create( - request: Merge.crm.GenerateRemoteKeyRequest, - requestOptions?: GenerateKeyClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.crm.GenerateRemoteKeyRequest, - requestOptions?: GenerateKeyClient.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/generate-key", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.crm.GenerateRemoteKeyRequest.jsonOrThrow(request, { 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.crm.RemoteKey.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/generate-key"); - } -} diff --git a/src/api/resources/crm/resources/generateKey/client/index.ts b/src/api/resources/crm/resources/generateKey/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/crm/resources/generateKey/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/crm/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts b/src/api/resources/crm/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts deleted file mode 100644 index 923e28af4..000000000 --- a/src/api/resources/crm/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * name: "Remote Deployment Key 1" - * } - */ -export interface GenerateRemoteKeyRequest { - /** The name of the remote key */ - name: string; -} diff --git a/src/api/resources/crm/resources/generateKey/client/requests/index.ts b/src/api/resources/crm/resources/generateKey/client/requests/index.ts deleted file mode 100644 index 61b0bc4ac..000000000 --- a/src/api/resources/crm/resources/generateKey/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { GenerateRemoteKeyRequest } from "./GenerateRemoteKeyRequest"; diff --git a/src/api/resources/crm/resources/generateKey/exports.ts b/src/api/resources/crm/resources/generateKey/exports.ts deleted file mode 100644 index e6761067f..000000000 --- a/src/api/resources/crm/resources/generateKey/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { GenerateKeyClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/generateKey/index.ts b/src/api/resources/crm/resources/generateKey/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/crm/resources/generateKey/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/crm/resources/index.ts b/src/api/resources/crm/resources/index.ts deleted file mode 100644 index 70bb3645f..000000000 --- a/src/api/resources/crm/resources/index.ts +++ /dev/null @@ -1,65 +0,0 @@ -export * as accountDetails from "./accountDetails"; -export * as accounts from "./accounts"; -export * from "./accounts/client/requests"; -export * as accountToken from "./accountToken"; -export * as associations from "./associations"; -export * from "./associations/client/requests"; -export * as associationTypes from "./associationTypes"; -export * from "./associationTypes/client/requests"; -export * as asyncPassthrough from "./asyncPassthrough"; -export * from "./asyncPassthrough/types"; -export * as auditTrail from "./auditTrail"; -export * from "./auditTrail/client/requests"; -export * as availableActions from "./availableActions"; -export * as contacts from "./contacts"; -export * from "./contacts/client/requests"; -export * from "./contacts/types"; -export * as customObjectClasses from "./customObjectClasses"; -export * from "./customObjectClasses/client/requests"; -export * as customObjects from "./customObjects"; -export * from "./customObjects/client/requests"; -export * as deleteAccount from "./deleteAccount"; -export * as engagements from "./engagements"; -export * from "./engagements/client/requests"; -export * from "./engagements/types"; -export * as engagementTypes from "./engagementTypes"; -export * from "./engagementTypes/client/requests"; -export * as fieldMapping from "./fieldMapping"; -export * from "./fieldMapping/client/requests"; -export * as forceResync from "./forceResync"; -export * as generateKey from "./generateKey"; -export * from "./generateKey/client/requests"; -export * as issues from "./issues"; -export * from "./issues/client/requests"; -export * from "./issues/types"; -export * as leads from "./leads"; -export * from "./leads/client/requests"; -export * from "./leads/types"; -export * as linkedAccounts from "./linkedAccounts"; -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 notes from "./notes"; -export * from "./notes/client/requests"; -export * from "./notes/types"; -export * as opportunities from "./opportunities"; -export * from "./opportunities/client/requests"; -export * from "./opportunities/types"; -export * as passthrough from "./passthrough"; -export * as regenerateKey from "./regenerateKey"; -export * from "./regenerateKey/client/requests"; -export * as scopes from "./scopes"; -export * from "./scopes/client/requests"; -export * as stages from "./stages"; -export * from "./stages/client/requests"; -export * as syncStatus from "./syncStatus"; -export * from "./syncStatus/client/requests"; -export * as tasks from "./tasks"; -export * from "./tasks/client/requests"; -export * from "./tasks/types"; -export * as users from "./users"; -export * from "./users/client/requests"; -export * as webhookReceivers from "./webhookReceivers"; -export * from "./webhookReceivers/client/requests"; diff --git a/src/api/resources/crm/resources/issues/client/Client.ts b/src/api/resources/crm/resources/issues/client/Client.ts deleted file mode 100644 index cfb60a06d..000000000 --- a/src/api/resources/crm/resources/issues/client/Client.ts +++ /dev/null @@ -1,209 +0,0 @@ -// 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 IssuesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class IssuesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: IssuesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Gets all issues for Organization. - * - * @param {Merge.crm.IssuesListRequest} request - * @param {IssuesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Get a specific issue. - * - * @param {string} id - * @param {IssuesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.issues.retrieve("id") - */ - public retrieve( - id: string, - requestOptions?: IssuesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, requestOptions)); - } - - private async __retrieve( - id: string, - requestOptions?: IssuesClient.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/issues/${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.crm.Issue.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/crm/resources/issues/client/index.ts b/src/api/resources/crm/resources/issues/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/crm/resources/issues/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/crm/resources/issues/client/requests/IssuesListRequest.ts b/src/api/resources/crm/resources/issues/client/requests/IssuesListRequest.ts deleted file mode 100644 index 6a42e8ce7..000000000 --- a/src/api/resources/crm/resources/issues/client/requests/IssuesListRequest.ts +++ /dev/null @@ -1,55 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * 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" - * } - */ -export interface IssuesListRequest { - accountToken?: string; - /** The pagination cursor value. */ - cursor?: string; - /** If included, will only include issues whose most recent action occurred before this time */ - endDate?: string; - endUserOrganizationName?: string; - /** If provided, will only return issues whose first incident time was after this datetime. */ - firstIncidentTimeAfter?: Date; - /** If provided, will only return issues whose first incident time was before this datetime. */ - firstIncidentTimeBefore?: Date; - /** If true, will include muted issues */ - includeMuted?: string; - integrationName?: string; - /** If provided, will only return issues whose last incident time was after this datetime. */ - lastIncidentTimeAfter?: Date; - /** If provided, will only return issues whose last incident time was before this datetime. */ - lastIncidentTimeBefore?: Date; - /** If provided, will only include issues pertaining to the linked account passed in. */ - linkedAccountId?: string; - /** Number of results to return per page. */ - pageSize?: number; - /** If included, will only include issues whose most recent action occurred after this time */ - startDate?: string; - /** - * Status of the issue. Options: ('ONGOING', 'RESOLVED') - * - * * `ONGOING` - ONGOING - * * `RESOLVED` - RESOLVED - */ - status?: Merge.crm.IssuesListRequestStatus; -} diff --git a/src/api/resources/crm/resources/issues/client/requests/index.ts b/src/api/resources/crm/resources/issues/client/requests/index.ts deleted file mode 100644 index 169c5eb5a..000000000 --- a/src/api/resources/crm/resources/issues/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { IssuesListRequest } from "./IssuesListRequest"; diff --git a/src/api/resources/crm/resources/issues/exports.ts b/src/api/resources/crm/resources/issues/exports.ts deleted file mode 100644 index 85da34cb7..000000000 --- a/src/api/resources/crm/resources/issues/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { IssuesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/issues/index.ts b/src/api/resources/crm/resources/issues/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/crm/resources/issues/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/crm/resources/issues/types/IssuesListRequestStatus.ts b/src/api/resources/crm/resources/issues/types/IssuesListRequestStatus.ts deleted file mode 100644 index 6429e7e23..000000000 --- a/src/api/resources/crm/resources/issues/types/IssuesListRequestStatus.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const IssuesListRequestStatus = { - Ongoing: "ONGOING", - Resolved: "RESOLVED", -} as const; -export type IssuesListRequestStatus = (typeof IssuesListRequestStatus)[keyof typeof IssuesListRequestStatus]; diff --git a/src/api/resources/crm/resources/issues/types/index.ts b/src/api/resources/crm/resources/issues/types/index.ts deleted file mode 100644 index 554cdf48c..000000000 --- a/src/api/resources/crm/resources/issues/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./IssuesListRequestStatus"; diff --git a/src/api/resources/crm/resources/leads/client/Client.ts b/src/api/resources/crm/resources/leads/client/Client.ts deleted file mode 100644 index 70b5eaf5f..000000000 --- a/src/api/resources/crm/resources/leads/client/Client.ts +++ /dev/null @@ -1,482 +0,0 @@ -// 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 LeadsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class LeadsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: LeadsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Lead` objects. - * - * @param {Merge.crm.LeadsListRequest} request - * @param {LeadsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Creates a `Lead` object with the given values. - * - * @param {Merge.crm.LeadEndpointRequest} request - * @param {LeadsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.leads.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public create( - request: Merge.crm.LeadEndpointRequest, - requestOptions?: LeadsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.crm.LeadEndpointRequest, - requestOptions?: LeadsClient.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, - "crm/v1/leads", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.crm.LeadEndpointRequest.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.crm.LeadResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/leads"); - } - - /** - * Returns a `Lead` object with the given `id`. - * - * @param {string} id - * @param {Merge.crm.LeadsRetrieveRequest} request - * @param {LeadsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.leads.retrieve("id", { - * expand: "converted_account", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.crm.LeadsRetrieveRequest = {}, - requestOptions?: LeadsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.crm.LeadsRetrieveRequest = {}, - requestOptions?: LeadsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeRemoteFields, includeShellData } = request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.crm.LeadsRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `crm/v1/leads/${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.crm.Lead.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } - - /** - * Returns metadata for `Lead` POSTs. - * - * @param {LeadsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.leads.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: LeadsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: LeadsClient.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/leads/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.crm.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", "/crm/v1/leads/meta/post"); - } - - /** - * Returns a list of `RemoteFieldClass` objects. - * - * @param {Merge.crm.LeadsRemoteFieldClassesListRequest} request - * @param {LeadsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.leads.remoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } -} diff --git a/src/api/resources/crm/resources/leads/client/index.ts b/src/api/resources/crm/resources/leads/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/crm/resources/leads/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/crm/resources/leads/client/requests/LeadEndpointRequest.ts b/src/api/resources/crm/resources/leads/client/requests/LeadEndpointRequest.ts deleted file mode 100644 index 106e04157..000000000 --- a/src/api/resources/crm/resources/leads/client/requests/LeadEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface LeadEndpointRequest { - /** 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.crm.LeadRequest; -} diff --git a/src/api/resources/crm/resources/leads/client/requests/LeadsListRequest.ts b/src/api/resources/crm/resources/leads/client/requests/LeadsListRequest.ts deleted file mode 100644 index bae97c7a0..000000000 --- a/src/api/resources/crm/resources/leads/client/requests/LeadsListRequest.ts +++ /dev/null @@ -1,62 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * 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" - * } - */ -export interface LeadsListRequest { - /** If provided, will only return leads with this account. */ - convertedAccountId?: string; - /** If provided, will only return leads with this contact. */ - convertedContactId?: string; - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** If provided, will only return contacts 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; - /** 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; - /** If provided, will only return leads with this owner. */ - ownerId?: string; - /** Number of results to return per page. */ - pageSize?: number; - /** If provided, will only return contacts matching the phone numbers; multiple phone numbers can be separated by commas. */ - phoneNumbers?: string; - /** The API provider's ID for the given object. */ - remoteId?: 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 deleted file mode 100644 index 9a14bd80d..000000000 --- a/src/api/resources/crm/resources/leads/client/requests/LeadsRemoteFieldClassesListRequest.ts +++ /dev/null @@ -1,33 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * } - */ -export interface LeadsRemoteFieldClassesListRequest { - /** 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 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 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. */ - 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 deleted file mode 100644 index bc9e60540..000000000 --- a/src/api/resources/crm/resources/leads/client/requests/LeadsRetrieveRequest.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * expand: "converted_account", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * } - */ -export interface LeadsRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.crm.LeadsRetrieveRequestExpand; - /** 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; -} diff --git a/src/api/resources/crm/resources/leads/client/requests/index.ts b/src/api/resources/crm/resources/leads/client/requests/index.ts deleted file mode 100644 index 78490c013..000000000 --- a/src/api/resources/crm/resources/leads/client/requests/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export type { LeadEndpointRequest } from "./LeadEndpointRequest"; -export type { LeadsListRequest } from "./LeadsListRequest"; -export type { LeadsRemoteFieldClassesListRequest } from "./LeadsRemoteFieldClassesListRequest"; -export type { LeadsRetrieveRequest } from "./LeadsRetrieveRequest"; diff --git a/src/api/resources/crm/resources/leads/exports.ts b/src/api/resources/crm/resources/leads/exports.ts deleted file mode 100644 index 06f5e3f29..000000000 --- a/src/api/resources/crm/resources/leads/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { LeadsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/leads/index.ts b/src/api/resources/crm/resources/leads/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/crm/resources/leads/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/api/resources/crm/resources/leads/types/index.ts deleted file mode 100644 index 139d390d0..000000000 --- a/src/api/resources/crm/resources/leads/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./LeadsListRequestExpand"; -export * from "./LeadsRetrieveRequestExpand"; diff --git a/src/api/resources/crm/resources/linkToken/client/Client.ts b/src/api/resources/crm/resources/linkToken/client/Client.ts deleted file mode 100644 index 3021f9774..000000000 --- a/src/api/resources/crm/resources/linkToken/client/Client.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 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 LinkTokenClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class LinkTokenClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: LinkTokenClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Creates a link token to be used when linking a new end user. - * - * @param {Merge.crm.EndUserDetailsRequest} request - * @param {LinkTokenClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.linkToken.create({ - * endUserEmailAddress: "example@gmail.com", - * endUserOrganizationName: "Test Organization", - * endUserOriginId: "12345", - * categories: ["hris", "ats"] - * }) - */ - public create( - request: Merge.crm.EndUserDetailsRequest, - requestOptions?: LinkTokenClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.crm.EndUserDetailsRequest, - requestOptions?: LinkTokenClient.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/link-token", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.crm.EndUserDetailsRequest.jsonOrThrow(request, { 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.crm.LinkToken.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/link-token"); - } -} diff --git a/src/api/resources/crm/resources/linkToken/client/index.ts b/src/api/resources/crm/resources/linkToken/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/crm/resources/linkToken/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/crm/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/api/resources/crm/resources/linkToken/client/requests/EndUserDetailsRequest.ts deleted file mode 100644 index 6411244d0..000000000 --- a/src/api/resources/crm/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ /dev/null @@ -1,46 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * endUserEmailAddress: "example@gmail.com", - * endUserOrganizationName: "Test Organization", - * endUserOriginId: "12345", - * categories: ["hris", "ats"] - * } - */ -export interface EndUserDetailsRequest { - /** Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. */ - endUserEmailAddress: string; - /** Your end user's organization. */ - endUserOrganizationName: string; - /** This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. */ - endUserOriginId: string; - /** The integration categories to show in Merge Link. */ - categories: Merge.crm.CategoriesEnum[]; - /** The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. */ - integration?: string; - /** An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. */ - linkExpiryMins?: number; - /** Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. */ - shouldCreateMagicLinkUrl?: boolean; - /** Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. */ - hideAdminMagicLink?: boolean; - /** An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. */ - commonModels?: Merge.crm.CommonModelScopesBodyRequest[]; - /** When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. */ - categoryCommonModelScopes?: Record; - /** - * The following subset of IETF language tags can be used to configure localization. - * - * * `en` - en - * * `de` - de - */ - language?: Merge.crm.EndUserDetailsRequestLanguage; - /** The boolean that indicates whether initial, periodic, and force syncs will be disabled. */ - areSyncsDisabled?: boolean; - /** A JSON object containing integration-specific configuration options. */ - integrationSpecificConfig?: Record; -} diff --git a/src/api/resources/crm/resources/linkToken/client/requests/index.ts b/src/api/resources/crm/resources/linkToken/client/requests/index.ts deleted file mode 100644 index 67eabb553..000000000 --- a/src/api/resources/crm/resources/linkToken/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { EndUserDetailsRequest } from "./EndUserDetailsRequest"; diff --git a/src/api/resources/crm/resources/linkToken/exports.ts b/src/api/resources/crm/resources/linkToken/exports.ts deleted file mode 100644 index 10e007018..000000000 --- a/src/api/resources/crm/resources/linkToken/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { LinkTokenClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/linkToken/index.ts b/src/api/resources/crm/resources/linkToken/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/crm/resources/linkToken/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/crm/resources/linkToken/types/EndUserDetailsRequestLanguage.ts b/src/api/resources/crm/resources/linkToken/types/EndUserDetailsRequestLanguage.ts deleted file mode 100644 index 7eb9f98ce..000000000 --- a/src/api/resources/crm/resources/linkToken/types/EndUserDetailsRequestLanguage.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 following subset of IETF language tags can be used to configure localization. - * - * * `en` - en - * * `de` - de - */ -export type EndUserDetailsRequestLanguage = Merge.crm.LanguageEnum | string; diff --git a/src/api/resources/crm/resources/linkToken/types/index.ts b/src/api/resources/crm/resources/linkToken/types/index.ts deleted file mode 100644 index c90e13c37..000000000 --- a/src/api/resources/crm/resources/linkToken/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./EndUserDetailsRequestLanguage"; diff --git a/src/api/resources/crm/resources/linkedAccounts/client/Client.ts b/src/api/resources/crm/resources/linkedAccounts/client/Client.ts deleted file mode 100644 index 76adf07f6..000000000 --- a/src/api/resources/crm/resources/linkedAccounts/client/Client.ts +++ /dev/null @@ -1,141 +0,0 @@ -// 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 LinkedAccountsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class LinkedAccountsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: LinkedAccountsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * List linked accounts for your organization. - * - * @param {Merge.crm.LinkedAccountsListRequest} request - * @param {LinkedAccountsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } -} diff --git a/src/api/resources/crm/resources/linkedAccounts/client/index.ts b/src/api/resources/crm/resources/linkedAccounts/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/crm/resources/linkedAccounts/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/crm/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts b/src/api/resources/crm/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts deleted file mode 100644 index 5b780f089..000000000 --- a/src/api/resources/crm/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts +++ /dev/null @@ -1,59 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * 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" - * } - */ -export interface LinkedAccountsListRequest { - /** - * Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - * - * * `hris` - hris - * * `ats` - ats - * * `accounting` - accounting - * * `ticketing` - ticketing - * * `crm` - crm - * * `mktg` - mktg - * * `filestorage` - filestorage - */ - category?: Merge.crm.LinkedAccountsListRequestCategory; - /** The pagination cursor value. */ - cursor?: string; - /** If provided, will only return linked accounts associated with the given email address. */ - endUserEmailAddress?: string; - /** If provided, will only return linked accounts associated with the given organization name. */ - endUserOrganizationName?: string; - /** If provided, will only return linked accounts associated with the given origin ID. */ - endUserOriginId?: string; - /** Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. */ - endUserOriginIds?: string; - id?: string; - /** Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. */ - ids?: string; - /** If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. */ - includeDuplicates?: boolean; - /** If provided, will only return linked accounts associated with the given integration name. */ - 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. */ - pageSize?: number; - /** Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` */ - status?: string; -} diff --git a/src/api/resources/crm/resources/linkedAccounts/client/requests/index.ts b/src/api/resources/crm/resources/linkedAccounts/client/requests/index.ts deleted file mode 100644 index ae4db9c3b..000000000 --- a/src/api/resources/crm/resources/linkedAccounts/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { LinkedAccountsListRequest } from "./LinkedAccountsListRequest"; diff --git a/src/api/resources/crm/resources/linkedAccounts/exports.ts b/src/api/resources/crm/resources/linkedAccounts/exports.ts deleted file mode 100644 index 236b70b1a..000000000 --- a/src/api/resources/crm/resources/linkedAccounts/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { LinkedAccountsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/linkedAccounts/index.ts b/src/api/resources/crm/resources/linkedAccounts/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/crm/resources/linkedAccounts/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/crm/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts b/src/api/resources/crm/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts deleted file mode 100644 index 61bd028eb..000000000 --- a/src/api/resources/crm/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const LinkedAccountsListRequestCategory = { - Accounting: "accounting", - Ats: "ats", - Crm: "crm", - Filestorage: "filestorage", - Hris: "hris", - Mktg: "mktg", - Ticketing: "ticketing", -} as const; -export type LinkedAccountsListRequestCategory = - (typeof LinkedAccountsListRequestCategory)[keyof typeof LinkedAccountsListRequestCategory]; diff --git a/src/api/resources/crm/resources/linkedAccounts/types/index.ts b/src/api/resources/crm/resources/linkedAccounts/types/index.ts deleted file mode 100644 index 91de6010a..000000000 --- a/src/api/resources/crm/resources/linkedAccounts/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./LinkedAccountsListRequestCategory"; diff --git a/src/api/resources/crm/resources/notes/client/Client.ts b/src/api/resources/crm/resources/notes/client/Client.ts deleted file mode 100644 index 5ff779b18..000000000 --- a/src/api/resources/crm/resources/notes/client/Client.ts +++ /dev/null @@ -1,479 +0,0 @@ -// 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 NotesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class NotesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: NotesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Note` objects. - * - * @param {Merge.crm.NotesListRequest} request - * @param {NotesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Creates a `Note` object with the given values. - * - * @param {Merge.crm.NoteEndpointRequest} request - * @param {NotesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.notes.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public create( - request: Merge.crm.NoteEndpointRequest, - requestOptions?: NotesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.crm.NoteEndpointRequest, - requestOptions?: NotesClient.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, - "crm/v1/notes", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.crm.NoteEndpointRequest.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.crm.NoteResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/notes"); - } - - /** - * Returns a `Note` object with the given `id`. - * - * @param {string} id - * @param {Merge.crm.NotesRetrieveRequest} request - * @param {NotesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.notes.retrieve("id", { - * expand: "account", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.crm.NotesRetrieveRequest = {}, - requestOptions?: NotesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.crm.NotesRetrieveRequest = {}, - requestOptions?: NotesClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeRemoteFields, includeShellData } = request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.crm.NotesRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `crm/v1/notes/${core.url.encodePathParam(id)}`, - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, - }); - if (_response.ok) { - return { - data: serializers.crm.Note.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } - - /** - * Returns metadata for `Note` POSTs. - * - * @param {NotesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.notes.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: NotesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: NotesClient.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/notes/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.crm.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", "/crm/v1/notes/meta/post"); - } - - /** - * Returns a list of `RemoteFieldClass` objects. - * - * @param {Merge.crm.NotesRemoteFieldClassesListRequest} request - * @param {NotesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.notes.remoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } -} diff --git a/src/api/resources/crm/resources/notes/client/index.ts b/src/api/resources/crm/resources/notes/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/crm/resources/notes/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/crm/resources/notes/client/requests/NoteEndpointRequest.ts b/src/api/resources/crm/resources/notes/client/requests/NoteEndpointRequest.ts deleted file mode 100644 index 8b9a86d8b..000000000 --- a/src/api/resources/crm/resources/notes/client/requests/NoteEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface NoteEndpointRequest { - /** 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.crm.NoteRequest; -} diff --git a/src/api/resources/crm/resources/notes/client/requests/NotesListRequest.ts b/src/api/resources/crm/resources/notes/client/requests/NotesListRequest.ts deleted file mode 100644 index 1e1817dcc..000000000 --- a/src/api/resources/crm/resources/notes/client/requests/NotesListRequest.ts +++ /dev/null @@ -1,59 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * 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" - * } - */ -export interface NotesListRequest { - /** If provided, will only return notes with this account. */ - accountId?: string; - /** If provided, will only return notes with 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.crm.NotesListRequestExpand; - /** 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; - /** If provided, will only return notes with this opportunity. */ - opportunityId?: string; - /** If provided, will only return notes with this owner. */ - ownerId?: string; - /** 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/crm/resources/notes/client/requests/NotesRemoteFieldClassesListRequest.ts b/src/api/resources/crm/resources/notes/client/requests/NotesRemoteFieldClassesListRequest.ts deleted file mode 100644 index fe008a6bc..000000000 --- a/src/api/resources/crm/resources/notes/client/requests/NotesRemoteFieldClassesListRequest.ts +++ /dev/null @@ -1,33 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * } - */ -export interface NotesRemoteFieldClassesListRequest { - /** 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 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 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. */ - 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 deleted file mode 100644 index 81790928d..000000000 --- a/src/api/resources/crm/resources/notes/client/requests/NotesRetrieveRequest.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * expand: "account", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * } - */ -export interface NotesRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.crm.NotesRetrieveRequestExpand; - /** 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; -} diff --git a/src/api/resources/crm/resources/notes/client/requests/index.ts b/src/api/resources/crm/resources/notes/client/requests/index.ts deleted file mode 100644 index a6d2aea7c..000000000 --- a/src/api/resources/crm/resources/notes/client/requests/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export type { NoteEndpointRequest } from "./NoteEndpointRequest"; -export type { NotesListRequest } from "./NotesListRequest"; -export type { NotesRemoteFieldClassesListRequest } from "./NotesRemoteFieldClassesListRequest"; -export type { NotesRetrieveRequest } from "./NotesRetrieveRequest"; diff --git a/src/api/resources/crm/resources/notes/exports.ts b/src/api/resources/crm/resources/notes/exports.ts deleted file mode 100644 index 7730e4aa7..000000000 --- a/src/api/resources/crm/resources/notes/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { NotesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/notes/index.ts b/src/api/resources/crm/resources/notes/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/crm/resources/notes/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/api/resources/crm/resources/notes/types/index.ts deleted file mode 100644 index 619a79b71..000000000 --- a/src/api/resources/crm/resources/notes/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./NotesListRequestExpand"; -export * from "./NotesRetrieveRequestExpand"; diff --git a/src/api/resources/crm/resources/opportunities/client/Client.ts b/src/api/resources/crm/resources/opportunities/client/Client.ts deleted file mode 100644 index c51c21345..000000000 --- a/src/api/resources/crm/resources/opportunities/client/Client.ts +++ /dev/null @@ -1,661 +0,0 @@ -// 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 OpportunitiesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class OpportunitiesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: OpportunitiesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Opportunity` objects. - * - * @param {Merge.crm.OpportunitiesListRequest} request - * @param {OpportunitiesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Creates an `Opportunity` object with the given values. - * - * @param {Merge.crm.OpportunityEndpointRequest} request - * @param {OpportunitiesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.opportunities.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public create( - request: Merge.crm.OpportunityEndpointRequest, - requestOptions?: OpportunitiesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.crm.OpportunityEndpointRequest, - requestOptions?: OpportunitiesClient.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, - "crm/v1/opportunities", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.crm.OpportunityEndpointRequest.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.crm.OpportunityResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/opportunities"); - } - - /** - * Returns an `Opportunity` object with the given `id`. - * - * @param {string} id - * @param {Merge.crm.OpportunitiesRetrieveRequest} request - * @param {OpportunitiesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.opportunities.retrieve("id", { - * expand: "account", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * remoteFields: "status", - * showEnumOrigins: "status" - * }) - */ - public retrieve( - id: string, - request: Merge.crm.OpportunitiesRetrieveRequest = {}, - requestOptions?: OpportunitiesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.crm.OpportunitiesRetrieveRequest = {}, - requestOptions?: OpportunitiesClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeRemoteFields, includeShellData, remoteFields, showEnumOrigins } = - request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.crm.OpportunitiesRetrieveRequestExpand.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, - `crm/v1/opportunities/${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.crm.Opportunity.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } - - /** - * Updates an `Opportunity` object with the given `id`. - * - * @param {string} id - * @param {Merge.crm.PatchedOpportunityEndpointRequest} request - * @param {OpportunitiesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.opportunities.partialUpdate("id", { - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public partialUpdate( - id: string, - request: Merge.crm.PatchedOpportunityEndpointRequest, - requestOptions?: OpportunitiesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__partialUpdate(id, request, requestOptions)); - } - - private async __partialUpdate( - id: string, - request: Merge.crm.PatchedOpportunityEndpointRequest, - requestOptions?: OpportunitiesClient.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, - `crm/v1/opportunities/${core.url.encodePathParam(id)}`, - ), - method: "PATCH", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.crm.PatchedOpportunityEndpointRequest.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.crm.OpportunityResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/crm/v1/opportunities/{id}"); - } - - /** - * Returns metadata for `Opportunity` PATCHs. - * - * @param {string} id - * @param {OpportunitiesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.opportunities.metaPatchRetrieve("id") - */ - public metaPatchRetrieve( - id: string, - requestOptions?: OpportunitiesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPatchRetrieve(id, requestOptions)); - } - - private async __metaPatchRetrieve( - id: string, - requestOptions?: OpportunitiesClient.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/opportunities/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.crm.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", - "/crm/v1/opportunities/meta/patch/{id}", - ); - } - - /** - * Returns metadata for `Opportunity` POSTs. - * - * @param {OpportunitiesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.opportunities.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: OpportunitiesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: OpportunitiesClient.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/opportunities/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.crm.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", - "/crm/v1/opportunities/meta/post", - ); - } - - /** - * Returns a list of `RemoteFieldClass` objects. - * - * @param {Merge.crm.OpportunitiesRemoteFieldClassesListRequest} request - * @param {OpportunitiesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.opportunities.remoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } -} diff --git a/src/api/resources/crm/resources/opportunities/client/index.ts b/src/api/resources/crm/resources/opportunities/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/crm/resources/opportunities/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/crm/resources/opportunities/client/requests/OpportunitiesListRequest.ts b/src/api/resources/crm/resources/opportunities/client/requests/OpportunitiesListRequest.ts deleted file mode 100644 index 9ac6d37c0..000000000 --- a/src/api/resources/crm/resources/opportunities/client/requests/OpportunitiesListRequest.ts +++ /dev/null @@ -1,74 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * 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" - * } - */ -export interface OpportunitiesListRequest { - /** If provided, will only return opportunities with this account. */ - accountId?: 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.crm.OpportunitiesListRequestExpand; - /** 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; - /** If provided, will only return opportunities with this owner. */ - ownerId?: string; - /** Number of results to return per page. */ - pageSize?: number; - /** If provided, will only return opportunities created in the third party platform after this datetime. */ - remoteCreatedAfter?: Date; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: "status"; - /** The API provider's ID for the given object. */ - remoteId?: string; - /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ - showEnumOrigins?: "status"; - /** If provided, will only return opportunities with this stage. */ - stageId?: string; - /** - * If provided, will only return opportunities with this status. Options: ('OPEN', 'WON', 'LOST') - * - * * `OPEN` - OPEN - * * `WON` - WON - * * `LOST` - LOST - */ - status?: Merge.crm.OpportunitiesListRequestStatus; -} diff --git a/src/api/resources/crm/resources/opportunities/client/requests/OpportunitiesRemoteFieldClassesListRequest.ts b/src/api/resources/crm/resources/opportunities/client/requests/OpportunitiesRemoteFieldClassesListRequest.ts deleted file mode 100644 index 9cd78691d..000000000 --- a/src/api/resources/crm/resources/opportunities/client/requests/OpportunitiesRemoteFieldClassesListRequest.ts +++ /dev/null @@ -1,33 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * } - */ -export interface OpportunitiesRemoteFieldClassesListRequest { - /** 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 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 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. */ - 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 deleted file mode 100644 index 00cd01800..000000000 --- a/src/api/resources/crm/resources/opportunities/client/requests/OpportunitiesRetrieveRequest.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * expand: "account", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * remoteFields: "status", - * showEnumOrigins: "status" - * } - */ -export interface OpportunitiesRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.crm.OpportunitiesRetrieveRequestExpand; - /** 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/crm/resources/opportunities/client/requests/OpportunityEndpointRequest.ts b/src/api/resources/crm/resources/opportunities/client/requests/OpportunityEndpointRequest.ts deleted file mode 100644 index 0a2e65a3e..000000000 --- a/src/api/resources/crm/resources/opportunities/client/requests/OpportunityEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface OpportunityEndpointRequest { - /** 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.crm.OpportunityRequest; -} diff --git a/src/api/resources/crm/resources/opportunities/client/requests/PatchedOpportunityEndpointRequest.ts b/src/api/resources/crm/resources/opportunities/client/requests/PatchedOpportunityEndpointRequest.ts deleted file mode 100644 index d2dfaee52..000000000 --- a/src/api/resources/crm/resources/opportunities/client/requests/PatchedOpportunityEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface PatchedOpportunityEndpointRequest { - /** 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.crm.PatchedOpportunityRequest; -} diff --git a/src/api/resources/crm/resources/opportunities/client/requests/index.ts b/src/api/resources/crm/resources/opportunities/client/requests/index.ts deleted file mode 100644 index 549c0ce7e..000000000 --- a/src/api/resources/crm/resources/opportunities/client/requests/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type { OpportunitiesListRequest } from "./OpportunitiesListRequest"; -export type { OpportunitiesRemoteFieldClassesListRequest } from "./OpportunitiesRemoteFieldClassesListRequest"; -export type { OpportunitiesRetrieveRequest } from "./OpportunitiesRetrieveRequest"; -export type { OpportunityEndpointRequest } from "./OpportunityEndpointRequest"; -export type { PatchedOpportunityEndpointRequest } from "./PatchedOpportunityEndpointRequest"; diff --git a/src/api/resources/crm/resources/opportunities/exports.ts b/src/api/resources/crm/resources/opportunities/exports.ts deleted file mode 100644 index f7ae6f87e..000000000 --- a/src/api/resources/crm/resources/opportunities/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { OpportunitiesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/opportunities/index.ts b/src/api/resources/crm/resources/opportunities/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/crm/resources/opportunities/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/OpportunitiesListRequestStatus.ts b/src/api/resources/crm/resources/opportunities/types/OpportunitiesListRequestStatus.ts deleted file mode 100644 index 16b8f1471..000000000 --- a/src/api/resources/crm/resources/opportunities/types/OpportunitiesListRequestStatus.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const OpportunitiesListRequestStatus = { - Lost: "LOST", - Open: "OPEN", - Won: "WON", -} as const; -export type OpportunitiesListRequestStatus = - (typeof OpportunitiesListRequestStatus)[keyof typeof OpportunitiesListRequestStatus]; 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/index.ts b/src/api/resources/crm/resources/opportunities/types/index.ts deleted file mode 100644 index 0d6d5b6f1..000000000 --- a/src/api/resources/crm/resources/opportunities/types/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./OpportunitiesListRequestExpand"; -export * from "./OpportunitiesListRequestStatus"; -export * from "./OpportunitiesRetrieveRequestExpand"; diff --git a/src/api/resources/crm/resources/passthrough/client/Client.ts b/src/api/resources/crm/resources/passthrough/client/Client.ts deleted file mode 100644 index 317a4d8f2..000000000 --- a/src/api/resources/crm/resources/passthrough/client/Client.ts +++ /dev/null @@ -1,98 +0,0 @@ -// 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 PassthroughClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class PassthroughClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: PassthroughClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Pull data from an endpoint not currently supported by Merge. - * - * @param {Merge.crm.DataPassthroughRequest} request - * @param {PassthroughClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.passthrough.create({ - * method: "GET", - * path: "/scooters" - * }) - */ - public create( - request: Merge.crm.DataPassthroughRequest, - requestOptions?: PassthroughClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.crm.DataPassthroughRequest, - requestOptions?: PassthroughClient.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/passthrough", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.crm.DataPassthroughRequest.jsonOrThrow(request, { 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.crm.RemoteResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/passthrough"); - } -} diff --git a/src/api/resources/crm/resources/passthrough/client/index.ts b/src/api/resources/crm/resources/passthrough/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/crm/resources/passthrough/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/crm/resources/passthrough/exports.ts b/src/api/resources/crm/resources/passthrough/exports.ts deleted file mode 100644 index 645fbb4b8..000000000 --- a/src/api/resources/crm/resources/passthrough/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { PassthroughClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/passthrough/index.ts b/src/api/resources/crm/resources/passthrough/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/crm/resources/passthrough/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/crm/resources/regenerateKey/client/Client.ts b/src/api/resources/crm/resources/regenerateKey/client/Client.ts deleted file mode 100644 index 5e60dbb30..000000000 --- a/src/api/resources/crm/resources/regenerateKey/client/Client.ts +++ /dev/null @@ -1,99 +0,0 @@ -// 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 RegenerateKeyClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class RegenerateKeyClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: RegenerateKeyClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Exchange remote keys. - * - * @param {Merge.crm.RemoteKeyForRegenerationRequest} request - * @param {RegenerateKeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.regenerateKey.create({ - * name: "Remote Deployment Key 1" - * }) - */ - public create( - request: Merge.crm.RemoteKeyForRegenerationRequest, - requestOptions?: RegenerateKeyClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.crm.RemoteKeyForRegenerationRequest, - requestOptions?: RegenerateKeyClient.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/regenerate-key", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.crm.RemoteKeyForRegenerationRequest.jsonOrThrow(request, { - 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.crm.RemoteKey.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/regenerate-key"); - } -} diff --git a/src/api/resources/crm/resources/regenerateKey/client/index.ts b/src/api/resources/crm/resources/regenerateKey/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/crm/resources/regenerateKey/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/crm/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts b/src/api/resources/crm/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts deleted file mode 100644 index 19dc4fa80..000000000 --- a/src/api/resources/crm/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * name: "Remote Deployment Key 1" - * } - */ -export interface RemoteKeyForRegenerationRequest { - /** The name of the remote key */ - name: string; -} diff --git a/src/api/resources/crm/resources/regenerateKey/client/requests/index.ts b/src/api/resources/crm/resources/regenerateKey/client/requests/index.ts deleted file mode 100644 index 339a5503f..000000000 --- a/src/api/resources/crm/resources/regenerateKey/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { RemoteKeyForRegenerationRequest } from "./RemoteKeyForRegenerationRequest"; diff --git a/src/api/resources/crm/resources/regenerateKey/exports.ts b/src/api/resources/crm/resources/regenerateKey/exports.ts deleted file mode 100644 index f9276142f..000000000 --- a/src/api/resources/crm/resources/regenerateKey/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { RegenerateKeyClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/regenerateKey/index.ts b/src/api/resources/crm/resources/regenerateKey/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/crm/resources/regenerateKey/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/crm/resources/scopes/client/Client.ts b/src/api/resources/crm/resources/scopes/client/Client.ts deleted file mode 100644 index f5b34d6f6..000000000 --- a/src/api/resources/crm/resources/scopes/client/Client.ts +++ /dev/null @@ -1,253 +0,0 @@ -// 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 ScopesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class ScopesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: ScopesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * 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). - * - * @param {ScopesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.scopes.defaultScopesRetrieve() - */ - public defaultScopesRetrieve( - requestOptions?: ScopesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__defaultScopesRetrieve(requestOptions)); - } - - private async __defaultScopesRetrieve( - requestOptions?: ScopesClient.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/default-scopes", - ), - 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.crm.CommonModelScopeApi.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/default-scopes"); - } - - /** - * 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). - * - * @param {ScopesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.scopes.linkedAccountScopesRetrieve() - */ - public linkedAccountScopesRetrieve( - requestOptions?: ScopesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__linkedAccountScopesRetrieve(requestOptions)); - } - - private async __linkedAccountScopesRetrieve( - requestOptions?: ScopesClient.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/linked-account-scopes", - ), - 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.crm.CommonModelScopeApi.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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-account-scopes"); - } - - /** - * 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) - * - * @param {Merge.crm.LinkedAccountCommonModelScopeDeserializerRequest} request - * @param {ScopesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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 - * } - * } - * }] - * }) - */ - public linkedAccountScopesCreate( - request: Merge.crm.LinkedAccountCommonModelScopeDeserializerRequest, - requestOptions?: ScopesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__linkedAccountScopesCreate(request, requestOptions)); - } - - private async __linkedAccountScopesCreate( - request: Merge.crm.LinkedAccountCommonModelScopeDeserializerRequest, - requestOptions?: ScopesClient.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/linked-account-scopes", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.crm.LinkedAccountCommonModelScopeDeserializerRequest.jsonOrThrow(request, { - 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.crm.CommonModelScopeApi.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/linked-account-scopes", - ); - } -} diff --git a/src/api/resources/crm/resources/scopes/client/index.ts b/src/api/resources/crm/resources/scopes/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/crm/resources/scopes/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/crm/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts b/src/api/resources/crm/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts deleted file mode 100644 index 0fb0cec51..000000000 --- a/src/api/resources/crm/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts +++ /dev/null @@ -1,35 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * commonModels: [{ - * modelName: "Employee", - * modelPermissions: { - * "READ": { - * isEnabled: true - * }, - * "WRITE": { - * isEnabled: false - * } - * }, - * fieldPermissions: { - * enabledFields: ["avatar", "home_location"], - * disabledFields: ["work_location"] - * } - * }, { - * modelName: "Benefit", - * modelPermissions: { - * "WRITE": { - * isEnabled: false - * } - * } - * }] - * } - */ -export interface LinkedAccountCommonModelScopeDeserializerRequest { - /** The common models you want to update the scopes for */ - commonModels: Merge.crm.IndividualCommonModelScopeDeserializerRequest[]; -} diff --git a/src/api/resources/crm/resources/scopes/client/requests/index.ts b/src/api/resources/crm/resources/scopes/client/requests/index.ts deleted file mode 100644 index b77c0e5da..000000000 --- a/src/api/resources/crm/resources/scopes/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { LinkedAccountCommonModelScopeDeserializerRequest } from "./LinkedAccountCommonModelScopeDeserializerRequest"; diff --git a/src/api/resources/crm/resources/scopes/exports.ts b/src/api/resources/crm/resources/scopes/exports.ts deleted file mode 100644 index c641749fe..000000000 --- a/src/api/resources/crm/resources/scopes/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { ScopesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/scopes/index.ts b/src/api/resources/crm/resources/scopes/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/crm/resources/scopes/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/crm/resources/stages/client/Client.ts b/src/api/resources/crm/resources/stages/client/Client.ts deleted file mode 100644 index 4b0b4d991..000000000 --- a/src/api/resources/crm/resources/stages/client/Client.ts +++ /dev/null @@ -1,311 +0,0 @@ -// 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 StagesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class StagesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: StagesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Stage` objects. - * - * @param {Merge.crm.StagesListRequest} request - * @param {StagesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `Stage` object with the given `id`. - * - * @param {string} id - * @param {Merge.crm.StagesRetrieveRequest} request - * @param {StagesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.stages.retrieve("id", { - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.crm.StagesRetrieveRequest = {}, - requestOptions?: StagesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.crm.StagesRetrieveRequest = {}, - requestOptions?: StagesClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeRemoteFields, includeShellData } = request; - const _queryParams: Record = { - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `crm/v1/stages/${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.crm.Stage.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } - - /** - * Returns a list of `RemoteFieldClass` objects. - * - * @param {Merge.crm.StagesRemoteFieldClassesListRequest} request - * @param {StagesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.stages.remoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } -} diff --git a/src/api/resources/crm/resources/stages/client/index.ts b/src/api/resources/crm/resources/stages/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/crm/resources/stages/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/crm/resources/stages/client/requests/StagesListRequest.ts b/src/api/resources/crm/resources/stages/client/requests/StagesListRequest.ts deleted file mode 100644 index ea9774448..000000000 --- a/src/api/resources/crm/resources/stages/client/requests/StagesListRequest.ts +++ /dev/null @@ -1,42 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - * pageSize: 1, - * remoteId: "remote_id" - * } - */ -export interface StagesListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include 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. */ - 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 deleted file mode 100644 index d58b50088..000000000 --- a/src/api/resources/crm/resources/stages/client/requests/StagesRemoteFieldClassesListRequest.ts +++ /dev/null @@ -1,33 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * } - */ -export interface StagesRemoteFieldClassesListRequest { - /** 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 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 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. */ - pageSize?: number; -} diff --git a/src/api/resources/crm/resources/stages/client/requests/StagesRetrieveRequest.ts b/src/api/resources/crm/resources/stages/client/requests/StagesRetrieveRequest.ts deleted file mode 100644 index bbab07460..000000000 --- a/src/api/resources/crm/resources/stages/client/requests/StagesRetrieveRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * } - */ -export interface StagesRetrieveRequest { - /** 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; -} diff --git a/src/api/resources/crm/resources/stages/client/requests/index.ts b/src/api/resources/crm/resources/stages/client/requests/index.ts deleted file mode 100644 index bf4a55a58..000000000 --- a/src/api/resources/crm/resources/stages/client/requests/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type { StagesListRequest } from "./StagesListRequest"; -export type { StagesRemoteFieldClassesListRequest } from "./StagesRemoteFieldClassesListRequest"; -export type { StagesRetrieveRequest } from "./StagesRetrieveRequest"; diff --git a/src/api/resources/crm/resources/stages/exports.ts b/src/api/resources/crm/resources/stages/exports.ts deleted file mode 100644 index 95212684d..000000000 --- a/src/api/resources/crm/resources/stages/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { StagesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/stages/index.ts b/src/api/resources/crm/resources/stages/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/crm/resources/stages/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/crm/resources/syncStatus/client/Client.ts b/src/api/resources/crm/resources/syncStatus/client/Client.ts deleted file mode 100644 index 12a0e19ee..000000000 --- a/src/api/resources/crm/resources/syncStatus/client/Client.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 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 SyncStatusClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class SyncStatusClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: SyncStatusClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * 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). - * - * @param {Merge.crm.SyncStatusListRequest} request - * @param {SyncStatusClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.syncStatus.list({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * pageSize: 1 - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } -} diff --git a/src/api/resources/crm/resources/syncStatus/client/index.ts b/src/api/resources/crm/resources/syncStatus/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/crm/resources/syncStatus/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/crm/resources/syncStatus/client/requests/SyncStatusListRequest.ts b/src/api/resources/crm/resources/syncStatus/client/requests/SyncStatusListRequest.ts deleted file mode 100644 index 2bbace517..000000000 --- a/src/api/resources/crm/resources/syncStatus/client/requests/SyncStatusListRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * pageSize: 1 - * } - */ -export interface SyncStatusListRequest { - /** The pagination cursor value. */ - cursor?: string; - /** Number of results to return per page. */ - pageSize?: number; -} diff --git a/src/api/resources/crm/resources/syncStatus/client/requests/index.ts b/src/api/resources/crm/resources/syncStatus/client/requests/index.ts deleted file mode 100644 index 9c815333a..000000000 --- a/src/api/resources/crm/resources/syncStatus/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { SyncStatusListRequest } from "./SyncStatusListRequest"; diff --git a/src/api/resources/crm/resources/syncStatus/exports.ts b/src/api/resources/crm/resources/syncStatus/exports.ts deleted file mode 100644 index 9593edcc7..000000000 --- a/src/api/resources/crm/resources/syncStatus/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { SyncStatusClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/syncStatus/index.ts b/src/api/resources/crm/resources/syncStatus/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/crm/resources/syncStatus/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/crm/resources/tasks/client/Client.ts b/src/api/resources/crm/resources/tasks/client/Client.ts deleted file mode 100644 index 7801b6c2e..000000000 --- a/src/api/resources/crm/resources/tasks/client/Client.ts +++ /dev/null @@ -1,616 +0,0 @@ -// 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 TasksClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class TasksClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: TasksClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Task` objects. - * - * @param {Merge.crm.TasksListRequest} request - * @param {TasksClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Creates a `Task` object with the given values. - * - * @param {Merge.crm.TaskEndpointRequest} request - * @param {TasksClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.tasks.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public create( - request: Merge.crm.TaskEndpointRequest, - requestOptions?: TasksClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.crm.TaskEndpointRequest, - requestOptions?: TasksClient.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, - "crm/v1/tasks", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.crm.TaskEndpointRequest.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.crm.TaskResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/tasks"); - } - - /** - * Returns a `Task` object with the given `id`. - * - * @param {string} id - * @param {Merge.crm.TasksRetrieveRequest} request - * @param {TasksClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.tasks.retrieve("id", { - * expand: "account", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.crm.TasksRetrieveRequest = {}, - requestOptions?: TasksClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.crm.TasksRetrieveRequest = {}, - requestOptions?: TasksClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeRemoteFields, includeShellData } = request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.crm.TasksRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `crm/v1/tasks/${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.crm.Task.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } - - /** - * Updates a `Task` object with the given `id`. - * - * @param {string} id - * @param {Merge.crm.PatchedTaskEndpointRequest} request - * @param {TasksClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.tasks.partialUpdate("id", { - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public partialUpdate( - id: string, - request: Merge.crm.PatchedTaskEndpointRequest, - requestOptions?: TasksClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__partialUpdate(id, request, requestOptions)); - } - - private async __partialUpdate( - id: string, - request: Merge.crm.PatchedTaskEndpointRequest, - requestOptions?: TasksClient.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, - `crm/v1/tasks/${core.url.encodePathParam(id)}`, - ), - method: "PATCH", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.crm.PatchedTaskEndpointRequest.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.crm.TaskResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/crm/v1/tasks/{id}"); - } - - /** - * Returns metadata for `Task` PATCHs. - * - * @param {string} id - * @param {TasksClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.tasks.metaPatchRetrieve("id") - */ - public metaPatchRetrieve( - id: string, - requestOptions?: TasksClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPatchRetrieve(id, requestOptions)); - } - - private async __metaPatchRetrieve( - id: string, - requestOptions?: TasksClient.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/tasks/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.crm.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", "/crm/v1/tasks/meta/patch/{id}"); - } - - /** - * Returns metadata for `Task` POSTs. - * - * @param {TasksClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.tasks.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: TasksClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: TasksClient.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/tasks/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.crm.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", "/crm/v1/tasks/meta/post"); - } - - /** - * Returns a list of `RemoteFieldClass` objects. - * - * @param {Merge.crm.TasksRemoteFieldClassesListRequest} request - * @param {TasksClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.tasks.remoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } -} diff --git a/src/api/resources/crm/resources/tasks/client/index.ts b/src/api/resources/crm/resources/tasks/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/crm/resources/tasks/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/crm/resources/tasks/client/requests/PatchedTaskEndpointRequest.ts b/src/api/resources/crm/resources/tasks/client/requests/PatchedTaskEndpointRequest.ts deleted file mode 100644 index 6f0ef5b53..000000000 --- a/src/api/resources/crm/resources/tasks/client/requests/PatchedTaskEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface PatchedTaskEndpointRequest { - /** 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.crm.PatchedTaskRequest; -} diff --git a/src/api/resources/crm/resources/tasks/client/requests/TaskEndpointRequest.ts b/src/api/resources/crm/resources/tasks/client/requests/TaskEndpointRequest.ts deleted file mode 100644 index 33816b855..000000000 --- a/src/api/resources/crm/resources/tasks/client/requests/TaskEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface TaskEndpointRequest { - /** 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.crm.TaskRequest; -} diff --git a/src/api/resources/crm/resources/tasks/client/requests/TasksListRequest.ts b/src/api/resources/crm/resources/tasks/client/requests/TasksListRequest.ts deleted file mode 100644 index 798a6899a..000000000 --- a/src/api/resources/crm/resources/tasks/client/requests/TasksListRequest.ts +++ /dev/null @@ -1,47 +0,0 @@ -// 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: "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" - * } - */ -export interface TasksListRequest { - /** 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.crm.TasksListRequestExpand; - /** 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. */ - 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 deleted file mode 100644 index d550bd9bb..000000000 --- a/src/api/resources/crm/resources/tasks/client/requests/TasksRemoteFieldClassesListRequest.ts +++ /dev/null @@ -1,33 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * } - */ -export interface TasksRemoteFieldClassesListRequest { - /** 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 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 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. */ - 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 deleted file mode 100644 index 1e76664a9..000000000 --- a/src/api/resources/crm/resources/tasks/client/requests/TasksRetrieveRequest.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * expand: "account", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * } - */ -export interface TasksRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.crm.TasksRetrieveRequestExpand; - /** 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; -} diff --git a/src/api/resources/crm/resources/tasks/client/requests/index.ts b/src/api/resources/crm/resources/tasks/client/requests/index.ts deleted file mode 100644 index 80ac0c3cb..000000000 --- a/src/api/resources/crm/resources/tasks/client/requests/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type { PatchedTaskEndpointRequest } from "./PatchedTaskEndpointRequest"; -export type { TaskEndpointRequest } from "./TaskEndpointRequest"; -export type { TasksListRequest } from "./TasksListRequest"; -export type { TasksRemoteFieldClassesListRequest } from "./TasksRemoteFieldClassesListRequest"; -export type { TasksRetrieveRequest } from "./TasksRetrieveRequest"; diff --git a/src/api/resources/crm/resources/tasks/exports.ts b/src/api/resources/crm/resources/tasks/exports.ts deleted file mode 100644 index 61bef6ad3..000000000 --- a/src/api/resources/crm/resources/tasks/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { TasksClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/tasks/index.ts b/src/api/resources/crm/resources/tasks/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/crm/resources/tasks/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/api/resources/crm/resources/tasks/types/index.ts deleted file mode 100644 index 570802a11..000000000 --- a/src/api/resources/crm/resources/tasks/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./TasksListRequestExpand"; -export * from "./TasksRetrieveRequestExpand"; diff --git a/src/api/resources/crm/resources/users/client/Client.ts b/src/api/resources/crm/resources/users/client/Client.ts deleted file mode 100644 index 9c1be02c5..000000000 --- a/src/api/resources/crm/resources/users/client/Client.ts +++ /dev/null @@ -1,385 +0,0 @@ -// 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 UsersClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class UsersClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: UsersClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `User` objects. - * - * @param {Merge.crm.UsersListRequest} request - * @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `User` object with the given `id`. - * - * @param {string} id - * @param {Merge.crm.UsersRetrieveRequest} request - * @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.users.retrieve("id", { - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.crm.UsersRetrieveRequest = {}, - requestOptions?: UsersClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.crm.UsersRetrieveRequest = {}, - requestOptions?: UsersClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeRemoteFields, includeShellData } = request; - const _queryParams: Record = { - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `crm/v1/users/${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.crm.User.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{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. - * - * @param {string} model_id - * @param {Merge.crm.IgnoreCommonModelRequest} request - * @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.users.ignoreCreate("model_id", { - * reason: "GENERAL_CUSTOMER_REQUEST" - * }) - */ - public ignoreCreate( - model_id: string, - request: Merge.crm.IgnoreCommonModelRequest, - requestOptions?: UsersClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__ignoreCreate(model_id, request, requestOptions)); - } - - private async __ignoreCreate( - model_id: string, - request: Merge.crm.IgnoreCommonModelRequest, - requestOptions?: UsersClient.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/users/ignore/${core.url.encodePathParam(model_id)}`, - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.crm.IgnoreCommonModelRequest.jsonOrThrow(request, { 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: undefined, rawResponse: _response.rawResponse }; - } - - if (_response.error.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/users/ignore/{model_id}", - ); - } - - /** - * Returns a list of `RemoteFieldClass` objects. - * - * @param {Merge.crm.UsersRemoteFieldClassesListRequest} request - * @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.users.remoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * }) - */ - public remoteFieldClassesList( - request: Merge.crm.UsersRemoteFieldClassesListRequest = {}, - requestOptions?: UsersClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); - } - - private 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, - ); - const _response = await (this._options.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", - ); - } -} diff --git a/src/api/resources/crm/resources/users/client/index.ts b/src/api/resources/crm/resources/users/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/crm/resources/users/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/crm/resources/users/client/requests/UsersListRequest.ts b/src/api/resources/crm/resources/users/client/requests/UsersListRequest.ts deleted file mode 100644 index eedb84d34..000000000 --- a/src/api/resources/crm/resources/users/client/requests/UsersListRequest.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * 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" - * } - */ -export interface UsersListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** If provided, will only return users with this email. */ - email?: 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 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. */ - 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 deleted file mode 100644 index 230d6f048..000000000 --- a/src/api/resources/crm/resources/users/client/requests/UsersRemoteFieldClassesListRequest.ts +++ /dev/null @@ -1,33 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * } - */ -export interface UsersRemoteFieldClassesListRequest { - /** 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 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 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. */ - pageSize?: number; -} diff --git a/src/api/resources/crm/resources/users/client/requests/UsersRetrieveRequest.ts b/src/api/resources/crm/resources/users/client/requests/UsersRetrieveRequest.ts deleted file mode 100644 index 77f496d7f..000000000 --- a/src/api/resources/crm/resources/users/client/requests/UsersRetrieveRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true - * } - */ -export interface UsersRetrieveRequest { - /** 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; -} diff --git a/src/api/resources/crm/resources/users/client/requests/index.ts b/src/api/resources/crm/resources/users/client/requests/index.ts deleted file mode 100644 index e50fa445c..000000000 --- a/src/api/resources/crm/resources/users/client/requests/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type { UsersListRequest } from "./UsersListRequest"; -export type { UsersRemoteFieldClassesListRequest } from "./UsersRemoteFieldClassesListRequest"; -export type { UsersRetrieveRequest } from "./UsersRetrieveRequest"; diff --git a/src/api/resources/crm/resources/users/exports.ts b/src/api/resources/crm/resources/users/exports.ts deleted file mode 100644 index e416b996a..000000000 --- a/src/api/resources/crm/resources/users/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { UsersClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/users/index.ts b/src/api/resources/crm/resources/users/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/crm/resources/users/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/crm/resources/webhookReceivers/client/Client.ts b/src/api/resources/crm/resources/webhookReceivers/client/Client.ts deleted file mode 100644 index 56d05e061..000000000 --- a/src/api/resources/crm/resources/webhookReceivers/client/Client.ts +++ /dev/null @@ -1,162 +0,0 @@ -// 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 WebhookReceiversClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class WebhookReceiversClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: WebhookReceiversClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `WebhookReceiver` objects. - * - * @param {WebhookReceiversClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.webhookReceivers.list() - */ - public list( - requestOptions?: WebhookReceiversClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(requestOptions)); - } - - private async __list( - requestOptions?: WebhookReceiversClient.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/webhook-receivers", - ), - 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.crm.webhookReceivers.list.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/webhook-receivers"); - } - - /** - * Creates a `WebhookReceiver` object with the given values. - * - * @param {Merge.crm.WebhookReceiverRequest} request - * @param {WebhookReceiversClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.crm.webhookReceivers.create({ - * event: "event", - * isActive: true - * }) - */ - public create( - request: Merge.crm.WebhookReceiverRequest, - requestOptions?: WebhookReceiversClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.crm.WebhookReceiverRequest, - requestOptions?: WebhookReceiversClient.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/webhook-receivers", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.crm.WebhookReceiverRequest.jsonOrThrow(request, { 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.crm.WebhookReceiver.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/webhook-receivers"); - } -} diff --git a/src/api/resources/crm/resources/webhookReceivers/client/index.ts b/src/api/resources/crm/resources/webhookReceivers/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/crm/resources/webhookReceivers/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/crm/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts b/src/api/resources/crm/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts deleted file mode 100644 index bcc11dbe7..000000000 --- a/src/api/resources/crm/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * event: "event", - * isActive: true - * } - */ -export interface WebhookReceiverRequest { - event: string; - isActive: boolean; - key?: string; -} diff --git a/src/api/resources/crm/resources/webhookReceivers/client/requests/index.ts b/src/api/resources/crm/resources/webhookReceivers/client/requests/index.ts deleted file mode 100644 index 0e668b74d..000000000 --- a/src/api/resources/crm/resources/webhookReceivers/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { WebhookReceiverRequest } from "./WebhookReceiverRequest"; diff --git a/src/api/resources/crm/resources/webhookReceivers/exports.ts b/src/api/resources/crm/resources/webhookReceivers/exports.ts deleted file mode 100644 index d0527565a..000000000 --- a/src/api/resources/crm/resources/webhookReceivers/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { WebhookReceiversClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/crm/resources/webhookReceivers/index.ts b/src/api/resources/crm/resources/webhookReceivers/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/crm/resources/webhookReceivers/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/crm/types/Account.ts b/src/api/resources/crm/types/Account.ts deleted file mode 100644 index fadb7b3ae..000000000 --- a/src/api/resources/crm/types/Account.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Account Object - * ### Description - * The `Account` object is used to represent a company in a CRM system. - * ### Usage Example - * TODO - */ -export interface Account { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The account's owner. */ - owner?: Merge.crm.AccountOwner; - /** The account's name. */ - name?: string; - /** The account's description. */ - description?: string; - /** The account's industry. */ - industry?: string; - /** The account's website. */ - website?: string; - /** The account's number of employees. */ - numberOfEmployees?: number; - addresses?: Merge.crm.Address[]; - phoneNumbers?: Merge.crm.PhoneNumber[]; - /** The last date (either most recent or furthest in the future) of when an activity occurs in an account. */ - lastActivityAt?: Date; - /** When the CRM system account data was last modified by a user with a login. */ - remoteUpdatedAt?: Date; - /** When the third party's account was created. */ - remoteCreatedAt?: 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.crm.RemoteData[]; - remoteFields?: Merge.crm.RemoteField[]; -} diff --git a/src/api/resources/crm/types/AccountDetails.ts b/src/api/resources/crm/types/AccountDetails.ts deleted file mode 100644 index 3c94c3893..000000000 --- a/src/api/resources/crm/types/AccountDetails.ts +++ /dev/null @@ -1,20 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AccountDetails { - id?: string; - integration?: string; - integrationSlug?: string; - category?: Merge.crm.AccountDetailsCategory; - endUserOriginId?: string; - endUserOrganizationName?: string; - endUserEmailAddress?: string; - status?: string; - webhookListenerUrl?: string; - /** Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets. */ - isDuplicate?: boolean; - accountType?: string; - /** The time at which account completes the linking flow. */ - completedAt?: Date; -} diff --git a/src/api/resources/crm/types/AccountDetailsAndActions.ts b/src/api/resources/crm/types/AccountDetailsAndActions.ts deleted file mode 100644 index b2b41d2a1..000000000 --- a/src/api/resources/crm/types/AccountDetailsAndActions.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The LinkedAccount Object - * ### Description - * The `LinkedAccount` object is used to represent an end user's link with a specific integration. - * - * ### Usage Example - * View a list of your organization's `LinkedAccount` objects. - */ -export interface AccountDetailsAndActions { - id: string; - category?: Merge.crm.AccountDetailsAndActionsCategory; - status: Merge.crm.AccountDetailsAndActionsStatus; - statusDetail?: string; - endUserOriginId?: string; - endUserOrganizationName: string; - endUserEmailAddress: string; - /** The tenant or domain the customer has provided access to. */ - subdomain?: string; - webhookListenerUrl: string; - /** Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets. */ - isDuplicate?: boolean; - integration?: Merge.crm.AccountDetailsAndActionsIntegration; - accountType: string; - completedAt: Date; -} diff --git a/src/api/resources/crm/types/AccountDetailsAndActionsCategory.ts b/src/api/resources/crm/types/AccountDetailsAndActionsCategory.ts deleted file mode 100644 index 175d289af..000000000 --- a/src/api/resources/crm/types/AccountDetailsAndActionsCategory.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 AccountDetailsAndActionsCategory = Merge.crm.CategoryEnum | string; diff --git a/src/api/resources/crm/types/AccountDetailsAndActionsIntegration.ts b/src/api/resources/crm/types/AccountDetailsAndActionsIntegration.ts deleted file mode 100644 index e3e929567..000000000 --- a/src/api/resources/crm/types/AccountDetailsAndActionsIntegration.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AccountDetailsAndActionsIntegration { - name: string; - categories: Merge.crm.CategoriesEnum[]; - image?: string; - squareImage?: string; - color: string; - slug: string; - passthroughAvailable: boolean; - availableModelOperations?: Merge.crm.ModelOperation[]; -} diff --git a/src/api/resources/crm/types/AccountDetailsAndActionsStatus.ts b/src/api/resources/crm/types/AccountDetailsAndActionsStatus.ts deleted file mode 100644 index d40ed87e0..000000000 --- a/src/api/resources/crm/types/AccountDetailsAndActionsStatus.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 AccountDetailsAndActionsStatus = Merge.crm.AccountDetailsAndActionsStatusEnum | string; diff --git a/src/api/resources/crm/types/AccountDetailsAndActionsStatusEnum.ts b/src/api/resources/crm/types/AccountDetailsAndActionsStatusEnum.ts deleted file mode 100644 index ab1273765..000000000 --- a/src/api/resources/crm/types/AccountDetailsAndActionsStatusEnum.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `COMPLETE` - COMPLETE - * * `INCOMPLETE` - INCOMPLETE - * * `RELINK_NEEDED` - RELINK_NEEDED - * * `IDLE` - IDLE - */ -export const AccountDetailsAndActionsStatusEnum = { - Complete: "COMPLETE", - Incomplete: "INCOMPLETE", - RelinkNeeded: "RELINK_NEEDED", - Idle: "IDLE", -} as const; -export type AccountDetailsAndActionsStatusEnum = - (typeof AccountDetailsAndActionsStatusEnum)[keyof typeof AccountDetailsAndActionsStatusEnum]; diff --git a/src/api/resources/crm/types/AccountDetailsCategory.ts b/src/api/resources/crm/types/AccountDetailsCategory.ts deleted file mode 100644 index 586fef7ac..000000000 --- a/src/api/resources/crm/types/AccountDetailsCategory.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export type AccountDetailsCategory = Merge.crm.CategoryEnum | string; diff --git a/src/api/resources/crm/types/AccountIntegration.ts b/src/api/resources/crm/types/AccountIntegration.ts deleted file mode 100644 index 26cbd9118..000000000 --- a/src/api/resources/crm/types/AccountIntegration.ts +++ /dev/null @@ -1,25 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AccountIntegration { - /** Company name. */ - name: string; - /** Optional. This shortened name appears in places with limited space, usually in conjunction with the platform's logo (e.g., Merge Link menu).

Example: Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors) */ - abbreviatedName?: string; - /** Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris]. */ - categories?: Merge.crm.CategoriesEnum[]; - /** Company logo in rectangular shape. */ - image?: string; - /** Company logo in square shape. */ - squareImage?: string; - /** The color of this integration used for buttons and text throughout the app and landing pages. Choose a darker, saturated color. */ - color?: string; - slug?: string; - /** Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []} */ - apiEndpointsToDocumentationUrls?: Record; - /** Setup guide URL for third party webhook creation. Exposed in Merge Docs. */ - webhookSetupGuideUrl?: string; - /** Category or categories this integration is in beta status for. */ - categoryBetaStatus?: Record; -} diff --git a/src/api/resources/crm/types/AccountOwner.ts b/src/api/resources/crm/types/AccountOwner.ts deleted file mode 100644 index d046c7ec3..000000000 --- a/src/api/resources/crm/types/AccountOwner.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 account's owner. - */ -export type AccountOwner = string | Merge.crm.User; diff --git a/src/api/resources/crm/types/AccountRequest.ts b/src/api/resources/crm/types/AccountRequest.ts deleted file mode 100644 index b23c8146e..000000000 --- a/src/api/resources/crm/types/AccountRequest.ts +++ /dev/null @@ -1,31 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Account Object - * ### Description - * The `Account` object is used to represent a company in a CRM system. - * ### Usage Example - * TODO - */ -export interface AccountRequest { - /** The account's owner. */ - owner?: Merge.crm.AccountRequestOwner; - /** The account's name. */ - name?: string; - /** The account's description. */ - description?: string; - /** The account's industry. */ - industry?: string; - /** The account's website. */ - website?: string; - /** The account's number of employees. */ - numberOfEmployees?: number; - addresses?: Merge.crm.AddressRequest[]; - /** The last date (either most recent or furthest in the future) of when an activity occurs in an account. */ - lastActivityAt?: Date; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.crm.RemoteFieldRequest[]; -} diff --git a/src/api/resources/crm/types/AccountRequestOwner.ts b/src/api/resources/crm/types/AccountRequestOwner.ts deleted file mode 100644 index 724412a36..000000000 --- a/src/api/resources/crm/types/AccountRequestOwner.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 account's owner. - */ -export type AccountRequestOwner = string | Merge.crm.User; diff --git a/src/api/resources/crm/types/AccountToken.ts b/src/api/resources/crm/types/AccountToken.ts deleted file mode 100644 index 4f8b93cc6..000000000 --- a/src/api/resources/crm/types/AccountToken.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AccountToken { - accountToken: string; - integration: Merge.crm.AccountIntegration; - id: string; -} diff --git a/src/api/resources/crm/types/ActivityTypeEnum.ts b/src/api/resources/crm/types/ActivityTypeEnum.ts deleted file mode 100644 index 5629e6f30..000000000 --- a/src/api/resources/crm/types/ActivityTypeEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `CALL` - CALL - * * `MEETING` - MEETING - * * `EMAIL` - EMAIL - */ -export const ActivityTypeEnum = { - Call: "CALL", - Meeting: "MEETING", - Email: "EMAIL", -} as const; -export type ActivityTypeEnum = (typeof ActivityTypeEnum)[keyof typeof ActivityTypeEnum]; diff --git a/src/api/resources/crm/types/Address.ts b/src/api/resources/crm/types/Address.ts deleted file mode 100644 index c357d2803..000000000 --- a/src/api/resources/crm/types/Address.ts +++ /dev/null @@ -1,288 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Address Object - * ### Description - * The `Address` object is used to represent an entity's address. - * ### Usage Example - * TODO - */ -export interface Address { - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** Line 1 of the address's street. */ - street1?: string; - /** Line 2 of the address's street. */ - street2?: string; - /** The address's city. */ - city?: string; - /** The address's state. */ - state?: string; - /** The address's postal code. */ - postalCode?: string; - /** - * The address's country. - * - * * `AF` - Afghanistan - * * `AX` - Åland Islands - * * `AL` - Albania - * * `DZ` - Algeria - * * `AS` - American Samoa - * * `AD` - Andorra - * * `AO` - Angola - * * `AI` - Anguilla - * * `AQ` - Antarctica - * * `AG` - Antigua and Barbuda - * * `AR` - Argentina - * * `AM` - Armenia - * * `AW` - Aruba - * * `AU` - Australia - * * `AT` - Austria - * * `AZ` - Azerbaijan - * * `BS` - Bahamas - * * `BH` - Bahrain - * * `BD` - Bangladesh - * * `BB` - Barbados - * * `BY` - Belarus - * * `BE` - Belgium - * * `BZ` - Belize - * * `BJ` - Benin - * * `BM` - Bermuda - * * `BT` - Bhutan - * * `BO` - Bolivia - * * `BQ` - Bonaire, Sint Eustatius and Saba - * * `BA` - Bosnia and Herzegovina - * * `BW` - Botswana - * * `BV` - Bouvet Island - * * `BR` - Brazil - * * `IO` - British Indian Ocean Territory - * * `BN` - Brunei - * * `BG` - Bulgaria - * * `BF` - Burkina Faso - * * `BI` - Burundi - * * `CV` - Cabo Verde - * * `KH` - Cambodia - * * `CM` - Cameroon - * * `CA` - Canada - * * `KY` - Cayman Islands - * * `CF` - Central African Republic - * * `TD` - Chad - * * `CL` - Chile - * * `CN` - China - * * `CX` - Christmas Island - * * `CC` - Cocos (Keeling) Islands - * * `CO` - Colombia - * * `KM` - Comoros - * * `CG` - Congo - * * `CD` - Congo (the Democratic Republic of the) - * * `CK` - Cook Islands - * * `CR` - Costa Rica - * * `CI` - Côte d'Ivoire - * * `HR` - Croatia - * * `CU` - Cuba - * * `CW` - Curaçao - * * `CY` - Cyprus - * * `CZ` - Czechia - * * `DK` - Denmark - * * `DJ` - Djibouti - * * `DM` - Dominica - * * `DO` - Dominican Republic - * * `EC` - Ecuador - * * `EG` - Egypt - * * `SV` - El Salvador - * * `GQ` - Equatorial Guinea - * * `ER` - Eritrea - * * `EE` - Estonia - * * `SZ` - Eswatini - * * `ET` - Ethiopia - * * `FK` - Falkland Islands (Malvinas) - * * `FO` - Faroe Islands - * * `FJ` - Fiji - * * `FI` - Finland - * * `FR` - France - * * `GF` - French Guiana - * * `PF` - French Polynesia - * * `TF` - French Southern Territories - * * `GA` - Gabon - * * `GM` - Gambia - * * `GE` - Georgia - * * `DE` - Germany - * * `GH` - Ghana - * * `GI` - Gibraltar - * * `GR` - Greece - * * `GL` - Greenland - * * `GD` - Grenada - * * `GP` - Guadeloupe - * * `GU` - Guam - * * `GT` - Guatemala - * * `GG` - Guernsey - * * `GN` - Guinea - * * `GW` - Guinea-Bissau - * * `GY` - Guyana - * * `HT` - Haiti - * * `HM` - Heard Island and McDonald Islands - * * `VA` - Holy See - * * `HN` - Honduras - * * `HK` - Hong Kong - * * `HU` - Hungary - * * `IS` - Iceland - * * `IN` - India - * * `ID` - Indonesia - * * `IR` - Iran - * * `IQ` - Iraq - * * `IE` - Ireland - * * `IM` - Isle of Man - * * `IL` - Israel - * * `IT` - Italy - * * `JM` - Jamaica - * * `JP` - Japan - * * `JE` - Jersey - * * `JO` - Jordan - * * `KZ` - Kazakhstan - * * `KE` - Kenya - * * `KI` - Kiribati - * * `KW` - Kuwait - * * `KG` - Kyrgyzstan - * * `LA` - Laos - * * `LV` - Latvia - * * `LB` - Lebanon - * * `LS` - Lesotho - * * `LR` - Liberia - * * `LY` - Libya - * * `LI` - Liechtenstein - * * `LT` - Lithuania - * * `LU` - Luxembourg - * * `MO` - Macao - * * `MG` - Madagascar - * * `MW` - Malawi - * * `MY` - Malaysia - * * `MV` - Maldives - * * `ML` - Mali - * * `MT` - Malta - * * `MH` - Marshall Islands - * * `MQ` - Martinique - * * `MR` - Mauritania - * * `MU` - Mauritius - * * `YT` - Mayotte - * * `MX` - Mexico - * * `FM` - Micronesia (Federated States of) - * * `MD` - Moldova - * * `MC` - Monaco - * * `MN` - Mongolia - * * `ME` - Montenegro - * * `MS` - Montserrat - * * `MA` - Morocco - * * `MZ` - Mozambique - * * `MM` - Myanmar - * * `NA` - Namibia - * * `NR` - Nauru - * * `NP` - Nepal - * * `NL` - Netherlands - * * `NC` - New Caledonia - * * `NZ` - New Zealand - * * `NI` - Nicaragua - * * `NE` - Niger - * * `NG` - Nigeria - * * `NU` - Niue - * * `NF` - Norfolk Island - * * `KP` - North Korea - * * `MK` - North Macedonia - * * `MP` - Northern Mariana Islands - * * `NO` - Norway - * * `OM` - Oman - * * `PK` - Pakistan - * * `PW` - Palau - * * `PS` - Palestine, State of - * * `PA` - Panama - * * `PG` - Papua New Guinea - * * `PY` - Paraguay - * * `PE` - Peru - * * `PH` - Philippines - * * `PN` - Pitcairn - * * `PL` - Poland - * * `PT` - Portugal - * * `PR` - Puerto Rico - * * `QA` - Qatar - * * `RE` - Réunion - * * `RO` - Romania - * * `RU` - Russia - * * `RW` - Rwanda - * * `BL` - Saint Barthélemy - * * `SH` - Saint Helena, Ascension and Tristan da Cunha - * * `KN` - Saint Kitts and Nevis - * * `LC` - Saint Lucia - * * `MF` - Saint Martin (French part) - * * `PM` - Saint Pierre and Miquelon - * * `VC` - Saint Vincent and the Grenadines - * * `WS` - Samoa - * * `SM` - San Marino - * * `ST` - Sao Tome and Principe - * * `SA` - Saudi Arabia - * * `SN` - Senegal - * * `RS` - Serbia - * * `SC` - Seychelles - * * `SL` - Sierra Leone - * * `SG` - Singapore - * * `SX` - Sint Maarten (Dutch part) - * * `SK` - Slovakia - * * `SI` - Slovenia - * * `SB` - Solomon Islands - * * `SO` - Somalia - * * `ZA` - South Africa - * * `GS` - South Georgia and the South Sandwich Islands - * * `KR` - South Korea - * * `SS` - South Sudan - * * `ES` - Spain - * * `LK` - Sri Lanka - * * `SD` - Sudan - * * `SR` - Suriname - * * `SJ` - Svalbard and Jan Mayen - * * `SE` - Sweden - * * `CH` - Switzerland - * * `SY` - Syria - * * `TW` - Taiwan - * * `TJ` - Tajikistan - * * `TZ` - Tanzania - * * `TH` - Thailand - * * `TL` - Timor-Leste - * * `TG` - Togo - * * `TK` - Tokelau - * * `TO` - Tonga - * * `TT` - Trinidad and Tobago - * * `TN` - Tunisia - * * `TR` - Turkey - * * `TM` - Turkmenistan - * * `TC` - Turks and Caicos Islands - * * `TV` - Tuvalu - * * `UG` - Uganda - * * `UA` - Ukraine - * * `AE` - United Arab Emirates - * * `GB` - United Kingdom - * * `UM` - United States Minor Outlying Islands - * * `US` - United States of America - * * `UY` - Uruguay - * * `UZ` - Uzbekistan - * * `VU` - Vanuatu - * * `VE` - Venezuela - * * `VN` - Vietnam - * * `VG` - Virgin Islands (British) - * * `VI` - Virgin Islands (U.S.) - * * `WF` - Wallis and Futuna - * * `EH` - Western Sahara - * * `YE` - Yemen - * * `ZM` - Zambia - * * `ZW` - Zimbabwe - */ - country?: Merge.crm.AddressCountry; - /** - * The address type. - * - * * `BILLING` - BILLING - * * `SHIPPING` - SHIPPING - */ - addressType?: Merge.crm.AddressAddressType; -} diff --git a/src/api/resources/crm/types/AddressAddressType.ts b/src/api/resources/crm/types/AddressAddressType.ts deleted file mode 100644 index e6f7113fc..000000000 --- a/src/api/resources/crm/types/AddressAddressType.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 address type. - * - * * `BILLING` - BILLING - * * `SHIPPING` - SHIPPING - */ -export type AddressAddressType = Merge.crm.AddressTypeEnum | string; diff --git a/src/api/resources/crm/types/AddressCountry.ts b/src/api/resources/crm/types/AddressCountry.ts deleted file mode 100644 index 6a2c14339..000000000 --- a/src/api/resources/crm/types/AddressCountry.ts +++ /dev/null @@ -1,258 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The address's country. - * - * * `AF` - Afghanistan - * * `AX` - Åland Islands - * * `AL` - Albania - * * `DZ` - Algeria - * * `AS` - American Samoa - * * `AD` - Andorra - * * `AO` - Angola - * * `AI` - Anguilla - * * `AQ` - Antarctica - * * `AG` - Antigua and Barbuda - * * `AR` - Argentina - * * `AM` - Armenia - * * `AW` - Aruba - * * `AU` - Australia - * * `AT` - Austria - * * `AZ` - Azerbaijan - * * `BS` - Bahamas - * * `BH` - Bahrain - * * `BD` - Bangladesh - * * `BB` - Barbados - * * `BY` - Belarus - * * `BE` - Belgium - * * `BZ` - Belize - * * `BJ` - Benin - * * `BM` - Bermuda - * * `BT` - Bhutan - * * `BO` - Bolivia - * * `BQ` - Bonaire, Sint Eustatius and Saba - * * `BA` - Bosnia and Herzegovina - * * `BW` - Botswana - * * `BV` - Bouvet Island - * * `BR` - Brazil - * * `IO` - British Indian Ocean Territory - * * `BN` - Brunei - * * `BG` - Bulgaria - * * `BF` - Burkina Faso - * * `BI` - Burundi - * * `CV` - Cabo Verde - * * `KH` - Cambodia - * * `CM` - Cameroon - * * `CA` - Canada - * * `KY` - Cayman Islands - * * `CF` - Central African Republic - * * `TD` - Chad - * * `CL` - Chile - * * `CN` - China - * * `CX` - Christmas Island - * * `CC` - Cocos (Keeling) Islands - * * `CO` - Colombia - * * `KM` - Comoros - * * `CG` - Congo - * * `CD` - Congo (the Democratic Republic of the) - * * `CK` - Cook Islands - * * `CR` - Costa Rica - * * `CI` - Côte d'Ivoire - * * `HR` - Croatia - * * `CU` - Cuba - * * `CW` - Curaçao - * * `CY` - Cyprus - * * `CZ` - Czechia - * * `DK` - Denmark - * * `DJ` - Djibouti - * * `DM` - Dominica - * * `DO` - Dominican Republic - * * `EC` - Ecuador - * * `EG` - Egypt - * * `SV` - El Salvador - * * `GQ` - Equatorial Guinea - * * `ER` - Eritrea - * * `EE` - Estonia - * * `SZ` - Eswatini - * * `ET` - Ethiopia - * * `FK` - Falkland Islands (Malvinas) - * * `FO` - Faroe Islands - * * `FJ` - Fiji - * * `FI` - Finland - * * `FR` - France - * * `GF` - French Guiana - * * `PF` - French Polynesia - * * `TF` - French Southern Territories - * * `GA` - Gabon - * * `GM` - Gambia - * * `GE` - Georgia - * * `DE` - Germany - * * `GH` - Ghana - * * `GI` - Gibraltar - * * `GR` - Greece - * * `GL` - Greenland - * * `GD` - Grenada - * * `GP` - Guadeloupe - * * `GU` - Guam - * * `GT` - Guatemala - * * `GG` - Guernsey - * * `GN` - Guinea - * * `GW` - Guinea-Bissau - * * `GY` - Guyana - * * `HT` - Haiti - * * `HM` - Heard Island and McDonald Islands - * * `VA` - Holy See - * * `HN` - Honduras - * * `HK` - Hong Kong - * * `HU` - Hungary - * * `IS` - Iceland - * * `IN` - India - * * `ID` - Indonesia - * * `IR` - Iran - * * `IQ` - Iraq - * * `IE` - Ireland - * * `IM` - Isle of Man - * * `IL` - Israel - * * `IT` - Italy - * * `JM` - Jamaica - * * `JP` - Japan - * * `JE` - Jersey - * * `JO` - Jordan - * * `KZ` - Kazakhstan - * * `KE` - Kenya - * * `KI` - Kiribati - * * `KW` - Kuwait - * * `KG` - Kyrgyzstan - * * `LA` - Laos - * * `LV` - Latvia - * * `LB` - Lebanon - * * `LS` - Lesotho - * * `LR` - Liberia - * * `LY` - Libya - * * `LI` - Liechtenstein - * * `LT` - Lithuania - * * `LU` - Luxembourg - * * `MO` - Macao - * * `MG` - Madagascar - * * `MW` - Malawi - * * `MY` - Malaysia - * * `MV` - Maldives - * * `ML` - Mali - * * `MT` - Malta - * * `MH` - Marshall Islands - * * `MQ` - Martinique - * * `MR` - Mauritania - * * `MU` - Mauritius - * * `YT` - Mayotte - * * `MX` - Mexico - * * `FM` - Micronesia (Federated States of) - * * `MD` - Moldova - * * `MC` - Monaco - * * `MN` - Mongolia - * * `ME` - Montenegro - * * `MS` - Montserrat - * * `MA` - Morocco - * * `MZ` - Mozambique - * * `MM` - Myanmar - * * `NA` - Namibia - * * `NR` - Nauru - * * `NP` - Nepal - * * `NL` - Netherlands - * * `NC` - New Caledonia - * * `NZ` - New Zealand - * * `NI` - Nicaragua - * * `NE` - Niger - * * `NG` - Nigeria - * * `NU` - Niue - * * `NF` - Norfolk Island - * * `KP` - North Korea - * * `MK` - North Macedonia - * * `MP` - Northern Mariana Islands - * * `NO` - Norway - * * `OM` - Oman - * * `PK` - Pakistan - * * `PW` - Palau - * * `PS` - Palestine, State of - * * `PA` - Panama - * * `PG` - Papua New Guinea - * * `PY` - Paraguay - * * `PE` - Peru - * * `PH` - Philippines - * * `PN` - Pitcairn - * * `PL` - Poland - * * `PT` - Portugal - * * `PR` - Puerto Rico - * * `QA` - Qatar - * * `RE` - Réunion - * * `RO` - Romania - * * `RU` - Russia - * * `RW` - Rwanda - * * `BL` - Saint Barthélemy - * * `SH` - Saint Helena, Ascension and Tristan da Cunha - * * `KN` - Saint Kitts and Nevis - * * `LC` - Saint Lucia - * * `MF` - Saint Martin (French part) - * * `PM` - Saint Pierre and Miquelon - * * `VC` - Saint Vincent and the Grenadines - * * `WS` - Samoa - * * `SM` - San Marino - * * `ST` - Sao Tome and Principe - * * `SA` - Saudi Arabia - * * `SN` - Senegal - * * `RS` - Serbia - * * `SC` - Seychelles - * * `SL` - Sierra Leone - * * `SG` - Singapore - * * `SX` - Sint Maarten (Dutch part) - * * `SK` - Slovakia - * * `SI` - Slovenia - * * `SB` - Solomon Islands - * * `SO` - Somalia - * * `ZA` - South Africa - * * `GS` - South Georgia and the South Sandwich Islands - * * `KR` - South Korea - * * `SS` - South Sudan - * * `ES` - Spain - * * `LK` - Sri Lanka - * * `SD` - Sudan - * * `SR` - Suriname - * * `SJ` - Svalbard and Jan Mayen - * * `SE` - Sweden - * * `CH` - Switzerland - * * `SY` - Syria - * * `TW` - Taiwan - * * `TJ` - Tajikistan - * * `TZ` - Tanzania - * * `TH` - Thailand - * * `TL` - Timor-Leste - * * `TG` - Togo - * * `TK` - Tokelau - * * `TO` - Tonga - * * `TT` - Trinidad and Tobago - * * `TN` - Tunisia - * * `TR` - Turkey - * * `TM` - Turkmenistan - * * `TC` - Turks and Caicos Islands - * * `TV` - Tuvalu - * * `UG` - Uganda - * * `UA` - Ukraine - * * `AE` - United Arab Emirates - * * `GB` - United Kingdom - * * `UM` - United States Minor Outlying Islands - * * `US` - United States of America - * * `UY` - Uruguay - * * `UZ` - Uzbekistan - * * `VU` - Vanuatu - * * `VE` - Venezuela - * * `VN` - Vietnam - * * `VG` - Virgin Islands (British) - * * `VI` - Virgin Islands (U.S.) - * * `WF` - Wallis and Futuna - * * `EH` - Western Sahara - * * `YE` - Yemen - * * `ZM` - Zambia - * * `ZW` - Zimbabwe - */ -export type AddressCountry = Merge.crm.CountryEnum | string; diff --git a/src/api/resources/crm/types/AddressRequest.ts b/src/api/resources/crm/types/AddressRequest.ts deleted file mode 100644 index 549dfcef0..000000000 --- a/src/api/resources/crm/types/AddressRequest.ts +++ /dev/null @@ -1,286 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Address Object - * ### Description - * The `Address` object is used to represent an entity's address. - * ### Usage Example - * TODO - */ -export interface AddressRequest { - /** Line 1 of the address's street. */ - street1?: string; - /** Line 2 of the address's street. */ - street2?: string; - /** The address's city. */ - city?: string; - /** The address's state. */ - state?: string; - /** The address's postal code. */ - postalCode?: string; - /** - * The address's country. - * - * * `AF` - Afghanistan - * * `AX` - Åland Islands - * * `AL` - Albania - * * `DZ` - Algeria - * * `AS` - American Samoa - * * `AD` - Andorra - * * `AO` - Angola - * * `AI` - Anguilla - * * `AQ` - Antarctica - * * `AG` - Antigua and Barbuda - * * `AR` - Argentina - * * `AM` - Armenia - * * `AW` - Aruba - * * `AU` - Australia - * * `AT` - Austria - * * `AZ` - Azerbaijan - * * `BS` - Bahamas - * * `BH` - Bahrain - * * `BD` - Bangladesh - * * `BB` - Barbados - * * `BY` - Belarus - * * `BE` - Belgium - * * `BZ` - Belize - * * `BJ` - Benin - * * `BM` - Bermuda - * * `BT` - Bhutan - * * `BO` - Bolivia - * * `BQ` - Bonaire, Sint Eustatius and Saba - * * `BA` - Bosnia and Herzegovina - * * `BW` - Botswana - * * `BV` - Bouvet Island - * * `BR` - Brazil - * * `IO` - British Indian Ocean Territory - * * `BN` - Brunei - * * `BG` - Bulgaria - * * `BF` - Burkina Faso - * * `BI` - Burundi - * * `CV` - Cabo Verde - * * `KH` - Cambodia - * * `CM` - Cameroon - * * `CA` - Canada - * * `KY` - Cayman Islands - * * `CF` - Central African Republic - * * `TD` - Chad - * * `CL` - Chile - * * `CN` - China - * * `CX` - Christmas Island - * * `CC` - Cocos (Keeling) Islands - * * `CO` - Colombia - * * `KM` - Comoros - * * `CG` - Congo - * * `CD` - Congo (the Democratic Republic of the) - * * `CK` - Cook Islands - * * `CR` - Costa Rica - * * `CI` - Côte d'Ivoire - * * `HR` - Croatia - * * `CU` - Cuba - * * `CW` - Curaçao - * * `CY` - Cyprus - * * `CZ` - Czechia - * * `DK` - Denmark - * * `DJ` - Djibouti - * * `DM` - Dominica - * * `DO` - Dominican Republic - * * `EC` - Ecuador - * * `EG` - Egypt - * * `SV` - El Salvador - * * `GQ` - Equatorial Guinea - * * `ER` - Eritrea - * * `EE` - Estonia - * * `SZ` - Eswatini - * * `ET` - Ethiopia - * * `FK` - Falkland Islands (Malvinas) - * * `FO` - Faroe Islands - * * `FJ` - Fiji - * * `FI` - Finland - * * `FR` - France - * * `GF` - French Guiana - * * `PF` - French Polynesia - * * `TF` - French Southern Territories - * * `GA` - Gabon - * * `GM` - Gambia - * * `GE` - Georgia - * * `DE` - Germany - * * `GH` - Ghana - * * `GI` - Gibraltar - * * `GR` - Greece - * * `GL` - Greenland - * * `GD` - Grenada - * * `GP` - Guadeloupe - * * `GU` - Guam - * * `GT` - Guatemala - * * `GG` - Guernsey - * * `GN` - Guinea - * * `GW` - Guinea-Bissau - * * `GY` - Guyana - * * `HT` - Haiti - * * `HM` - Heard Island and McDonald Islands - * * `VA` - Holy See - * * `HN` - Honduras - * * `HK` - Hong Kong - * * `HU` - Hungary - * * `IS` - Iceland - * * `IN` - India - * * `ID` - Indonesia - * * `IR` - Iran - * * `IQ` - Iraq - * * `IE` - Ireland - * * `IM` - Isle of Man - * * `IL` - Israel - * * `IT` - Italy - * * `JM` - Jamaica - * * `JP` - Japan - * * `JE` - Jersey - * * `JO` - Jordan - * * `KZ` - Kazakhstan - * * `KE` - Kenya - * * `KI` - Kiribati - * * `KW` - Kuwait - * * `KG` - Kyrgyzstan - * * `LA` - Laos - * * `LV` - Latvia - * * `LB` - Lebanon - * * `LS` - Lesotho - * * `LR` - Liberia - * * `LY` - Libya - * * `LI` - Liechtenstein - * * `LT` - Lithuania - * * `LU` - Luxembourg - * * `MO` - Macao - * * `MG` - Madagascar - * * `MW` - Malawi - * * `MY` - Malaysia - * * `MV` - Maldives - * * `ML` - Mali - * * `MT` - Malta - * * `MH` - Marshall Islands - * * `MQ` - Martinique - * * `MR` - Mauritania - * * `MU` - Mauritius - * * `YT` - Mayotte - * * `MX` - Mexico - * * `FM` - Micronesia (Federated States of) - * * `MD` - Moldova - * * `MC` - Monaco - * * `MN` - Mongolia - * * `ME` - Montenegro - * * `MS` - Montserrat - * * `MA` - Morocco - * * `MZ` - Mozambique - * * `MM` - Myanmar - * * `NA` - Namibia - * * `NR` - Nauru - * * `NP` - Nepal - * * `NL` - Netherlands - * * `NC` - New Caledonia - * * `NZ` - New Zealand - * * `NI` - Nicaragua - * * `NE` - Niger - * * `NG` - Nigeria - * * `NU` - Niue - * * `NF` - Norfolk Island - * * `KP` - North Korea - * * `MK` - North Macedonia - * * `MP` - Northern Mariana Islands - * * `NO` - Norway - * * `OM` - Oman - * * `PK` - Pakistan - * * `PW` - Palau - * * `PS` - Palestine, State of - * * `PA` - Panama - * * `PG` - Papua New Guinea - * * `PY` - Paraguay - * * `PE` - Peru - * * `PH` - Philippines - * * `PN` - Pitcairn - * * `PL` - Poland - * * `PT` - Portugal - * * `PR` - Puerto Rico - * * `QA` - Qatar - * * `RE` - Réunion - * * `RO` - Romania - * * `RU` - Russia - * * `RW` - Rwanda - * * `BL` - Saint Barthélemy - * * `SH` - Saint Helena, Ascension and Tristan da Cunha - * * `KN` - Saint Kitts and Nevis - * * `LC` - Saint Lucia - * * `MF` - Saint Martin (French part) - * * `PM` - Saint Pierre and Miquelon - * * `VC` - Saint Vincent and the Grenadines - * * `WS` - Samoa - * * `SM` - San Marino - * * `ST` - Sao Tome and Principe - * * `SA` - Saudi Arabia - * * `SN` - Senegal - * * `RS` - Serbia - * * `SC` - Seychelles - * * `SL` - Sierra Leone - * * `SG` - Singapore - * * `SX` - Sint Maarten (Dutch part) - * * `SK` - Slovakia - * * `SI` - Slovenia - * * `SB` - Solomon Islands - * * `SO` - Somalia - * * `ZA` - South Africa - * * `GS` - South Georgia and the South Sandwich Islands - * * `KR` - South Korea - * * `SS` - South Sudan - * * `ES` - Spain - * * `LK` - Sri Lanka - * * `SD` - Sudan - * * `SR` - Suriname - * * `SJ` - Svalbard and Jan Mayen - * * `SE` - Sweden - * * `CH` - Switzerland - * * `SY` - Syria - * * `TW` - Taiwan - * * `TJ` - Tajikistan - * * `TZ` - Tanzania - * * `TH` - Thailand - * * `TL` - Timor-Leste - * * `TG` - Togo - * * `TK` - Tokelau - * * `TO` - Tonga - * * `TT` - Trinidad and Tobago - * * `TN` - Tunisia - * * `TR` - Turkey - * * `TM` - Turkmenistan - * * `TC` - Turks and Caicos Islands - * * `TV` - Tuvalu - * * `UG` - Uganda - * * `UA` - Ukraine - * * `AE` - United Arab Emirates - * * `GB` - United Kingdom - * * `UM` - United States Minor Outlying Islands - * * `US` - United States of America - * * `UY` - Uruguay - * * `UZ` - Uzbekistan - * * `VU` - Vanuatu - * * `VE` - Venezuela - * * `VN` - Vietnam - * * `VG` - Virgin Islands (British) - * * `VI` - Virgin Islands (U.S.) - * * `WF` - Wallis and Futuna - * * `EH` - Western Sahara - * * `YE` - Yemen - * * `ZM` - Zambia - * * `ZW` - Zimbabwe - */ - country?: Merge.crm.AddressRequestCountry; - /** - * The address type. - * - * * `BILLING` - BILLING - * * `SHIPPING` - SHIPPING - */ - addressType?: Merge.crm.AddressRequestAddressType; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/crm/types/AddressRequestAddressType.ts b/src/api/resources/crm/types/AddressRequestAddressType.ts deleted file mode 100644 index 5d2cbabb6..000000000 --- a/src/api/resources/crm/types/AddressRequestAddressType.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 address type. - * - * * `BILLING` - BILLING - * * `SHIPPING` - SHIPPING - */ -export type AddressRequestAddressType = Merge.crm.AddressTypeEnum | string; diff --git a/src/api/resources/crm/types/AddressRequestCountry.ts b/src/api/resources/crm/types/AddressRequestCountry.ts deleted file mode 100644 index 190e32146..000000000 --- a/src/api/resources/crm/types/AddressRequestCountry.ts +++ /dev/null @@ -1,258 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The address's country. - * - * * `AF` - Afghanistan - * * `AX` - Åland Islands - * * `AL` - Albania - * * `DZ` - Algeria - * * `AS` - American Samoa - * * `AD` - Andorra - * * `AO` - Angola - * * `AI` - Anguilla - * * `AQ` - Antarctica - * * `AG` - Antigua and Barbuda - * * `AR` - Argentina - * * `AM` - Armenia - * * `AW` - Aruba - * * `AU` - Australia - * * `AT` - Austria - * * `AZ` - Azerbaijan - * * `BS` - Bahamas - * * `BH` - Bahrain - * * `BD` - Bangladesh - * * `BB` - Barbados - * * `BY` - Belarus - * * `BE` - Belgium - * * `BZ` - Belize - * * `BJ` - Benin - * * `BM` - Bermuda - * * `BT` - Bhutan - * * `BO` - Bolivia - * * `BQ` - Bonaire, Sint Eustatius and Saba - * * `BA` - Bosnia and Herzegovina - * * `BW` - Botswana - * * `BV` - Bouvet Island - * * `BR` - Brazil - * * `IO` - British Indian Ocean Territory - * * `BN` - Brunei - * * `BG` - Bulgaria - * * `BF` - Burkina Faso - * * `BI` - Burundi - * * `CV` - Cabo Verde - * * `KH` - Cambodia - * * `CM` - Cameroon - * * `CA` - Canada - * * `KY` - Cayman Islands - * * `CF` - Central African Republic - * * `TD` - Chad - * * `CL` - Chile - * * `CN` - China - * * `CX` - Christmas Island - * * `CC` - Cocos (Keeling) Islands - * * `CO` - Colombia - * * `KM` - Comoros - * * `CG` - Congo - * * `CD` - Congo (the Democratic Republic of the) - * * `CK` - Cook Islands - * * `CR` - Costa Rica - * * `CI` - Côte d'Ivoire - * * `HR` - Croatia - * * `CU` - Cuba - * * `CW` - Curaçao - * * `CY` - Cyprus - * * `CZ` - Czechia - * * `DK` - Denmark - * * `DJ` - Djibouti - * * `DM` - Dominica - * * `DO` - Dominican Republic - * * `EC` - Ecuador - * * `EG` - Egypt - * * `SV` - El Salvador - * * `GQ` - Equatorial Guinea - * * `ER` - Eritrea - * * `EE` - Estonia - * * `SZ` - Eswatini - * * `ET` - Ethiopia - * * `FK` - Falkland Islands (Malvinas) - * * `FO` - Faroe Islands - * * `FJ` - Fiji - * * `FI` - Finland - * * `FR` - France - * * `GF` - French Guiana - * * `PF` - French Polynesia - * * `TF` - French Southern Territories - * * `GA` - Gabon - * * `GM` - Gambia - * * `GE` - Georgia - * * `DE` - Germany - * * `GH` - Ghana - * * `GI` - Gibraltar - * * `GR` - Greece - * * `GL` - Greenland - * * `GD` - Grenada - * * `GP` - Guadeloupe - * * `GU` - Guam - * * `GT` - Guatemala - * * `GG` - Guernsey - * * `GN` - Guinea - * * `GW` - Guinea-Bissau - * * `GY` - Guyana - * * `HT` - Haiti - * * `HM` - Heard Island and McDonald Islands - * * `VA` - Holy See - * * `HN` - Honduras - * * `HK` - Hong Kong - * * `HU` - Hungary - * * `IS` - Iceland - * * `IN` - India - * * `ID` - Indonesia - * * `IR` - Iran - * * `IQ` - Iraq - * * `IE` - Ireland - * * `IM` - Isle of Man - * * `IL` - Israel - * * `IT` - Italy - * * `JM` - Jamaica - * * `JP` - Japan - * * `JE` - Jersey - * * `JO` - Jordan - * * `KZ` - Kazakhstan - * * `KE` - Kenya - * * `KI` - Kiribati - * * `KW` - Kuwait - * * `KG` - Kyrgyzstan - * * `LA` - Laos - * * `LV` - Latvia - * * `LB` - Lebanon - * * `LS` - Lesotho - * * `LR` - Liberia - * * `LY` - Libya - * * `LI` - Liechtenstein - * * `LT` - Lithuania - * * `LU` - Luxembourg - * * `MO` - Macao - * * `MG` - Madagascar - * * `MW` - Malawi - * * `MY` - Malaysia - * * `MV` - Maldives - * * `ML` - Mali - * * `MT` - Malta - * * `MH` - Marshall Islands - * * `MQ` - Martinique - * * `MR` - Mauritania - * * `MU` - Mauritius - * * `YT` - Mayotte - * * `MX` - Mexico - * * `FM` - Micronesia (Federated States of) - * * `MD` - Moldova - * * `MC` - Monaco - * * `MN` - Mongolia - * * `ME` - Montenegro - * * `MS` - Montserrat - * * `MA` - Morocco - * * `MZ` - Mozambique - * * `MM` - Myanmar - * * `NA` - Namibia - * * `NR` - Nauru - * * `NP` - Nepal - * * `NL` - Netherlands - * * `NC` - New Caledonia - * * `NZ` - New Zealand - * * `NI` - Nicaragua - * * `NE` - Niger - * * `NG` - Nigeria - * * `NU` - Niue - * * `NF` - Norfolk Island - * * `KP` - North Korea - * * `MK` - North Macedonia - * * `MP` - Northern Mariana Islands - * * `NO` - Norway - * * `OM` - Oman - * * `PK` - Pakistan - * * `PW` - Palau - * * `PS` - Palestine, State of - * * `PA` - Panama - * * `PG` - Papua New Guinea - * * `PY` - Paraguay - * * `PE` - Peru - * * `PH` - Philippines - * * `PN` - Pitcairn - * * `PL` - Poland - * * `PT` - Portugal - * * `PR` - Puerto Rico - * * `QA` - Qatar - * * `RE` - Réunion - * * `RO` - Romania - * * `RU` - Russia - * * `RW` - Rwanda - * * `BL` - Saint Barthélemy - * * `SH` - Saint Helena, Ascension and Tristan da Cunha - * * `KN` - Saint Kitts and Nevis - * * `LC` - Saint Lucia - * * `MF` - Saint Martin (French part) - * * `PM` - Saint Pierre and Miquelon - * * `VC` - Saint Vincent and the Grenadines - * * `WS` - Samoa - * * `SM` - San Marino - * * `ST` - Sao Tome and Principe - * * `SA` - Saudi Arabia - * * `SN` - Senegal - * * `RS` - Serbia - * * `SC` - Seychelles - * * `SL` - Sierra Leone - * * `SG` - Singapore - * * `SX` - Sint Maarten (Dutch part) - * * `SK` - Slovakia - * * `SI` - Slovenia - * * `SB` - Solomon Islands - * * `SO` - Somalia - * * `ZA` - South Africa - * * `GS` - South Georgia and the South Sandwich Islands - * * `KR` - South Korea - * * `SS` - South Sudan - * * `ES` - Spain - * * `LK` - Sri Lanka - * * `SD` - Sudan - * * `SR` - Suriname - * * `SJ` - Svalbard and Jan Mayen - * * `SE` - Sweden - * * `CH` - Switzerland - * * `SY` - Syria - * * `TW` - Taiwan - * * `TJ` - Tajikistan - * * `TZ` - Tanzania - * * `TH` - Thailand - * * `TL` - Timor-Leste - * * `TG` - Togo - * * `TK` - Tokelau - * * `TO` - Tonga - * * `TT` - Trinidad and Tobago - * * `TN` - Tunisia - * * `TR` - Turkey - * * `TM` - Turkmenistan - * * `TC` - Turks and Caicos Islands - * * `TV` - Tuvalu - * * `UG` - Uganda - * * `UA` - Ukraine - * * `AE` - United Arab Emirates - * * `GB` - United Kingdom - * * `UM` - United States Minor Outlying Islands - * * `US` - United States of America - * * `UY` - Uruguay - * * `UZ` - Uzbekistan - * * `VU` - Vanuatu - * * `VE` - Venezuela - * * `VN` - Vietnam - * * `VG` - Virgin Islands (British) - * * `VI` - Virgin Islands (U.S.) - * * `WF` - Wallis and Futuna - * * `EH` - Western Sahara - * * `YE` - Yemen - * * `ZM` - Zambia - * * `ZW` - Zimbabwe - */ -export type AddressRequestCountry = Merge.crm.CountryEnum | string; diff --git a/src/api/resources/crm/types/AddressTypeEnum.ts b/src/api/resources/crm/types/AddressTypeEnum.ts deleted file mode 100644 index 6258b1416..000000000 --- a/src/api/resources/crm/types/AddressTypeEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `BILLING` - BILLING - * * `SHIPPING` - SHIPPING - */ -export const AddressTypeEnum = { - Billing: "BILLING", - Shipping: "SHIPPING", -} as const; -export type AddressTypeEnum = (typeof AddressTypeEnum)[keyof typeof AddressTypeEnum]; diff --git a/src/api/resources/crm/types/AdvancedMetadata.ts b/src/api/resources/crm/types/AdvancedMetadata.ts deleted file mode 100644 index e5877563c..000000000 --- a/src/api/resources/crm/types/AdvancedMetadata.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface AdvancedMetadata { - id: string; - displayName?: string; - description?: string; - isRequired?: boolean; - isCustom?: boolean; - fieldChoices?: unknown[]; -} diff --git a/src/api/resources/crm/types/Association.ts b/src/api/resources/crm/types/Association.ts deleted file mode 100644 index 80a7aa9fa..000000000 --- a/src/api/resources/crm/types/Association.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Association Object - * ### Description - * The `Association` record refers to an instance of an Association Type. - * ### Usage Example - * TODO - */ -export interface Association { - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - sourceObject?: string; - targetObject?: string; - /** The association type the association belongs to. */ - associationType?: Merge.crm.AssociationAssociationType; -} diff --git a/src/api/resources/crm/types/AssociationAssociationType.ts b/src/api/resources/crm/types/AssociationAssociationType.ts deleted file mode 100644 index 754ae6671..000000000 --- a/src/api/resources/crm/types/AssociationAssociationType.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 association type the association belongs to. - */ -export type AssociationAssociationType = string | Merge.crm.AssociationType; diff --git a/src/api/resources/crm/types/AssociationSubType.ts b/src/api/resources/crm/types/AssociationSubType.ts deleted file mode 100644 index 5d06e7534..000000000 --- a/src/api/resources/crm/types/AssociationSubType.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface AssociationSubType { - id?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - originType?: string; -} diff --git a/src/api/resources/crm/types/AssociationType.ts b/src/api/resources/crm/types/AssociationType.ts deleted file mode 100644 index 215df2402..000000000 --- a/src/api/resources/crm/types/AssociationType.ts +++ /dev/null @@ -1,27 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The AssociationType Object - * ### Description - * The `Association Type` object represents the relationship between two objects. - * ### Usage Example - * TODO - */ -export interface AssociationType { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The class of the source object (Custom Object or Common Model) for the association type. */ - sourceObjectClass?: Record; - targetObjectClasses?: Merge.crm.AssociationSubType[]; - remoteKeyName?: string; - displayName?: string; - cardinality?: Merge.crm.AssociationTypeCardinality; - isRequired?: boolean; -} diff --git a/src/api/resources/crm/types/AssociationTypeCardinality.ts b/src/api/resources/crm/types/AssociationTypeCardinality.ts deleted file mode 100644 index ba5185ed5..000000000 --- a/src/api/resources/crm/types/AssociationTypeCardinality.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 AssociationTypeCardinality = Merge.crm.CardinalityEnum | string; diff --git a/src/api/resources/crm/types/AssociationTypeRequestRequest.ts b/src/api/resources/crm/types/AssociationTypeRequestRequest.ts deleted file mode 100644 index 363f50827..000000000 --- a/src/api/resources/crm/types/AssociationTypeRequestRequest.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AssociationTypeRequestRequest { - sourceObjectClass: Merge.crm.ObjectClassDescriptionRequest; - targetObjectClasses: Merge.crm.ObjectClassDescriptionRequest[]; - remoteKeyName: string; - displayName?: string; - cardinality?: Merge.crm.CardinalityEnum; - isRequired?: boolean; -} diff --git a/src/api/resources/crm/types/AsyncPassthroughReciept.ts b/src/api/resources/crm/types/AsyncPassthroughReciept.ts deleted file mode 100644 index d8bace047..000000000 --- a/src/api/resources/crm/types/AsyncPassthroughReciept.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface AsyncPassthroughReciept { - asyncPassthroughReceiptId: string; -} diff --git a/src/api/resources/crm/types/AuditLogEvent.ts b/src/api/resources/crm/types/AuditLogEvent.ts deleted file mode 100644 index 3fe03476f..000000000 --- a/src/api/resources/crm/types/AuditLogEvent.ts +++ /dev/null @@ -1,73 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AuditLogEvent { - id?: string; - /** The User's full name at the time of this Event occurring. */ - userName?: string; - /** The User's email at the time of this Event occurring. */ - userEmail?: string; - /** - * Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. - * - * * `ADMIN` - ADMIN - * * `DEVELOPER` - DEVELOPER - * * `MEMBER` - MEMBER - * * `API` - API - * * `SYSTEM` - SYSTEM - * * `MERGE_TEAM` - MERGE_TEAM - */ - role: Merge.crm.AuditLogEventRole; - ipAddress: string; - /** - * Designates the type of event that occurred. - * - * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * * `INVITED_USER` - INVITED_USER - * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * * `CREATED_DESTINATION` - CREATED_DESTINATION - * * `DELETED_DESTINATION` - DELETED_DESTINATION - * * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * * `CHANGED_SCOPES` - CHANGED_SCOPES - * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * * `RESET_PASSWORD` - RESET_PASSWORD - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * * `MUTED_ISSUE` - MUTED_ISSUE - * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - */ - eventType: Merge.crm.AuditLogEventEventType; - eventDescription: string; - createdAt?: Date; -} diff --git a/src/api/resources/crm/types/AuditLogEventEventType.ts b/src/api/resources/crm/types/AuditLogEventEventType.ts deleted file mode 100644 index 783e3670e..000000000 --- a/src/api/resources/crm/types/AuditLogEventEventType.ts +++ /dev/null @@ -1,52 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * Designates the type of event that occurred. - * - * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * * `INVITED_USER` - INVITED_USER - * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * * `CREATED_DESTINATION` - CREATED_DESTINATION - * * `DELETED_DESTINATION` - DELETED_DESTINATION - * * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * * `CHANGED_SCOPES` - CHANGED_SCOPES - * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * * `RESET_PASSWORD` - RESET_PASSWORD - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * * `MUTED_ISSUE` - MUTED_ISSUE - * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - */ -export type AuditLogEventEventType = Merge.crm.EventTypeEnum | string; diff --git a/src/api/resources/crm/types/AuditLogEventRole.ts b/src/api/resources/crm/types/AuditLogEventRole.ts deleted file mode 100644 index 6fe82275a..000000000 --- a/src/api/resources/crm/types/AuditLogEventRole.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. - * - * * `ADMIN` - ADMIN - * * `DEVELOPER` - DEVELOPER - * * `MEMBER` - MEMBER - * * `API` - API - * * `SYSTEM` - SYSTEM - * * `MERGE_TEAM` - MERGE_TEAM - */ -export type AuditLogEventRole = Merge.crm.RoleEnum | string; diff --git a/src/api/resources/crm/types/AvailableActions.ts b/src/api/resources/crm/types/AvailableActions.ts deleted file mode 100644 index 703eae26c..000000000 --- a/src/api/resources/crm/types/AvailableActions.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The AvailableActions Object - * ### Description - * The `Activity` object is used to see all available model/operation combinations for an integration. - * - * ### Usage Example - * Fetch all the actions available for the `Zenefits` integration. - */ -export interface AvailableActions { - integration: Merge.crm.AccountIntegration; - passthroughAvailable: boolean; - availableModelOperations?: Merge.crm.ModelOperation[]; -} diff --git a/src/api/resources/crm/types/CardinalityEnum.ts b/src/api/resources/crm/types/CardinalityEnum.ts deleted file mode 100644 index 99aa8317e..000000000 --- a/src/api/resources/crm/types/CardinalityEnum.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `ONE_TO_ONE` - ONE_TO_ONE - * * `MANY_TO_ONE` - MANY_TO_ONE - * * `MANY_TO_MANY` - MANY_TO_MANY - * * `ONE_TO_MANY` - ONE_TO_MANY - */ -export const CardinalityEnum = { - OneToOne: "ONE_TO_ONE", - ManyToOne: "MANY_TO_ONE", - ManyToMany: "MANY_TO_MANY", - OneToMany: "ONE_TO_MANY", -} as const; -export type CardinalityEnum = (typeof CardinalityEnum)[keyof typeof CardinalityEnum]; diff --git a/src/api/resources/crm/types/CategoriesEnum.ts b/src/api/resources/crm/types/CategoriesEnum.ts deleted file mode 100644 index fadfd2764..000000000 --- a/src/api/resources/crm/types/CategoriesEnum.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `hris` - hris - * * `ats` - ats - * * `accounting` - accounting - * * `ticketing` - ticketing - * * `crm` - crm - * * `mktg` - mktg - * * `filestorage` - filestorage - */ -export const CategoriesEnum = { - Hris: "hris", - Ats: "ats", - Accounting: "accounting", - Ticketing: "ticketing", - Crm: "crm", - Mktg: "mktg", - Filestorage: "filestorage", -} as const; -export type CategoriesEnum = (typeof CategoriesEnum)[keyof typeof CategoriesEnum]; diff --git a/src/api/resources/crm/types/CategoryEnum.ts b/src/api/resources/crm/types/CategoryEnum.ts deleted file mode 100644 index f2cd1da08..000000000 --- a/src/api/resources/crm/types/CategoryEnum.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `hris` - hris - * * `ats` - ats - * * `accounting` - accounting - * * `ticketing` - ticketing - * * `crm` - crm - * * `mktg` - mktg - * * `filestorage` - filestorage - */ -export const CategoryEnum = { - Hris: "hris", - Ats: "ats", - Accounting: "accounting", - Ticketing: "ticketing", - Crm: "crm", - Mktg: "mktg", - Filestorage: "filestorage", -} as const; -export type CategoryEnum = (typeof CategoryEnum)[keyof typeof CategoryEnum]; diff --git a/src/api/resources/crm/types/CommonModelScopeApi.ts b/src/api/resources/crm/types/CommonModelScopeApi.ts deleted file mode 100644 index b9e222061..000000000 --- a/src/api/resources/crm/types/CommonModelScopeApi.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface CommonModelScopeApi { - /** The common models you want to update the scopes for */ - commonModels: Merge.crm.IndividualCommonModelScopeDeserializer[]; -} diff --git a/src/api/resources/crm/types/CommonModelScopesBodyRequest.ts b/src/api/resources/crm/types/CommonModelScopesBodyRequest.ts deleted file mode 100644 index 3cdf80e9d..000000000 --- a/src/api/resources/crm/types/CommonModelScopesBodyRequest.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface CommonModelScopesBodyRequest { - modelId: string; - enabledActions: Merge.crm.EnabledActionsEnum[]; - disabledFields: string[]; -} diff --git a/src/api/resources/crm/types/Contact.ts b/src/api/resources/crm/types/Contact.ts deleted file mode 100644 index bf71f74d5..000000000 --- a/src/api/resources/crm/types/Contact.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Contact Object - * ### Description - * The `Contact` object is used to represent an existing point of contact at a company in a CRM system. - * ### Usage Example - * TODO - */ -export interface Contact { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The contact's first name. */ - firstName?: string; - /** The contact's last name. */ - lastName?: string; - /** The contact's account. */ - account?: Merge.crm.ContactAccount; - /** The contact's owner. */ - owner?: Merge.crm.ContactOwner; - addresses?: Merge.crm.Address[]; - emailAddresses?: Merge.crm.EmailAddress[]; - phoneNumbers?: Merge.crm.PhoneNumber[]; - /** When the contact's last activity occurred. */ - lastActivityAt?: Date; - /** When the third party's contact was created. */ - remoteCreatedAt?: 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.crm.RemoteData[]; - remoteFields?: Merge.crm.RemoteField[]; -} diff --git a/src/api/resources/crm/types/ContactAccount.ts b/src/api/resources/crm/types/ContactAccount.ts deleted file mode 100644 index 93ce635e4..000000000 --- a/src/api/resources/crm/types/ContactAccount.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 contact's account. - */ -export type ContactAccount = string | Merge.crm.Account; diff --git a/src/api/resources/crm/types/ContactOwner.ts b/src/api/resources/crm/types/ContactOwner.ts deleted file mode 100644 index aa05edd7e..000000000 --- a/src/api/resources/crm/types/ContactOwner.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 contact's owner. - */ -export type ContactOwner = string | Merge.crm.User; diff --git a/src/api/resources/crm/types/ContactRequest.ts b/src/api/resources/crm/types/ContactRequest.ts deleted file mode 100644 index d586943a3..000000000 --- a/src/api/resources/crm/types/ContactRequest.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Contact Object - * ### Description - * The `Contact` object is used to represent an existing point of contact at a company in a CRM system. - * ### Usage Example - * TODO - */ -export interface ContactRequest { - /** The contact's first name. */ - firstName?: string; - /** The contact's last name. */ - lastName?: string; - /** The contact's account. */ - account?: Merge.crm.ContactRequestAccount; - /** The contact's owner. */ - owner?: Merge.crm.ContactRequestOwner; - addresses?: Merge.crm.AddressRequest[]; - emailAddresses?: Merge.crm.EmailAddressRequest[]; - phoneNumbers?: Merge.crm.PhoneNumberRequest[]; - /** When the contact's last activity occurred. */ - lastActivityAt?: Date; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.crm.RemoteFieldRequest[]; -} diff --git a/src/api/resources/crm/types/ContactRequestAccount.ts b/src/api/resources/crm/types/ContactRequestAccount.ts deleted file mode 100644 index b52a5e99e..000000000 --- a/src/api/resources/crm/types/ContactRequestAccount.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 contact's account. - */ -export type ContactRequestAccount = string | Merge.crm.Account; diff --git a/src/api/resources/crm/types/ContactRequestOwner.ts b/src/api/resources/crm/types/ContactRequestOwner.ts deleted file mode 100644 index b36a151da..000000000 --- a/src/api/resources/crm/types/ContactRequestOwner.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 contact's owner. - */ -export type ContactRequestOwner = string | Merge.crm.User; diff --git a/src/api/resources/crm/types/CountryEnum.ts b/src/api/resources/crm/types/CountryEnum.ts deleted file mode 100644 index cbfdf589a..000000000 --- a/src/api/resources/crm/types/CountryEnum.ts +++ /dev/null @@ -1,505 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `AF` - Afghanistan - * * `AX` - Åland Islands - * * `AL` - Albania - * * `DZ` - Algeria - * * `AS` - American Samoa - * * `AD` - Andorra - * * `AO` - Angola - * * `AI` - Anguilla - * * `AQ` - Antarctica - * * `AG` - Antigua and Barbuda - * * `AR` - Argentina - * * `AM` - Armenia - * * `AW` - Aruba - * * `AU` - Australia - * * `AT` - Austria - * * `AZ` - Azerbaijan - * * `BS` - Bahamas - * * `BH` - Bahrain - * * `BD` - Bangladesh - * * `BB` - Barbados - * * `BY` - Belarus - * * `BE` - Belgium - * * `BZ` - Belize - * * `BJ` - Benin - * * `BM` - Bermuda - * * `BT` - Bhutan - * * `BO` - Bolivia - * * `BQ` - Bonaire, Sint Eustatius and Saba - * * `BA` - Bosnia and Herzegovina - * * `BW` - Botswana - * * `BV` - Bouvet Island - * * `BR` - Brazil - * * `IO` - British Indian Ocean Territory - * * `BN` - Brunei - * * `BG` - Bulgaria - * * `BF` - Burkina Faso - * * `BI` - Burundi - * * `CV` - Cabo Verde - * * `KH` - Cambodia - * * `CM` - Cameroon - * * `CA` - Canada - * * `KY` - Cayman Islands - * * `CF` - Central African Republic - * * `TD` - Chad - * * `CL` - Chile - * * `CN` - China - * * `CX` - Christmas Island - * * `CC` - Cocos (Keeling) Islands - * * `CO` - Colombia - * * `KM` - Comoros - * * `CG` - Congo - * * `CD` - Congo (the Democratic Republic of the) - * * `CK` - Cook Islands - * * `CR` - Costa Rica - * * `CI` - Côte d'Ivoire - * * `HR` - Croatia - * * `CU` - Cuba - * * `CW` - Curaçao - * * `CY` - Cyprus - * * `CZ` - Czechia - * * `DK` - Denmark - * * `DJ` - Djibouti - * * `DM` - Dominica - * * `DO` - Dominican Republic - * * `EC` - Ecuador - * * `EG` - Egypt - * * `SV` - El Salvador - * * `GQ` - Equatorial Guinea - * * `ER` - Eritrea - * * `EE` - Estonia - * * `SZ` - Eswatini - * * `ET` - Ethiopia - * * `FK` - Falkland Islands (Malvinas) - * * `FO` - Faroe Islands - * * `FJ` - Fiji - * * `FI` - Finland - * * `FR` - France - * * `GF` - French Guiana - * * `PF` - French Polynesia - * * `TF` - French Southern Territories - * * `GA` - Gabon - * * `GM` - Gambia - * * `GE` - Georgia - * * `DE` - Germany - * * `GH` - Ghana - * * `GI` - Gibraltar - * * `GR` - Greece - * * `GL` - Greenland - * * `GD` - Grenada - * * `GP` - Guadeloupe - * * `GU` - Guam - * * `GT` - Guatemala - * * `GG` - Guernsey - * * `GN` - Guinea - * * `GW` - Guinea-Bissau - * * `GY` - Guyana - * * `HT` - Haiti - * * `HM` - Heard Island and McDonald Islands - * * `VA` - Holy See - * * `HN` - Honduras - * * `HK` - Hong Kong - * * `HU` - Hungary - * * `IS` - Iceland - * * `IN` - India - * * `ID` - Indonesia - * * `IR` - Iran - * * `IQ` - Iraq - * * `IE` - Ireland - * * `IM` - Isle of Man - * * `IL` - Israel - * * `IT` - Italy - * * `JM` - Jamaica - * * `JP` - Japan - * * `JE` - Jersey - * * `JO` - Jordan - * * `KZ` - Kazakhstan - * * `KE` - Kenya - * * `KI` - Kiribati - * * `KW` - Kuwait - * * `KG` - Kyrgyzstan - * * `LA` - Laos - * * `LV` - Latvia - * * `LB` - Lebanon - * * `LS` - Lesotho - * * `LR` - Liberia - * * `LY` - Libya - * * `LI` - Liechtenstein - * * `LT` - Lithuania - * * `LU` - Luxembourg - * * `MO` - Macao - * * `MG` - Madagascar - * * `MW` - Malawi - * * `MY` - Malaysia - * * `MV` - Maldives - * * `ML` - Mali - * * `MT` - Malta - * * `MH` - Marshall Islands - * * `MQ` - Martinique - * * `MR` - Mauritania - * * `MU` - Mauritius - * * `YT` - Mayotte - * * `MX` - Mexico - * * `FM` - Micronesia (Federated States of) - * * `MD` - Moldova - * * `MC` - Monaco - * * `MN` - Mongolia - * * `ME` - Montenegro - * * `MS` - Montserrat - * * `MA` - Morocco - * * `MZ` - Mozambique - * * `MM` - Myanmar - * * `NA` - Namibia - * * `NR` - Nauru - * * `NP` - Nepal - * * `NL` - Netherlands - * * `NC` - New Caledonia - * * `NZ` - New Zealand - * * `NI` - Nicaragua - * * `NE` - Niger - * * `NG` - Nigeria - * * `NU` - Niue - * * `NF` - Norfolk Island - * * `KP` - North Korea - * * `MK` - North Macedonia - * * `MP` - Northern Mariana Islands - * * `NO` - Norway - * * `OM` - Oman - * * `PK` - Pakistan - * * `PW` - Palau - * * `PS` - Palestine, State of - * * `PA` - Panama - * * `PG` - Papua New Guinea - * * `PY` - Paraguay - * * `PE` - Peru - * * `PH` - Philippines - * * `PN` - Pitcairn - * * `PL` - Poland - * * `PT` - Portugal - * * `PR` - Puerto Rico - * * `QA` - Qatar - * * `RE` - Réunion - * * `RO` - Romania - * * `RU` - Russia - * * `RW` - Rwanda - * * `BL` - Saint Barthélemy - * * `SH` - Saint Helena, Ascension and Tristan da Cunha - * * `KN` - Saint Kitts and Nevis - * * `LC` - Saint Lucia - * * `MF` - Saint Martin (French part) - * * `PM` - Saint Pierre and Miquelon - * * `VC` - Saint Vincent and the Grenadines - * * `WS` - Samoa - * * `SM` - San Marino - * * `ST` - Sao Tome and Principe - * * `SA` - Saudi Arabia - * * `SN` - Senegal - * * `RS` - Serbia - * * `SC` - Seychelles - * * `SL` - Sierra Leone - * * `SG` - Singapore - * * `SX` - Sint Maarten (Dutch part) - * * `SK` - Slovakia - * * `SI` - Slovenia - * * `SB` - Solomon Islands - * * `SO` - Somalia - * * `ZA` - South Africa - * * `GS` - South Georgia and the South Sandwich Islands - * * `KR` - South Korea - * * `SS` - South Sudan - * * `ES` - Spain - * * `LK` - Sri Lanka - * * `SD` - Sudan - * * `SR` - Suriname - * * `SJ` - Svalbard and Jan Mayen - * * `SE` - Sweden - * * `CH` - Switzerland - * * `SY` - Syria - * * `TW` - Taiwan - * * `TJ` - Tajikistan - * * `TZ` - Tanzania - * * `TH` - Thailand - * * `TL` - Timor-Leste - * * `TG` - Togo - * * `TK` - Tokelau - * * `TO` - Tonga - * * `TT` - Trinidad and Tobago - * * `TN` - Tunisia - * * `TR` - Turkey - * * `TM` - Turkmenistan - * * `TC` - Turks and Caicos Islands - * * `TV` - Tuvalu - * * `UG` - Uganda - * * `UA` - Ukraine - * * `AE` - United Arab Emirates - * * `GB` - United Kingdom - * * `UM` - United States Minor Outlying Islands - * * `US` - United States of America - * * `UY` - Uruguay - * * `UZ` - Uzbekistan - * * `VU` - Vanuatu - * * `VE` - Venezuela - * * `VN` - Vietnam - * * `VG` - Virgin Islands (British) - * * `VI` - Virgin Islands (U.S.) - * * `WF` - Wallis and Futuna - * * `EH` - Western Sahara - * * `YE` - Yemen - * * `ZM` - Zambia - * * `ZW` - Zimbabwe - */ -export const CountryEnum = { - Af: "AF", - Ax: "AX", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Bq: "BQ", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Cv: "CV", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cw: "CW", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Sz: "SZ", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gg: "GG", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Im: "IM", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Je: "JE", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Me: "ME", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Kp: "KP", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Bl: "BL", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Mf: "MF", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Rs: "RS", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sx: "SX", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Kr: "KR", - Ss: "SS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Um: "UM", - Us: "US", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", -} as const; -export type CountryEnum = (typeof CountryEnum)[keyof typeof CountryEnum]; diff --git a/src/api/resources/crm/types/CrmAccountResponse.ts b/src/api/resources/crm/types/CrmAccountResponse.ts deleted file mode 100644 index 9acee73e5..000000000 --- a/src/api/resources/crm/types/CrmAccountResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface CrmAccountResponse { - model: Merge.crm.Account; - warnings: Merge.crm.WarningValidationProblem[]; - errors: Merge.crm.ErrorValidationProblem[]; - logs?: Merge.crm.DebugModeLog[]; -} diff --git a/src/api/resources/crm/types/CrmAssociationTypeResponse.ts b/src/api/resources/crm/types/CrmAssociationTypeResponse.ts deleted file mode 100644 index 1a07c5665..000000000 --- a/src/api/resources/crm/types/CrmAssociationTypeResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface CrmAssociationTypeResponse { - model: Merge.crm.AssociationType; - warnings: Merge.crm.WarningValidationProblem[]; - errors: Merge.crm.ErrorValidationProblem[]; - logs?: Merge.crm.DebugModeLog[]; -} diff --git a/src/api/resources/crm/types/CrmContactResponse.ts b/src/api/resources/crm/types/CrmContactResponse.ts deleted file mode 100644 index 0275cf4d9..000000000 --- a/src/api/resources/crm/types/CrmContactResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface CrmContactResponse { - model: Merge.crm.Contact; - warnings: Merge.crm.WarningValidationProblem[]; - errors: Merge.crm.ErrorValidationProblem[]; - logs?: Merge.crm.DebugModeLog[]; -} diff --git a/src/api/resources/crm/types/CrmCustomObjectResponse.ts b/src/api/resources/crm/types/CrmCustomObjectResponse.ts deleted file mode 100644 index 722953d06..000000000 --- a/src/api/resources/crm/types/CrmCustomObjectResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface CrmCustomObjectResponse { - model: Merge.crm.CustomObject; - warnings: Merge.crm.WarningValidationProblem[]; - errors: Merge.crm.ErrorValidationProblem[]; - logs?: Merge.crm.DebugModeLog[]; -} diff --git a/src/api/resources/crm/types/CustomObject.ts b/src/api/resources/crm/types/CustomObject.ts deleted file mode 100644 index e1dfad276..000000000 --- a/src/api/resources/crm/types/CustomObject.ts +++ /dev/null @@ -1,25 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The CustomObject Object - * ### Description - * The `Custom Object` record refers to an instance of a Custom Object Class. - * ### Usage Example - * TODO - */ -export interface CustomObject { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The custom object class the custom object record belongs to. */ - objectClass?: string; - /** The fields and values contained within the custom object record. */ - fields?: Record; - remoteFields?: Merge.crm.RemoteField[]; -} diff --git a/src/api/resources/crm/types/CustomObjectClass.ts b/src/api/resources/crm/types/CustomObjectClass.ts deleted file mode 100644 index 3dd75c3b2..000000000 --- a/src/api/resources/crm/types/CustomObjectClass.ts +++ /dev/null @@ -1,27 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Custom Object Class Object - * ### Description - * The `Custom Object Class` object is used to represent a Custom Object Schema in the remote system. - * ### Usage Example - * TODO - */ -export interface CustomObjectClass { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - createdAt?: Date; - modifiedAt?: Date; - /** The custom object class's name. */ - name?: string; - /** The custom object class's description. */ - description?: string; - /** The custom object class's singular and plural labels. */ - labels?: Record; - fields?: Merge.crm.RemoteFieldClassForCustomObjectClass[]; - /** The types of associations with other models that the custom object class can have. */ - associationTypes?: Record[]; -} diff --git a/src/api/resources/crm/types/CustomObjectRequest.ts b/src/api/resources/crm/types/CustomObjectRequest.ts deleted file mode 100644 index f449fbaa1..000000000 --- a/src/api/resources/crm/types/CustomObjectRequest.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface CustomObjectRequest { - fields: Record; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/crm/types/DataPassthroughRequest.ts b/src/api/resources/crm/types/DataPassthroughRequest.ts deleted file mode 100644 index 63b1a09f3..000000000 --- a/src/api/resources/crm/types/DataPassthroughRequest.ts +++ /dev/null @@ -1,28 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The DataPassthrough Object - * ### Description - * The `DataPassthrough` object is used to send information to an otherwise-unsupported third-party endpoint. - * - * ### Usage Example - * Create a `DataPassthrough` to get team hierarchies from your Rippling integration. - */ -export interface DataPassthroughRequest { - method: Merge.crm.MethodEnum; - /** The path of the request in the third party's platform. */ - path: string; - /** An optional override of the third party's base url for the request. */ - baseUrlOverride?: string; - /** The data with the request. You must include a `request_format` parameter matching the data's format */ - data?: string; - /** Pass an array of `MultipartFormField` objects in here instead of using the `data` param if `request_format` is set to `MULTIPART`. */ - multipartFormData?: Merge.crm.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.crm.RequestFormatEnum; - /** 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/crm/types/DebugModeLog.ts b/src/api/resources/crm/types/DebugModeLog.ts deleted file mode 100644 index fcaa86c78..000000000 --- a/src/api/resources/crm/types/DebugModeLog.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface DebugModeLog { - logId: string; - dashboardView: string; - logSummary: Merge.crm.DebugModelLogSummary; -} diff --git a/src/api/resources/crm/types/DebugModelLogSummary.ts b/src/api/resources/crm/types/DebugModelLogSummary.ts deleted file mode 100644 index ffce707e3..000000000 --- a/src/api/resources/crm/types/DebugModelLogSummary.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface DebugModelLogSummary { - url: string; - method: string; - statusCode: number; -} diff --git a/src/api/resources/crm/types/DirectionEnum.ts b/src/api/resources/crm/types/DirectionEnum.ts deleted file mode 100644 index ae3eeb4f7..000000000 --- a/src/api/resources/crm/types/DirectionEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `INBOUND` - INBOUND - * * `OUTBOUND` - OUTBOUND - */ -export const DirectionEnum = { - Inbound: "INBOUND", - Outbound: "OUTBOUND", -} as const; -export type DirectionEnum = (typeof DirectionEnum)[keyof typeof DirectionEnum]; diff --git a/src/api/resources/crm/types/EmailAddress.ts b/src/api/resources/crm/types/EmailAddress.ts deleted file mode 100644 index 0d2afd950..000000000 --- a/src/api/resources/crm/types/EmailAddress.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * # The EmailAddress Object - * ### Description - * The `EmailAddress` object is used to represent an entity's email address. - * ### Usage Example - * Fetch from the `GET Contact` endpoint and view their email addresses. - */ -export interface EmailAddress { - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The email address. */ - emailAddress?: string; - /** The email address's type. */ - emailAddressType?: string; -} diff --git a/src/api/resources/crm/types/EmailAddressRequest.ts b/src/api/resources/crm/types/EmailAddressRequest.ts deleted file mode 100644 index d2103b7db..000000000 --- a/src/api/resources/crm/types/EmailAddressRequest.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * # The EmailAddress Object - * ### Description - * The `EmailAddress` object is used to represent an entity's email address. - * ### Usage Example - * Fetch from the `GET Contact` endpoint and view their email addresses. - */ -export interface EmailAddressRequest { - /** The email address. */ - emailAddress?: string; - /** The email address's type. */ - emailAddressType?: string; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/crm/types/EnabledActionsEnum.ts b/src/api/resources/crm/types/EnabledActionsEnum.ts deleted file mode 100644 index f6ce6a343..000000000 --- a/src/api/resources/crm/types/EnabledActionsEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `READ` - READ - * * `WRITE` - WRITE - */ -export const EnabledActionsEnum = { - Read: "READ", - Write: "WRITE", -} as const; -export type EnabledActionsEnum = (typeof EnabledActionsEnum)[keyof typeof EnabledActionsEnum]; diff --git a/src/api/resources/crm/types/EncodingEnum.ts b/src/api/resources/crm/types/EncodingEnum.ts deleted file mode 100644 index 538e90395..000000000 --- a/src/api/resources/crm/types/EncodingEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `RAW` - RAW - * * `BASE64` - BASE64 - * * `GZIP_BASE64` - GZIP_BASE64 - */ -export const EncodingEnum = { - Raw: "RAW", - Base64: "BASE64", - GzipBase64: "GZIP_BASE64", -} as const; -export type EncodingEnum = (typeof EncodingEnum)[keyof typeof EncodingEnum]; diff --git a/src/api/resources/crm/types/Engagement.ts b/src/api/resources/crm/types/Engagement.ts deleted file mode 100644 index d13b35f11..000000000 --- a/src/api/resources/crm/types/Engagement.ts +++ /dev/null @@ -1,47 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Engagement Object - * ### Description - * The `Engagement` object is used to represent an interaction noted in a CRM system. - * ### Usage Example - * TODO - */ -export interface Engagement { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The engagement's owner. */ - owner?: Merge.crm.EngagementOwner; - /** The engagement's content. */ - content?: string; - /** The engagement's subject. */ - subject?: string; - /** - * The engagement's direction. - * - * * `INBOUND` - INBOUND - * * `OUTBOUND` - OUTBOUND - */ - direction?: Merge.crm.EngagementDirection; - /** The engagement type of the engagement. */ - engagementType?: Merge.crm.EngagementEngagementType; - /** The time at which the engagement started. */ - startTime?: Date; - /** The time at which the engagement ended. */ - endTime?: Date; - /** The account of the engagement. */ - account?: Merge.crm.EngagementAccount; - contacts?: (Merge.crm.EngagementContactsItem | 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; - remoteData?: Merge.crm.RemoteData[]; - remoteFields?: Merge.crm.RemoteField[]; -} diff --git a/src/api/resources/crm/types/EngagementAccount.ts b/src/api/resources/crm/types/EngagementAccount.ts deleted file mode 100644 index 5accf5eda..000000000 --- a/src/api/resources/crm/types/EngagementAccount.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 account of the engagement. - */ -export type EngagementAccount = string | Merge.crm.Account; diff --git a/src/api/resources/crm/types/EngagementContactsItem.ts b/src/api/resources/crm/types/EngagementContactsItem.ts deleted file mode 100644 index f1b9ebff5..000000000 --- a/src/api/resources/crm/types/EngagementContactsItem.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 EngagementContactsItem = string | Merge.crm.Contact; diff --git a/src/api/resources/crm/types/EngagementDirection.ts b/src/api/resources/crm/types/EngagementDirection.ts deleted file mode 100644 index 31c9308a0..000000000 --- a/src/api/resources/crm/types/EngagementDirection.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 engagement's direction. - * - * * `INBOUND` - INBOUND - * * `OUTBOUND` - OUTBOUND - */ -export type EngagementDirection = Merge.crm.DirectionEnum | string; diff --git a/src/api/resources/crm/types/EngagementEngagementType.ts b/src/api/resources/crm/types/EngagementEngagementType.ts deleted file mode 100644 index f26b3a8c6..000000000 --- a/src/api/resources/crm/types/EngagementEngagementType.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 engagement type of the engagement. - */ -export type EngagementEngagementType = string | Merge.crm.EngagementType; diff --git a/src/api/resources/crm/types/EngagementOwner.ts b/src/api/resources/crm/types/EngagementOwner.ts deleted file mode 100644 index 0ad68142c..000000000 --- a/src/api/resources/crm/types/EngagementOwner.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 engagement's owner. - */ -export type EngagementOwner = string | Merge.crm.User; diff --git a/src/api/resources/crm/types/EngagementRequest.ts b/src/api/resources/crm/types/EngagementRequest.ts deleted file mode 100644 index 1c2a54a82..000000000 --- a/src/api/resources/crm/types/EngagementRequest.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Engagement Object - * ### Description - * The `Engagement` object is used to represent an interaction noted in a CRM system. - * ### Usage Example - * TODO - */ -export interface EngagementRequest { - /** The engagement's owner. */ - owner?: Merge.crm.EngagementRequestOwner; - /** The engagement's content. */ - content?: string; - /** The engagement's subject. */ - subject?: string; - /** - * The engagement's direction. - * - * * `INBOUND` - INBOUND - * * `OUTBOUND` - OUTBOUND - */ - direction?: Merge.crm.EngagementRequestDirection; - /** The engagement type of the engagement. */ - engagementType?: Merge.crm.EngagementRequestEngagementType; - /** The time at which the engagement started. */ - startTime?: Date; - /** The time at which the engagement ended. */ - endTime?: Date; - /** The account of the engagement. */ - account?: Merge.crm.EngagementRequestAccount; - contacts?: (Merge.crm.EngagementRequestContactsItem | undefined)[]; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.crm.RemoteFieldRequest[]; -} diff --git a/src/api/resources/crm/types/EngagementRequestAccount.ts b/src/api/resources/crm/types/EngagementRequestAccount.ts deleted file mode 100644 index 87961409b..000000000 --- a/src/api/resources/crm/types/EngagementRequestAccount.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 account of the engagement. - */ -export type EngagementRequestAccount = string | Merge.crm.Account; diff --git a/src/api/resources/crm/types/EngagementRequestContactsItem.ts b/src/api/resources/crm/types/EngagementRequestContactsItem.ts deleted file mode 100644 index 1c2b9cfb9..000000000 --- a/src/api/resources/crm/types/EngagementRequestContactsItem.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 EngagementRequestContactsItem = string | Merge.crm.Contact; diff --git a/src/api/resources/crm/types/EngagementRequestDirection.ts b/src/api/resources/crm/types/EngagementRequestDirection.ts deleted file mode 100644 index 1c6ce3438..000000000 --- a/src/api/resources/crm/types/EngagementRequestDirection.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 engagement's direction. - * - * * `INBOUND` - INBOUND - * * `OUTBOUND` - OUTBOUND - */ -export type EngagementRequestDirection = Merge.crm.DirectionEnum | string; diff --git a/src/api/resources/crm/types/EngagementRequestEngagementType.ts b/src/api/resources/crm/types/EngagementRequestEngagementType.ts deleted file mode 100644 index f6907aa2a..000000000 --- a/src/api/resources/crm/types/EngagementRequestEngagementType.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 engagement type of the engagement. - */ -export type EngagementRequestEngagementType = string | Merge.crm.EngagementType; diff --git a/src/api/resources/crm/types/EngagementRequestOwner.ts b/src/api/resources/crm/types/EngagementRequestOwner.ts deleted file mode 100644 index 178b7ba53..000000000 --- a/src/api/resources/crm/types/EngagementRequestOwner.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 engagement's owner. - */ -export type EngagementRequestOwner = string | Merge.crm.User; diff --git a/src/api/resources/crm/types/EngagementResponse.ts b/src/api/resources/crm/types/EngagementResponse.ts deleted file mode 100644 index 6fa583859..000000000 --- a/src/api/resources/crm/types/EngagementResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface EngagementResponse { - model: Merge.crm.Engagement; - warnings: Merge.crm.WarningValidationProblem[]; - errors: Merge.crm.ErrorValidationProblem[]; - logs?: Merge.crm.DebugModeLog[]; -} diff --git a/src/api/resources/crm/types/EngagementType.ts b/src/api/resources/crm/types/EngagementType.ts deleted file mode 100644 index 64dbd14ee..000000000 --- a/src/api/resources/crm/types/EngagementType.ts +++ /dev/null @@ -1,31 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Engagement Type Object - * ### Description - * The `Engagement Type` object is used to represent an interaction activity. A given `Engagement` typically has an `Engagement Type` object represented in the engagement_type field. - * ### Usage Example - * TODO - */ -export interface EngagementType { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** - * The engagement type's activity type. - * - * * `CALL` - CALL - * * `MEETING` - MEETING - * * `EMAIL` - EMAIL - */ - activityType?: Merge.crm.EngagementTypeActivityType; - /** The engagement type's name. */ - name?: string; - remoteFields?: Merge.crm.RemoteField[]; -} diff --git a/src/api/resources/crm/types/EngagementTypeActivityType.ts b/src/api/resources/crm/types/EngagementTypeActivityType.ts deleted file mode 100644 index ab4964198..000000000 --- a/src/api/resources/crm/types/EngagementTypeActivityType.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 engagement type's activity type. - * - * * `CALL` - CALL - * * `MEETING` - MEETING - * * `EMAIL` - EMAIL - */ -export type EngagementTypeActivityType = Merge.crm.ActivityTypeEnum | string; diff --git a/src/api/resources/crm/types/ErrorValidationProblem.ts b/src/api/resources/crm/types/ErrorValidationProblem.ts deleted file mode 100644 index 30a3ba294..000000000 --- a/src/api/resources/crm/types/ErrorValidationProblem.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface ErrorValidationProblem { - source?: Merge.crm.ValidationProblemSource; - title: string; - detail: string; - problemType: string; -} diff --git a/src/api/resources/crm/types/EventTypeEnum.ts b/src/api/resources/crm/types/EventTypeEnum.ts deleted file mode 100644 index 4e8aee7f7..000000000 --- a/src/api/resources/crm/types/EventTypeEnum.ts +++ /dev/null @@ -1,93 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * * `INVITED_USER` - INVITED_USER - * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * * `CREATED_DESTINATION` - CREATED_DESTINATION - * * `DELETED_DESTINATION` - DELETED_DESTINATION - * * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * * `CHANGED_SCOPES` - CHANGED_SCOPES - * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * * `RESET_PASSWORD` - RESET_PASSWORD - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * * `MUTED_ISSUE` - MUTED_ISSUE - * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - */ -export const EventTypeEnum = { - CreatedRemoteProductionApiKey: "CREATED_REMOTE_PRODUCTION_API_KEY", - DeletedRemoteProductionApiKey: "DELETED_REMOTE_PRODUCTION_API_KEY", - CreatedTestApiKey: "CREATED_TEST_API_KEY", - DeletedTestApiKey: "DELETED_TEST_API_KEY", - RegeneratedProductionApiKey: "REGENERATED_PRODUCTION_API_KEY", - RegeneratedWebhookSignature: "REGENERATED_WEBHOOK_SIGNATURE", - InvitedUser: "INVITED_USER", - TwoFactorAuthEnabled: "TWO_FACTOR_AUTH_ENABLED", - TwoFactorAuthDisabled: "TWO_FACTOR_AUTH_DISABLED", - DeletedLinkedAccount: "DELETED_LINKED_ACCOUNT", - DeletedAllCommonModelsForLinkedAccount: "DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT", - CreatedDestination: "CREATED_DESTINATION", - DeletedDestination: "DELETED_DESTINATION", - ChangedDestination: "CHANGED_DESTINATION", - ChangedScopes: "CHANGED_SCOPES", - ChangedPersonalInformation: "CHANGED_PERSONAL_INFORMATION", - ChangedOrganizationSettings: "CHANGED_ORGANIZATION_SETTINGS", - EnabledIntegration: "ENABLED_INTEGRATION", - DisabledIntegration: "DISABLED_INTEGRATION", - EnabledCategory: "ENABLED_CATEGORY", - DisabledCategory: "DISABLED_CATEGORY", - ChangedPassword: "CHANGED_PASSWORD", - ResetPassword: "RESET_PASSWORD", - EnabledRedactUnmappedDataForOrganization: "ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION", - EnabledRedactUnmappedDataForLinkedAccount: "ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT", - DisabledRedactUnmappedDataForOrganization: "DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION", - DisabledRedactUnmappedDataForLinkedAccount: "DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT", - CreatedIntegrationWideFieldMapping: "CREATED_INTEGRATION_WIDE_FIELD_MAPPING", - CreatedLinkedAccountFieldMapping: "CREATED_LINKED_ACCOUNT_FIELD_MAPPING", - ChangedIntegrationWideFieldMapping: "CHANGED_INTEGRATION_WIDE_FIELD_MAPPING", - ChangedLinkedAccountFieldMapping: "CHANGED_LINKED_ACCOUNT_FIELD_MAPPING", - DeletedIntegrationWideFieldMapping: "DELETED_INTEGRATION_WIDE_FIELD_MAPPING", - DeletedLinkedAccountFieldMapping: "DELETED_LINKED_ACCOUNT_FIELD_MAPPING", - CreatedLinkedAccountCommonModelOverride: "CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE", - ChangedLinkedAccountCommonModelOverride: "CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE", - DeletedLinkedAccountCommonModelOverride: "DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE", - ForcedLinkedAccountResync: "FORCED_LINKED_ACCOUNT_RESYNC", - MutedIssue: "MUTED_ISSUE", - GeneratedMagicLink: "GENERATED_MAGIC_LINK", - EnabledMergeWebhook: "ENABLED_MERGE_WEBHOOK", - DisabledMergeWebhook: "DISABLED_MERGE_WEBHOOK", - MergeWebhookTargetChanged: "MERGE_WEBHOOK_TARGET_CHANGED", - EndUserCredentialsAccessed: "END_USER_CREDENTIALS_ACCESSED", -} as const; -export type EventTypeEnum = (typeof EventTypeEnum)[keyof typeof EventTypeEnum]; diff --git a/src/api/resources/crm/types/ExternalTargetFieldApi.ts b/src/api/resources/crm/types/ExternalTargetFieldApi.ts deleted file mode 100644 index 7823d0137..000000000 --- a/src/api/resources/crm/types/ExternalTargetFieldApi.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface ExternalTargetFieldApi { - name?: string; - description?: string; - isMapped?: string; -} diff --git a/src/api/resources/crm/types/ExternalTargetFieldApiResponse.ts b/src/api/resources/crm/types/ExternalTargetFieldApiResponse.ts deleted file mode 100644 index b194ec99e..000000000 --- a/src/api/resources/crm/types/ExternalTargetFieldApiResponse.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface ExternalTargetFieldApiResponse { - account?: Merge.crm.ExternalTargetFieldApi[]; - contact?: Merge.crm.ExternalTargetFieldApi[]; - lead?: Merge.crm.ExternalTargetFieldApi[]; - note?: Merge.crm.ExternalTargetFieldApi[]; - opportunity?: Merge.crm.ExternalTargetFieldApi[]; - stage?: Merge.crm.ExternalTargetFieldApi[]; - user?: Merge.crm.ExternalTargetFieldApi[]; - task?: Merge.crm.ExternalTargetFieldApi[]; - engagement?: Merge.crm.ExternalTargetFieldApi[]; -} diff --git a/src/api/resources/crm/types/FieldFormatEnum.ts b/src/api/resources/crm/types/FieldFormatEnum.ts deleted file mode 100644 index 47fd5bfe9..000000000 --- a/src/api/resources/crm/types/FieldFormatEnum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `string` - string - * * `number` - number - * * `date` - date - * * `datetime` - datetime - * * `bool` - bool - * * `list` - list - */ -export const FieldFormatEnum = { - String: "string", - Number: "number", - Date: "date", - Datetime: "datetime", - Bool: "bool", - List: "list", -} as const; -export type FieldFormatEnum = (typeof FieldFormatEnum)[keyof typeof FieldFormatEnum]; diff --git a/src/api/resources/crm/types/FieldMappingApiInstance.ts b/src/api/resources/crm/types/FieldMappingApiInstance.ts deleted file mode 100644 index 3351944c2..000000000 --- a/src/api/resources/crm/types/FieldMappingApiInstance.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface FieldMappingApiInstance { - id?: string; - isIntegrationWide?: boolean; - targetField?: Merge.crm.FieldMappingApiInstanceTargetField; - remoteField?: Merge.crm.FieldMappingApiInstanceRemoteField; -} diff --git a/src/api/resources/crm/types/FieldMappingApiInstanceRemoteField.ts b/src/api/resources/crm/types/FieldMappingApiInstanceRemoteField.ts deleted file mode 100644 index d44f3f55f..000000000 --- a/src/api/resources/crm/types/FieldMappingApiInstanceRemoteField.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface FieldMappingApiInstanceRemoteField { - remoteKeyName?: string; - schema?: Record; - remoteEndpointInfo: Merge.crm.FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo; -} diff --git a/src/api/resources/crm/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts b/src/api/resources/crm/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts deleted file mode 100644 index 1f6e6cb3c..000000000 --- a/src/api/resources/crm/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo { - method?: string; - urlPath?: string; - fieldTraversalPath?: string[]; -} diff --git a/src/api/resources/crm/types/FieldMappingApiInstanceResponse.ts b/src/api/resources/crm/types/FieldMappingApiInstanceResponse.ts deleted file mode 100644 index ff8832076..000000000 --- a/src/api/resources/crm/types/FieldMappingApiInstanceResponse.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface FieldMappingApiInstanceResponse { - account?: Merge.crm.FieldMappingApiInstance[]; - contact?: Merge.crm.FieldMappingApiInstance[]; - lead?: Merge.crm.FieldMappingApiInstance[]; - note?: Merge.crm.FieldMappingApiInstance[]; - opportunity?: Merge.crm.FieldMappingApiInstance[]; - stage?: Merge.crm.FieldMappingApiInstance[]; - user?: Merge.crm.FieldMappingApiInstance[]; - task?: Merge.crm.FieldMappingApiInstance[]; - engagement?: Merge.crm.FieldMappingApiInstance[]; -} diff --git a/src/api/resources/crm/types/FieldMappingApiInstanceTargetField.ts b/src/api/resources/crm/types/FieldMappingApiInstanceTargetField.ts deleted file mode 100644 index da6fd1317..000000000 --- a/src/api/resources/crm/types/FieldMappingApiInstanceTargetField.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface FieldMappingApiInstanceTargetField { - name: string; - description: string; - isOrganizationWide: boolean; -} diff --git a/src/api/resources/crm/types/FieldMappingInstanceResponse.ts b/src/api/resources/crm/types/FieldMappingInstanceResponse.ts deleted file mode 100644 index cab9fc81a..000000000 --- a/src/api/resources/crm/types/FieldMappingInstanceResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface FieldMappingInstanceResponse { - model: Merge.crm.FieldMappingApiInstance; - warnings: Merge.crm.WarningValidationProblem[]; - errors: Merge.crm.ErrorValidationProblem[]; - logs?: Merge.crm.DebugModeLog[]; -} diff --git a/src/api/resources/crm/types/FieldPermissionDeserializer.ts b/src/api/resources/crm/types/FieldPermissionDeserializer.ts deleted file mode 100644 index 62ec4f2de..000000000 --- a/src/api/resources/crm/types/FieldPermissionDeserializer.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface FieldPermissionDeserializer { - enabledFields?: unknown[]; - disabledFields?: unknown[]; -} diff --git a/src/api/resources/crm/types/FieldPermissionDeserializerRequest.ts b/src/api/resources/crm/types/FieldPermissionDeserializerRequest.ts deleted file mode 100644 index 768c90546..000000000 --- a/src/api/resources/crm/types/FieldPermissionDeserializerRequest.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface FieldPermissionDeserializerRequest { - enabledFields?: unknown[]; - disabledFields?: unknown[]; -} diff --git a/src/api/resources/crm/types/FieldTypeEnum.ts b/src/api/resources/crm/types/FieldTypeEnum.ts deleted file mode 100644 index 40fb1b5c6..000000000 --- a/src/api/resources/crm/types/FieldTypeEnum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `string` - string - * * `number` - number - * * `date` - date - * * `datetime` - datetime - * * `bool` - bool - * * `list` - list - */ -export const FieldTypeEnum = { - String: "string", - Number: "number", - Date: "date", - Datetime: "datetime", - Bool: "bool", - List: "list", -} as const; -export type FieldTypeEnum = (typeof FieldTypeEnum)[keyof typeof FieldTypeEnum]; diff --git a/src/api/resources/crm/types/IgnoreCommonModelRequest.ts b/src/api/resources/crm/types/IgnoreCommonModelRequest.ts deleted file mode 100644 index 16c773d8d..000000000 --- a/src/api/resources/crm/types/IgnoreCommonModelRequest.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface IgnoreCommonModelRequest { - reason: Merge.crm.IgnoreCommonModelRequestReason; - message?: string; -} diff --git a/src/api/resources/crm/types/IgnoreCommonModelRequestReason.ts b/src/api/resources/crm/types/IgnoreCommonModelRequestReason.ts deleted file mode 100644 index 03f85fef5..000000000 --- a/src/api/resources/crm/types/IgnoreCommonModelRequestReason.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export type IgnoreCommonModelRequestReason = Merge.crm.ReasonEnum | string; diff --git a/src/api/resources/crm/types/IndividualCommonModelScopeDeserializer.ts b/src/api/resources/crm/types/IndividualCommonModelScopeDeserializer.ts deleted file mode 100644 index f0f202c14..000000000 --- a/src/api/resources/crm/types/IndividualCommonModelScopeDeserializer.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface IndividualCommonModelScopeDeserializer { - modelName: string; - modelPermissions?: Record; - fieldPermissions?: Merge.crm.FieldPermissionDeserializer; -} diff --git a/src/api/resources/crm/types/IndividualCommonModelScopeDeserializerRequest.ts b/src/api/resources/crm/types/IndividualCommonModelScopeDeserializerRequest.ts deleted file mode 100644 index be1cc77e7..000000000 --- a/src/api/resources/crm/types/IndividualCommonModelScopeDeserializerRequest.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface IndividualCommonModelScopeDeserializerRequest { - modelName: string; - modelPermissions?: Record; - fieldPermissions?: Merge.crm.FieldPermissionDeserializerRequest; -} diff --git a/src/api/resources/crm/types/Issue.ts b/src/api/resources/crm/types/Issue.ts deleted file mode 100644 index e22c1c82a..000000000 --- a/src/api/resources/crm/types/Issue.ts +++ /dev/null @@ -1,20 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface Issue { - id?: string; - /** - * Status of the issue. Options: ('ONGOING', 'RESOLVED') - * - * * `ONGOING` - ONGOING - * * `RESOLVED` - RESOLVED - */ - status?: Merge.crm.IssueStatus; - errorDescription: string; - endUser?: Record; - firstIncidentTime?: Date; - lastIncidentTime?: Date; - isMuted?: boolean; - errorDetails?: string[]; -} diff --git a/src/api/resources/crm/types/IssueStatus.ts b/src/api/resources/crm/types/IssueStatus.ts deleted file mode 100644 index b1f585451..000000000 --- a/src/api/resources/crm/types/IssueStatus.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * Status of the issue. Options: ('ONGOING', 'RESOLVED') - * - * * `ONGOING` - ONGOING - * * `RESOLVED` - RESOLVED - */ -export type IssueStatus = Merge.crm.IssueStatusEnum | string; diff --git a/src/api/resources/crm/types/IssueStatusEnum.ts b/src/api/resources/crm/types/IssueStatusEnum.ts deleted file mode 100644 index 03b0cd555..000000000 --- a/src/api/resources/crm/types/IssueStatusEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `ONGOING` - ONGOING - * * `RESOLVED` - RESOLVED - */ -export const IssueStatusEnum = { - Ongoing: "ONGOING", - Resolved: "RESOLVED", -} as const; -export type IssueStatusEnum = (typeof IssueStatusEnum)[keyof typeof IssueStatusEnum]; diff --git a/src/api/resources/crm/types/ItemFormatEnum.ts b/src/api/resources/crm/types/ItemFormatEnum.ts deleted file mode 100644 index 4374c7f09..000000000 --- a/src/api/resources/crm/types/ItemFormatEnum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `string` - uuid - * * `number` - url - * * `date` - email - * * `datetime` - phone - * * `bool` - currency - * * `list` - decimal - */ -export const ItemFormatEnum = { - String: "string", - Number: "number", - Date: "date", - Datetime: "datetime", - Bool: "bool", - List: "list", -} as const; -export type ItemFormatEnum = (typeof ItemFormatEnum)[keyof typeof ItemFormatEnum]; diff --git a/src/api/resources/crm/types/ItemSchema.ts b/src/api/resources/crm/types/ItemSchema.ts deleted file mode 100644 index 1a8a90935..000000000 --- a/src/api/resources/crm/types/ItemSchema.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface ItemSchema { - itemType?: Merge.crm.ItemTypeEnum; - itemFormat?: Merge.crm.ItemFormatEnum; - itemChoices?: string[]; -} diff --git a/src/api/resources/crm/types/ItemTypeEnum.ts b/src/api/resources/crm/types/ItemTypeEnum.ts deleted file mode 100644 index 836ffd0b2..000000000 --- a/src/api/resources/crm/types/ItemTypeEnum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `string` - string - * * `number` - number - * * `date` - date - * * `datetime` - datetime - * * `bool` - bool - * * `list` - list - */ -export const ItemTypeEnum = { - String: "string", - Number: "number", - Date: "date", - Datetime: "datetime", - Bool: "bool", - List: "list", -} as const; -export type ItemTypeEnum = (typeof ItemTypeEnum)[keyof typeof ItemTypeEnum]; diff --git a/src/api/resources/crm/types/LanguageEnum.ts b/src/api/resources/crm/types/LanguageEnum.ts deleted file mode 100644 index 603fc6498..000000000 --- a/src/api/resources/crm/types/LanguageEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `en` - en - * * `de` - de - */ -export const LanguageEnum = { - En: "en", - De: "de", -} as const; -export type LanguageEnum = (typeof LanguageEnum)[keyof typeof LanguageEnum]; diff --git a/src/api/resources/crm/types/LastSyncResultEnum.ts b/src/api/resources/crm/types/LastSyncResultEnum.ts deleted file mode 100644 index 3baf8309b..000000000 --- a/src/api/resources/crm/types/LastSyncResultEnum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `SYNCING` - SYNCING - * * `DONE` - DONE - * * `FAILED` - FAILED - * * `DISABLED` - DISABLED - * * `PAUSED` - PAUSED - * * `PARTIALLY_SYNCED` - PARTIALLY_SYNCED - */ -export const LastSyncResultEnum = { - Syncing: "SYNCING", - Done: "DONE", - Failed: "FAILED", - Disabled: "DISABLED", - Paused: "PAUSED", - PartiallySynced: "PARTIALLY_SYNCED", -} as const; -export type LastSyncResultEnum = (typeof LastSyncResultEnum)[keyof typeof LastSyncResultEnum]; diff --git a/src/api/resources/crm/types/Lead.ts b/src/api/resources/crm/types/Lead.ts deleted file mode 100644 index e3c145d84..000000000 --- a/src/api/resources/crm/types/Lead.ts +++ /dev/null @@ -1,50 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Lead Object - * ### Description - * The `Lead` object is used to represent an individual who is a potential customer. - * ### Usage Example - * TODO - */ -export interface Lead { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The lead's owner. */ - owner?: Merge.crm.LeadOwner; - /** The lead's source. */ - leadSource?: string; - /** The lead's title. */ - title?: string; - /** The lead's company. */ - company?: string; - /** The lead's first name. */ - firstName?: string; - /** The lead's last name. */ - lastName?: string; - addresses?: Merge.crm.Address[]; - emailAddresses?: Merge.crm.EmailAddress[]; - phoneNumbers?: Merge.crm.PhoneNumber[]; - /** When the third party's lead was updated. */ - remoteUpdatedAt?: Date; - /** When the third party's lead was created. */ - remoteCreatedAt?: Date; - /** When the lead was converted. */ - convertedDate?: Date; - /** The contact of the converted lead. */ - convertedContact?: Merge.crm.LeadConvertedContact; - /** The account of the converted lead. */ - convertedAccount?: Merge.crm.LeadConvertedAccount; - /** 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.crm.RemoteData[]; - remoteFields?: Merge.crm.RemoteField[]; -} diff --git a/src/api/resources/crm/types/LeadConvertedAccount.ts b/src/api/resources/crm/types/LeadConvertedAccount.ts deleted file mode 100644 index 1c09f0bf1..000000000 --- a/src/api/resources/crm/types/LeadConvertedAccount.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 account of the converted lead. - */ -export type LeadConvertedAccount = string | Merge.crm.Account; diff --git a/src/api/resources/crm/types/LeadConvertedContact.ts b/src/api/resources/crm/types/LeadConvertedContact.ts deleted file mode 100644 index ee70a2881..000000000 --- a/src/api/resources/crm/types/LeadConvertedContact.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 contact of the converted lead. - */ -export type LeadConvertedContact = string | Merge.crm.Contact; diff --git a/src/api/resources/crm/types/LeadOwner.ts b/src/api/resources/crm/types/LeadOwner.ts deleted file mode 100644 index cb0802114..000000000 --- a/src/api/resources/crm/types/LeadOwner.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 lead's owner. - */ -export type LeadOwner = string | Merge.crm.User; diff --git a/src/api/resources/crm/types/LeadRequest.ts b/src/api/resources/crm/types/LeadRequest.ts deleted file mode 100644 index fee729e5c..000000000 --- a/src/api/resources/crm/types/LeadRequest.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Lead Object - * ### Description - * The `Lead` object is used to represent an individual who is a potential customer. - * ### Usage Example - * TODO - */ -export interface LeadRequest { - /** The lead's owner. */ - owner?: Merge.crm.LeadRequestOwner; - /** The lead's source. */ - leadSource?: string; - /** The lead's title. */ - title?: string; - /** The lead's company. */ - company?: string; - /** The lead's first name. */ - firstName?: string; - /** The lead's last name. */ - lastName?: string; - addresses?: Merge.crm.AddressRequest[]; - emailAddresses?: Merge.crm.EmailAddressRequest[]; - phoneNumbers?: Merge.crm.PhoneNumberRequest[]; - /** When the lead was converted. */ - convertedDate?: Date; - /** The contact of the converted lead. */ - convertedContact?: Merge.crm.LeadRequestConvertedContact; - /** The account of the converted lead. */ - convertedAccount?: Merge.crm.LeadRequestConvertedAccount; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.crm.RemoteFieldRequest[]; -} diff --git a/src/api/resources/crm/types/LeadRequestConvertedAccount.ts b/src/api/resources/crm/types/LeadRequestConvertedAccount.ts deleted file mode 100644 index 7e0d1a35b..000000000 --- a/src/api/resources/crm/types/LeadRequestConvertedAccount.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 account of the converted lead. - */ -export type LeadRequestConvertedAccount = string | Merge.crm.Account; diff --git a/src/api/resources/crm/types/LeadRequestConvertedContact.ts b/src/api/resources/crm/types/LeadRequestConvertedContact.ts deleted file mode 100644 index edfe1e4ca..000000000 --- a/src/api/resources/crm/types/LeadRequestConvertedContact.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 contact of the converted lead. - */ -export type LeadRequestConvertedContact = string | Merge.crm.Contact; diff --git a/src/api/resources/crm/types/LeadRequestOwner.ts b/src/api/resources/crm/types/LeadRequestOwner.ts deleted file mode 100644 index 3c5766f2c..000000000 --- a/src/api/resources/crm/types/LeadRequestOwner.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 lead's owner. - */ -export type LeadRequestOwner = string | Merge.crm.User; diff --git a/src/api/resources/crm/types/LeadResponse.ts b/src/api/resources/crm/types/LeadResponse.ts deleted file mode 100644 index 3e06a48aa..000000000 --- a/src/api/resources/crm/types/LeadResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface LeadResponse { - model: Merge.crm.Lead; - warnings: Merge.crm.WarningValidationProblem[]; - errors: Merge.crm.ErrorValidationProblem[]; - logs?: Merge.crm.DebugModeLog[]; -} diff --git a/src/api/resources/crm/types/LinkToken.ts b/src/api/resources/crm/types/LinkToken.ts deleted file mode 100644 index 09879f9b1..000000000 --- a/src/api/resources/crm/types/LinkToken.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface LinkToken { - linkToken: string; - integrationName?: string; - magicLinkUrl?: string; -} diff --git a/src/api/resources/crm/types/LinkedAccountStatus.ts b/src/api/resources/crm/types/LinkedAccountStatus.ts deleted file mode 100644 index fa55c41fb..000000000 --- a/src/api/resources/crm/types/LinkedAccountStatus.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface LinkedAccountStatus { - linkedAccountStatus: string; - canMakeRequest: boolean; -} diff --git a/src/api/resources/crm/types/MetaResponse.ts b/src/api/resources/crm/types/MetaResponse.ts deleted file mode 100644 index fdb4cba0b..000000000 --- a/src/api/resources/crm/types/MetaResponse.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface MetaResponse { - requestSchema: Record; - remoteFieldClasses?: Record; - status?: Merge.crm.LinkedAccountStatus; - hasConditionalParams: boolean; - hasRequiredLinkedAccountParams: boolean; -} diff --git a/src/api/resources/crm/types/MethodEnum.ts b/src/api/resources/crm/types/MethodEnum.ts deleted file mode 100644 index b8fb03bb0..000000000 --- a/src/api/resources/crm/types/MethodEnum.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `GET` - GET - * * `OPTIONS` - OPTIONS - * * `HEAD` - HEAD - * * `POST` - POST - * * `PUT` - PUT - * * `PATCH` - PATCH - * * `DELETE` - DELETE - */ -export const MethodEnum = { - Get: "GET", - Options: "OPTIONS", - Head: "HEAD", - Post: "POST", - Put: "PUT", - Patch: "PATCH", - Delete: "DELETE", -} as const; -export type MethodEnum = (typeof MethodEnum)[keyof typeof MethodEnum]; diff --git a/src/api/resources/crm/types/ModelOperation.ts b/src/api/resources/crm/types/ModelOperation.ts deleted file mode 100644 index 520f668d9..000000000 --- a/src/api/resources/crm/types/ModelOperation.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * # The ModelOperation Object - * ### Description - * The `ModelOperation` object is used to represent the operations that are currently supported for a given model. - * - * ### Usage Example - * View what operations are supported for the `Candidate` endpoint. - */ -export interface ModelOperation { - modelName: string; - availableOperations: string[]; - requiredPostParameters: string[]; - supportedFields: string[]; -} diff --git a/src/api/resources/crm/types/ModelPermissionDeserializer.ts b/src/api/resources/crm/types/ModelPermissionDeserializer.ts deleted file mode 100644 index 58b672e56..000000000 --- a/src/api/resources/crm/types/ModelPermissionDeserializer.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface ModelPermissionDeserializer { - isEnabled?: boolean; -} diff --git a/src/api/resources/crm/types/ModelPermissionDeserializerRequest.ts b/src/api/resources/crm/types/ModelPermissionDeserializerRequest.ts deleted file mode 100644 index 1e140a95a..000000000 --- a/src/api/resources/crm/types/ModelPermissionDeserializerRequest.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface ModelPermissionDeserializerRequest { - isEnabled?: boolean; -} diff --git a/src/api/resources/crm/types/MultipartFormFieldRequest.ts b/src/api/resources/crm/types/MultipartFormFieldRequest.ts deleted file mode 100644 index 18f76a938..000000000 --- a/src/api/resources/crm/types/MultipartFormFieldRequest.ts +++ /dev/null @@ -1,30 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The MultipartFormField Object - * ### Description - * The `MultipartFormField` object is used to represent fields in an HTTP request using `multipart/form-data`. - * - * ### Usage Example - * Create a `MultipartFormField` to define a multipart form entry. - */ -export interface MultipartFormFieldRequest { - /** The name of the form field */ - name: string; - /** The data for the form field. */ - data: string; - /** - * The encoding of the value of `data`. Defaults to `RAW` if not defined. - * - * * `RAW` - RAW - * * `BASE64` - BASE64 - * * `GZIP_BASE64` - GZIP_BASE64 - */ - encoding?: Merge.crm.MultipartFormFieldRequestEncoding; - /** 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. */ - contentType?: string; -} diff --git a/src/api/resources/crm/types/MultipartFormFieldRequestEncoding.ts b/src/api/resources/crm/types/MultipartFormFieldRequestEncoding.ts deleted file mode 100644 index 9a58bb2bb..000000000 --- a/src/api/resources/crm/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.crm.EncodingEnum | string; diff --git a/src/api/resources/crm/types/Note.ts b/src/api/resources/crm/types/Note.ts deleted file mode 100644 index 32c5ea1ab..000000000 --- a/src/api/resources/crm/types/Note.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Note Object - * ### Description - * The `Note` object is used to represent a note on another object. - * ### Usage Example - * TODO - */ -export interface Note { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The note's owner. */ - owner?: Merge.crm.NoteOwner; - /** The note's content. */ - content?: string; - /** The note's contact. */ - contact?: Merge.crm.NoteContact; - /** The note's account. */ - account?: Merge.crm.NoteAccount; - /** The note's opportunity. */ - opportunity?: Merge.crm.NoteOpportunity; - /** When the third party's lead was updated. */ - remoteUpdatedAt?: Date; - /** When the third party's lead was created. */ - remoteCreatedAt?: 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.crm.RemoteData[]; - remoteFields?: Merge.crm.RemoteField[]; -} diff --git a/src/api/resources/crm/types/NoteAccount.ts b/src/api/resources/crm/types/NoteAccount.ts deleted file mode 100644 index c4fe78cd9..000000000 --- a/src/api/resources/crm/types/NoteAccount.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 note's account. - */ -export type NoteAccount = string | Merge.crm.Account; diff --git a/src/api/resources/crm/types/NoteContact.ts b/src/api/resources/crm/types/NoteContact.ts deleted file mode 100644 index 395019956..000000000 --- a/src/api/resources/crm/types/NoteContact.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 note's contact. - */ -export type NoteContact = string | Merge.crm.Contact; diff --git a/src/api/resources/crm/types/NoteOpportunity.ts b/src/api/resources/crm/types/NoteOpportunity.ts deleted file mode 100644 index 48d303ee4..000000000 --- a/src/api/resources/crm/types/NoteOpportunity.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 note's opportunity. - */ -export type NoteOpportunity = string | Merge.crm.Opportunity; diff --git a/src/api/resources/crm/types/NoteOwner.ts b/src/api/resources/crm/types/NoteOwner.ts deleted file mode 100644 index 7b7f81e54..000000000 --- a/src/api/resources/crm/types/NoteOwner.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 note's owner. - */ -export type NoteOwner = string | Merge.crm.User; diff --git a/src/api/resources/crm/types/NoteRequest.ts b/src/api/resources/crm/types/NoteRequest.ts deleted file mode 100644 index f3c4fa7fe..000000000 --- a/src/api/resources/crm/types/NoteRequest.ts +++ /dev/null @@ -1,26 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Note Object - * ### Description - * The `Note` object is used to represent a note on another object. - * ### Usage Example - * TODO - */ -export interface NoteRequest { - /** The note's owner. */ - owner?: Merge.crm.NoteRequestOwner; - /** The note's content. */ - content?: string; - /** The note's contact. */ - contact?: Merge.crm.NoteRequestContact; - /** The note's account. */ - account?: Merge.crm.NoteRequestAccount; - /** The note's opportunity. */ - opportunity?: Merge.crm.NoteRequestOpportunity; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.crm.RemoteFieldRequest[]; -} diff --git a/src/api/resources/crm/types/NoteRequestAccount.ts b/src/api/resources/crm/types/NoteRequestAccount.ts deleted file mode 100644 index 3077db7f7..000000000 --- a/src/api/resources/crm/types/NoteRequestAccount.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 note's account. - */ -export type NoteRequestAccount = string | Merge.crm.Account; diff --git a/src/api/resources/crm/types/NoteRequestContact.ts b/src/api/resources/crm/types/NoteRequestContact.ts deleted file mode 100644 index 59a75d01c..000000000 --- a/src/api/resources/crm/types/NoteRequestContact.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 note's contact. - */ -export type NoteRequestContact = string | Merge.crm.Contact; diff --git a/src/api/resources/crm/types/NoteRequestOpportunity.ts b/src/api/resources/crm/types/NoteRequestOpportunity.ts deleted file mode 100644 index 149b1f5a1..000000000 --- a/src/api/resources/crm/types/NoteRequestOpportunity.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 note's opportunity. - */ -export type NoteRequestOpportunity = string | Merge.crm.Opportunity; diff --git a/src/api/resources/crm/types/NoteRequestOwner.ts b/src/api/resources/crm/types/NoteRequestOwner.ts deleted file mode 100644 index 9e870bd48..000000000 --- a/src/api/resources/crm/types/NoteRequestOwner.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 note's owner. - */ -export type NoteRequestOwner = string | Merge.crm.User; diff --git a/src/api/resources/crm/types/NoteResponse.ts b/src/api/resources/crm/types/NoteResponse.ts deleted file mode 100644 index af318ff9c..000000000 --- a/src/api/resources/crm/types/NoteResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface NoteResponse { - model: Merge.crm.Note; - warnings: Merge.crm.WarningValidationProblem[]; - errors: Merge.crm.ErrorValidationProblem[]; - logs?: Merge.crm.DebugModeLog[]; -} diff --git a/src/api/resources/crm/types/ObjectClassDescriptionRequest.ts b/src/api/resources/crm/types/ObjectClassDescriptionRequest.ts deleted file mode 100644 index aa97f8cea..000000000 --- a/src/api/resources/crm/types/ObjectClassDescriptionRequest.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface ObjectClassDescriptionRequest { - id: string; - originType: Merge.crm.OriginTypeEnum; -} diff --git a/src/api/resources/crm/types/Opportunity.ts b/src/api/resources/crm/types/Opportunity.ts deleted file mode 100644 index 21f5d7888..000000000 --- a/src/api/resources/crm/types/Opportunity.ts +++ /dev/null @@ -1,51 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Opportunity Object - * ### Description - * The `Opportunity` object is used to represent a deal opportunity in a CRM system. - * ### Usage Example - * TODO - */ -export interface Opportunity { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The opportunity's name. */ - name?: string; - /** The opportunity's description. */ - description?: string; - /** The opportunity's amount. */ - amount?: number; - /** The opportunity's owner. */ - owner?: Merge.crm.OpportunityOwner; - /** The account of the opportunity. */ - account?: Merge.crm.OpportunityAccount; - /** The stage of the opportunity. */ - stage?: Merge.crm.OpportunityStage; - /** - * The opportunity's status. - * - * * `OPEN` - OPEN - * * `WON` - WON - * * `LOST` - LOST - */ - status?: Merge.crm.OpportunityStatus; - /** When the opportunity's last activity occurred. */ - lastActivityAt?: Date; - /** When the opportunity was closed. */ - closeDate?: Date; - /** When the third party's opportunity was created. */ - remoteCreatedAt?: 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.crm.RemoteData[]; - remoteFields?: Merge.crm.RemoteField[]; -} diff --git a/src/api/resources/crm/types/OpportunityAccount.ts b/src/api/resources/crm/types/OpportunityAccount.ts deleted file mode 100644 index 2419d982c..000000000 --- a/src/api/resources/crm/types/OpportunityAccount.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 account of the opportunity. - */ -export type OpportunityAccount = string | Merge.crm.Account; diff --git a/src/api/resources/crm/types/OpportunityOwner.ts b/src/api/resources/crm/types/OpportunityOwner.ts deleted file mode 100644 index 6aecd0551..000000000 --- a/src/api/resources/crm/types/OpportunityOwner.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 opportunity's owner. - */ -export type OpportunityOwner = string | Merge.crm.User; diff --git a/src/api/resources/crm/types/OpportunityRequest.ts b/src/api/resources/crm/types/OpportunityRequest.ts deleted file mode 100644 index b51ca6876..000000000 --- a/src/api/resources/crm/types/OpportunityRequest.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Opportunity Object - * ### Description - * The `Opportunity` object is used to represent a deal opportunity in a CRM system. - * ### Usage Example - * TODO - */ -export interface OpportunityRequest { - /** The opportunity's name. */ - name?: string; - /** The opportunity's description. */ - description?: string; - /** The opportunity's amount. */ - amount?: number; - /** The opportunity's owner. */ - owner?: Merge.crm.OpportunityRequestOwner; - /** The account of the opportunity. */ - account?: Merge.crm.OpportunityRequestAccount; - /** The stage of the opportunity. */ - stage?: Merge.crm.OpportunityRequestStage; - /** - * The opportunity's status. - * - * * `OPEN` - OPEN - * * `WON` - WON - * * `LOST` - LOST - */ - status?: Merge.crm.OpportunityRequestStatus; - /** When the opportunity's last activity occurred. */ - lastActivityAt?: Date; - /** When the opportunity was closed. */ - closeDate?: Date; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.crm.RemoteFieldRequest[]; -} diff --git a/src/api/resources/crm/types/OpportunityRequestAccount.ts b/src/api/resources/crm/types/OpportunityRequestAccount.ts deleted file mode 100644 index 6906d2c94..000000000 --- a/src/api/resources/crm/types/OpportunityRequestAccount.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 account of the opportunity. - */ -export type OpportunityRequestAccount = string | Merge.crm.Account; diff --git a/src/api/resources/crm/types/OpportunityRequestOwner.ts b/src/api/resources/crm/types/OpportunityRequestOwner.ts deleted file mode 100644 index 79219dffd..000000000 --- a/src/api/resources/crm/types/OpportunityRequestOwner.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 opportunity's owner. - */ -export type OpportunityRequestOwner = string | Merge.crm.User; diff --git a/src/api/resources/crm/types/OpportunityRequestStage.ts b/src/api/resources/crm/types/OpportunityRequestStage.ts deleted file mode 100644 index 771e60276..000000000 --- a/src/api/resources/crm/types/OpportunityRequestStage.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 stage of the opportunity. - */ -export type OpportunityRequestStage = string | Merge.crm.Stage; diff --git a/src/api/resources/crm/types/OpportunityRequestStatus.ts b/src/api/resources/crm/types/OpportunityRequestStatus.ts deleted file mode 100644 index b2624b2b8..000000000 --- a/src/api/resources/crm/types/OpportunityRequestStatus.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 opportunity's status. - * - * * `OPEN` - OPEN - * * `WON` - WON - * * `LOST` - LOST - */ -export type OpportunityRequestStatus = Merge.crm.OpportunityStatusEnum | string; diff --git a/src/api/resources/crm/types/OpportunityResponse.ts b/src/api/resources/crm/types/OpportunityResponse.ts deleted file mode 100644 index 28c27ec72..000000000 --- a/src/api/resources/crm/types/OpportunityResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface OpportunityResponse { - model: Merge.crm.Opportunity; - warnings: Merge.crm.WarningValidationProblem[]; - errors: Merge.crm.ErrorValidationProblem[]; - logs?: Merge.crm.DebugModeLog[]; -} diff --git a/src/api/resources/crm/types/OpportunityStage.ts b/src/api/resources/crm/types/OpportunityStage.ts deleted file mode 100644 index 8aad230c9..000000000 --- a/src/api/resources/crm/types/OpportunityStage.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 stage of the opportunity. - */ -export type OpportunityStage = string | Merge.crm.Stage; diff --git a/src/api/resources/crm/types/OpportunityStatus.ts b/src/api/resources/crm/types/OpportunityStatus.ts deleted file mode 100644 index b9b4c6813..000000000 --- a/src/api/resources/crm/types/OpportunityStatus.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 opportunity's status. - * - * * `OPEN` - OPEN - * * `WON` - WON - * * `LOST` - LOST - */ -export type OpportunityStatus = Merge.crm.OpportunityStatusEnum | string; diff --git a/src/api/resources/crm/types/OpportunityStatusEnum.ts b/src/api/resources/crm/types/OpportunityStatusEnum.ts deleted file mode 100644 index f1b3b28b1..000000000 --- a/src/api/resources/crm/types/OpportunityStatusEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `OPEN` - OPEN - * * `WON` - WON - * * `LOST` - LOST - */ -export const OpportunityStatusEnum = { - Open: "OPEN", - Won: "WON", - Lost: "LOST", -} as const; -export type OpportunityStatusEnum = (typeof OpportunityStatusEnum)[keyof typeof OpportunityStatusEnum]; diff --git a/src/api/resources/crm/types/OriginTypeEnum.ts b/src/api/resources/crm/types/OriginTypeEnum.ts deleted file mode 100644 index 79171c36b..000000000 --- a/src/api/resources/crm/types/OriginTypeEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `CUSTOM_OBJECT` - CUSTOM_OBJECT - * * `COMMON_MODEL` - COMMON_MODEL - * * `REMOTE_ONLY_MODEL` - REMOTE_ONLY_MODEL - */ -export const OriginTypeEnum = { - CustomObject: "CUSTOM_OBJECT", - CommonModel: "COMMON_MODEL", - RemoteOnlyModel: "REMOTE_ONLY_MODEL", -} as const; -export type OriginTypeEnum = (typeof OriginTypeEnum)[keyof typeof OriginTypeEnum]; diff --git a/src/api/resources/crm/types/PaginatedAccountDetailsAndActionsList.ts b/src/api/resources/crm/types/PaginatedAccountDetailsAndActionsList.ts deleted file mode 100644 index 3154c19ac..000000000 --- a/src/api/resources/crm/types/PaginatedAccountDetailsAndActionsList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedAccountDetailsAndActionsList { - next?: string; - previous?: string; - results?: Merge.crm.AccountDetailsAndActions[]; -} diff --git a/src/api/resources/crm/types/PaginatedAccountList.ts b/src/api/resources/crm/types/PaginatedAccountList.ts deleted file mode 100644 index e846f0daf..000000000 --- a/src/api/resources/crm/types/PaginatedAccountList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedAccountList { - next?: string; - previous?: string; - results?: Merge.crm.Account[]; -} diff --git a/src/api/resources/crm/types/PaginatedAssociationList.ts b/src/api/resources/crm/types/PaginatedAssociationList.ts deleted file mode 100644 index c40496f2e..000000000 --- a/src/api/resources/crm/types/PaginatedAssociationList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedAssociationList { - next?: string; - previous?: string; - results?: Merge.crm.Association[]; -} diff --git a/src/api/resources/crm/types/PaginatedAssociationTypeList.ts b/src/api/resources/crm/types/PaginatedAssociationTypeList.ts deleted file mode 100644 index 972079465..000000000 --- a/src/api/resources/crm/types/PaginatedAssociationTypeList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedAssociationTypeList { - next?: string; - previous?: string; - results?: Merge.crm.AssociationType[]; -} diff --git a/src/api/resources/crm/types/PaginatedAuditLogEventList.ts b/src/api/resources/crm/types/PaginatedAuditLogEventList.ts deleted file mode 100644 index 78a46ef86..000000000 --- a/src/api/resources/crm/types/PaginatedAuditLogEventList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedAuditLogEventList { - next?: string; - previous?: string; - results?: Merge.crm.AuditLogEvent[]; -} diff --git a/src/api/resources/crm/types/PaginatedContactList.ts b/src/api/resources/crm/types/PaginatedContactList.ts deleted file mode 100644 index acc5636e5..000000000 --- a/src/api/resources/crm/types/PaginatedContactList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedContactList { - next?: string; - previous?: string; - results?: Merge.crm.Contact[]; -} diff --git a/src/api/resources/crm/types/PaginatedCustomObjectClassList.ts b/src/api/resources/crm/types/PaginatedCustomObjectClassList.ts deleted file mode 100644 index 6b9358a36..000000000 --- a/src/api/resources/crm/types/PaginatedCustomObjectClassList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedCustomObjectClassList { - next?: string; - previous?: string; - results?: Merge.crm.CustomObjectClass[]; -} diff --git a/src/api/resources/crm/types/PaginatedCustomObjectList.ts b/src/api/resources/crm/types/PaginatedCustomObjectList.ts deleted file mode 100644 index edd26421e..000000000 --- a/src/api/resources/crm/types/PaginatedCustomObjectList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedCustomObjectList { - next?: string; - previous?: string; - results?: Merge.crm.CustomObject[]; -} diff --git a/src/api/resources/crm/types/PaginatedEngagementList.ts b/src/api/resources/crm/types/PaginatedEngagementList.ts deleted file mode 100644 index 0587740bb..000000000 --- a/src/api/resources/crm/types/PaginatedEngagementList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedEngagementList { - next?: string; - previous?: string; - results?: Merge.crm.Engagement[]; -} diff --git a/src/api/resources/crm/types/PaginatedEngagementTypeList.ts b/src/api/resources/crm/types/PaginatedEngagementTypeList.ts deleted file mode 100644 index b84e053ac..000000000 --- a/src/api/resources/crm/types/PaginatedEngagementTypeList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedEngagementTypeList { - next?: string; - previous?: string; - results?: Merge.crm.EngagementType[]; -} diff --git a/src/api/resources/crm/types/PaginatedIssueList.ts b/src/api/resources/crm/types/PaginatedIssueList.ts deleted file mode 100644 index 9412e4706..000000000 --- a/src/api/resources/crm/types/PaginatedIssueList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedIssueList { - next?: string; - previous?: string; - results?: Merge.crm.Issue[]; -} diff --git a/src/api/resources/crm/types/PaginatedLeadList.ts b/src/api/resources/crm/types/PaginatedLeadList.ts deleted file mode 100644 index 2e7e5ba23..000000000 --- a/src/api/resources/crm/types/PaginatedLeadList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedLeadList { - next?: string; - previous?: string; - results?: Merge.crm.Lead[]; -} diff --git a/src/api/resources/crm/types/PaginatedNoteList.ts b/src/api/resources/crm/types/PaginatedNoteList.ts deleted file mode 100644 index 8116f157e..000000000 --- a/src/api/resources/crm/types/PaginatedNoteList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedNoteList { - next?: string; - previous?: string; - results?: Merge.crm.Note[]; -} diff --git a/src/api/resources/crm/types/PaginatedOpportunityList.ts b/src/api/resources/crm/types/PaginatedOpportunityList.ts deleted file mode 100644 index 838a4c249..000000000 --- a/src/api/resources/crm/types/PaginatedOpportunityList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedOpportunityList { - next?: string; - previous?: string; - results?: Merge.crm.Opportunity[]; -} diff --git a/src/api/resources/crm/types/PaginatedRemoteFieldClassList.ts b/src/api/resources/crm/types/PaginatedRemoteFieldClassList.ts deleted file mode 100644 index e4ec894d8..000000000 --- a/src/api/resources/crm/types/PaginatedRemoteFieldClassList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedRemoteFieldClassList { - next?: string; - previous?: string; - results?: Merge.crm.RemoteFieldClass[]; -} diff --git a/src/api/resources/crm/types/PaginatedStageList.ts b/src/api/resources/crm/types/PaginatedStageList.ts deleted file mode 100644 index 7c8b9ab75..000000000 --- a/src/api/resources/crm/types/PaginatedStageList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedStageList { - next?: string; - previous?: string; - results?: Merge.crm.Stage[]; -} diff --git a/src/api/resources/crm/types/PaginatedSyncStatusList.ts b/src/api/resources/crm/types/PaginatedSyncStatusList.ts deleted file mode 100644 index c007fc38f..000000000 --- a/src/api/resources/crm/types/PaginatedSyncStatusList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedSyncStatusList { - next?: string; - previous?: string; - results?: Merge.crm.SyncStatus[]; -} diff --git a/src/api/resources/crm/types/PaginatedTaskList.ts b/src/api/resources/crm/types/PaginatedTaskList.ts deleted file mode 100644 index 61a658c93..000000000 --- a/src/api/resources/crm/types/PaginatedTaskList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedTaskList { - next?: string; - previous?: string; - results?: Merge.crm.Task[]; -} diff --git a/src/api/resources/crm/types/PaginatedUserList.ts b/src/api/resources/crm/types/PaginatedUserList.ts deleted file mode 100644 index a244da94c..000000000 --- a/src/api/resources/crm/types/PaginatedUserList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedUserList { - next?: string; - previous?: string; - results?: Merge.crm.User[]; -} diff --git a/src/api/resources/crm/types/PatchedAccountRequest.ts b/src/api/resources/crm/types/PatchedAccountRequest.ts deleted file mode 100644 index 9dd2050cf..000000000 --- a/src/api/resources/crm/types/PatchedAccountRequest.ts +++ /dev/null @@ -1,31 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Account Object - * ### Description - * The `Account` object is used to represent a company in a CRM system. - * ### Usage Example - * TODO - */ -export interface PatchedAccountRequest { - /** The account's owner. */ - owner?: string; - /** The account's name. */ - name?: string; - /** The account's description. */ - description?: string; - /** The account's industry. */ - industry?: string; - /** The account's website. */ - website?: string; - /** The account's number of employees. */ - numberOfEmployees?: number; - addresses?: Merge.crm.AddressRequest[]; - /** The last date (either most recent or furthest in the future) of when an activity occurs in an account. */ - lastActivityAt?: Date; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.crm.RemoteFieldRequest[]; -} diff --git a/src/api/resources/crm/types/PatchedContactRequest.ts b/src/api/resources/crm/types/PatchedContactRequest.ts deleted file mode 100644 index aaa77d8f0..000000000 --- a/src/api/resources/crm/types/PatchedContactRequest.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Contact Object - * ### Description - * The `Contact` object is used to represent an existing point of contact at a company in a CRM system. - * ### Usage Example - * TODO - */ -export interface PatchedContactRequest { - /** The contact's first name. */ - firstName?: string; - /** The contact's last name. */ - lastName?: string; - /** The contact's account. */ - account?: string; - /** The contact's owner. */ - owner?: Merge.crm.PatchedContactRequestOwner; - addresses?: Merge.crm.AddressRequest[]; - emailAddresses?: Merge.crm.EmailAddressRequest[]; - phoneNumbers?: Merge.crm.PhoneNumberRequest[]; - /** When the contact's last activity occurred. */ - lastActivityAt?: Date; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.crm.RemoteFieldRequest[]; -} diff --git a/src/api/resources/crm/types/PatchedContactRequestOwner.ts b/src/api/resources/crm/types/PatchedContactRequestOwner.ts deleted file mode 100644 index 8de352570..000000000 --- a/src/api/resources/crm/types/PatchedContactRequestOwner.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 contact's owner. - */ -export type PatchedContactRequestOwner = string | Merge.crm.User; diff --git a/src/api/resources/crm/types/PatchedEngagementRequest.ts b/src/api/resources/crm/types/PatchedEngagementRequest.ts deleted file mode 100644 index 2d9cc8b50..000000000 --- a/src/api/resources/crm/types/PatchedEngagementRequest.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Engagement Object - * ### Description - * The `Engagement` object is used to represent an interaction noted in a CRM system. - * ### Usage Example - * TODO - */ -export interface PatchedEngagementRequest { - /** The engagement's owner. */ - owner?: string; - /** The engagement's content. */ - content?: string; - /** The engagement's subject. */ - subject?: string; - /** - * The engagement's direction. - * - * * `INBOUND` - INBOUND - * * `OUTBOUND` - OUTBOUND - */ - direction?: Merge.crm.PatchedEngagementRequestDirection; - /** The engagement type of the engagement. */ - engagementType?: string; - /** The time at which the engagement started. */ - startTime?: Date; - /** The time at which the engagement ended. */ - endTime?: Date; - /** The account of the engagement. */ - account?: string; - contacts?: (string | undefined)[]; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.crm.RemoteFieldRequest[]; -} diff --git a/src/api/resources/crm/types/PatchedEngagementRequestDirection.ts b/src/api/resources/crm/types/PatchedEngagementRequestDirection.ts deleted file mode 100644 index c7d223b99..000000000 --- a/src/api/resources/crm/types/PatchedEngagementRequestDirection.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 engagement's direction. - * - * * `INBOUND` - INBOUND - * * `OUTBOUND` - OUTBOUND - */ -export type PatchedEngagementRequestDirection = Merge.crm.DirectionEnum | string; diff --git a/src/api/resources/crm/types/PatchedOpportunityRequest.ts b/src/api/resources/crm/types/PatchedOpportunityRequest.ts deleted file mode 100644 index e29a650cc..000000000 --- a/src/api/resources/crm/types/PatchedOpportunityRequest.ts +++ /dev/null @@ -1,40 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Opportunity Object - * ### Description - * The `Opportunity` object is used to represent a deal opportunity in a CRM system. - * ### Usage Example - * TODO - */ -export interface PatchedOpportunityRequest { - /** The opportunity's name. */ - name?: string; - /** The opportunity's description. */ - description?: string; - /** The opportunity's amount. */ - amount?: number; - /** The opportunity's owner. */ - owner?: string; - /** The account of the opportunity. */ - account?: string; - /** The stage of the opportunity. */ - stage?: string; - /** - * The opportunity's status. - * - * * `OPEN` - OPEN - * * `WON` - WON - * * `LOST` - LOST - */ - status?: Merge.crm.PatchedOpportunityRequestStatus; - /** When the opportunity's last activity occurred. */ - lastActivityAt?: Date; - /** When the opportunity was closed. */ - closeDate?: Date; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.crm.RemoteFieldRequest[]; -} diff --git a/src/api/resources/crm/types/PatchedOpportunityRequestStatus.ts b/src/api/resources/crm/types/PatchedOpportunityRequestStatus.ts deleted file mode 100644 index 345ebe546..000000000 --- a/src/api/resources/crm/types/PatchedOpportunityRequestStatus.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 opportunity's status. - * - * * `OPEN` - OPEN - * * `WON` - WON - * * `LOST` - LOST - */ -export type PatchedOpportunityRequestStatus = Merge.crm.OpportunityStatusEnum | string; diff --git a/src/api/resources/crm/types/PatchedTaskRequest.ts b/src/api/resources/crm/types/PatchedTaskRequest.ts deleted file mode 100644 index debd4ad67..000000000 --- a/src/api/resources/crm/types/PatchedTaskRequest.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Task Object - * ### Description - * The `Task` object is used to represent a task, such as a to-do item. - * ### Usage Example - * TODO - */ -export interface PatchedTaskRequest { - /** The task's subject. */ - subject?: string; - /** The task's content. */ - content?: string; - /** The task's owner. */ - owner?: string; - /** The task's account. */ - account?: string; - /** The task's opportunity. */ - opportunity?: string; - /** When the task is completed. */ - completedDate?: Date; - /** When the task is due. */ - dueDate?: Date; - /** - * The task's status. - * - * * `OPEN` - OPEN - * * `CLOSED` - CLOSED - */ - status?: Merge.crm.PatchedTaskRequestStatus; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.crm.RemoteFieldRequest[]; -} diff --git a/src/api/resources/crm/types/PatchedTaskRequestStatus.ts b/src/api/resources/crm/types/PatchedTaskRequestStatus.ts deleted file mode 100644 index 9ce74fd1a..000000000 --- a/src/api/resources/crm/types/PatchedTaskRequestStatus.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 task's status. - * - * * `OPEN` - OPEN - * * `CLOSED` - CLOSED - */ -export type PatchedTaskRequestStatus = Merge.crm.TaskStatusEnum | string; diff --git a/src/api/resources/crm/types/PhoneNumber.ts b/src/api/resources/crm/types/PhoneNumber.ts deleted file mode 100644 index bcc5057a7..000000000 --- a/src/api/resources/crm/types/PhoneNumber.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * # The PhoneNumber Object - * ### Description - * The `PhoneNumber` object is used to represent an entity's phone number. - * ### Usage Example - * Fetch from the `GET Contact` endpoint and view their phone numbers. - */ -export interface PhoneNumber { - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The phone number. */ - phoneNumber?: string; - /** The phone number's type. */ - phoneNumberType?: string; -} diff --git a/src/api/resources/crm/types/PhoneNumberRequest.ts b/src/api/resources/crm/types/PhoneNumberRequest.ts deleted file mode 100644 index 54ae2fe69..000000000 --- a/src/api/resources/crm/types/PhoneNumberRequest.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * # The PhoneNumber Object - * ### Description - * The `PhoneNumber` object is used to represent an entity's phone number. - * ### Usage Example - * Fetch from the `GET Contact` endpoint and view their phone numbers. - */ -export interface PhoneNumberRequest { - /** The phone number. */ - phoneNumber?: string; - /** The phone number's type. */ - phoneNumberType?: string; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/crm/types/ReasonEnum.ts b/src/api/resources/crm/types/ReasonEnum.ts deleted file mode 100644 index 68e1eab2f..000000000 --- a/src/api/resources/crm/types/ReasonEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `GENERAL_CUSTOMER_REQUEST` - GENERAL_CUSTOMER_REQUEST - * * `GDPR` - GDPR - * * `OTHER` - OTHER - */ -export const ReasonEnum = { - GeneralCustomerRequest: "GENERAL_CUSTOMER_REQUEST", - Gdpr: "GDPR", - Other: "OTHER", -} as const; -export type ReasonEnum = (typeof ReasonEnum)[keyof typeof ReasonEnum]; diff --git a/src/api/resources/crm/types/RemoteData.ts b/src/api/resources/crm/types/RemoteData.ts deleted file mode 100644 index 3fad40786..000000000 --- a/src/api/resources/crm/types/RemoteData.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * # The RemoteData Object - * ### Description - * The `RemoteData` object is used to represent the full data pulled from the third-party API for an object. - * - * ### Usage Example - * TODO - */ -export interface RemoteData { - /** The third-party API path that is being called. */ - path: string; - /** The data returned from the third-party for this object in its original, unnormalized format. */ - data?: unknown; -} diff --git a/src/api/resources/crm/types/RemoteEndpointInfo.ts b/src/api/resources/crm/types/RemoteEndpointInfo.ts deleted file mode 100644 index f28a1667a..000000000 --- a/src/api/resources/crm/types/RemoteEndpointInfo.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface RemoteEndpointInfo { - method: string; - urlPath: string; - fieldTraversalPath: unknown[]; -} diff --git a/src/api/resources/crm/types/RemoteField.ts b/src/api/resources/crm/types/RemoteField.ts deleted file mode 100644 index 3a99974fd..000000000 --- a/src/api/resources/crm/types/RemoteField.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface RemoteField { - remoteFieldClass: Merge.crm.RemoteFieldRemoteFieldClass; - value?: unknown; -} diff --git a/src/api/resources/crm/types/RemoteFieldApi.ts b/src/api/resources/crm/types/RemoteFieldApi.ts deleted file mode 100644 index 6a43c3806..000000000 --- a/src/api/resources/crm/types/RemoteFieldApi.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface RemoteFieldApi { - schema: Record; - remoteKeyName: string; - remoteEndpointInfo: Merge.crm.RemoteEndpointInfo; - exampleValues?: unknown[]; - advancedMetadata?: Merge.crm.AdvancedMetadata; - coverage?: Merge.crm.RemoteFieldApiCoverage; -} diff --git a/src/api/resources/crm/types/RemoteFieldApiCoverage.ts b/src/api/resources/crm/types/RemoteFieldApiCoverage.ts deleted file mode 100644 index 3691c464e..000000000 --- a/src/api/resources/crm/types/RemoteFieldApiCoverage.ts +++ /dev/null @@ -1,3 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export type RemoteFieldApiCoverage = number | number; diff --git a/src/api/resources/crm/types/RemoteFieldApiResponse.ts b/src/api/resources/crm/types/RemoteFieldApiResponse.ts deleted file mode 100644 index ea266c76b..000000000 --- a/src/api/resources/crm/types/RemoteFieldApiResponse.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface RemoteFieldApiResponse { - account?: Merge.crm.RemoteFieldApi[]; - contact?: Merge.crm.RemoteFieldApi[]; - lead?: Merge.crm.RemoteFieldApi[]; - note?: Merge.crm.RemoteFieldApi[]; - opportunity?: Merge.crm.RemoteFieldApi[]; - stage?: Merge.crm.RemoteFieldApi[]; - user?: Merge.crm.RemoteFieldApi[]; - task?: Merge.crm.RemoteFieldApi[]; - engagement?: Merge.crm.RemoteFieldApi[]; -} diff --git a/src/api/resources/crm/types/RemoteFieldClass.ts b/src/api/resources/crm/types/RemoteFieldClass.ts deleted file mode 100644 index cf9de91f0..000000000 --- a/src/api/resources/crm/types/RemoteFieldClass.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface RemoteFieldClass { - id?: string; - displayName?: string; - remoteKeyName?: string; - description?: string; - isCustom?: boolean; - isCommonModelField?: boolean; - isRequired?: boolean; - fieldType?: Merge.crm.RemoteFieldClassFieldType; - fieldFormat?: Merge.crm.RemoteFieldClassFieldFormat; - fieldChoices?: Merge.crm.RemoteFieldClassFieldChoicesItem[]; - itemSchema?: Merge.crm.ItemSchema; -} diff --git a/src/api/resources/crm/types/RemoteFieldClassFieldChoicesItem.ts b/src/api/resources/crm/types/RemoteFieldClassFieldChoicesItem.ts deleted file mode 100644 index b77ab2029..000000000 --- a/src/api/resources/crm/types/RemoteFieldClassFieldChoicesItem.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface RemoteFieldClassFieldChoicesItem { - value?: unknown; - displayName?: string; -} diff --git a/src/api/resources/crm/types/RemoteFieldClassFieldFormat.ts b/src/api/resources/crm/types/RemoteFieldClassFieldFormat.ts deleted file mode 100644 index 3f821dcdc..000000000 --- a/src/api/resources/crm/types/RemoteFieldClassFieldFormat.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export type RemoteFieldClassFieldFormat = Merge.crm.FieldFormatEnum | string; diff --git a/src/api/resources/crm/types/RemoteFieldClassFieldType.ts b/src/api/resources/crm/types/RemoteFieldClassFieldType.ts deleted file mode 100644 index 6e400d96c..000000000 --- a/src/api/resources/crm/types/RemoteFieldClassFieldType.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export type RemoteFieldClassFieldType = Merge.crm.FieldTypeEnum | string; diff --git a/src/api/resources/crm/types/RemoteFieldClassForCustomObjectClass.ts b/src/api/resources/crm/types/RemoteFieldClassForCustomObjectClass.ts deleted file mode 100644 index 4fa1dcae3..000000000 --- a/src/api/resources/crm/types/RemoteFieldClassForCustomObjectClass.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface RemoteFieldClassForCustomObjectClass { - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - displayName?: string; - remoteKeyName?: string; - description?: string; - isRequired?: boolean; - fieldType?: Merge.crm.RemoteFieldClassForCustomObjectClassFieldType; - fieldFormat?: Merge.crm.RemoteFieldClassForCustomObjectClassFieldFormat; - fieldChoices?: Merge.crm.RemoteFieldClassForCustomObjectClassFieldChoicesItem[]; - itemSchema?: Merge.crm.RemoteFieldClassForCustomObjectClassItemSchema; -} diff --git a/src/api/resources/crm/types/RemoteFieldClassForCustomObjectClassFieldChoicesItem.ts b/src/api/resources/crm/types/RemoteFieldClassForCustomObjectClassFieldChoicesItem.ts deleted file mode 100644 index eab4370e9..000000000 --- a/src/api/resources/crm/types/RemoteFieldClassForCustomObjectClassFieldChoicesItem.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface RemoteFieldClassForCustomObjectClassFieldChoicesItem { - value?: unknown; - displayName?: string; -} diff --git a/src/api/resources/crm/types/RemoteFieldClassForCustomObjectClassFieldFormat.ts b/src/api/resources/crm/types/RemoteFieldClassForCustomObjectClassFieldFormat.ts deleted file mode 100644 index 1ee7befc6..000000000 --- a/src/api/resources/crm/types/RemoteFieldClassForCustomObjectClassFieldFormat.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 RemoteFieldClassForCustomObjectClassFieldFormat = Merge.crm.FieldFormatEnum | string; diff --git a/src/api/resources/crm/types/RemoteFieldClassForCustomObjectClassFieldType.ts b/src/api/resources/crm/types/RemoteFieldClassForCustomObjectClassFieldType.ts deleted file mode 100644 index 43cc85681..000000000 --- a/src/api/resources/crm/types/RemoteFieldClassForCustomObjectClassFieldType.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 RemoteFieldClassForCustomObjectClassFieldType = Merge.crm.FieldTypeEnum | string; diff --git a/src/api/resources/crm/types/RemoteFieldClassForCustomObjectClassItemSchema.ts b/src/api/resources/crm/types/RemoteFieldClassForCustomObjectClassItemSchema.ts deleted file mode 100644 index 40dfead38..000000000 --- a/src/api/resources/crm/types/RemoteFieldClassForCustomObjectClassItemSchema.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface RemoteFieldClassForCustomObjectClassItemSchema { - itemType?: string; - itemFormat?: string; - itemChoices?: (string | undefined)[]; -} diff --git a/src/api/resources/crm/types/RemoteFieldRemoteFieldClass.ts b/src/api/resources/crm/types/RemoteFieldRemoteFieldClass.ts deleted file mode 100644 index 8332455b3..000000000 --- a/src/api/resources/crm/types/RemoteFieldRemoteFieldClass.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 RemoteFieldRemoteFieldClass = string | Merge.crm.RemoteFieldClass; diff --git a/src/api/resources/crm/types/RemoteFieldRequest.ts b/src/api/resources/crm/types/RemoteFieldRequest.ts deleted file mode 100644 index 17600da22..000000000 --- a/src/api/resources/crm/types/RemoteFieldRequest.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface RemoteFieldRequest { - remoteFieldClass: Merge.crm.RemoteFieldRequestRemoteFieldClass; - value?: unknown; -} diff --git a/src/api/resources/crm/types/RemoteFieldRequestRemoteFieldClass.ts b/src/api/resources/crm/types/RemoteFieldRequestRemoteFieldClass.ts deleted file mode 100644 index 59ee6719c..000000000 --- a/src/api/resources/crm/types/RemoteFieldRequestRemoteFieldClass.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 RemoteFieldRequestRemoteFieldClass = string | Merge.crm.RemoteFieldClass; diff --git a/src/api/resources/crm/types/RemoteKey.ts b/src/api/resources/crm/types/RemoteKey.ts deleted file mode 100644 index 04d86d608..000000000 --- a/src/api/resources/crm/types/RemoteKey.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * # The RemoteKey Object - * ### Description - * The `RemoteKey` object is used to represent a request for a new remote key. - * - * ### Usage Example - * Post a `GenerateRemoteKey` to receive a new `RemoteKey`. - */ -export interface RemoteKey { - name: string; - key: string; -} diff --git a/src/api/resources/crm/types/RemoteResponse.ts b/src/api/resources/crm/types/RemoteResponse.ts deleted file mode 100644 index b0555227d..000000000 --- a/src/api/resources/crm/types/RemoteResponse.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The RemoteResponse Object - * ### Description - * The `RemoteResponse` object is used to represent information returned from a third-party endpoint. - * - * ### Usage Example - * View the `RemoteResponse` returned from your `DataPassthrough`. - */ -export interface RemoteResponse { - method: string; - path: string; - status: number; - response?: unknown; - responseHeaders?: Record; - responseType?: Merge.crm.ResponseTypeEnum; - headers?: Record; -} diff --git a/src/api/resources/crm/types/RequestFormatEnum.ts b/src/api/resources/crm/types/RequestFormatEnum.ts deleted file mode 100644 index 2673da47f..000000000 --- a/src/api/resources/crm/types/RequestFormatEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `JSON` - JSON - * * `XML` - XML - * * `MULTIPART` - MULTIPART - */ -export const RequestFormatEnum = { - Json: "JSON", - Xml: "XML", - Multipart: "MULTIPART", -} as const; -export type RequestFormatEnum = (typeof RequestFormatEnum)[keyof typeof RequestFormatEnum]; diff --git a/src/api/resources/crm/types/ResponseTypeEnum.ts b/src/api/resources/crm/types/ResponseTypeEnum.ts deleted file mode 100644 index dfce6bea7..000000000 --- a/src/api/resources/crm/types/ResponseTypeEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `JSON` - JSON - * * `BASE64_GZIP` - BASE64_GZIP - */ -export const ResponseTypeEnum = { - Json: "JSON", - Base64Gzip: "BASE64_GZIP", -} as const; -export type ResponseTypeEnum = (typeof ResponseTypeEnum)[keyof typeof ResponseTypeEnum]; diff --git a/src/api/resources/crm/types/RoleEnum.ts b/src/api/resources/crm/types/RoleEnum.ts deleted file mode 100644 index 524088eb7..000000000 --- a/src/api/resources/crm/types/RoleEnum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `ADMIN` - ADMIN - * * `DEVELOPER` - DEVELOPER - * * `MEMBER` - MEMBER - * * `API` - API - * * `SYSTEM` - SYSTEM - * * `MERGE_TEAM` - MERGE_TEAM - */ -export const RoleEnum = { - Admin: "ADMIN", - Developer: "DEVELOPER", - Member: "MEMBER", - Api: "API", - System: "SYSTEM", - MergeTeam: "MERGE_TEAM", -} as const; -export type RoleEnum = (typeof RoleEnum)[keyof typeof RoleEnum]; diff --git a/src/api/resources/crm/types/SelectiveSyncConfigurationsUsageEnum.ts b/src/api/resources/crm/types/SelectiveSyncConfigurationsUsageEnum.ts deleted file mode 100644 index 4fce467f7..000000000 --- a/src/api/resources/crm/types/SelectiveSyncConfigurationsUsageEnum.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `IN_NEXT_SYNC` - IN_NEXT_SYNC - * * `IN_LAST_SYNC` - IN_LAST_SYNC - */ -export const SelectiveSyncConfigurationsUsageEnum = { - InNextSync: "IN_NEXT_SYNC", - InLastSync: "IN_LAST_SYNC", -} as const; -export type SelectiveSyncConfigurationsUsageEnum = - (typeof SelectiveSyncConfigurationsUsageEnum)[keyof typeof SelectiveSyncConfigurationsUsageEnum]; diff --git a/src/api/resources/crm/types/Stage.ts b/src/api/resources/crm/types/Stage.ts deleted file mode 100644 index b834f9bd2..000000000 --- a/src/api/resources/crm/types/Stage.ts +++ /dev/null @@ -1,27 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Stage Object - * ### Description - * The `Stage` object is used to represent the stage of an opportunity. - * ### Usage Example - * TODO - */ -export interface Stage { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The stage's name. */ - name?: 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/). */ - remoteWasDeleted?: boolean; - fieldMappings?: Record; - remoteData?: Merge.crm.RemoteData[]; - remoteFields?: Merge.crm.RemoteField[]; -} diff --git a/src/api/resources/crm/types/StatusFd5Enum.ts b/src/api/resources/crm/types/StatusFd5Enum.ts deleted file mode 100644 index 2ecbb5852..000000000 --- a/src/api/resources/crm/types/StatusFd5Enum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `SYNCING` - SYNCING - * * `DONE` - DONE - * * `FAILED` - FAILED - * * `DISABLED` - DISABLED - * * `PAUSED` - PAUSED - * * `PARTIALLY_SYNCED` - PARTIALLY_SYNCED - */ -export const StatusFd5Enum = { - Syncing: "SYNCING", - Done: "DONE", - Failed: "FAILED", - Disabled: "DISABLED", - Paused: "PAUSED", - PartiallySynced: "PARTIALLY_SYNCED", -} as const; -export type StatusFd5Enum = (typeof StatusFd5Enum)[keyof typeof StatusFd5Enum]; diff --git a/src/api/resources/crm/types/SyncStatus.ts b/src/api/resources/crm/types/SyncStatus.ts deleted file mode 100644 index 0a6aff36f..000000000 --- a/src/api/resources/crm/types/SyncStatus.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The SyncStatus Object - * ### Description - * The `SyncStatus` object is used to represent the syncing state of an account - * - * ### Usage Example - * View the `SyncStatus` for an account to see how recently its models were synced. - */ -export interface SyncStatus { - modelName: string; - modelId: string; - lastSyncStart?: Date; - nextSyncStart?: Date; - lastSyncResult?: Merge.crm.SyncStatusLastSyncResult; - lastSyncFinished?: Date; - status: Merge.crm.SyncStatusStatus; - isInitialSync: boolean; - selectiveSyncConfigurationsUsage?: Merge.crm.SelectiveSyncConfigurationsUsageEnum; -} diff --git a/src/api/resources/crm/types/SyncStatusLastSyncResult.ts b/src/api/resources/crm/types/SyncStatusLastSyncResult.ts deleted file mode 100644 index b50035db8..000000000 --- a/src/api/resources/crm/types/SyncStatusLastSyncResult.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 SyncStatusLastSyncResult = Merge.crm.LastSyncResultEnum | string; diff --git a/src/api/resources/crm/types/SyncStatusStatus.ts b/src/api/resources/crm/types/SyncStatusStatus.ts deleted file mode 100644 index 21d7587b6..000000000 --- a/src/api/resources/crm/types/SyncStatusStatus.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 SyncStatusStatus = Merge.crm.StatusFd5Enum | string; diff --git a/src/api/resources/crm/types/Task.ts b/src/api/resources/crm/types/Task.ts deleted file mode 100644 index 8152d15e0..000000000 --- a/src/api/resources/crm/types/Task.ts +++ /dev/null @@ -1,46 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Task Object - * ### Description - * The `Task` object is used to represent a task, such as a to-do item. - * ### Usage Example - * TODO - */ -export interface Task { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The task's subject. */ - subject?: string; - /** The task's content. */ - content?: string; - /** The task's owner. */ - owner?: Merge.crm.TaskOwner; - /** The task's account. */ - account?: Merge.crm.TaskAccount; - /** The task's opportunity. */ - opportunity?: Merge.crm.TaskOpportunity; - /** When the task is completed. */ - completedDate?: Date; - /** When the task is due. */ - dueDate?: Date; - /** - * The task's status. - * - * * `OPEN` - OPEN - * * `CLOSED` - CLOSED - */ - status?: Merge.crm.TaskStatus; - /** 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.crm.RemoteData[]; - remoteFields?: Merge.crm.RemoteField[]; -} diff --git a/src/api/resources/crm/types/TaskAccount.ts b/src/api/resources/crm/types/TaskAccount.ts deleted file mode 100644 index abe0f6e66..000000000 --- a/src/api/resources/crm/types/TaskAccount.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 task's account. - */ -export type TaskAccount = string | Merge.crm.Account; diff --git a/src/api/resources/crm/types/TaskOpportunity.ts b/src/api/resources/crm/types/TaskOpportunity.ts deleted file mode 100644 index 00de86217..000000000 --- a/src/api/resources/crm/types/TaskOpportunity.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 task's opportunity. - */ -export type TaskOpportunity = string | Merge.crm.Opportunity; diff --git a/src/api/resources/crm/types/TaskOwner.ts b/src/api/resources/crm/types/TaskOwner.ts deleted file mode 100644 index cfc2f6d94..000000000 --- a/src/api/resources/crm/types/TaskOwner.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 task's owner. - */ -export type TaskOwner = string | Merge.crm.User; diff --git a/src/api/resources/crm/types/TaskRequest.ts b/src/api/resources/crm/types/TaskRequest.ts deleted file mode 100644 index 465d36050..000000000 --- a/src/api/resources/crm/types/TaskRequest.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Task Object - * ### Description - * The `Task` object is used to represent a task, such as a to-do item. - * ### Usage Example - * TODO - */ -export interface TaskRequest { - /** The task's subject. */ - subject?: string; - /** The task's content. */ - content?: string; - /** The task's owner. */ - owner?: Merge.crm.TaskRequestOwner; - /** The task's account. */ - account?: Merge.crm.TaskRequestAccount; - /** The task's opportunity. */ - opportunity?: Merge.crm.TaskRequestOpportunity; - /** When the task is completed. */ - completedDate?: Date; - /** When the task is due. */ - dueDate?: Date; - /** - * The task's status. - * - * * `OPEN` - OPEN - * * `CLOSED` - CLOSED - */ - status?: Merge.crm.TaskRequestStatus; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.crm.RemoteFieldRequest[]; -} diff --git a/src/api/resources/crm/types/TaskRequestAccount.ts b/src/api/resources/crm/types/TaskRequestAccount.ts deleted file mode 100644 index 6629ffaed..000000000 --- a/src/api/resources/crm/types/TaskRequestAccount.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 task's account. - */ -export type TaskRequestAccount = string | Merge.crm.Account; diff --git a/src/api/resources/crm/types/TaskRequestOpportunity.ts b/src/api/resources/crm/types/TaskRequestOpportunity.ts deleted file mode 100644 index 9ea51fd18..000000000 --- a/src/api/resources/crm/types/TaskRequestOpportunity.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 task's opportunity. - */ -export type TaskRequestOpportunity = string | Merge.crm.Opportunity; diff --git a/src/api/resources/crm/types/TaskRequestOwner.ts b/src/api/resources/crm/types/TaskRequestOwner.ts deleted file mode 100644 index a75862777..000000000 --- a/src/api/resources/crm/types/TaskRequestOwner.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 task's owner. - */ -export type TaskRequestOwner = string | Merge.crm.User; diff --git a/src/api/resources/crm/types/TaskRequestStatus.ts b/src/api/resources/crm/types/TaskRequestStatus.ts deleted file mode 100644 index 4840eb324..000000000 --- a/src/api/resources/crm/types/TaskRequestStatus.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 task's status. - * - * * `OPEN` - OPEN - * * `CLOSED` - CLOSED - */ -export type TaskRequestStatus = Merge.crm.TaskStatusEnum | string; diff --git a/src/api/resources/crm/types/TaskResponse.ts b/src/api/resources/crm/types/TaskResponse.ts deleted file mode 100644 index ad72fe8b6..000000000 --- a/src/api/resources/crm/types/TaskResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface TaskResponse { - model: Merge.crm.Task; - warnings: Merge.crm.WarningValidationProblem[]; - errors: Merge.crm.ErrorValidationProblem[]; - logs?: Merge.crm.DebugModeLog[]; -} diff --git a/src/api/resources/crm/types/TaskStatus.ts b/src/api/resources/crm/types/TaskStatus.ts deleted file mode 100644 index 35dc6a39c..000000000 --- a/src/api/resources/crm/types/TaskStatus.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 task's status. - * - * * `OPEN` - OPEN - * * `CLOSED` - CLOSED - */ -export type TaskStatus = Merge.crm.TaskStatusEnum | string; diff --git a/src/api/resources/crm/types/TaskStatusEnum.ts b/src/api/resources/crm/types/TaskStatusEnum.ts deleted file mode 100644 index 0c47e9e88..000000000 --- a/src/api/resources/crm/types/TaskStatusEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `OPEN` - OPEN - * * `CLOSED` - CLOSED - */ -export const TaskStatusEnum = { - Open: "OPEN", - Closed: "CLOSED", -} as const; -export type TaskStatusEnum = (typeof TaskStatusEnum)[keyof typeof TaskStatusEnum]; diff --git a/src/api/resources/crm/types/User.ts b/src/api/resources/crm/types/User.ts deleted file mode 100644 index 4e4f7a553..000000000 --- a/src/api/resources/crm/types/User.ts +++ /dev/null @@ -1,31 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The User Object - * ### Description - * The `User` object is used to represent a user with a login to the CRM system. - * ### Usage Example - * TODO - */ -export interface User { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The user's name. */ - name?: string; - /** The user's email address. */ - email?: string; - /** Whether or not the user is active. */ - isActive?: boolean; - /** 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.crm.RemoteData[]; - remoteFields?: Merge.crm.RemoteField[]; -} diff --git a/src/api/resources/crm/types/ValidationProblemSource.ts b/src/api/resources/crm/types/ValidationProblemSource.ts deleted file mode 100644 index 853332073..000000000 --- a/src/api/resources/crm/types/ValidationProblemSource.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface ValidationProblemSource { - pointer: string; -} diff --git a/src/api/resources/crm/types/WarningValidationProblem.ts b/src/api/resources/crm/types/WarningValidationProblem.ts deleted file mode 100644 index b756c606e..000000000 --- a/src/api/resources/crm/types/WarningValidationProblem.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface WarningValidationProblem { - source?: Merge.crm.ValidationProblemSource; - title: string; - detail: string; - problemType: string; -} diff --git a/src/api/resources/crm/types/WebhookReceiver.ts b/src/api/resources/crm/types/WebhookReceiver.ts deleted file mode 100644 index f9c8ebc4b..000000000 --- a/src/api/resources/crm/types/WebhookReceiver.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface WebhookReceiver { - event: string; - isActive: boolean; - key?: string; -} diff --git a/src/api/resources/crm/types/index.ts b/src/api/resources/crm/types/index.ts deleted file mode 100644 index d5c268b4d..000000000 --- a/src/api/resources/crm/types/index.ts +++ /dev/null @@ -1,220 +0,0 @@ -export * from "./Account"; -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 "./AccountOwner"; -export * from "./AccountRequest"; -export * from "./AccountRequestOwner"; -export * from "./AccountToken"; -export * from "./ActivityTypeEnum"; -export * from "./Address"; -export * from "./AddressAddressType"; -export * from "./AddressCountry"; -export * from "./AddressRequest"; -export * from "./AddressRequestAddressType"; -export * from "./AddressRequestCountry"; -export * from "./AddressTypeEnum"; -export * from "./AdvancedMetadata"; -export * from "./Association"; -export * from "./AssociationAssociationType"; -export * from "./AssociationSubType"; -export * from "./AssociationType"; -export * from "./AssociationTypeCardinality"; -export * from "./AssociationTypeRequestRequest"; -export * from "./AsyncPassthroughReciept"; -export * from "./AuditLogEvent"; -export * from "./AuditLogEventEventType"; -export * from "./AuditLogEventRole"; -export * from "./AvailableActions"; -export * from "./CardinalityEnum"; -export * from "./CategoriesEnum"; -export * from "./CategoryEnum"; -export * from "./CommonModelScopeApi"; -export * from "./CommonModelScopesBodyRequest"; -export * from "./Contact"; -export * from "./ContactAccount"; -export * from "./ContactOwner"; -export * from "./ContactRequest"; -export * from "./ContactRequestAccount"; -export * from "./ContactRequestOwner"; -export * from "./CountryEnum"; -export * from "./CrmAccountResponse"; -export * from "./CrmAssociationTypeResponse"; -export * from "./CrmContactResponse"; -export * from "./CrmCustomObjectResponse"; -export * from "./CustomObject"; -export * from "./CustomObjectClass"; -export * from "./CustomObjectRequest"; -export * from "./DataPassthroughRequest"; -export * from "./DebugModeLog"; -export * from "./DebugModelLogSummary"; -export * from "./DirectionEnum"; -export * from "./EmailAddress"; -export * from "./EmailAddressRequest"; -export * from "./EnabledActionsEnum"; -export * from "./EncodingEnum"; -export * from "./Engagement"; -export * from "./EngagementAccount"; -export * from "./EngagementContactsItem"; -export * from "./EngagementDirection"; -export * from "./EngagementEngagementType"; -export * from "./EngagementOwner"; -export * from "./EngagementRequest"; -export * from "./EngagementRequestAccount"; -export * from "./EngagementRequestContactsItem"; -export * from "./EngagementRequestDirection"; -export * from "./EngagementRequestEngagementType"; -export * from "./EngagementRequestOwner"; -export * from "./EngagementResponse"; -export * from "./EngagementType"; -export * from "./EngagementTypeActivityType"; -export * from "./ErrorValidationProblem"; -export * from "./EventTypeEnum"; -export * from "./ExternalTargetFieldApi"; -export * from "./ExternalTargetFieldApiResponse"; -export * from "./FieldFormatEnum"; -export * from "./FieldMappingApiInstance"; -export * from "./FieldMappingApiInstanceRemoteField"; -export * from "./FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo"; -export * from "./FieldMappingApiInstanceResponse"; -export * from "./FieldMappingApiInstanceTargetField"; -export * from "./FieldMappingInstanceResponse"; -export * from "./FieldPermissionDeserializer"; -export * from "./FieldPermissionDeserializerRequest"; -export * from "./FieldTypeEnum"; -export * from "./IgnoreCommonModelRequest"; -export * from "./IgnoreCommonModelRequestReason"; -export * from "./IndividualCommonModelScopeDeserializer"; -export * from "./IndividualCommonModelScopeDeserializerRequest"; -export * from "./Issue"; -export * from "./IssueStatus"; -export * from "./IssueStatusEnum"; -export * from "./ItemFormatEnum"; -export * from "./ItemSchema"; -export * from "./ItemTypeEnum"; -export * from "./LanguageEnum"; -export * from "./LastSyncResultEnum"; -export * from "./Lead"; -export * from "./LeadConvertedAccount"; -export * from "./LeadConvertedContact"; -export * from "./LeadOwner"; -export * from "./LeadRequest"; -export * from "./LeadRequestConvertedAccount"; -export * from "./LeadRequestConvertedContact"; -export * from "./LeadRequestOwner"; -export * from "./LeadResponse"; -export * from "./LinkedAccountStatus"; -export * from "./LinkToken"; -export * from "./MetaResponse"; -export * from "./MethodEnum"; -export * from "./ModelOperation"; -export * from "./ModelPermissionDeserializer"; -export * from "./ModelPermissionDeserializerRequest"; -export * from "./MultipartFormFieldRequest"; -export * from "./MultipartFormFieldRequestEncoding"; -export * from "./Note"; -export * from "./NoteAccount"; -export * from "./NoteContact"; -export * from "./NoteOpportunity"; -export * from "./NoteOwner"; -export * from "./NoteRequest"; -export * from "./NoteRequestAccount"; -export * from "./NoteRequestContact"; -export * from "./NoteRequestOpportunity"; -export * from "./NoteRequestOwner"; -export * from "./NoteResponse"; -export * from "./ObjectClassDescriptionRequest"; -export * from "./Opportunity"; -export * from "./OpportunityAccount"; -export * from "./OpportunityOwner"; -export * from "./OpportunityRequest"; -export * from "./OpportunityRequestAccount"; -export * from "./OpportunityRequestOwner"; -export * from "./OpportunityRequestStage"; -export * from "./OpportunityRequestStatus"; -export * from "./OpportunityResponse"; -export * from "./OpportunityStage"; -export * from "./OpportunityStatus"; -export * from "./OpportunityStatusEnum"; -export * from "./OriginTypeEnum"; -export * from "./PaginatedAccountDetailsAndActionsList"; -export * from "./PaginatedAccountList"; -export * from "./PaginatedAssociationList"; -export * from "./PaginatedAssociationTypeList"; -export * from "./PaginatedAuditLogEventList"; -export * from "./PaginatedContactList"; -export * from "./PaginatedCustomObjectClassList"; -export * from "./PaginatedCustomObjectList"; -export * from "./PaginatedEngagementList"; -export * from "./PaginatedEngagementTypeList"; -export * from "./PaginatedIssueList"; -export * from "./PaginatedLeadList"; -export * from "./PaginatedNoteList"; -export * from "./PaginatedOpportunityList"; -export * from "./PaginatedRemoteFieldClassList"; -export * from "./PaginatedStageList"; -export * from "./PaginatedSyncStatusList"; -export * from "./PaginatedTaskList"; -export * from "./PaginatedUserList"; -export * from "./PatchedAccountRequest"; -export * from "./PatchedContactRequest"; -export * from "./PatchedContactRequestOwner"; -export * from "./PatchedEngagementRequest"; -export * from "./PatchedEngagementRequestDirection"; -export * from "./PatchedOpportunityRequest"; -export * from "./PatchedOpportunityRequestStatus"; -export * from "./PatchedTaskRequest"; -export * from "./PatchedTaskRequestStatus"; -export * from "./PhoneNumber"; -export * from "./PhoneNumberRequest"; -export * from "./ReasonEnum"; -export * from "./RemoteData"; -export * from "./RemoteEndpointInfo"; -export * from "./RemoteField"; -export * from "./RemoteFieldApi"; -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"; -export * from "./RemoteFieldClassForCustomObjectClassFieldType"; -export * from "./RemoteFieldClassForCustomObjectClassItemSchema"; -export * from "./RemoteFieldRemoteFieldClass"; -export * from "./RemoteFieldRequest"; -export * from "./RemoteFieldRequestRemoteFieldClass"; -export * from "./RemoteKey"; -export * from "./RemoteResponse"; -export * from "./RequestFormatEnum"; -export * from "./ResponseTypeEnum"; -export * from "./RoleEnum"; -export * from "./SelectiveSyncConfigurationsUsageEnum"; -export * from "./Stage"; -export * from "./StatusFd5Enum"; -export * from "./SyncStatus"; -export * from "./SyncStatusLastSyncResult"; -export * from "./SyncStatusStatus"; -export * from "./Task"; -export * from "./TaskAccount"; -export * from "./TaskOpportunity"; -export * from "./TaskOwner"; -export * from "./TaskRequest"; -export * from "./TaskRequestAccount"; -export * from "./TaskRequestOpportunity"; -export * from "./TaskRequestOwner"; -export * from "./TaskRequestStatus"; -export * from "./TaskResponse"; -export * from "./TaskStatus"; -export * from "./TaskStatusEnum"; -export * from "./User"; -export * from "./ValidationProblemSource"; -export * from "./WarningValidationProblem"; -export * from "./WebhookReceiver"; 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/accounting/resources/linkToken/types/index.ts b/src/api/resources/filestorage/resources/linkToken/types/index.ts similarity index 100% rename from src/api/resources/accounting/resources/linkToken/types/index.ts rename to src/api/resources/filestorage/resources/linkToken/types/index.ts 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/client/Client.ts b/src/api/resources/hris/client/Client.ts deleted file mode 100644 index 4782bb7bf..000000000 --- a/src/api/resources/hris/client/Client.ts +++ /dev/null @@ -1,214 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type { BaseClientOptions } from "../../../../BaseClient"; -import { type NormalizedClientOptionsWithAuth, normalizeClientOptionsWithAuth } from "../../../../BaseClient"; -import { AccountDetailsClient } from "../resources/accountDetails/client/Client"; -import { AccountTokenClient } from "../resources/accountToken/client/Client"; -import { AsyncPassthroughClient } from "../resources/asyncPassthrough/client/Client"; -import { AuditTrailClient } from "../resources/auditTrail/client/Client"; -import { AvailableActionsClient } from "../resources/availableActions/client/Client"; -import { BankInfoClient } from "../resources/bankInfo/client/Client"; -import { BenefitsClient } from "../resources/benefits/client/Client"; -import { CompaniesClient } from "../resources/companies/client/Client"; -import { DeleteAccountClient } from "../resources/deleteAccount/client/Client"; -import { DependentsClient } from "../resources/dependents/client/Client"; -import { EmployeePayrollRunsClient } from "../resources/employeePayrollRuns/client/Client"; -import { EmployeesClient } from "../resources/employees/client/Client"; -import { EmployerBenefitsClient } from "../resources/employerBenefits/client/Client"; -import { EmploymentsClient } from "../resources/employments/client/Client"; -import { FieldMappingClient } from "../resources/fieldMapping/client/Client"; -import { ForceResyncClient } from "../resources/forceResync/client/Client"; -import { GenerateKeyClient } from "../resources/generateKey/client/Client"; -import { GroupsClient } from "../resources/groups/client/Client"; -import { IssuesClient } from "../resources/issues/client/Client"; -import { LinkedAccountsClient } from "../resources/linkedAccounts/client/Client"; -import { LinkTokenClient } from "../resources/linkToken/client/Client"; -import { LocationsClient } from "../resources/locations/client/Client"; -import { PassthroughClient } from "../resources/passthrough/client/Client"; -import { PayGroupsClient } from "../resources/payGroups/client/Client"; -import { PayrollRunsClient } from "../resources/payrollRuns/client/Client"; -import { RegenerateKeyClient } from "../resources/regenerateKey/client/Client"; -import { ScopesClient } from "../resources/scopes/client/Client"; -import { SyncStatusClient } from "../resources/syncStatus/client/Client"; -import { TeamsClient } from "../resources/teams/client/Client"; -import { TimeOffClient } from "../resources/timeOff/client/Client"; -import { TimeOffBalancesClient } from "../resources/timeOffBalances/client/Client"; -import { TimesheetEntriesClient } from "../resources/timesheetEntries/client/Client"; -import { WebhookReceiversClient } from "../resources/webhookReceivers/client/Client"; - -export declare namespace HrisClient { - export type Options = BaseClientOptions; -} - -export class HrisClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - protected _accountDetails: AccountDetailsClient | undefined; - protected _accountToken: AccountTokenClient | undefined; - protected _asyncPassthrough: AsyncPassthroughClient | undefined; - protected _auditTrail: AuditTrailClient | undefined; - protected _availableActions: AvailableActionsClient | undefined; - protected _bankInfo: BankInfoClient | undefined; - protected _benefits: BenefitsClient | undefined; - protected _companies: CompaniesClient | undefined; - protected _scopes: ScopesClient | undefined; - protected _deleteAccount: DeleteAccountClient | undefined; - protected _dependents: DependentsClient | undefined; - protected _employeePayrollRuns: EmployeePayrollRunsClient | undefined; - protected _employees: EmployeesClient | undefined; - protected _employerBenefits: EmployerBenefitsClient | undefined; - protected _employments: EmploymentsClient | undefined; - protected _fieldMapping: FieldMappingClient | undefined; - protected _generateKey: GenerateKeyClient | undefined; - protected _groups: GroupsClient | undefined; - protected _issues: IssuesClient | undefined; - protected _linkToken: LinkTokenClient | undefined; - protected _linkedAccounts: LinkedAccountsClient | undefined; - protected _locations: LocationsClient | undefined; - protected _passthrough: PassthroughClient | undefined; - protected _payGroups: PayGroupsClient | undefined; - protected _payrollRuns: PayrollRunsClient | undefined; - protected _regenerateKey: RegenerateKeyClient | undefined; - protected _syncStatus: SyncStatusClient | undefined; - protected _forceResync: ForceResyncClient | undefined; - protected _teams: TeamsClient | undefined; - protected _timeOff: TimeOffClient | undefined; - protected _timeOffBalances: TimeOffBalancesClient | undefined; - protected _timesheetEntries: TimesheetEntriesClient | undefined; - protected _webhookReceivers: WebhookReceiversClient | undefined; - - constructor(options: HrisClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - public get accountDetails(): AccountDetailsClient { - return (this._accountDetails ??= new AccountDetailsClient(this._options)); - } - - public get accountToken(): AccountTokenClient { - return (this._accountToken ??= new AccountTokenClient(this._options)); - } - - public get asyncPassthrough(): AsyncPassthroughClient { - return (this._asyncPassthrough ??= new AsyncPassthroughClient(this._options)); - } - - public get auditTrail(): AuditTrailClient { - return (this._auditTrail ??= new AuditTrailClient(this._options)); - } - - public get availableActions(): AvailableActionsClient { - return (this._availableActions ??= new AvailableActionsClient(this._options)); - } - - public get bankInfo(): BankInfoClient { - return (this._bankInfo ??= new BankInfoClient(this._options)); - } - - public get benefits(): BenefitsClient { - return (this._benefits ??= new BenefitsClient(this._options)); - } - - public get companies(): CompaniesClient { - return (this._companies ??= new CompaniesClient(this._options)); - } - - public get scopes(): ScopesClient { - return (this._scopes ??= new ScopesClient(this._options)); - } - - public get deleteAccount(): DeleteAccountClient { - return (this._deleteAccount ??= new DeleteAccountClient(this._options)); - } - - public get dependents(): DependentsClient { - return (this._dependents ??= new DependentsClient(this._options)); - } - - public get employeePayrollRuns(): EmployeePayrollRunsClient { - return (this._employeePayrollRuns ??= new EmployeePayrollRunsClient(this._options)); - } - - public get employees(): EmployeesClient { - return (this._employees ??= new EmployeesClient(this._options)); - } - - public get employerBenefits(): EmployerBenefitsClient { - return (this._employerBenefits ??= new EmployerBenefitsClient(this._options)); - } - - public get employments(): EmploymentsClient { - return (this._employments ??= new EmploymentsClient(this._options)); - } - - public get fieldMapping(): FieldMappingClient { - return (this._fieldMapping ??= new FieldMappingClient(this._options)); - } - - public get generateKey(): GenerateKeyClient { - return (this._generateKey ??= new GenerateKeyClient(this._options)); - } - - public get groups(): GroupsClient { - return (this._groups ??= new GroupsClient(this._options)); - } - - public get issues(): IssuesClient { - return (this._issues ??= new IssuesClient(this._options)); - } - - public get linkToken(): LinkTokenClient { - return (this._linkToken ??= new LinkTokenClient(this._options)); - } - - public get linkedAccounts(): LinkedAccountsClient { - return (this._linkedAccounts ??= new LinkedAccountsClient(this._options)); - } - - public get locations(): LocationsClient { - return (this._locations ??= new LocationsClient(this._options)); - } - - public get passthrough(): PassthroughClient { - return (this._passthrough ??= new PassthroughClient(this._options)); - } - - public get payGroups(): PayGroupsClient { - return (this._payGroups ??= new PayGroupsClient(this._options)); - } - - public get payrollRuns(): PayrollRunsClient { - return (this._payrollRuns ??= new PayrollRunsClient(this._options)); - } - - public get regenerateKey(): RegenerateKeyClient { - return (this._regenerateKey ??= new RegenerateKeyClient(this._options)); - } - - public get syncStatus(): SyncStatusClient { - return (this._syncStatus ??= new SyncStatusClient(this._options)); - } - - public get forceResync(): ForceResyncClient { - return (this._forceResync ??= new ForceResyncClient(this._options)); - } - - public get teams(): TeamsClient { - return (this._teams ??= new TeamsClient(this._options)); - } - - public get timeOff(): TimeOffClient { - return (this._timeOff ??= new TimeOffClient(this._options)); - } - - public get timeOffBalances(): TimeOffBalancesClient { - return (this._timeOffBalances ??= new TimeOffBalancesClient(this._options)); - } - - public get timesheetEntries(): TimesheetEntriesClient { - return (this._timesheetEntries ??= new TimesheetEntriesClient(this._options)); - } - - public get webhookReceivers(): WebhookReceiversClient { - return (this._webhookReceivers ??= new WebhookReceiversClient(this._options)); - } -} diff --git a/src/api/resources/hris/client/index.ts b/src/api/resources/hris/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/hris/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/hris/exports.ts b/src/api/resources/hris/exports.ts deleted file mode 100644 index 7da993612..000000000 --- a/src/api/resources/hris/exports.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { HrisClient } from "./client/Client"; -export * from "./client/index"; -export * from "./resources/index"; diff --git a/src/api/resources/hris/index.ts b/src/api/resources/hris/index.ts deleted file mode 100644 index fb00ab43d..000000000 --- a/src/api/resources/hris/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./client"; -export * from "./resources"; -export * from "./types"; diff --git a/src/api/resources/hris/resources/accountDetails/client/Client.ts b/src/api/resources/hris/resources/accountDetails/client/Client.ts deleted file mode 100644 index bd9abad6c..000000000 --- a/src/api/resources/hris/resources/accountDetails/client/Client.ts +++ /dev/null @@ -1,89 +0,0 @@ -// 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 AccountDetailsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AccountDetailsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AccountDetailsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Get details for a linked account. - * - * @param {AccountDetailsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.accountDetails.retrieve() - */ - public retrieve( - requestOptions?: AccountDetailsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(requestOptions)); - } - - private async __retrieve( - requestOptions?: AccountDetailsClient.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-details", - ), - 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.hris.AccountDetails.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/account-details"); - } -} diff --git a/src/api/resources/hris/resources/accountDetails/client/index.ts b/src/api/resources/hris/resources/accountDetails/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/hris/resources/accountDetails/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/hris/resources/accountDetails/exports.ts b/src/api/resources/hris/resources/accountDetails/exports.ts deleted file mode 100644 index 418f11a73..000000000 --- a/src/api/resources/hris/resources/accountDetails/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AccountDetailsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/accountDetails/index.ts b/src/api/resources/hris/resources/accountDetails/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/hris/resources/accountDetails/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/hris/resources/accountToken/client/Client.ts b/src/api/resources/hris/resources/accountToken/client/Client.ts deleted file mode 100644 index 639122699..000000000 --- a/src/api/resources/hris/resources/accountToken/client/Client.ts +++ /dev/null @@ -1,97 +0,0 @@ -// 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 AccountTokenClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AccountTokenClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AccountTokenClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns the account token for the end user with the provided public token. - * - * @param {string} public_token - * @param {AccountTokenClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.accountToken.retrieve("public_token") - */ - public retrieve( - public_token: string, - requestOptions?: AccountTokenClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(public_token, requestOptions)); - } - - private async __retrieve( - public_token: string, - 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/${core.url.encodePathParam(public_token)}`, - ), - 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.hris.AccountToken.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/account-token/{public_token}", - ); - } -} diff --git a/src/api/resources/hris/resources/accountToken/client/index.ts b/src/api/resources/hris/resources/accountToken/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/hris/resources/accountToken/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/hris/resources/accountToken/exports.ts b/src/api/resources/hris/resources/accountToken/exports.ts deleted file mode 100644 index 52f681c49..000000000 --- a/src/api/resources/hris/resources/accountToken/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AccountTokenClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/accountToken/index.ts b/src/api/resources/hris/resources/accountToken/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/hris/resources/accountToken/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/hris/resources/asyncPassthrough/client/Client.ts b/src/api/resources/hris/resources/asyncPassthrough/client/Client.ts deleted file mode 100644 index 98d99d3dd..000000000 --- a/src/api/resources/hris/resources/asyncPassthrough/client/Client.ts +++ /dev/null @@ -1,170 +0,0 @@ -// 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 AsyncPassthroughClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AsyncPassthroughClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AsyncPassthroughClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Asynchronously pull data from an endpoint not currently supported by Merge. - * - * @param {Merge.hris.DataPassthroughRequest} request - * @param {AsyncPassthroughClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.asyncPassthrough.create({ - * method: "GET", - * path: "/scooters" - * }) - */ - public create( - request: Merge.hris.DataPassthroughRequest, - requestOptions?: AsyncPassthroughClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.hris.DataPassthroughRequest, - requestOptions?: AsyncPassthroughClient.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/async-passthrough", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.hris.DataPassthroughRequest.jsonOrThrow(request, { 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.hris.AsyncPassthroughReciept.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/async-passthrough"); - } - - /** - * Retrieves data from earlier async-passthrough POST request - * - * @param {string} async_passthrough_receipt_id - * @param {AsyncPassthroughClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.asyncPassthrough.retrieve("async_passthrough_receipt_id") - */ - public retrieve( - async_passthrough_receipt_id: string, - requestOptions?: AsyncPassthroughClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(async_passthrough_receipt_id, requestOptions)); - } - - private async __retrieve( - async_passthrough_receipt_id: string, - requestOptions?: AsyncPassthroughClient.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/async-passthrough/${core.url.encodePathParam(async_passthrough_receipt_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.hris.AsyncPassthroughRetrieveResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/async-passthrough/{async_passthrough_receipt_id}", - ); - } -} diff --git a/src/api/resources/hris/resources/asyncPassthrough/client/index.ts b/src/api/resources/hris/resources/asyncPassthrough/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/hris/resources/asyncPassthrough/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/hris/resources/asyncPassthrough/exports.ts b/src/api/resources/hris/resources/asyncPassthrough/exports.ts deleted file mode 100644 index 559d07505..000000000 --- a/src/api/resources/hris/resources/asyncPassthrough/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AsyncPassthroughClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/asyncPassthrough/index.ts b/src/api/resources/hris/resources/asyncPassthrough/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/hris/resources/asyncPassthrough/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/hris/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.ts b/src/api/resources/hris/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.ts deleted file mode 100644 index da3572038..000000000 --- a/src/api/resources/hris/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.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 AsyncPassthroughRetrieveResponse = Merge.hris.RemoteResponse | string; diff --git a/src/api/resources/hris/resources/asyncPassthrough/types/index.ts b/src/api/resources/hris/resources/asyncPassthrough/types/index.ts deleted file mode 100644 index f2b2d0e21..000000000 --- a/src/api/resources/hris/resources/asyncPassthrough/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./AsyncPassthroughRetrieveResponse"; diff --git a/src/api/resources/hris/resources/auditTrail/client/Client.ts b/src/api/resources/hris/resources/auditTrail/client/Client.ts deleted file mode 100644 index 4a0832d33..000000000 --- a/src/api/resources/hris/resources/auditTrail/client/Client.ts +++ /dev/null @@ -1,108 +0,0 @@ -// 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 AuditTrailClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AuditTrailClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AuditTrailClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Gets a list of audit trail events. - * - * @param {Merge.hris.AuditTrailListRequest} request - * @param {AuditTrailClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.auditTrail.list({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * endDate: "end_date", - * eventType: "event_type", - * pageSize: 1, - * startDate: "start_date", - * userEmail: "user_email" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } -} diff --git a/src/api/resources/hris/resources/auditTrail/client/index.ts b/src/api/resources/hris/resources/auditTrail/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/hris/resources/auditTrail/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/auditTrail/client/requests/AuditTrailListRequest.ts b/src/api/resources/hris/resources/auditTrail/client/requests/AuditTrailListRequest.ts deleted file mode 100644 index 65216f96c..000000000 --- a/src/api/resources/hris/resources/auditTrail/client/requests/AuditTrailListRequest.ts +++ /dev/null @@ -1,27 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * endDate: "end_date", - * eventType: "event_type", - * pageSize: 1, - * startDate: "start_date", - * userEmail: "user_email" - * } - */ -export interface AuditTrailListRequest { - /** The pagination cursor value. */ - cursor?: string; - /** If included, will only include audit trail events that occurred before this time */ - 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. */ - pageSize?: number; - /** If included, will only include audit trail events that occurred after this time */ - startDate?: string; - /** If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. */ - userEmail?: string; -} diff --git a/src/api/resources/hris/resources/auditTrail/client/requests/index.ts b/src/api/resources/hris/resources/auditTrail/client/requests/index.ts deleted file mode 100644 index 1878598de..000000000 --- a/src/api/resources/hris/resources/auditTrail/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { AuditTrailListRequest } from "./AuditTrailListRequest"; diff --git a/src/api/resources/hris/resources/auditTrail/exports.ts b/src/api/resources/hris/resources/auditTrail/exports.ts deleted file mode 100644 index 0a7d225a1..000000000 --- a/src/api/resources/hris/resources/auditTrail/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AuditTrailClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/auditTrail/index.ts b/src/api/resources/hris/resources/auditTrail/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/hris/resources/auditTrail/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/hris/resources/availableActions/client/Client.ts b/src/api/resources/hris/resources/availableActions/client/Client.ts deleted file mode 100644 index 5e7b5c9d6..000000000 --- a/src/api/resources/hris/resources/availableActions/client/Client.ts +++ /dev/null @@ -1,89 +0,0 @@ -// 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 AvailableActionsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AvailableActionsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AvailableActionsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of models and actions available for an account. - * - * @param {AvailableActionsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.availableActions.retrieve() - */ - public retrieve( - requestOptions?: AvailableActionsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(requestOptions)); - } - - private async __retrieve( - requestOptions?: AvailableActionsClient.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/available-actions", - ), - 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.hris.AvailableActions.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/available-actions"); - } -} diff --git a/src/api/resources/hris/resources/availableActions/client/index.ts b/src/api/resources/hris/resources/availableActions/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/hris/resources/availableActions/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/hris/resources/availableActions/exports.ts b/src/api/resources/hris/resources/availableActions/exports.ts deleted file mode 100644 index 660bd32af..000000000 --- a/src/api/resources/hris/resources/availableActions/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AvailableActionsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/availableActions/index.ts b/src/api/resources/hris/resources/availableActions/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/hris/resources/availableActions/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/hris/resources/bankInfo/client/Client.ts b/src/api/resources/hris/resources/bankInfo/client/Client.ts deleted file mode 100644 index 164117b86..000000000 --- a/src/api/resources/hris/resources/bankInfo/client/Client.ts +++ /dev/null @@ -1,242 +0,0 @@ -// 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 BankInfoClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class BankInfoClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: BankInfoClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `BankInfo` objects. - * - * @param {Merge.hris.BankInfoListRequest} request - * @param {BankInfoClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `BankInfo` object with the given `id`. - * - * @param {string} id - * @param {Merge.hris.BankInfoRetrieveRequest} request - * @param {BankInfoClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.bankInfo.retrieve("id", { - * expand: "employee", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "account_type", - * showEnumOrigins: "account_type" - * }) - */ - public retrieve( - id: string, - request: Merge.hris.BankInfoRetrieveRequest = {}, - requestOptions?: BankInfoClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.hris.BankInfoRetrieveRequest = {}, - requestOptions?: BankInfoClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; - const _queryParams: Record = { - expand: expand != null ? expand : undefined, - include_remote_data: includeRemoteData, - 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, - `hris/v1/bank-info/${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.hris.BankInfo.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/hris/resources/bankInfo/client/index.ts b/src/api/resources/hris/resources/bankInfo/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/hris/resources/bankInfo/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/bankInfo/client/requests/BankInfoListRequest.ts b/src/api/resources/hris/resources/bankInfo/client/requests/BankInfoListRequest.ts deleted file mode 100644 index 835c764b1..000000000 --- a/src/api/resources/hris/resources/bankInfo/client/requests/BankInfoListRequest.ts +++ /dev/null @@ -1,67 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * 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" - * } - */ -export interface BankInfoListRequest { - /** - * If provided, will only return BankInfo's with this account type. Options: ('SAVINGS', 'CHECKING') - * - * * `SAVINGS` - SAVINGS - * * `CHECKING` - CHECKING - */ - accountType?: Merge.hris.BankInfoListRequestAccountType; - /** If provided, will only return BankInfo's with this bank name. */ - bankName?: string; - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** If provided, will only return 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"; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Overrides the default ordering for this endpoint. Possible values include: remote_created_at, -remote_created_at. */ - orderBy?: Merge.hris.BankInfoListRequestOrderBy; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: "account_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?: "account_type"; -} diff --git a/src/api/resources/hris/resources/bankInfo/client/requests/BankInfoRetrieveRequest.ts b/src/api/resources/hris/resources/bankInfo/client/requests/BankInfoRetrieveRequest.ts deleted file mode 100644 index 40b686525..000000000 --- a/src/api/resources/hris/resources/bankInfo/client/requests/BankInfoRetrieveRequest.ts +++ /dev/null @@ -1,24 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * expand: "employee", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "account_type", - * showEnumOrigins: "account_type" - * } - */ -export interface BankInfoRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "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). */ - includeShellData?: boolean; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: "account_type"; - /** 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?: "account_type"; -} diff --git a/src/api/resources/hris/resources/bankInfo/client/requests/index.ts b/src/api/resources/hris/resources/bankInfo/client/requests/index.ts deleted file mode 100644 index 92abe6bf9..000000000 --- a/src/api/resources/hris/resources/bankInfo/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { BankInfoListRequest } from "./BankInfoListRequest"; -export type { BankInfoRetrieveRequest } from "./BankInfoRetrieveRequest"; diff --git a/src/api/resources/hris/resources/bankInfo/exports.ts b/src/api/resources/hris/resources/bankInfo/exports.ts deleted file mode 100644 index b12f99df9..000000000 --- a/src/api/resources/hris/resources/bankInfo/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { BankInfoClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/bankInfo/index.ts b/src/api/resources/hris/resources/bankInfo/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/hris/resources/bankInfo/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/hris/resources/bankInfo/types/BankInfoListRequestAccountType.ts b/src/api/resources/hris/resources/bankInfo/types/BankInfoListRequestAccountType.ts deleted file mode 100644 index 91292f2fb..000000000 --- a/src/api/resources/hris/resources/bankInfo/types/BankInfoListRequestAccountType.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const BankInfoListRequestAccountType = { - Checking: "CHECKING", - Savings: "SAVINGS", -} as const; -export type BankInfoListRequestAccountType = - (typeof BankInfoListRequestAccountType)[keyof typeof BankInfoListRequestAccountType]; diff --git a/src/api/resources/hris/resources/bankInfo/types/BankInfoListRequestOrderBy.ts b/src/api/resources/hris/resources/bankInfo/types/BankInfoListRequestOrderBy.ts deleted file mode 100644 index 6b6e560a3..000000000 --- a/src/api/resources/hris/resources/bankInfo/types/BankInfoListRequestOrderBy.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const BankInfoListRequestOrderBy = { - RemoteCreatedAtDescending: "-remote_created_at", - RemoteCreatedAtAscending: "remote_created_at", -} as const; -export type BankInfoListRequestOrderBy = (typeof BankInfoListRequestOrderBy)[keyof typeof BankInfoListRequestOrderBy]; diff --git a/src/api/resources/hris/resources/bankInfo/types/index.ts b/src/api/resources/hris/resources/bankInfo/types/index.ts deleted file mode 100644 index 37136ecc9..000000000 --- a/src/api/resources/hris/resources/bankInfo/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./BankInfoListRequestAccountType"; -export * from "./BankInfoListRequestOrderBy"; diff --git a/src/api/resources/hris/resources/benefits/client/Client.ts b/src/api/resources/hris/resources/benefits/client/Client.ts deleted file mode 100644 index ac955b314..000000000 --- a/src/api/resources/hris/resources/benefits/client/Client.ts +++ /dev/null @@ -1,213 +0,0 @@ -// 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 BenefitsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class BenefitsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: BenefitsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Benefit` objects. - * - * @param {Merge.hris.BenefitsListRequest} request - * @param {BenefitsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `Benefit` object with the given `id`. - * - * @param {string} id - * @param {Merge.hris.BenefitsRetrieveRequest} request - * @param {BenefitsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.benefits.retrieve("id", { - * expand: "employee", - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.hris.BenefitsRetrieveRequest = {}, - requestOptions?: BenefitsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.hris.BenefitsRetrieveRequest = {}, - requestOptions?: BenefitsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - expand: expand != null ? expand : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/${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.hris.Benefit.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/hris/resources/benefits/client/index.ts b/src/api/resources/hris/resources/benefits/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/hris/resources/benefits/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/benefits/client/requests/BenefitsListRequest.ts b/src/api/resources/hris/resources/benefits/client/requests/BenefitsListRequest.ts deleted file mode 100644 index 4b1f60a22..000000000 --- a/src/api/resources/hris/resources/benefits/client/requests/BenefitsListRequest.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * 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" - * } - */ -export interface BenefitsListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** If provided, will 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"; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; - /** The API provider's ID for the given object. */ - remoteId?: string; -} diff --git a/src/api/resources/hris/resources/benefits/client/requests/BenefitsRetrieveRequest.ts b/src/api/resources/hris/resources/benefits/client/requests/BenefitsRetrieveRequest.ts deleted file mode 100644 index 66e794081..000000000 --- a/src/api/resources/hris/resources/benefits/client/requests/BenefitsRetrieveRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @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"; - /** 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; -} diff --git a/src/api/resources/hris/resources/benefits/client/requests/index.ts b/src/api/resources/hris/resources/benefits/client/requests/index.ts deleted file mode 100644 index 0b8870e2e..000000000 --- a/src/api/resources/hris/resources/benefits/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { BenefitsListRequest } from "./BenefitsListRequest"; -export type { BenefitsRetrieveRequest } from "./BenefitsRetrieveRequest"; diff --git a/src/api/resources/hris/resources/benefits/exports.ts b/src/api/resources/hris/resources/benefits/exports.ts deleted file mode 100644 index ec75fd39c..000000000 --- a/src/api/resources/hris/resources/benefits/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { BenefitsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/benefits/index.ts b/src/api/resources/hris/resources/benefits/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/hris/resources/benefits/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/hris/resources/companies/client/Client.ts b/src/api/resources/hris/resources/companies/client/Client.ts deleted file mode 100644 index fdf3f82fd..000000000 --- a/src/api/resources/hris/resources/companies/client/Client.ts +++ /dev/null @@ -1,205 +0,0 @@ -// 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 CompaniesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class CompaniesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: CompaniesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Company` objects. - * - * @param {Merge.hris.CompaniesListRequest} request - * @param {CompaniesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `Company` object with the given `id`. - * - * @param {string} id - * @param {Merge.hris.CompaniesRetrieveRequest} request - * @param {CompaniesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.companies.retrieve("id", { - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.hris.CompaniesRetrieveRequest = {}, - requestOptions?: CompaniesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.hris.CompaniesRetrieveRequest = {}, - requestOptions?: CompaniesClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `hris/v1/companies/${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.hris.Company.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/hris/resources/companies/client/index.ts b/src/api/resources/hris/resources/companies/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/hris/resources/companies/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/companies/client/requests/CompaniesListRequest.ts b/src/api/resources/hris/resources/companies/client/requests/CompaniesListRequest.ts deleted file mode 100644 index c8a40fa7d..000000000 --- a/src/api/resources/hris/resources/companies/client/requests/CompaniesListRequest.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - * pageSize: 1, - * remoteId: "remote_id" - * } - */ -export interface CompaniesListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; - /** The API provider's ID for the given object. */ - remoteId?: string; -} diff --git a/src/api/resources/hris/resources/companies/client/requests/CompaniesRetrieveRequest.ts b/src/api/resources/hris/resources/companies/client/requests/CompaniesRetrieveRequest.ts deleted file mode 100644 index 4ac85479d..000000000 --- a/src/api/resources/hris/resources/companies/client/requests/CompaniesRetrieveRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * includeRemoteData: true, - * includeShellData: true - * } - */ -export interface CompaniesRetrieveRequest { - /** 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; -} diff --git a/src/api/resources/hris/resources/companies/client/requests/index.ts b/src/api/resources/hris/resources/companies/client/requests/index.ts deleted file mode 100644 index 05be4e0ee..000000000 --- a/src/api/resources/hris/resources/companies/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { CompaniesListRequest } from "./CompaniesListRequest"; -export type { CompaniesRetrieveRequest } from "./CompaniesRetrieveRequest"; diff --git a/src/api/resources/hris/resources/companies/exports.ts b/src/api/resources/hris/resources/companies/exports.ts deleted file mode 100644 index b2ff6b6a9..000000000 --- a/src/api/resources/hris/resources/companies/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { CompaniesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/companies/index.ts b/src/api/resources/hris/resources/companies/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/hris/resources/companies/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/hris/resources/deleteAccount/client/Client.ts b/src/api/resources/hris/resources/deleteAccount/client/Client.ts deleted file mode 100644 index 444eec69e..000000000 --- a/src/api/resources/hris/resources/deleteAccount/client/Client.ts +++ /dev/null @@ -1,74 +0,0 @@ -// 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"; - -export declare namespace DeleteAccountClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class DeleteAccountClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: DeleteAccountClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Delete a linked account. - * - * @param {DeleteAccountClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.deleteAccount.delete() - */ - public delete(requestOptions?: DeleteAccountClient.RequestOptions): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__delete(requestOptions)); - } - - private async __delete(requestOptions?: DeleteAccountClient.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/delete-account", - ), - 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: undefined, rawResponse: _response.rawResponse }; - } - - if (_response.error.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/delete-account"); - } -} diff --git a/src/api/resources/hris/resources/deleteAccount/client/index.ts b/src/api/resources/hris/resources/deleteAccount/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/hris/resources/deleteAccount/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/hris/resources/deleteAccount/exports.ts b/src/api/resources/hris/resources/deleteAccount/exports.ts deleted file mode 100644 index b2e5e49b6..000000000 --- a/src/api/resources/hris/resources/deleteAccount/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { DeleteAccountClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/deleteAccount/index.ts b/src/api/resources/hris/resources/deleteAccount/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/hris/resources/deleteAccount/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/hris/resources/dependents/client/Client.ts b/src/api/resources/hris/resources/dependents/client/Client.ts deleted file mode 100644 index 7913e3fd5..000000000 --- a/src/api/resources/hris/resources/dependents/client/Client.ts +++ /dev/null @@ -1,213 +0,0 @@ -// 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 DependentsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class DependentsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: DependentsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Dependent` objects. - * - * @param {Merge.hris.DependentsListRequest} request - * @param {DependentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `Dependent` object with the given `id`. - * - * @param {string} id - * @param {Merge.hris.DependentsRetrieveRequest} request - * @param {DependentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.dependents.retrieve("id", { - * includeRemoteData: true, - * includeSensitiveFields: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.hris.DependentsRetrieveRequest = {}, - requestOptions?: DependentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.hris.DependentsRetrieveRequest = {}, - requestOptions?: DependentsClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeSensitiveFields, includeShellData } = request; - const _queryParams: Record = { - include_remote_data: includeRemoteData, - include_sensitive_fields: includeSensitiveFields, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `hris/v1/dependents/${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.hris.Dependent.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/hris/resources/dependents/client/index.ts b/src/api/resources/hris/resources/dependents/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/hris/resources/dependents/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/dependents/client/requests/DependentsListRequest.ts b/src/api/resources/hris/resources/dependents/client/requests/DependentsListRequest.ts deleted file mode 100644 index 3c4dfbb04..000000000 --- a/src/api/resources/hris/resources/dependents/client/requests/DependentsListRequest.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * 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" - * } - */ -export interface DependentsListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** If provided, will only return dependents for this employee. */ - employeeId?: 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 sensitive fields (such as social security numbers) in the response. */ - includeSensitiveFields?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; - /** The API provider's ID for the given object. */ - remoteId?: string; -} diff --git a/src/api/resources/hris/resources/dependents/client/requests/DependentsRetrieveRequest.ts b/src/api/resources/hris/resources/dependents/client/requests/DependentsRetrieveRequest.ts deleted file mode 100644 index 4bde231db..000000000 --- a/src/api/resources/hris/resources/dependents/client/requests/DependentsRetrieveRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * includeRemoteData: true, - * includeSensitiveFields: true, - * includeShellData: true - * } - */ -export interface DependentsRetrieveRequest { - /** 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. */ - includeSensitiveFields?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; -} diff --git a/src/api/resources/hris/resources/dependents/client/requests/index.ts b/src/api/resources/hris/resources/dependents/client/requests/index.ts deleted file mode 100644 index 1fffe2abd..000000000 --- a/src/api/resources/hris/resources/dependents/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { DependentsListRequest } from "./DependentsListRequest"; -export type { DependentsRetrieveRequest } from "./DependentsRetrieveRequest"; diff --git a/src/api/resources/hris/resources/dependents/exports.ts b/src/api/resources/hris/resources/dependents/exports.ts deleted file mode 100644 index d02a1bfa0..000000000 --- a/src/api/resources/hris/resources/dependents/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { DependentsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/dependents/index.ts b/src/api/resources/hris/resources/dependents/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/hris/resources/dependents/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/hris/resources/employeePayrollRuns/client/Client.ts b/src/api/resources/hris/resources/employeePayrollRuns/client/Client.ts deleted file mode 100644 index 87494a0b0..000000000 --- a/src/api/resources/hris/resources/employeePayrollRuns/client/Client.ts +++ /dev/null @@ -1,248 +0,0 @@ -// 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 EmployeePayrollRunsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class EmployeePayrollRunsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: EmployeePayrollRunsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `EmployeePayrollRun` objects. - * - * @param {Merge.hris.EmployeePayrollRunsListRequest} request - * @param {EmployeePayrollRunsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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") - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } - - /** - * Returns an `EmployeePayrollRun` object with the given `id`. - * - * @param {string} id - * @param {Merge.hris.EmployeePayrollRunsRetrieveRequest} request - * @param {EmployeePayrollRunsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.employeePayrollRuns.retrieve("id", { - * expand: "employee", - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.hris.EmployeePayrollRunsRetrieveRequest = {}, - requestOptions?: EmployeePayrollRunsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.hris.EmployeePayrollRunsRetrieveRequest = {}, - requestOptions?: EmployeePayrollRunsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.hris.EmployeePayrollRunsRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `hris/v1/employee-payroll-runs/${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.hris.EmployeePayrollRun.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}", - ); - } -} diff --git a/src/api/resources/hris/resources/employeePayrollRuns/client/index.ts b/src/api/resources/hris/resources/employeePayrollRuns/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/hris/resources/employeePayrollRuns/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/employeePayrollRuns/client/requests/EmployeePayrollRunsListRequest.ts b/src/api/resources/hris/resources/employeePayrollRuns/client/requests/EmployeePayrollRunsListRequest.ts deleted file mode 100644 index 5e890cb6b..000000000 --- a/src/api/resources/hris/resources/employeePayrollRuns/client/requests/EmployeePayrollRunsListRequest.ts +++ /dev/null @@ -1,62 +0,0 @@ -// 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", - * 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") - * } - */ -export interface EmployeePayrollRunsListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** If provided, will only return employee payroll runs for this employee. */ - employeeId?: string; - /** If provided, will only return employee payroll runs ended after this datetime. */ - endedAfter?: Date; - /** 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; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; - /** If provided, will only return employee payroll runs for this employee. */ - payrollRunId?: string; - /** The API provider's ID for the given object. */ - remoteId?: string; - /** If provided, will only return employee payroll runs started after this datetime. */ - startedAfter?: Date; - /** If provided, will only return employee payroll runs started before this datetime. */ - startedBefore?: Date; -} diff --git a/src/api/resources/hris/resources/employeePayrollRuns/client/requests/EmployeePayrollRunsRetrieveRequest.ts b/src/api/resources/hris/resources/employeePayrollRuns/client/requests/EmployeePayrollRunsRetrieveRequest.ts deleted file mode 100644 index d20d82e13..000000000 --- a/src/api/resources/hris/resources/employeePayrollRuns/client/requests/EmployeePayrollRunsRetrieveRequest.ts +++ /dev/null @@ -1,20 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -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; - /** 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; -} diff --git a/src/api/resources/hris/resources/employeePayrollRuns/client/requests/index.ts b/src/api/resources/hris/resources/employeePayrollRuns/client/requests/index.ts deleted file mode 100644 index 3588a6d00..000000000 --- a/src/api/resources/hris/resources/employeePayrollRuns/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { EmployeePayrollRunsListRequest } from "./EmployeePayrollRunsListRequest"; -export type { EmployeePayrollRunsRetrieveRequest } from "./EmployeePayrollRunsRetrieveRequest"; diff --git a/src/api/resources/hris/resources/employeePayrollRuns/exports.ts b/src/api/resources/hris/resources/employeePayrollRuns/exports.ts deleted file mode 100644 index eb51a8552..000000000 --- a/src/api/resources/hris/resources/employeePayrollRuns/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { EmployeePayrollRunsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/employeePayrollRuns/index.ts b/src/api/resources/hris/resources/employeePayrollRuns/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/hris/resources/employeePayrollRuns/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/api/resources/hris/resources/employeePayrollRuns/types/index.ts deleted file mode 100644 index 7adf16728..000000000 --- a/src/api/resources/hris/resources/employeePayrollRuns/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./EmployeePayrollRunsListRequestExpand"; -export * from "./EmployeePayrollRunsRetrieveRequestExpand"; diff --git a/src/api/resources/hris/resources/employees/client/Client.ts b/src/api/resources/hris/resources/employees/client/Client.ts deleted file mode 100644 index 6cabbf055..000000000 --- a/src/api/resources/hris/resources/employees/client/Client.ts +++ /dev/null @@ -1,535 +0,0 @@ -// 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 EmployeesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class EmployeesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: EmployeesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Employee` objects. - * - * @param {Merge.hris.EmployeesListRequest} request - * @param {EmployeesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Creates an `Employee` object with the given values. - * - * @param {Merge.hris.EmployeeEndpointRequest} request - * @param {EmployeesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.employees.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public create( - request: Merge.hris.EmployeeEndpointRequest, - requestOptions?: EmployeesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.hris.EmployeeEndpointRequest, - requestOptions?: EmployeesClient.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, - "hris/v1/employees", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.hris.EmployeeEndpointRequest.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.hris.EmployeeResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/employees"); - } - - /** - * Returns an `Employee` object with the given `id`. - * - * @param {string} id - * @param {Merge.hris.EmployeesRetrieveRequest} request - * @param {EmployeesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.employees.retrieve("id", { - * expand: "company", - * includeRemoteData: true, - * includeSensitiveFields: true, - * includeShellData: true, - * remoteFields: "employment_status", - * showEnumOrigins: "employment_status" - * }) - */ - public retrieve( - id: string, - request: Merge.hris.EmployeesRetrieveRequest = {}, - requestOptions?: EmployeesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.hris.EmployeesRetrieveRequest = {}, - requestOptions?: EmployeesClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeSensitiveFields, includeShellData, remoteFields, showEnumOrigins } = - request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.hris.EmployeesRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - include_sensitive_fields: includeSensitiveFields, - include_shell_data: includeShellData, - remote_fields: - remoteFields != null - ? serializers.hris.EmployeesRetrieveRequestRemoteFields.jsonOrThrow(remoteFields, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - show_enum_origins: - showEnumOrigins != null - ? serializers.hris.EmployeesRetrieveRequestShowEnumOrigins.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/employees/${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.hris.Employee.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{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. - * - * @param {string} model_id - * @param {Merge.hris.IgnoreCommonModelRequest} request - * @param {EmployeesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.employees.ignoreCreate("model_id", { - * reason: "GENERAL_CUSTOMER_REQUEST" - * }) - */ - public ignoreCreate( - model_id: string, - request: Merge.hris.IgnoreCommonModelRequest, - requestOptions?: EmployeesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__ignoreCreate(model_id, request, requestOptions)); - } - - private async __ignoreCreate( - model_id: string, - request: Merge.hris.IgnoreCommonModelRequest, - requestOptions?: EmployeesClient.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/employees/ignore/${core.url.encodePathParam(model_id)}`, - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.hris.IgnoreCommonModelRequest.jsonOrThrow(request, { 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: undefined, rawResponse: _response.rawResponse }; - } - - if (_response.error.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/employees/ignore/{model_id}", - ); - } - - /** - * Returns metadata for `Employee` POSTs. - * - * @param {EmployeesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.employees.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: EmployeesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: EmployeesClient.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/employees/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.hris.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", "/hris/v1/employees/meta/post"); - } -} diff --git a/src/api/resources/hris/resources/employees/client/index.ts b/src/api/resources/hris/resources/employees/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/hris/resources/employees/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/employees/client/requests/EmployeeEndpointRequest.ts b/src/api/resources/hris/resources/employees/client/requests/EmployeeEndpointRequest.ts deleted file mode 100644 index ab98634ea..000000000 --- a/src/api/resources/hris/resources/employees/client/requests/EmployeeEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface EmployeeEndpointRequest { - /** 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.hris.EmployeeRequest; -} diff --git a/src/api/resources/hris/resources/employees/client/requests/EmployeesListRequest.ts b/src/api/resources/hris/resources/employees/client/requests/EmployeesListRequest.ts deleted file mode 100644 index 3d2ca2708..000000000 --- a/src/api/resources/hris/resources/employees/client/requests/EmployeesListRequest.ts +++ /dev/null @@ -1,119 +0,0 @@ -// 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", - * 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" - * } - */ -export interface EmployeesListRequest { - /** If provided, will only return employees for this company. */ - companyId?: string; - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** If provided, will only return employees with this display name. */ - displayFullName?: string; - /** If provided, will only return employees with this employee number. */ - employeeNumber?: string; - /** - * If provided, will only return employees with this employment status. - * - * * `ACTIVE` - ACTIVE - * * `PENDING` - PENDING - * * `INACTIVE` - INACTIVE - */ - employmentStatus?: Merge.hris.EmployeesListRequestEmploymentStatus; - /** 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; - /** 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. */ - groups?: string; - /** If provided, will only return employees for this home location. */ - homeLocationId?: 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 sensitive fields (such as social security numbers) in the response. */ - includeSensitiveFields?: 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 employees that have an employment of the specified job title. */ - jobTitle?: string; - /** If provided, will only return employees with this last name. */ - lastName?: string; - /** If provided, will only return employees for this manager. */ - managerId?: string; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - pageSize?: number; - /** If provided, will only return employees for this pay group */ - payGroupId?: string; - /** If provided, will only return Employees with this personal email */ - personalEmail?: string; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: Merge.hris.EmployeesListRequestRemoteFields; - /** The API provider's ID for the given object. */ - remoteId?: string; - /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ - showEnumOrigins?: Merge.hris.EmployeesListRequestShowEnumOrigins; - /** If provided, will only return employees that started after this datetime. */ - startedAfter?: Date; - /** If provided, will only return employees that started before this datetime. */ - startedBefore?: Date; - /** If provided, will only return employees for this team. */ - teamId?: string; - /** If provided, will only return employees that were terminated after this datetime. */ - terminatedAfter?: Date; - /** If provided, will only return employees that were terminated before this datetime. */ - terminatedBefore?: Date; - /** If provided, will only return Employees with this work email */ - workEmail?: string; - /** If provided, will only return employees for this location. */ - workLocationId?: 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 deleted file mode 100644 index e5c82e932..000000000 --- a/src/api/resources/hris/resources/employees/client/requests/EmployeesRetrieveRequest.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * expand: "company", - * includeRemoteData: true, - * includeSensitiveFields: true, - * includeShellData: true, - * remoteFields: "employment_status", - * showEnumOrigins: "employment_status" - * } - */ -export interface EmployeesRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.hris.EmployeesRetrieveRequestExpand; - /** 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. */ - includeSensitiveFields?: 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?: Merge.hris.EmployeesRetrieveRequestRemoteFields; - /** 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.hris.EmployeesRetrieveRequestShowEnumOrigins; -} diff --git a/src/api/resources/hris/resources/employees/client/requests/IgnoreCommonModelRequest.ts b/src/api/resources/hris/resources/employees/client/requests/IgnoreCommonModelRequest.ts deleted file mode 100644 index e39d178bb..000000000 --- a/src/api/resources/hris/resources/employees/client/requests/IgnoreCommonModelRequest.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * reason: "GENERAL_CUSTOMER_REQUEST" - * } - */ -export interface IgnoreCommonModelRequest { - reason: Merge.hris.IgnoreCommonModelRequestReason; - message?: string; -} diff --git a/src/api/resources/hris/resources/employees/client/requests/index.ts b/src/api/resources/hris/resources/employees/client/requests/index.ts deleted file mode 100644 index 0cb7a6252..000000000 --- a/src/api/resources/hris/resources/employees/client/requests/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -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/exports.ts b/src/api/resources/hris/resources/employees/exports.ts deleted file mode 100644 index d2ce07706..000000000 --- a/src/api/resources/hris/resources/employees/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { EmployeesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/employees/index.ts b/src/api/resources/hris/resources/employees/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/hris/resources/employees/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/hris/resources/employees/types/EmployeesListRequestEmploymentStatus.ts b/src/api/resources/hris/resources/employees/types/EmployeesListRequestEmploymentStatus.ts deleted file mode 100644 index 9c81d15ee..000000000 --- a/src/api/resources/hris/resources/employees/types/EmployeesListRequestEmploymentStatus.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const EmployeesListRequestEmploymentStatus = { - Active: "ACTIVE", - Inactive: "INACTIVE", - Pending: "PENDING", -} as const; -export type EmployeesListRequestEmploymentStatus = - (typeof EmployeesListRequestEmploymentStatus)[keyof typeof EmployeesListRequestEmploymentStatus]; 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/EmployeesListRequestRemoteFields.ts b/src/api/resources/hris/resources/employees/types/EmployeesListRequestRemoteFields.ts deleted file mode 100644 index 686ec1dcd..000000000 --- a/src/api/resources/hris/resources/employees/types/EmployeesListRequestRemoteFields.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const EmployeesListRequestRemoteFields = { - EmploymentStatus: "employment_status", - EmploymentStatusEthnicity: "employment_status,ethnicity", - EmploymentStatusEthnicityGender: "employment_status,ethnicity,gender", - EmploymentStatusEthnicityGenderMaritalStatus: "employment_status,ethnicity,gender,marital_status", - EmploymentStatusEthnicityMaritalStatus: "employment_status,ethnicity,marital_status", - EmploymentStatusGender: "employment_status,gender", - EmploymentStatusGenderMaritalStatus: "employment_status,gender,marital_status", - EmploymentStatusMaritalStatus: "employment_status,marital_status", - Ethnicity: "ethnicity", - EthnicityGender: "ethnicity,gender", - EthnicityGenderMaritalStatus: "ethnicity,gender,marital_status", - EthnicityMaritalStatus: "ethnicity,marital_status", - Gender: "gender", - GenderMaritalStatus: "gender,marital_status", - MaritalStatus: "marital_status", -} as const; -export type EmployeesListRequestRemoteFields = - (typeof EmployeesListRequestRemoteFields)[keyof typeof EmployeesListRequestRemoteFields]; diff --git a/src/api/resources/hris/resources/employees/types/EmployeesListRequestShowEnumOrigins.ts b/src/api/resources/hris/resources/employees/types/EmployeesListRequestShowEnumOrigins.ts deleted file mode 100644 index f97a297a9..000000000 --- a/src/api/resources/hris/resources/employees/types/EmployeesListRequestShowEnumOrigins.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const EmployeesListRequestShowEnumOrigins = { - EmploymentStatus: "employment_status", - EmploymentStatusEthnicity: "employment_status,ethnicity", - EmploymentStatusEthnicityGender: "employment_status,ethnicity,gender", - EmploymentStatusEthnicityGenderMaritalStatus: "employment_status,ethnicity,gender,marital_status", - EmploymentStatusEthnicityMaritalStatus: "employment_status,ethnicity,marital_status", - EmploymentStatusGender: "employment_status,gender", - EmploymentStatusGenderMaritalStatus: "employment_status,gender,marital_status", - EmploymentStatusMaritalStatus: "employment_status,marital_status", - Ethnicity: "ethnicity", - EthnicityGender: "ethnicity,gender", - EthnicityGenderMaritalStatus: "ethnicity,gender,marital_status", - EthnicityMaritalStatus: "ethnicity,marital_status", - Gender: "gender", - GenderMaritalStatus: "gender,marital_status", - MaritalStatus: "marital_status", -} as const; -export type EmployeesListRequestShowEnumOrigins = - (typeof EmployeesListRequestShowEnumOrigins)[keyof typeof EmployeesListRequestShowEnumOrigins]; 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/EmployeesRetrieveRequestRemoteFields.ts b/src/api/resources/hris/resources/employees/types/EmployeesRetrieveRequestRemoteFields.ts deleted file mode 100644 index 24907c685..000000000 --- a/src/api/resources/hris/resources/employees/types/EmployeesRetrieveRequestRemoteFields.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const EmployeesRetrieveRequestRemoteFields = { - EmploymentStatus: "employment_status", - EmploymentStatusEthnicity: "employment_status,ethnicity", - EmploymentStatusEthnicityGender: "employment_status,ethnicity,gender", - EmploymentStatusEthnicityGenderMaritalStatus: "employment_status,ethnicity,gender,marital_status", - EmploymentStatusEthnicityMaritalStatus: "employment_status,ethnicity,marital_status", - EmploymentStatusGender: "employment_status,gender", - EmploymentStatusGenderMaritalStatus: "employment_status,gender,marital_status", - EmploymentStatusMaritalStatus: "employment_status,marital_status", - Ethnicity: "ethnicity", - EthnicityGender: "ethnicity,gender", - EthnicityGenderMaritalStatus: "ethnicity,gender,marital_status", - EthnicityMaritalStatus: "ethnicity,marital_status", - Gender: "gender", - GenderMaritalStatus: "gender,marital_status", - MaritalStatus: "marital_status", -} as const; -export type EmployeesRetrieveRequestRemoteFields = - (typeof EmployeesRetrieveRequestRemoteFields)[keyof typeof EmployeesRetrieveRequestRemoteFields]; diff --git a/src/api/resources/hris/resources/employees/types/EmployeesRetrieveRequestShowEnumOrigins.ts b/src/api/resources/hris/resources/employees/types/EmployeesRetrieveRequestShowEnumOrigins.ts deleted file mode 100644 index 9c3e0d3ea..000000000 --- a/src/api/resources/hris/resources/employees/types/EmployeesRetrieveRequestShowEnumOrigins.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const EmployeesRetrieveRequestShowEnumOrigins = { - EmploymentStatus: "employment_status", - EmploymentStatusEthnicity: "employment_status,ethnicity", - EmploymentStatusEthnicityGender: "employment_status,ethnicity,gender", - EmploymentStatusEthnicityGenderMaritalStatus: "employment_status,ethnicity,gender,marital_status", - EmploymentStatusEthnicityMaritalStatus: "employment_status,ethnicity,marital_status", - EmploymentStatusGender: "employment_status,gender", - EmploymentStatusGenderMaritalStatus: "employment_status,gender,marital_status", - EmploymentStatusMaritalStatus: "employment_status,marital_status", - Ethnicity: "ethnicity", - EthnicityGender: "ethnicity,gender", - EthnicityGenderMaritalStatus: "ethnicity,gender,marital_status", - EthnicityMaritalStatus: "ethnicity,marital_status", - Gender: "gender", - GenderMaritalStatus: "gender,marital_status", - MaritalStatus: "marital_status", -} as const; -export type EmployeesRetrieveRequestShowEnumOrigins = - (typeof EmployeesRetrieveRequestShowEnumOrigins)[keyof typeof EmployeesRetrieveRequestShowEnumOrigins]; diff --git a/src/api/resources/hris/resources/employees/types/IgnoreCommonModelRequestReason.ts b/src/api/resources/hris/resources/employees/types/IgnoreCommonModelRequestReason.ts deleted file mode 100644 index 5dd850bd3..000000000 --- a/src/api/resources/hris/resources/employees/types/IgnoreCommonModelRequestReason.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../index"; - -export type IgnoreCommonModelRequestReason = Merge.hris.ReasonEnum | string; diff --git a/src/api/resources/hris/resources/employees/types/index.ts b/src/api/resources/hris/resources/employees/types/index.ts deleted file mode 100644 index 86b6c6805..000000000 --- a/src/api/resources/hris/resources/employees/types/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -export * from "./EmployeesListRequestEmploymentStatus"; -export * from "./EmployeesListRequestExpand"; -export * from "./EmployeesListRequestRemoteFields"; -export * from "./EmployeesListRequestShowEnumOrigins"; -export * from "./EmployeesRetrieveRequestExpand"; -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 deleted file mode 100644 index a25d5c458..000000000 --- a/src/api/resources/hris/resources/employerBenefits/client/Client.ts +++ /dev/null @@ -1,210 +0,0 @@ -// 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 EmployerBenefitsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class EmployerBenefitsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: EmployerBenefitsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `EmployerBenefit` objects. - * - * @param {Merge.hris.EmployerBenefitsListRequest} request - * @param {EmployerBenefitsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns an `EmployerBenefit` object with the given `id`. - * - * @param {string} id - * @param {Merge.hris.EmployerBenefitsRetrieveRequest} request - * @param {EmployerBenefitsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.employerBenefits.retrieve("id", { - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.hris.EmployerBenefitsRetrieveRequest = {}, - requestOptions?: EmployerBenefitsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.hris.EmployerBenefitsRetrieveRequest = {}, - requestOptions?: EmployerBenefitsClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `hris/v1/employer-benefits/${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.hris.EmployerBenefit.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}", - ); - } -} diff --git a/src/api/resources/hris/resources/employerBenefits/client/index.ts b/src/api/resources/hris/resources/employerBenefits/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/hris/resources/employerBenefits/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/employerBenefits/client/requests/EmployerBenefitsListRequest.ts b/src/api/resources/hris/resources/employerBenefits/client/requests/EmployerBenefitsListRequest.ts deleted file mode 100644 index 9997b8ef7..000000000 --- a/src/api/resources/hris/resources/employerBenefits/client/requests/EmployerBenefitsListRequest.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - * pageSize: 1, - * remoteId: "remote_id" - * } - */ -export interface EmployerBenefitsListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; - /** The API provider's ID for the given object. */ - remoteId?: string; -} diff --git a/src/api/resources/hris/resources/employerBenefits/client/requests/EmployerBenefitsRetrieveRequest.ts b/src/api/resources/hris/resources/employerBenefits/client/requests/EmployerBenefitsRetrieveRequest.ts deleted file mode 100644 index 19e146fd2..000000000 --- a/src/api/resources/hris/resources/employerBenefits/client/requests/EmployerBenefitsRetrieveRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * includeRemoteData: true, - * includeShellData: true - * } - */ -export interface EmployerBenefitsRetrieveRequest { - /** 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; -} diff --git a/src/api/resources/hris/resources/employerBenefits/client/requests/index.ts b/src/api/resources/hris/resources/employerBenefits/client/requests/index.ts deleted file mode 100644 index 1b0113dac..000000000 --- a/src/api/resources/hris/resources/employerBenefits/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { EmployerBenefitsListRequest } from "./EmployerBenefitsListRequest"; -export type { EmployerBenefitsRetrieveRequest } from "./EmployerBenefitsRetrieveRequest"; diff --git a/src/api/resources/hris/resources/employerBenefits/exports.ts b/src/api/resources/hris/resources/employerBenefits/exports.ts deleted file mode 100644 index b30a51fb5..000000000 --- a/src/api/resources/hris/resources/employerBenefits/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { EmployerBenefitsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/employerBenefits/index.ts b/src/api/resources/hris/resources/employerBenefits/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/hris/resources/employerBenefits/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/hris/resources/employments/client/Client.ts b/src/api/resources/hris/resources/employments/client/Client.ts deleted file mode 100644 index 18961e7e4..000000000 --- a/src/api/resources/hris/resources/employments/client/Client.ts +++ /dev/null @@ -1,261 +0,0 @@ -// 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 EmploymentsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class EmploymentsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: EmploymentsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Employment` objects. - * - * @param {Merge.hris.EmploymentsListRequest} request - * @param {EmploymentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns an `Employment` object with the given `id`. - * - * @param {string} id - * @param {Merge.hris.EmploymentsRetrieveRequest} request - * @param {EmploymentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.employments.retrieve("id", { - * expand: "employee", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "employment_type", - * showEnumOrigins: "employment_type" - * }) - */ - public retrieve( - id: string, - request: Merge.hris.EmploymentsRetrieveRequest = {}, - requestOptions?: EmploymentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.hris.EmploymentsRetrieveRequest = {}, - requestOptions?: EmploymentsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.hris.EmploymentsRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - remote_fields: - remoteFields != null - ? serializers.hris.EmploymentsRetrieveRequestRemoteFields.jsonOrThrow(remoteFields, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - show_enum_origins: - showEnumOrigins != null - ? serializers.hris.EmploymentsRetrieveRequestShowEnumOrigins.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/${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.hris.Employment.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/hris/resources/employments/client/index.ts b/src/api/resources/hris/resources/employments/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/hris/resources/employments/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/employments/client/requests/EmploymentsListRequest.ts b/src/api/resources/hris/resources/employments/client/requests/EmploymentsListRequest.ts deleted file mode 100644 index e94ef2352..000000000 --- a/src/api/resources/hris/resources/employments/client/requests/EmploymentsListRequest.ts +++ /dev/null @@ -1,56 +0,0 @@ -// 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", - * 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" - * } - */ -export interface EmploymentsListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** If provided, will only return 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; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Overrides the default ordering for this endpoint. Possible values include: effective_date, -effective_date. */ - orderBy?: Merge.hris.EmploymentsListRequestOrderBy; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: Merge.hris.EmploymentsListRequestRemoteFields; - /** The API provider's ID for the given object. */ - remoteId?: string; - /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ - showEnumOrigins?: Merge.hris.EmploymentsListRequestShowEnumOrigins; -} diff --git a/src/api/resources/hris/resources/employments/client/requests/EmploymentsRetrieveRequest.ts b/src/api/resources/hris/resources/employments/client/requests/EmploymentsRetrieveRequest.ts deleted file mode 100644 index 866db5bbe..000000000 --- a/src/api/resources/hris/resources/employments/client/requests/EmploymentsRetrieveRequest.ts +++ /dev/null @@ -1,26 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * expand: "employee", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "employment_type", - * showEnumOrigins: "employment_type" - * } - */ -export interface EmploymentsRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.hris.EmploymentsRetrieveRequestExpand; - /** 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; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: Merge.hris.EmploymentsRetrieveRequestRemoteFields; - /** 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.hris.EmploymentsRetrieveRequestShowEnumOrigins; -} diff --git a/src/api/resources/hris/resources/employments/client/requests/index.ts b/src/api/resources/hris/resources/employments/client/requests/index.ts deleted file mode 100644 index 6920def9c..000000000 --- a/src/api/resources/hris/resources/employments/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { EmploymentsListRequest } from "./EmploymentsListRequest"; -export type { EmploymentsRetrieveRequest } from "./EmploymentsRetrieveRequest"; diff --git a/src/api/resources/hris/resources/employments/exports.ts b/src/api/resources/hris/resources/employments/exports.ts deleted file mode 100644 index bcf222a76..000000000 --- a/src/api/resources/hris/resources/employments/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { EmploymentsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/employments/index.ts b/src/api/resources/hris/resources/employments/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/hris/resources/employments/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/EmploymentsListRequestOrderBy.ts b/src/api/resources/hris/resources/employments/types/EmploymentsListRequestOrderBy.ts deleted file mode 100644 index 4381dd82a..000000000 --- a/src/api/resources/hris/resources/employments/types/EmploymentsListRequestOrderBy.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const EmploymentsListRequestOrderBy = { - EffectiveDateDescending: "-effective_date", - EffectiveDateAscending: "effective_date", -} as const; -export type EmploymentsListRequestOrderBy = - (typeof EmploymentsListRequestOrderBy)[keyof typeof EmploymentsListRequestOrderBy]; diff --git a/src/api/resources/hris/resources/employments/types/EmploymentsListRequestRemoteFields.ts b/src/api/resources/hris/resources/employments/types/EmploymentsListRequestRemoteFields.ts deleted file mode 100644 index 0975aa743..000000000 --- a/src/api/resources/hris/resources/employments/types/EmploymentsListRequestRemoteFields.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const EmploymentsListRequestRemoteFields = { - EmploymentType: "employment_type", - EmploymentTypeFlsaStatus: "employment_type,flsa_status", - EmploymentTypeFlsaStatusPayFrequency: "employment_type,flsa_status,pay_frequency", - EmploymentTypeFlsaStatusPayFrequencyPayPeriod: "employment_type,flsa_status,pay_frequency,pay_period", - EmploymentTypeFlsaStatusPayPeriod: "employment_type,flsa_status,pay_period", - EmploymentTypePayFrequency: "employment_type,pay_frequency", - EmploymentTypePayFrequencyPayPeriod: "employment_type,pay_frequency,pay_period", - EmploymentTypePayPeriod: "employment_type,pay_period", - FlsaStatus: "flsa_status", - FlsaStatusPayFrequency: "flsa_status,pay_frequency", - FlsaStatusPayFrequencyPayPeriod: "flsa_status,pay_frequency,pay_period", - FlsaStatusPayPeriod: "flsa_status,pay_period", - PayFrequency: "pay_frequency", - PayFrequencyPayPeriod: "pay_frequency,pay_period", - PayPeriod: "pay_period", -} as const; -export type EmploymentsListRequestRemoteFields = - (typeof EmploymentsListRequestRemoteFields)[keyof typeof EmploymentsListRequestRemoteFields]; diff --git a/src/api/resources/hris/resources/employments/types/EmploymentsListRequestShowEnumOrigins.ts b/src/api/resources/hris/resources/employments/types/EmploymentsListRequestShowEnumOrigins.ts deleted file mode 100644 index 275b24c1c..000000000 --- a/src/api/resources/hris/resources/employments/types/EmploymentsListRequestShowEnumOrigins.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const EmploymentsListRequestShowEnumOrigins = { - EmploymentType: "employment_type", - EmploymentTypeFlsaStatus: "employment_type,flsa_status", - EmploymentTypeFlsaStatusPayFrequency: "employment_type,flsa_status,pay_frequency", - EmploymentTypeFlsaStatusPayFrequencyPayPeriod: "employment_type,flsa_status,pay_frequency,pay_period", - EmploymentTypeFlsaStatusPayPeriod: "employment_type,flsa_status,pay_period", - EmploymentTypePayFrequency: "employment_type,pay_frequency", - EmploymentTypePayFrequencyPayPeriod: "employment_type,pay_frequency,pay_period", - EmploymentTypePayPeriod: "employment_type,pay_period", - FlsaStatus: "flsa_status", - FlsaStatusPayFrequency: "flsa_status,pay_frequency", - FlsaStatusPayFrequencyPayPeriod: "flsa_status,pay_frequency,pay_period", - FlsaStatusPayPeriod: "flsa_status,pay_period", - PayFrequency: "pay_frequency", - PayFrequencyPayPeriod: "pay_frequency,pay_period", - PayPeriod: "pay_period", -} as const; -export type EmploymentsListRequestShowEnumOrigins = - (typeof EmploymentsListRequestShowEnumOrigins)[keyof typeof EmploymentsListRequestShowEnumOrigins]; 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/EmploymentsRetrieveRequestRemoteFields.ts b/src/api/resources/hris/resources/employments/types/EmploymentsRetrieveRequestRemoteFields.ts deleted file mode 100644 index 0e2808c49..000000000 --- a/src/api/resources/hris/resources/employments/types/EmploymentsRetrieveRequestRemoteFields.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const EmploymentsRetrieveRequestRemoteFields = { - EmploymentType: "employment_type", - EmploymentTypeFlsaStatus: "employment_type,flsa_status", - EmploymentTypeFlsaStatusPayFrequency: "employment_type,flsa_status,pay_frequency", - EmploymentTypeFlsaStatusPayFrequencyPayPeriod: "employment_type,flsa_status,pay_frequency,pay_period", - EmploymentTypeFlsaStatusPayPeriod: "employment_type,flsa_status,pay_period", - EmploymentTypePayFrequency: "employment_type,pay_frequency", - EmploymentTypePayFrequencyPayPeriod: "employment_type,pay_frequency,pay_period", - EmploymentTypePayPeriod: "employment_type,pay_period", - FlsaStatus: "flsa_status", - FlsaStatusPayFrequency: "flsa_status,pay_frequency", - FlsaStatusPayFrequencyPayPeriod: "flsa_status,pay_frequency,pay_period", - FlsaStatusPayPeriod: "flsa_status,pay_period", - PayFrequency: "pay_frequency", - PayFrequencyPayPeriod: "pay_frequency,pay_period", - PayPeriod: "pay_period", -} as const; -export type EmploymentsRetrieveRequestRemoteFields = - (typeof EmploymentsRetrieveRequestRemoteFields)[keyof typeof EmploymentsRetrieveRequestRemoteFields]; diff --git a/src/api/resources/hris/resources/employments/types/EmploymentsRetrieveRequestShowEnumOrigins.ts b/src/api/resources/hris/resources/employments/types/EmploymentsRetrieveRequestShowEnumOrigins.ts deleted file mode 100644 index a42e03504..000000000 --- a/src/api/resources/hris/resources/employments/types/EmploymentsRetrieveRequestShowEnumOrigins.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const EmploymentsRetrieveRequestShowEnumOrigins = { - EmploymentType: "employment_type", - EmploymentTypeFlsaStatus: "employment_type,flsa_status", - EmploymentTypeFlsaStatusPayFrequency: "employment_type,flsa_status,pay_frequency", - EmploymentTypeFlsaStatusPayFrequencyPayPeriod: "employment_type,flsa_status,pay_frequency,pay_period", - EmploymentTypeFlsaStatusPayPeriod: "employment_type,flsa_status,pay_period", - EmploymentTypePayFrequency: "employment_type,pay_frequency", - EmploymentTypePayFrequencyPayPeriod: "employment_type,pay_frequency,pay_period", - EmploymentTypePayPeriod: "employment_type,pay_period", - FlsaStatus: "flsa_status", - FlsaStatusPayFrequency: "flsa_status,pay_frequency", - FlsaStatusPayFrequencyPayPeriod: "flsa_status,pay_frequency,pay_period", - FlsaStatusPayPeriod: "flsa_status,pay_period", - PayFrequency: "pay_frequency", - PayFrequencyPayPeriod: "pay_frequency,pay_period", - PayPeriod: "pay_period", -} as const; -export type EmploymentsRetrieveRequestShowEnumOrigins = - (typeof EmploymentsRetrieveRequestShowEnumOrigins)[keyof typeof EmploymentsRetrieveRequestShowEnumOrigins]; diff --git a/src/api/resources/hris/resources/employments/types/index.ts b/src/api/resources/hris/resources/employments/types/index.ts deleted file mode 100644 index 4d767a4f5..000000000 --- a/src/api/resources/hris/resources/employments/types/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./EmploymentsListRequestExpand"; -export * from "./EmploymentsListRequestOrderBy"; -export * from "./EmploymentsListRequestRemoteFields"; -export * from "./EmploymentsListRequestShowEnumOrigins"; -export * from "./EmploymentsRetrieveRequestExpand"; -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 deleted file mode 100644 index 1b688b541..000000000 --- a/src/api/resources/hris/resources/fieldMapping/client/Client.ts +++ /dev/null @@ -1,473 +0,0 @@ -// 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 FieldMappingClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class FieldMappingClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: FieldMappingClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * 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/). - * - * @param {Merge.hris.FieldMappingsRetrieveRequest} request - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.fieldMapping.fieldMappingsRetrieve({ - * excludeRemoteFieldMetadata: true - * }) - */ - public fieldMappingsRetrieve( - request: Merge.hris.FieldMappingsRetrieveRequest = {}, - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__fieldMappingsRetrieve(request, requestOptions)); - } - - private async __fieldMappingsRetrieve( - request: Merge.hris.FieldMappingsRetrieveRequest = {}, - requestOptions?: FieldMappingClient.RequestOptions, - ): Promise> { - const { excludeRemoteFieldMetadata } = request; - const _queryParams: Record = { - exclude_remote_field_metadata: excludeRemoteFieldMetadata, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/field-mappings", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 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.FieldMappingApiInstanceResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/field-mappings"); - } - - /** - * 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. - * - * @param {Merge.hris.CreateFieldMappingRequest} request - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public fieldMappingsCreate( - request: Merge.hris.CreateFieldMappingRequest, - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__fieldMappingsCreate(request, requestOptions)); - } - - private async __fieldMappingsCreate( - request: Merge.hris.CreateFieldMappingRequest, - requestOptions?: FieldMappingClient.RequestOptions, - ): Promise> { - const { excludeRemoteFieldMetadata, ..._body } = request; - const _queryParams: Record = { - exclude_remote_field_metadata: excludeRemoteFieldMetadata, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/field-mappings", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.hris.CreateFieldMappingRequest.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.hris.FieldMappingInstanceResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/field-mappings"); - } - - /** - * 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. - * - * @param {string} field_mapping_id - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.fieldMapping.fieldMappingsDestroy("field_mapping_id") - */ - public fieldMappingsDestroy( - field_mapping_id: string, - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__fieldMappingsDestroy(field_mapping_id, requestOptions)); - } - - private async __fieldMappingsDestroy( - field_mapping_id: string, - requestOptions?: FieldMappingClient.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/field-mappings/${core.url.encodePathParam(field_mapping_id)}`, - ), - method: "DELETE", - 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.FieldMappingInstanceResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "DELETE", - "/hris/v1/field-mappings/{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. - * - * @param {string} field_mapping_id - * @param {Merge.hris.PatchedEditFieldMappingRequest} request - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id") - */ - public fieldMappingsPartialUpdate( - field_mapping_id: string, - request: Merge.hris.PatchedEditFieldMappingRequest = {}, - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise( - this.__fieldMappingsPartialUpdate(field_mapping_id, request, requestOptions), - ); - } - - private async __fieldMappingsPartialUpdate( - field_mapping_id: string, - request: Merge.hris.PatchedEditFieldMappingRequest = {}, - requestOptions?: FieldMappingClient.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/field-mappings/${core.url.encodePathParam(field_mapping_id)}`, - ), - method: "PATCH", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.hris.PatchedEditFieldMappingRequest.jsonOrThrow(request, { - 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.hris.FieldMappingInstanceResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "PATCH", - "/hris/v1/field-mappings/{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/). - * - * @param {Merge.hris.RemoteFieldsRetrieveRequest} request - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.fieldMapping.remoteFieldsRetrieve({ - * commonModels: "common_models", - * includeExampleValues: "include_example_values" - * }) - */ - public remoteFieldsRetrieve( - request: Merge.hris.RemoteFieldsRetrieveRequest = {}, - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldsRetrieve(request, requestOptions)); - } - - private async __remoteFieldsRetrieve( - request: Merge.hris.RemoteFieldsRetrieveRequest = {}, - requestOptions?: FieldMappingClient.RequestOptions, - ): Promise> { - const { commonModels, includeExampleValues } = request; - const _queryParams: Record = { - common_models: commonModels, - include_example_values: includeExampleValues, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/remote-fields", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 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.RemoteFieldApiResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/remote-fields"); - } - - /** - * 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/). - * - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.fieldMapping.targetFieldsRetrieve() - */ - public targetFieldsRetrieve( - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__targetFieldsRetrieve(requestOptions)); - } - - private async __targetFieldsRetrieve( - requestOptions?: FieldMappingClient.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/target-fields", - ), - 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.hris.ExternalTargetFieldApiResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/target-fields"); - } -} diff --git a/src/api/resources/hris/resources/fieldMapping/client/index.ts b/src/api/resources/hris/resources/fieldMapping/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/hris/resources/fieldMapping/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/api/resources/hris/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts deleted file mode 100644 index 64683cd2f..000000000 --- a/src/api/resources/hris/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ /dev/null @@ -1,32 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * 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" - * } - */ -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; - /** 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. */ - targetFieldDescription: string; - /** 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; - /** 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/hris/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts b/src/api/resources/hris/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts deleted file mode 100644 index 7235c6e26..000000000 --- a/src/api/resources/hris/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * excludeRemoteFieldMetadata: true - * } - */ -export interface FieldMappingsRetrieveRequest { - /** 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; -} diff --git a/src/api/resources/hris/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts b/src/api/resources/hris/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts deleted file mode 100644 index 5ca4a0560..000000000 --- a/src/api/resources/hris/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * {} - */ -export interface PatchedEditFieldMappingRequest { - /** 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/hris/resources/fieldMapping/client/requests/RemoteFieldsRetrieveRequest.ts b/src/api/resources/hris/resources/fieldMapping/client/requests/RemoteFieldsRetrieveRequest.ts deleted file mode 100644 index 99718436d..000000000 --- a/src/api/resources/hris/resources/fieldMapping/client/requests/RemoteFieldsRetrieveRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * commonModels: "common_models", - * includeExampleValues: "include_example_values" - * } - */ -export interface RemoteFieldsRetrieveRequest { - /** A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. */ - commonModels?: string; - /** If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. */ - includeExampleValues?: string; -} diff --git a/src/api/resources/hris/resources/fieldMapping/client/requests/index.ts b/src/api/resources/hris/resources/fieldMapping/client/requests/index.ts deleted file mode 100644 index 1b7bf82f2..000000000 --- a/src/api/resources/hris/resources/fieldMapping/client/requests/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export type { CreateFieldMappingRequest } from "./CreateFieldMappingRequest"; -export type { FieldMappingsRetrieveRequest } from "./FieldMappingsRetrieveRequest"; -export type { PatchedEditFieldMappingRequest } from "./PatchedEditFieldMappingRequest"; -export type { RemoteFieldsRetrieveRequest } from "./RemoteFieldsRetrieveRequest"; diff --git a/src/api/resources/hris/resources/fieldMapping/exports.ts b/src/api/resources/hris/resources/fieldMapping/exports.ts deleted file mode 100644 index 62e814785..000000000 --- a/src/api/resources/hris/resources/fieldMapping/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { FieldMappingClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/fieldMapping/index.ts b/src/api/resources/hris/resources/fieldMapping/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/hris/resources/fieldMapping/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/hris/resources/forceResync/client/Client.ts b/src/api/resources/hris/resources/forceResync/client/Client.ts deleted file mode 100644 index 000e0f376..000000000 --- a/src/api/resources/hris/resources/forceResync/client/Client.ts +++ /dev/null @@ -1,89 +0,0 @@ -// 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 ForceResyncClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class ForceResyncClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: ForceResyncClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * 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. - * - * @param {ForceResyncClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.forceResync.syncStatusResyncCreate() - */ - public syncStatusResyncCreate( - requestOptions?: ForceResyncClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__syncStatusResyncCreate(requestOptions)); - } - - private async __syncStatusResyncCreate( - requestOptions?: ForceResyncClient.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/sync-status/resync", - ), - 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.forceResync.syncStatusResyncCreate.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/sync-status/resync"); - } -} diff --git a/src/api/resources/hris/resources/forceResync/client/index.ts b/src/api/resources/hris/resources/forceResync/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/hris/resources/forceResync/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/hris/resources/forceResync/exports.ts b/src/api/resources/hris/resources/forceResync/exports.ts deleted file mode 100644 index e9e97915f..000000000 --- a/src/api/resources/hris/resources/forceResync/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { ForceResyncClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/forceResync/index.ts b/src/api/resources/hris/resources/forceResync/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/hris/resources/forceResync/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/hris/resources/generateKey/client/Client.ts b/src/api/resources/hris/resources/generateKey/client/Client.ts deleted file mode 100644 index 7e9b9cac0..000000000 --- a/src/api/resources/hris/resources/generateKey/client/Client.ts +++ /dev/null @@ -1,97 +0,0 @@ -// 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 GenerateKeyClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class GenerateKeyClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: GenerateKeyClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Create a remote key. - * - * @param {Merge.hris.GenerateRemoteKeyRequest} request - * @param {GenerateKeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.generateKey.create({ - * name: "Remote Deployment Key 1" - * }) - */ - public create( - request: Merge.hris.GenerateRemoteKeyRequest, - requestOptions?: GenerateKeyClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.hris.GenerateRemoteKeyRequest, - requestOptions?: GenerateKeyClient.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/generate-key", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.hris.GenerateRemoteKeyRequest.jsonOrThrow(request, { 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.hris.RemoteKey.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/generate-key"); - } -} diff --git a/src/api/resources/hris/resources/generateKey/client/index.ts b/src/api/resources/hris/resources/generateKey/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/hris/resources/generateKey/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts b/src/api/resources/hris/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts deleted file mode 100644 index 923e28af4..000000000 --- a/src/api/resources/hris/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * name: "Remote Deployment Key 1" - * } - */ -export interface GenerateRemoteKeyRequest { - /** The name of the remote key */ - name: string; -} diff --git a/src/api/resources/hris/resources/generateKey/client/requests/index.ts b/src/api/resources/hris/resources/generateKey/client/requests/index.ts deleted file mode 100644 index 61b0bc4ac..000000000 --- a/src/api/resources/hris/resources/generateKey/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { GenerateRemoteKeyRequest } from "./GenerateRemoteKeyRequest"; diff --git a/src/api/resources/hris/resources/generateKey/exports.ts b/src/api/resources/hris/resources/generateKey/exports.ts deleted file mode 100644 index e6761067f..000000000 --- a/src/api/resources/hris/resources/generateKey/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { GenerateKeyClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/generateKey/index.ts b/src/api/resources/hris/resources/generateKey/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/hris/resources/generateKey/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/hris/resources/groups/client/Client.ts b/src/api/resources/hris/resources/groups/client/Client.ts deleted file mode 100644 index 7e0e0d717..000000000 --- a/src/api/resources/hris/resources/groups/client/Client.ts +++ /dev/null @@ -1,224 +0,0 @@ -// 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 GroupsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class GroupsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: GroupsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Group` objects. - * - * @param {Merge.hris.GroupsListRequest} request - * @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public list( - request: Merge.hris.GroupsListRequest = {}, - requestOptions?: GroupsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.hris.GroupsListRequest = {}, - requestOptions?: GroupsClient.RequestOptions, - ): 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"); - } - - /** - * 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, - ): 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 = { - include_remote_data: includeRemoteData, - 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, - `hris/v1/groups/${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.hris.Group.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/hris/resources/groups/client/index.ts b/src/api/resources/hris/resources/groups/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/hris/resources/groups/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/groups/client/requests/GroupsListRequest.ts b/src/api/resources/hris/resources/groups/client/requests/GroupsListRequest.ts deleted file mode 100644 index 9c24ad125..000000000 --- a/src/api/resources/hris/resources/groups/client/requests/GroupsListRequest.ts +++ /dev/null @@ -1,54 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * 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" - * } - */ -export interface GroupsListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, specifies whether to return only Group objects which refer to a team in the third party platform. Note that this is an opinionated view based on how a team may be represented in the third party platform. */ - isCommonlyUsedAsTeam?: string; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** If provided, will only return groups with these names. Multiple values can be separated by commas. */ - names?: 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 groups of these types. Multiple values can be separated by commas. */ - types?: string; -} diff --git a/src/api/resources/hris/resources/groups/client/requests/GroupsRetrieveRequest.ts b/src/api/resources/hris/resources/groups/client/requests/GroupsRetrieveRequest.ts deleted file mode 100644 index 15b6f0f3e..000000000 --- a/src/api/resources/hris/resources/groups/client/requests/GroupsRetrieveRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "type", - * showEnumOrigins: "type" - * } - */ -export interface GroupsRetrieveRequest { - /** 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; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: "type"; - /** 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"; -} diff --git a/src/api/resources/hris/resources/groups/client/requests/index.ts b/src/api/resources/hris/resources/groups/client/requests/index.ts deleted file mode 100644 index 6ec9cc32a..000000000 --- a/src/api/resources/hris/resources/groups/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { GroupsListRequest } from "./GroupsListRequest"; -export type { GroupsRetrieveRequest } from "./GroupsRetrieveRequest"; diff --git a/src/api/resources/hris/resources/groups/exports.ts b/src/api/resources/hris/resources/groups/exports.ts deleted file mode 100644 index 182dc3ec5..000000000 --- a/src/api/resources/hris/resources/groups/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { GroupsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/groups/index.ts b/src/api/resources/hris/resources/groups/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/hris/resources/groups/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/hris/resources/index.ts b/src/api/resources/hris/resources/index.ts deleted file mode 100644 index ff854aafa..000000000 --- a/src/api/resources/hris/resources/index.ts +++ /dev/null @@ -1,72 +0,0 @@ -export * as accountDetails from "./accountDetails"; -export * as accountToken from "./accountToken"; -export * as asyncPassthrough from "./asyncPassthrough"; -export * from "./asyncPassthrough/types"; -export * as auditTrail from "./auditTrail"; -export * from "./auditTrail/client/requests"; -export * as availableActions from "./availableActions"; -export * as bankInfo from "./bankInfo"; -export * from "./bankInfo/client/requests"; -export * from "./bankInfo/types"; -export * as benefits from "./benefits"; -export * from "./benefits/client/requests"; -export * as companies from "./companies"; -export * from "./companies/client/requests"; -export * as deleteAccount from "./deleteAccount"; -export * as dependents from "./dependents"; -export * from "./dependents/client/requests"; -export * as employeePayrollRuns from "./employeePayrollRuns"; -export * from "./employeePayrollRuns/client/requests"; -export * from "./employeePayrollRuns/types"; -export * as employees from "./employees"; -export * from "./employees/client/requests"; -export * from "./employees/types"; -export * as employerBenefits from "./employerBenefits"; -export * from "./employerBenefits/client/requests"; -export * as employments from "./employments"; -export * from "./employments/client/requests"; -export * from "./employments/types"; -export * as fieldMapping from "./fieldMapping"; -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/client/requests"; -export * as issues from "./issues"; -export * from "./issues/client/requests"; -export * from "./issues/types"; -export * as linkedAccounts from "./linkedAccounts"; -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 locations from "./locations"; -export * from "./locations/client/requests"; -export * from "./locations/types"; -export * as passthrough from "./passthrough"; -export * as payGroups from "./payGroups"; -export * from "./payGroups/client/requests"; -export * as payrollRuns from "./payrollRuns"; -export * from "./payrollRuns/client/requests"; -export * from "./payrollRuns/types"; -export * as regenerateKey from "./regenerateKey"; -export * from "./regenerateKey/client/requests"; -export * as scopes from "./scopes"; -export * from "./scopes/client/requests"; -export * as syncStatus from "./syncStatus"; -export * from "./syncStatus/client/requests"; -export * as teams from "./teams"; -export * from "./teams/client/requests"; -export * as timeOff from "./timeOff"; -export * from "./timeOff/client/requests"; -export * from "./timeOff/types"; -export * as timeOffBalances from "./timeOffBalances"; -export * from "./timeOffBalances/client/requests"; -export * from "./timeOffBalances/types"; -export * as timesheetEntries from "./timesheetEntries"; -export * from "./timesheetEntries/client/requests"; -export * from "./timesheetEntries/types"; -export * as webhookReceivers from "./webhookReceivers"; -export * from "./webhookReceivers/client/requests"; diff --git a/src/api/resources/hris/resources/issues/client/Client.ts b/src/api/resources/hris/resources/issues/client/Client.ts deleted file mode 100644 index 1d7a8a2f0..000000000 --- a/src/api/resources/hris/resources/issues/client/Client.ts +++ /dev/null @@ -1,209 +0,0 @@ -// 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 IssuesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class IssuesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: IssuesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Gets all issues for Organization. - * - * @param {Merge.hris.IssuesListRequest} request - * @param {IssuesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Get a specific issue. - * - * @param {string} id - * @param {IssuesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.issues.retrieve("id") - */ - public retrieve( - id: string, - requestOptions?: IssuesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, requestOptions)); - } - - private async __retrieve( - id: string, - requestOptions?: IssuesClient.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/issues/${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.hris.Issue.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/hris/resources/issues/client/index.ts b/src/api/resources/hris/resources/issues/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/hris/resources/issues/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/issues/client/requests/IssuesListRequest.ts b/src/api/resources/hris/resources/issues/client/requests/IssuesListRequest.ts deleted file mode 100644 index bbc3675dc..000000000 --- a/src/api/resources/hris/resources/issues/client/requests/IssuesListRequest.ts +++ /dev/null @@ -1,55 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * 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" - * } - */ -export interface IssuesListRequest { - accountToken?: string; - /** The pagination cursor value. */ - cursor?: string; - /** If included, will only include issues whose most recent action occurred before this time */ - endDate?: string; - endUserOrganizationName?: string; - /** If provided, will only return issues whose first incident time was after this datetime. */ - firstIncidentTimeAfter?: Date; - /** If provided, will only return issues whose first incident time was before this datetime. */ - firstIncidentTimeBefore?: Date; - /** If true, will include muted issues */ - includeMuted?: string; - integrationName?: string; - /** If provided, will only return issues whose last incident time was after this datetime. */ - lastIncidentTimeAfter?: Date; - /** If provided, will only return issues whose last incident time was before this datetime. */ - lastIncidentTimeBefore?: Date; - /** If provided, will only include issues pertaining to the linked account passed in. */ - linkedAccountId?: string; - /** 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; - /** - * Status of the issue. Options: ('ONGOING', 'RESOLVED') - * - * * `ONGOING` - ONGOING - * * `RESOLVED` - RESOLVED - */ - status?: Merge.hris.IssuesListRequestStatus; -} diff --git a/src/api/resources/hris/resources/issues/client/requests/index.ts b/src/api/resources/hris/resources/issues/client/requests/index.ts deleted file mode 100644 index 169c5eb5a..000000000 --- a/src/api/resources/hris/resources/issues/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { IssuesListRequest } from "./IssuesListRequest"; diff --git a/src/api/resources/hris/resources/issues/exports.ts b/src/api/resources/hris/resources/issues/exports.ts deleted file mode 100644 index 85da34cb7..000000000 --- a/src/api/resources/hris/resources/issues/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { IssuesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/issues/index.ts b/src/api/resources/hris/resources/issues/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/hris/resources/issues/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/hris/resources/issues/types/IssuesListRequestStatus.ts b/src/api/resources/hris/resources/issues/types/IssuesListRequestStatus.ts deleted file mode 100644 index 6429e7e23..000000000 --- a/src/api/resources/hris/resources/issues/types/IssuesListRequestStatus.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const IssuesListRequestStatus = { - Ongoing: "ONGOING", - Resolved: "RESOLVED", -} as const; -export type IssuesListRequestStatus = (typeof IssuesListRequestStatus)[keyof typeof IssuesListRequestStatus]; diff --git a/src/api/resources/hris/resources/issues/types/index.ts b/src/api/resources/hris/resources/issues/types/index.ts deleted file mode 100644 index 554cdf48c..000000000 --- a/src/api/resources/hris/resources/issues/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./IssuesListRequestStatus"; diff --git a/src/api/resources/hris/resources/linkToken/client/Client.ts b/src/api/resources/hris/resources/linkToken/client/Client.ts deleted file mode 100644 index af8f45e7c..000000000 --- a/src/api/resources/hris/resources/linkToken/client/Client.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 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 LinkTokenClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class LinkTokenClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: LinkTokenClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Creates a link token to be used when linking a new end user. - * - * @param {Merge.hris.EndUserDetailsRequest} request - * @param {LinkTokenClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.linkToken.create({ - * endUserEmailAddress: "example@gmail.com", - * endUserOrganizationName: "Test Organization", - * endUserOriginId: "12345", - * categories: ["hris", "ats"] - * }) - */ - public create( - request: Merge.hris.EndUserDetailsRequest, - requestOptions?: LinkTokenClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.hris.EndUserDetailsRequest, - requestOptions?: LinkTokenClient.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/link-token", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.hris.EndUserDetailsRequest.jsonOrThrow(request, { 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.hris.LinkToken.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/link-token"); - } -} diff --git a/src/api/resources/hris/resources/linkToken/client/index.ts b/src/api/resources/hris/resources/linkToken/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/hris/resources/linkToken/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/api/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.ts deleted file mode 100644 index 7ca286e3e..000000000 --- a/src/api/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ /dev/null @@ -1,52 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * endUserEmailAddress: "example@gmail.com", - * endUserOrganizationName: "Test Organization", - * endUserOriginId: "12345", - * categories: ["hris", "ats"] - * } - */ -export interface EndUserDetailsRequest { - /** Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. */ - endUserEmailAddress: string; - /** Your end user's organization. */ - endUserOrganizationName: string; - /** This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. */ - endUserOriginId: string; - /** The integration categories to show in Merge Link. */ - categories: Merge.hris.CategoriesEnum[]; - /** The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. */ - integration?: string; - /** An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. */ - linkExpiryMins?: number; - /** Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. */ - shouldCreateMagicLinkUrl?: boolean; - /** Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. */ - hideAdminMagicLink?: boolean; - /** An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. */ - commonModels?: Merge.hris.CommonModelScopesBodyRequest[]; - /** When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. */ - categoryCommonModelScopes?: Record; - /** - * The following subset of IETF language tags can be used to configure localization. - * - * * `en` - en - * * `de` - de - */ - language?: Merge.hris.EndUserDetailsRequestLanguage; - /** The boolean that indicates whether initial, periodic, and force syncs will be disabled. */ - 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/client/requests/index.ts b/src/api/resources/hris/resources/linkToken/client/requests/index.ts deleted file mode 100644 index 67eabb553..000000000 --- a/src/api/resources/hris/resources/linkToken/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { EndUserDetailsRequest } from "./EndUserDetailsRequest"; diff --git a/src/api/resources/hris/resources/linkToken/exports.ts b/src/api/resources/hris/resources/linkToken/exports.ts deleted file mode 100644 index 10e007018..000000000 --- a/src/api/resources/hris/resources/linkToken/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { LinkTokenClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/linkToken/index.ts b/src/api/resources/hris/resources/linkToken/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/hris/resources/linkToken/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/EndUserDetailsRequestLanguage.ts b/src/api/resources/hris/resources/linkToken/types/EndUserDetailsRequestLanguage.ts deleted file mode 100644 index f8c2c6268..000000000 --- a/src/api/resources/hris/resources/linkToken/types/EndUserDetailsRequestLanguage.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 following subset of IETF language tags can be used to configure localization. - * - * * `en` - en - * * `de` - de - */ -export type EndUserDetailsRequestLanguage = Merge.hris.LanguageEnum | string; diff --git a/src/api/resources/hris/resources/linkToken/types/index.ts b/src/api/resources/hris/resources/linkToken/types/index.ts deleted file mode 100644 index 7aed25cb1..000000000 --- a/src/api/resources/hris/resources/linkToken/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -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 deleted file mode 100644 index 0aedfaf79..000000000 --- a/src/api/resources/hris/resources/linkedAccounts/client/Client.ts +++ /dev/null @@ -1,141 +0,0 @@ -// 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 LinkedAccountsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class LinkedAccountsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: LinkedAccountsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * List linked accounts for your organization. - * - * @param {Merge.hris.LinkedAccountsListRequest} request - * @param {LinkedAccountsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } -} diff --git a/src/api/resources/hris/resources/linkedAccounts/client/index.ts b/src/api/resources/hris/resources/linkedAccounts/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/hris/resources/linkedAccounts/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts b/src/api/resources/hris/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts deleted file mode 100644 index b63e19335..000000000 --- a/src/api/resources/hris/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts +++ /dev/null @@ -1,59 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * 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" - * } - */ -export interface LinkedAccountsListRequest { - /** - * Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - * - * * `hris` - hris - * * `ats` - ats - * * `accounting` - accounting - * * `ticketing` - ticketing - * * `crm` - crm - * * `mktg` - mktg - * * `filestorage` - filestorage - */ - category?: Merge.hris.LinkedAccountsListRequestCategory; - /** The pagination cursor value. */ - cursor?: string; - /** If provided, will only return linked accounts associated with the given email address. */ - endUserEmailAddress?: string; - /** If provided, will only return linked accounts associated with the given organization name. */ - endUserOrganizationName?: string; - /** If provided, will only return linked accounts associated with the given origin ID. */ - endUserOriginId?: string; - /** Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. */ - endUserOriginIds?: string; - id?: string; - /** Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. */ - ids?: string; - /** If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. */ - includeDuplicates?: boolean; - /** If provided, will only return linked accounts associated with the given integration name. */ - 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. The maximum limit is 100. */ - pageSize?: number; - /** Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` */ - status?: string; -} diff --git a/src/api/resources/hris/resources/linkedAccounts/client/requests/index.ts b/src/api/resources/hris/resources/linkedAccounts/client/requests/index.ts deleted file mode 100644 index ae4db9c3b..000000000 --- a/src/api/resources/hris/resources/linkedAccounts/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { LinkedAccountsListRequest } from "./LinkedAccountsListRequest"; diff --git a/src/api/resources/hris/resources/linkedAccounts/exports.ts b/src/api/resources/hris/resources/linkedAccounts/exports.ts deleted file mode 100644 index 236b70b1a..000000000 --- a/src/api/resources/hris/resources/linkedAccounts/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { LinkedAccountsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/linkedAccounts/index.ts b/src/api/resources/hris/resources/linkedAccounts/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/hris/resources/linkedAccounts/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/hris/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts b/src/api/resources/hris/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts deleted file mode 100644 index 61bd028eb..000000000 --- a/src/api/resources/hris/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const LinkedAccountsListRequestCategory = { - Accounting: "accounting", - Ats: "ats", - Crm: "crm", - Filestorage: "filestorage", - Hris: "hris", - Mktg: "mktg", - Ticketing: "ticketing", -} as const; -export type LinkedAccountsListRequestCategory = - (typeof LinkedAccountsListRequestCategory)[keyof typeof LinkedAccountsListRequestCategory]; diff --git a/src/api/resources/hris/resources/linkedAccounts/types/index.ts b/src/api/resources/hris/resources/linkedAccounts/types/index.ts deleted file mode 100644 index 91de6010a..000000000 --- a/src/api/resources/hris/resources/linkedAccounts/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./LinkedAccountsListRequestCategory"; diff --git a/src/api/resources/hris/resources/locations/client/Client.ts b/src/api/resources/hris/resources/locations/client/Client.ts deleted file mode 100644 index b6065d159..000000000 --- a/src/api/resources/hris/resources/locations/client/Client.ts +++ /dev/null @@ -1,243 +0,0 @@ -// 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 LocationsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class LocationsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: LocationsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Location` objects. - * - * @param {Merge.hris.LocationsListRequest} request - * @param {LocationsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `Location` object with the given `id`. - * - * @param {string} id - * @param {Merge.hris.LocationsRetrieveRequest} request - * @param {LocationsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.locations.retrieve("id", { - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "country", - * showEnumOrigins: "country" - * }) - */ - public retrieve( - id: string, - request: Merge.hris.LocationsRetrieveRequest = {}, - requestOptions?: LocationsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.hris.LocationsRetrieveRequest = {}, - requestOptions?: LocationsClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; - const _queryParams: Record = { - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - remote_fields: - remoteFields != null - ? serializers.hris.LocationsRetrieveRequestRemoteFields.jsonOrThrow(remoteFields, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - show_enum_origins: - showEnumOrigins != null - ? serializers.hris.LocationsRetrieveRequestShowEnumOrigins.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/${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.hris.Location.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/hris/resources/locations/client/index.ts b/src/api/resources/hris/resources/locations/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/hris/resources/locations/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/locations/client/requests/LocationsListRequest.ts b/src/api/resources/hris/resources/locations/client/requests/LocationsListRequest.ts deleted file mode 100644 index 9741f2af9..000000000 --- a/src/api/resources/hris/resources/locations/client/requests/LocationsListRequest.ts +++ /dev/null @@ -1,55 +0,0 @@ -// 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", - * 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" - * } - */ -export interface LocationsListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** - * If provided, will only return locations with this location type - * - * * `HOME` - HOME - * * `WORK` - WORK - */ - locationType?: Merge.hris.LocationsListRequestLocationType; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: Merge.hris.LocationsListRequestRemoteFields; - /** The API provider's ID for the given object. */ - remoteId?: string; - /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ - showEnumOrigins?: Merge.hris.LocationsListRequestShowEnumOrigins; -} diff --git a/src/api/resources/hris/resources/locations/client/requests/LocationsRetrieveRequest.ts b/src/api/resources/hris/resources/locations/client/requests/LocationsRetrieveRequest.ts deleted file mode 100644 index 02edfa0d4..000000000 --- a/src/api/resources/hris/resources/locations/client/requests/LocationsRetrieveRequest.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "country", - * showEnumOrigins: "country" - * } - */ -export interface LocationsRetrieveRequest { - /** 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; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: Merge.hris.LocationsRetrieveRequestRemoteFields; - /** 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.hris.LocationsRetrieveRequestShowEnumOrigins; -} diff --git a/src/api/resources/hris/resources/locations/client/requests/index.ts b/src/api/resources/hris/resources/locations/client/requests/index.ts deleted file mode 100644 index 46024e124..000000000 --- a/src/api/resources/hris/resources/locations/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { LocationsListRequest } from "./LocationsListRequest"; -export type { LocationsRetrieveRequest } from "./LocationsRetrieveRequest"; diff --git a/src/api/resources/hris/resources/locations/exports.ts b/src/api/resources/hris/resources/locations/exports.ts deleted file mode 100644 index 28cd0d20a..000000000 --- a/src/api/resources/hris/resources/locations/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { LocationsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/locations/index.ts b/src/api/resources/hris/resources/locations/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/hris/resources/locations/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/hris/resources/locations/types/LocationsListRequestLocationType.ts b/src/api/resources/hris/resources/locations/types/LocationsListRequestLocationType.ts deleted file mode 100644 index 587f1979f..000000000 --- a/src/api/resources/hris/resources/locations/types/LocationsListRequestLocationType.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const LocationsListRequestLocationType = { - Home: "HOME", - Work: "WORK", -} as const; -export type LocationsListRequestLocationType = - (typeof LocationsListRequestLocationType)[keyof typeof LocationsListRequestLocationType]; diff --git a/src/api/resources/hris/resources/locations/types/LocationsListRequestRemoteFields.ts b/src/api/resources/hris/resources/locations/types/LocationsListRequestRemoteFields.ts deleted file mode 100644 index c587e9c58..000000000 --- a/src/api/resources/hris/resources/locations/types/LocationsListRequestRemoteFields.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const LocationsListRequestRemoteFields = { - Country: "country", - CountryLocationType: "country,location_type", - LocationType: "location_type", -} as const; -export type LocationsListRequestRemoteFields = - (typeof LocationsListRequestRemoteFields)[keyof typeof LocationsListRequestRemoteFields]; diff --git a/src/api/resources/hris/resources/locations/types/LocationsListRequestShowEnumOrigins.ts b/src/api/resources/hris/resources/locations/types/LocationsListRequestShowEnumOrigins.ts deleted file mode 100644 index a34cc7a0a..000000000 --- a/src/api/resources/hris/resources/locations/types/LocationsListRequestShowEnumOrigins.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const LocationsListRequestShowEnumOrigins = { - Country: "country", - CountryLocationType: "country,location_type", - LocationType: "location_type", -} as const; -export type LocationsListRequestShowEnumOrigins = - (typeof LocationsListRequestShowEnumOrigins)[keyof typeof LocationsListRequestShowEnumOrigins]; diff --git a/src/api/resources/hris/resources/locations/types/LocationsRetrieveRequestRemoteFields.ts b/src/api/resources/hris/resources/locations/types/LocationsRetrieveRequestRemoteFields.ts deleted file mode 100644 index 513c8712e..000000000 --- a/src/api/resources/hris/resources/locations/types/LocationsRetrieveRequestRemoteFields.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const LocationsRetrieveRequestRemoteFields = { - Country: "country", - CountryLocationType: "country,location_type", - LocationType: "location_type", -} as const; -export type LocationsRetrieveRequestRemoteFields = - (typeof LocationsRetrieveRequestRemoteFields)[keyof typeof LocationsRetrieveRequestRemoteFields]; diff --git a/src/api/resources/hris/resources/locations/types/LocationsRetrieveRequestShowEnumOrigins.ts b/src/api/resources/hris/resources/locations/types/LocationsRetrieveRequestShowEnumOrigins.ts deleted file mode 100644 index 2f9d38462..000000000 --- a/src/api/resources/hris/resources/locations/types/LocationsRetrieveRequestShowEnumOrigins.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const LocationsRetrieveRequestShowEnumOrigins = { - Country: "country", - CountryLocationType: "country,location_type", - LocationType: "location_type", -} as const; -export type LocationsRetrieveRequestShowEnumOrigins = - (typeof LocationsRetrieveRequestShowEnumOrigins)[keyof typeof LocationsRetrieveRequestShowEnumOrigins]; diff --git a/src/api/resources/hris/resources/locations/types/index.ts b/src/api/resources/hris/resources/locations/types/index.ts deleted file mode 100644 index 45bd9980a..000000000 --- a/src/api/resources/hris/resources/locations/types/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from "./LocationsListRequestLocationType"; -export * from "./LocationsListRequestRemoteFields"; -export * from "./LocationsListRequestShowEnumOrigins"; -export * from "./LocationsRetrieveRequestRemoteFields"; -export * from "./LocationsRetrieveRequestShowEnumOrigins"; diff --git a/src/api/resources/hris/resources/passthrough/client/Client.ts b/src/api/resources/hris/resources/passthrough/client/Client.ts deleted file mode 100644 index b9f61393d..000000000 --- a/src/api/resources/hris/resources/passthrough/client/Client.ts +++ /dev/null @@ -1,98 +0,0 @@ -// 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 PassthroughClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class PassthroughClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: PassthroughClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Pull data from an endpoint not currently supported by Merge. - * - * @param {Merge.hris.DataPassthroughRequest} request - * @param {PassthroughClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.passthrough.create({ - * method: "GET", - * path: "/scooters" - * }) - */ - public create( - request: Merge.hris.DataPassthroughRequest, - requestOptions?: PassthroughClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.hris.DataPassthroughRequest, - requestOptions?: PassthroughClient.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/passthrough", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.hris.DataPassthroughRequest.jsonOrThrow(request, { 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.hris.RemoteResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/passthrough"); - } -} diff --git a/src/api/resources/hris/resources/passthrough/client/index.ts b/src/api/resources/hris/resources/passthrough/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/hris/resources/passthrough/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/hris/resources/passthrough/exports.ts b/src/api/resources/hris/resources/passthrough/exports.ts deleted file mode 100644 index 645fbb4b8..000000000 --- a/src/api/resources/hris/resources/passthrough/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { PassthroughClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/passthrough/index.ts b/src/api/resources/hris/resources/passthrough/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/hris/resources/passthrough/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/hris/resources/payGroups/client/Client.ts b/src/api/resources/hris/resources/payGroups/client/Client.ts deleted file mode 100644 index d6ad54fc0..000000000 --- a/src/api/resources/hris/resources/payGroups/client/Client.ts +++ /dev/null @@ -1,205 +0,0 @@ -// 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 PayGroupsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class PayGroupsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: PayGroupsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `PayGroup` objects. - * - * @param {Merge.hris.PayGroupsListRequest} request - * @param {PayGroupsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `PayGroup` object with the given `id`. - * - * @param {string} id - * @param {Merge.hris.PayGroupsRetrieveRequest} request - * @param {PayGroupsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.payGroups.retrieve("id", { - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.hris.PayGroupsRetrieveRequest = {}, - requestOptions?: PayGroupsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.hris.PayGroupsRetrieveRequest = {}, - requestOptions?: PayGroupsClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `hris/v1/pay-groups/${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.hris.PayGroup.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/hris/resources/payGroups/client/index.ts b/src/api/resources/hris/resources/payGroups/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/hris/resources/payGroups/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/payGroups/client/requests/PayGroupsListRequest.ts b/src/api/resources/hris/resources/payGroups/client/requests/PayGroupsListRequest.ts deleted file mode 100644 index 3c517484e..000000000 --- a/src/api/resources/hris/resources/payGroups/client/requests/PayGroupsListRequest.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - * pageSize: 1, - * remoteId: "remote_id" - * } - */ -export interface PayGroupsListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; - /** The API provider's ID for the given object. */ - remoteId?: string; -} diff --git a/src/api/resources/hris/resources/payGroups/client/requests/PayGroupsRetrieveRequest.ts b/src/api/resources/hris/resources/payGroups/client/requests/PayGroupsRetrieveRequest.ts deleted file mode 100644 index 6dd42403b..000000000 --- a/src/api/resources/hris/resources/payGroups/client/requests/PayGroupsRetrieveRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * includeRemoteData: true, - * includeShellData: true - * } - */ -export interface PayGroupsRetrieveRequest { - /** 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; -} diff --git a/src/api/resources/hris/resources/payGroups/client/requests/index.ts b/src/api/resources/hris/resources/payGroups/client/requests/index.ts deleted file mode 100644 index 144f4f748..000000000 --- a/src/api/resources/hris/resources/payGroups/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { PayGroupsListRequest } from "./PayGroupsListRequest"; -export type { PayGroupsRetrieveRequest } from "./PayGroupsRetrieveRequest"; diff --git a/src/api/resources/hris/resources/payGroups/exports.ts b/src/api/resources/hris/resources/payGroups/exports.ts deleted file mode 100644 index 4631ad256..000000000 --- a/src/api/resources/hris/resources/payGroups/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { PayGroupsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/payGroups/index.ts b/src/api/resources/hris/resources/payGroups/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/hris/resources/payGroups/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/hris/resources/payrollRuns/client/Client.ts b/src/api/resources/hris/resources/payrollRuns/client/Client.ts deleted file mode 100644 index acbcf36c3..000000000 --- a/src/api/resources/hris/resources/payrollRuns/client/Client.ts +++ /dev/null @@ -1,255 +0,0 @@ -// 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 PayrollRunsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class PayrollRunsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: PayrollRunsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `PayrollRun` objects. - * - * @param {Merge.hris.PayrollRunsListRequest} request - * @param {PayrollRunsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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") - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `PayrollRun` object with the given `id`. - * - * @param {string} id - * @param {Merge.hris.PayrollRunsRetrieveRequest} request - * @param {PayrollRunsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.payrollRuns.retrieve("id", { - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "run_state", - * showEnumOrigins: "run_state" - * }) - */ - public retrieve( - id: string, - request: Merge.hris.PayrollRunsRetrieveRequest = {}, - requestOptions?: PayrollRunsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.hris.PayrollRunsRetrieveRequest = {}, - requestOptions?: PayrollRunsClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; - const _queryParams: Record = { - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - remote_fields: - remoteFields != null - ? serializers.hris.PayrollRunsRetrieveRequestRemoteFields.jsonOrThrow(remoteFields, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - show_enum_origins: - showEnumOrigins != null - ? serializers.hris.PayrollRunsRetrieveRequestShowEnumOrigins.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/payroll-runs/${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.hris.PayrollRun.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/hris/resources/payrollRuns/client/index.ts b/src/api/resources/hris/resources/payrollRuns/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/hris/resources/payrollRuns/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/payrollRuns/client/requests/PayrollRunsListRequest.ts b/src/api/resources/hris/resources/payrollRuns/client/requests/PayrollRunsListRequest.ts deleted file mode 100644 index 39fcd47bc..000000000 --- a/src/api/resources/hris/resources/payrollRuns/client/requests/PayrollRunsListRequest.ts +++ /dev/null @@ -1,70 +0,0 @@ -// 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", - * 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") - * } - */ -export interface PayrollRunsListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** If provided, will only return payroll runs ended after this datetime. */ - endedAfter?: Date; - /** If provided, will only return payroll runs ended before this datetime. */ - endedBefore?: 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/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: Merge.hris.PayrollRunsListRequestRemoteFields; - /** The API provider's ID for the given object. */ - remoteId?: string; - /** - * If provided, will only return PayrollRun's with this status. Options: ('REGULAR', 'OFF_CYCLE', 'CORRECTION', 'TERMINATION', 'SIGN_ON_BONUS') - * - * * `REGULAR` - REGULAR - * * `OFF_CYCLE` - OFF_CYCLE - * * `CORRECTION` - CORRECTION - * * `TERMINATION` - TERMINATION - * * `SIGN_ON_BONUS` - SIGN_ON_BONUS - */ - runType?: Merge.hris.PayrollRunsListRequestRunType; - /** 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.hris.PayrollRunsListRequestShowEnumOrigins; - /** If provided, will only return payroll runs started after this datetime. */ - startedAfter?: Date; - /** If provided, will only return payroll runs started before this datetime. */ - startedBefore?: Date; -} diff --git a/src/api/resources/hris/resources/payrollRuns/client/requests/PayrollRunsRetrieveRequest.ts b/src/api/resources/hris/resources/payrollRuns/client/requests/PayrollRunsRetrieveRequest.ts deleted file mode 100644 index 6d4766573..000000000 --- a/src/api/resources/hris/resources/payrollRuns/client/requests/PayrollRunsRetrieveRequest.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "run_state", - * showEnumOrigins: "run_state" - * } - */ -export interface PayrollRunsRetrieveRequest { - /** 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; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: Merge.hris.PayrollRunsRetrieveRequestRemoteFields; - /** 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.hris.PayrollRunsRetrieveRequestShowEnumOrigins; -} diff --git a/src/api/resources/hris/resources/payrollRuns/client/requests/index.ts b/src/api/resources/hris/resources/payrollRuns/client/requests/index.ts deleted file mode 100644 index 1341bbd76..000000000 --- a/src/api/resources/hris/resources/payrollRuns/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { PayrollRunsListRequest } from "./PayrollRunsListRequest"; -export type { PayrollRunsRetrieveRequest } from "./PayrollRunsRetrieveRequest"; diff --git a/src/api/resources/hris/resources/payrollRuns/exports.ts b/src/api/resources/hris/resources/payrollRuns/exports.ts deleted file mode 100644 index 77ec1f5db..000000000 --- a/src/api/resources/hris/resources/payrollRuns/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { PayrollRunsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/payrollRuns/index.ts b/src/api/resources/hris/resources/payrollRuns/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/hris/resources/payrollRuns/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/hris/resources/payrollRuns/types/PayrollRunsListRequestRemoteFields.ts b/src/api/resources/hris/resources/payrollRuns/types/PayrollRunsListRequestRemoteFields.ts deleted file mode 100644 index ea7fe5916..000000000 --- a/src/api/resources/hris/resources/payrollRuns/types/PayrollRunsListRequestRemoteFields.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const PayrollRunsListRequestRemoteFields = { - RunState: "run_state", - RunStateRunType: "run_state,run_type", - RunType: "run_type", -} as const; -export type PayrollRunsListRequestRemoteFields = - (typeof PayrollRunsListRequestRemoteFields)[keyof typeof PayrollRunsListRequestRemoteFields]; diff --git a/src/api/resources/hris/resources/payrollRuns/types/PayrollRunsListRequestRunType.ts b/src/api/resources/hris/resources/payrollRuns/types/PayrollRunsListRequestRunType.ts deleted file mode 100644 index 48974ec70..000000000 --- a/src/api/resources/hris/resources/payrollRuns/types/PayrollRunsListRequestRunType.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const PayrollRunsListRequestRunType = { - Correction: "CORRECTION", - OffCycle: "OFF_CYCLE", - Regular: "REGULAR", - SignOnBonus: "SIGN_ON_BONUS", - Termination: "TERMINATION", -} as const; -export type PayrollRunsListRequestRunType = - (typeof PayrollRunsListRequestRunType)[keyof typeof PayrollRunsListRequestRunType]; diff --git a/src/api/resources/hris/resources/payrollRuns/types/PayrollRunsListRequestShowEnumOrigins.ts b/src/api/resources/hris/resources/payrollRuns/types/PayrollRunsListRequestShowEnumOrigins.ts deleted file mode 100644 index d7664d717..000000000 --- a/src/api/resources/hris/resources/payrollRuns/types/PayrollRunsListRequestShowEnumOrigins.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const PayrollRunsListRequestShowEnumOrigins = { - RunState: "run_state", - RunStateRunType: "run_state,run_type", - RunType: "run_type", -} as const; -export type PayrollRunsListRequestShowEnumOrigins = - (typeof PayrollRunsListRequestShowEnumOrigins)[keyof typeof PayrollRunsListRequestShowEnumOrigins]; diff --git a/src/api/resources/hris/resources/payrollRuns/types/PayrollRunsRetrieveRequestRemoteFields.ts b/src/api/resources/hris/resources/payrollRuns/types/PayrollRunsRetrieveRequestRemoteFields.ts deleted file mode 100644 index 003ee1ae3..000000000 --- a/src/api/resources/hris/resources/payrollRuns/types/PayrollRunsRetrieveRequestRemoteFields.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const PayrollRunsRetrieveRequestRemoteFields = { - RunState: "run_state", - RunStateRunType: "run_state,run_type", - RunType: "run_type", -} as const; -export type PayrollRunsRetrieveRequestRemoteFields = - (typeof PayrollRunsRetrieveRequestRemoteFields)[keyof typeof PayrollRunsRetrieveRequestRemoteFields]; diff --git a/src/api/resources/hris/resources/payrollRuns/types/PayrollRunsRetrieveRequestShowEnumOrigins.ts b/src/api/resources/hris/resources/payrollRuns/types/PayrollRunsRetrieveRequestShowEnumOrigins.ts deleted file mode 100644 index d5e3abfae..000000000 --- a/src/api/resources/hris/resources/payrollRuns/types/PayrollRunsRetrieveRequestShowEnumOrigins.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const PayrollRunsRetrieveRequestShowEnumOrigins = { - RunState: "run_state", - RunStateRunType: "run_state,run_type", - RunType: "run_type", -} as const; -export type PayrollRunsRetrieveRequestShowEnumOrigins = - (typeof PayrollRunsRetrieveRequestShowEnumOrigins)[keyof typeof PayrollRunsRetrieveRequestShowEnumOrigins]; diff --git a/src/api/resources/hris/resources/payrollRuns/types/index.ts b/src/api/resources/hris/resources/payrollRuns/types/index.ts deleted file mode 100644 index 35a5900d8..000000000 --- a/src/api/resources/hris/resources/payrollRuns/types/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from "./PayrollRunsListRequestRemoteFields"; -export * from "./PayrollRunsListRequestRunType"; -export * from "./PayrollRunsListRequestShowEnumOrigins"; -export * from "./PayrollRunsRetrieveRequestRemoteFields"; -export * from "./PayrollRunsRetrieveRequestShowEnumOrigins"; diff --git a/src/api/resources/hris/resources/regenerateKey/client/Client.ts b/src/api/resources/hris/resources/regenerateKey/client/Client.ts deleted file mode 100644 index 1e2f95150..000000000 --- a/src/api/resources/hris/resources/regenerateKey/client/Client.ts +++ /dev/null @@ -1,99 +0,0 @@ -// 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 RegenerateKeyClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class RegenerateKeyClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: RegenerateKeyClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Exchange remote keys. - * - * @param {Merge.hris.RemoteKeyForRegenerationRequest} request - * @param {RegenerateKeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.regenerateKey.create({ - * name: "Remote Deployment Key 1" - * }) - */ - public create( - request: Merge.hris.RemoteKeyForRegenerationRequest, - requestOptions?: RegenerateKeyClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.hris.RemoteKeyForRegenerationRequest, - requestOptions?: RegenerateKeyClient.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/regenerate-key", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.hris.RemoteKeyForRegenerationRequest.jsonOrThrow(request, { - 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.hris.RemoteKey.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/regenerate-key"); - } -} diff --git a/src/api/resources/hris/resources/regenerateKey/client/index.ts b/src/api/resources/hris/resources/regenerateKey/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/hris/resources/regenerateKey/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts b/src/api/resources/hris/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts deleted file mode 100644 index 19dc4fa80..000000000 --- a/src/api/resources/hris/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * name: "Remote Deployment Key 1" - * } - */ -export interface RemoteKeyForRegenerationRequest { - /** The name of the remote key */ - name: string; -} diff --git a/src/api/resources/hris/resources/regenerateKey/client/requests/index.ts b/src/api/resources/hris/resources/regenerateKey/client/requests/index.ts deleted file mode 100644 index 339a5503f..000000000 --- a/src/api/resources/hris/resources/regenerateKey/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { RemoteKeyForRegenerationRequest } from "./RemoteKeyForRegenerationRequest"; diff --git a/src/api/resources/hris/resources/regenerateKey/exports.ts b/src/api/resources/hris/resources/regenerateKey/exports.ts deleted file mode 100644 index f9276142f..000000000 --- a/src/api/resources/hris/resources/regenerateKey/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { RegenerateKeyClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/regenerateKey/index.ts b/src/api/resources/hris/resources/regenerateKey/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/hris/resources/regenerateKey/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/hris/resources/scopes/client/Client.ts b/src/api/resources/hris/resources/scopes/client/Client.ts deleted file mode 100644 index b1c23a7d0..000000000 --- a/src/api/resources/hris/resources/scopes/client/Client.ts +++ /dev/null @@ -1,258 +0,0 @@ -// 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 ScopesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class ScopesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: ScopesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * 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). - * - * @param {ScopesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.scopes.defaultScopesRetrieve() - */ - public defaultScopesRetrieve( - requestOptions?: ScopesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__defaultScopesRetrieve(requestOptions)); - } - - private async __defaultScopesRetrieve( - requestOptions?: ScopesClient.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/default-scopes", - ), - 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.hris.CommonModelScopeApi.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/default-scopes"); - } - - /** - * 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). - * - * @param {ScopesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.scopes.linkedAccountScopesRetrieve() - */ - public linkedAccountScopesRetrieve( - requestOptions?: ScopesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__linkedAccountScopesRetrieve(requestOptions)); - } - - private async __linkedAccountScopesRetrieve( - requestOptions?: ScopesClient.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/linked-account-scopes", - ), - 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.hris.CommonModelScopeApi.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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-account-scopes", - ); - } - - /** - * 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) - * - * @param {Merge.hris.LinkedAccountCommonModelScopeDeserializerRequest} request - * @param {ScopesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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 - * } - * } - * }] - * }) - */ - public linkedAccountScopesCreate( - request: Merge.hris.LinkedAccountCommonModelScopeDeserializerRequest, - requestOptions?: ScopesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__linkedAccountScopesCreate(request, requestOptions)); - } - - private async __linkedAccountScopesCreate( - request: Merge.hris.LinkedAccountCommonModelScopeDeserializerRequest, - requestOptions?: ScopesClient.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/linked-account-scopes", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.hris.LinkedAccountCommonModelScopeDeserializerRequest.jsonOrThrow(request, { - 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.hris.CommonModelScopeApi.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/linked-account-scopes", - ); - } -} diff --git a/src/api/resources/hris/resources/scopes/client/index.ts b/src/api/resources/hris/resources/scopes/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/hris/resources/scopes/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts b/src/api/resources/hris/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts deleted file mode 100644 index 80942c8ef..000000000 --- a/src/api/resources/hris/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts +++ /dev/null @@ -1,35 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * commonModels: [{ - * modelName: "Employee", - * modelPermissions: { - * "READ": { - * isEnabled: true - * }, - * "WRITE": { - * isEnabled: false - * } - * }, - * fieldPermissions: { - * enabledFields: ["avatar", "home_location"], - * disabledFields: ["work_location"] - * } - * }, { - * modelName: "Benefit", - * modelPermissions: { - * "WRITE": { - * isEnabled: false - * } - * } - * }] - * } - */ -export interface LinkedAccountCommonModelScopeDeserializerRequest { - /** The common models you want to update the scopes for */ - commonModels: Merge.hris.IndividualCommonModelScopeDeserializerRequest[]; -} diff --git a/src/api/resources/hris/resources/scopes/client/requests/index.ts b/src/api/resources/hris/resources/scopes/client/requests/index.ts deleted file mode 100644 index b77c0e5da..000000000 --- a/src/api/resources/hris/resources/scopes/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { LinkedAccountCommonModelScopeDeserializerRequest } from "./LinkedAccountCommonModelScopeDeserializerRequest"; diff --git a/src/api/resources/hris/resources/scopes/exports.ts b/src/api/resources/hris/resources/scopes/exports.ts deleted file mode 100644 index c641749fe..000000000 --- a/src/api/resources/hris/resources/scopes/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { ScopesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/scopes/index.ts b/src/api/resources/hris/resources/scopes/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/hris/resources/scopes/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/hris/resources/syncStatus/client/Client.ts b/src/api/resources/hris/resources/syncStatus/client/Client.ts deleted file mode 100644 index 9b19d8ce4..000000000 --- a/src/api/resources/hris/resources/syncStatus/client/Client.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 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 SyncStatusClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class SyncStatusClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: SyncStatusClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * 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). - * - * @param {Merge.hris.SyncStatusListRequest} request - * @param {SyncStatusClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.syncStatus.list({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * pageSize: 1 - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } -} diff --git a/src/api/resources/hris/resources/syncStatus/client/index.ts b/src/api/resources/hris/resources/syncStatus/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/hris/resources/syncStatus/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/syncStatus/client/requests/SyncStatusListRequest.ts b/src/api/resources/hris/resources/syncStatus/client/requests/SyncStatusListRequest.ts deleted file mode 100644 index 94e1240fc..000000000 --- a/src/api/resources/hris/resources/syncStatus/client/requests/SyncStatusListRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * pageSize: 1 - * } - */ -export interface SyncStatusListRequest { - /** The pagination cursor value. */ - cursor?: string; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; -} diff --git a/src/api/resources/hris/resources/syncStatus/client/requests/index.ts b/src/api/resources/hris/resources/syncStatus/client/requests/index.ts deleted file mode 100644 index 9c815333a..000000000 --- a/src/api/resources/hris/resources/syncStatus/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { SyncStatusListRequest } from "./SyncStatusListRequest"; diff --git a/src/api/resources/hris/resources/syncStatus/exports.ts b/src/api/resources/hris/resources/syncStatus/exports.ts deleted file mode 100644 index 9593edcc7..000000000 --- a/src/api/resources/hris/resources/syncStatus/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { SyncStatusClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/syncStatus/index.ts b/src/api/resources/hris/resources/syncStatus/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/hris/resources/syncStatus/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/hris/resources/teams/client/Client.ts b/src/api/resources/hris/resources/teams/client/Client.ts deleted file mode 100644 index e6f160c0b..000000000 --- a/src/api/resources/hris/resources/teams/client/Client.ts +++ /dev/null @@ -1,213 +0,0 @@ -// 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 TeamsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class TeamsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: TeamsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Team` objects. - * - * @param {Merge.hris.TeamsListRequest} request - * @param {TeamsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `Team` object with the given `id`. - * - * @param {string} id - * @param {Merge.hris.TeamsRetrieveRequest} request - * @param {TeamsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.teams.retrieve("id", { - * expand: "parent_team", - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.hris.TeamsRetrieveRequest = {}, - requestOptions?: TeamsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.hris.TeamsRetrieveRequest = {}, - requestOptions?: TeamsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - expand: expand != null ? expand : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/${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.hris.Team.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/hris/resources/teams/client/index.ts b/src/api/resources/hris/resources/teams/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/hris/resources/teams/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/teams/client/requests/TeamsListRequest.ts b/src/api/resources/hris/resources/teams/client/requests/TeamsListRequest.ts deleted file mode 100644 index 5bcaf83a9..000000000 --- a/src/api/resources/hris/resources/teams/client/requests/TeamsListRequest.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * 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" - * } - */ -export interface TeamsListRequest { - /** 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?: "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. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; - /** If provided, will only return teams with this parent team. */ - parentTeamId?: string; - /** The API provider's ID for the given object. */ - remoteId?: string; -} diff --git a/src/api/resources/hris/resources/teams/client/requests/TeamsRetrieveRequest.ts b/src/api/resources/hris/resources/teams/client/requests/TeamsRetrieveRequest.ts deleted file mode 100644 index 0ce33d724..000000000 --- a/src/api/resources/hris/resources/teams/client/requests/TeamsRetrieveRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @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"; - /** 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; -} diff --git a/src/api/resources/hris/resources/teams/client/requests/index.ts b/src/api/resources/hris/resources/teams/client/requests/index.ts deleted file mode 100644 index 38ece4621..000000000 --- a/src/api/resources/hris/resources/teams/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { TeamsListRequest } from "./TeamsListRequest"; -export type { TeamsRetrieveRequest } from "./TeamsRetrieveRequest"; diff --git a/src/api/resources/hris/resources/teams/exports.ts b/src/api/resources/hris/resources/teams/exports.ts deleted file mode 100644 index ca58e20d5..000000000 --- a/src/api/resources/hris/resources/teams/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { TeamsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/teams/index.ts b/src/api/resources/hris/resources/teams/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/hris/resources/teams/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/hris/resources/timeOff/client/Client.ts b/src/api/resources/hris/resources/timeOff/client/Client.ts deleted file mode 100644 index c8244b1e8..000000000 --- a/src/api/resources/hris/resources/timeOff/client/Client.ts +++ /dev/null @@ -1,423 +0,0 @@ -// 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 TimeOffClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class TimeOffClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: TimeOffClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `TimeOff` objects. - * - * @param {Merge.hris.TimeOffListRequest} request - * @param {TimeOffClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Creates a `TimeOff` object with the given values. - * - * @param {Merge.hris.TimeOffEndpointRequest} request - * @param {TimeOffClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.timeOff.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public create( - request: Merge.hris.TimeOffEndpointRequest, - requestOptions?: TimeOffClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.hris.TimeOffEndpointRequest, - requestOptions?: TimeOffClient.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, - "hris/v1/time-off", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.hris.TimeOffEndpointRequest.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.hris.TimeOffResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/time-off"); - } - - /** - * Returns a `TimeOff` object with the given `id`. - * - * @param {string} id - * @param {Merge.hris.TimeOffRetrieveRequest} request - * @param {TimeOffClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.timeOff.retrieve("id", { - * expand: "approver", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "request_type", - * showEnumOrigins: "request_type" - * }) - */ - public retrieve( - id: string, - request: Merge.hris.TimeOffRetrieveRequest = {}, - requestOptions?: TimeOffClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.hris.TimeOffRetrieveRequest = {}, - requestOptions?: TimeOffClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.hris.TimeOffRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - remote_fields: - remoteFields != null - ? serializers.hris.TimeOffRetrieveRequestRemoteFields.jsonOrThrow(remoteFields, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - show_enum_origins: - showEnumOrigins != null - ? serializers.hris.TimeOffRetrieveRequestShowEnumOrigins.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/time-off/${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.hris.TimeOff.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } - - /** - * Returns metadata for `TimeOff` POSTs. - * - * @param {TimeOffClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.timeOff.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: TimeOffClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: TimeOffClient.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/time-off/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.hris.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", "/hris/v1/time-off/meta/post"); - } -} diff --git a/src/api/resources/hris/resources/timeOff/client/index.ts b/src/api/resources/hris/resources/timeOff/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/hris/resources/timeOff/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/timeOff/client/requests/TimeOffEndpointRequest.ts b/src/api/resources/hris/resources/timeOff/client/requests/TimeOffEndpointRequest.ts deleted file mode 100644 index c31c3f386..000000000 --- a/src/api/resources/hris/resources/timeOff/client/requests/TimeOffEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface TimeOffEndpointRequest { - /** 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.hris.TimeOffRequest; -} diff --git a/src/api/resources/hris/resources/timeOff/client/requests/TimeOffListRequest.ts b/src/api/resources/hris/resources/timeOff/client/requests/TimeOffListRequest.ts deleted file mode 100644 index bd8bbe246..000000000 --- a/src/api/resources/hris/resources/timeOff/client/requests/TimeOffListRequest.ts +++ /dev/null @@ -1,91 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * 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" - * } - */ -export interface TimeOffListRequest { - /** If provided, will only return time off for this approver. */ - approverId?: string; - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** If provided, will only return time off for this employee. */ - employeeId?: string; - /** If provided, will only return employees that ended after this datetime. */ - endedAfter?: Date; - /** 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; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: Merge.hris.TimeOffListRequestRemoteFields; - /** The API provider's ID for the given object. */ - remoteId?: string; - /** - * If provided, will only return TimeOff with this request type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT') - * - * * `VACATION` - VACATION - * * `SICK` - SICK - * * `PERSONAL` - PERSONAL - * * `JURY_DUTY` - JURY_DUTY - * * `VOLUNTEER` - VOLUNTEER - * * `BEREAVEMENT` - BEREAVEMENT - */ - requestType?: Merge.hris.TimeOffListRequestRequestType; - /** 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.hris.TimeOffListRequestShowEnumOrigins; - /** If provided, will only return time-offs that started after this datetime. */ - startedAfter?: Date; - /** If provided, will only return time-offs that started before this datetime. */ - startedBefore?: Date; - /** - * If provided, will only return TimeOff with this status. Options: ('REQUESTED', 'APPROVED', 'DECLINED', 'CANCELLED', 'DELETED') - * - * * `REQUESTED` - REQUESTED - * * `APPROVED` - APPROVED - * * `DECLINED` - DECLINED - * * `CANCELLED` - CANCELLED - * * `DELETED` - DELETED - */ - status?: Merge.hris.TimeOffListRequestStatus; -} diff --git a/src/api/resources/hris/resources/timeOff/client/requests/TimeOffRetrieveRequest.ts b/src/api/resources/hris/resources/timeOff/client/requests/TimeOffRetrieveRequest.ts deleted file mode 100644 index 57fccef06..000000000 --- a/src/api/resources/hris/resources/timeOff/client/requests/TimeOffRetrieveRequest.ts +++ /dev/null @@ -1,26 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * expand: "approver", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "request_type", - * showEnumOrigins: "request_type" - * } - */ -export interface TimeOffRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.hris.TimeOffRetrieveRequestExpand; - /** 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; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: Merge.hris.TimeOffRetrieveRequestRemoteFields; - /** 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.hris.TimeOffRetrieveRequestShowEnumOrigins; -} diff --git a/src/api/resources/hris/resources/timeOff/client/requests/index.ts b/src/api/resources/hris/resources/timeOff/client/requests/index.ts deleted file mode 100644 index 3d05e0a9b..000000000 --- a/src/api/resources/hris/resources/timeOff/client/requests/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type { TimeOffEndpointRequest } from "./TimeOffEndpointRequest"; -export type { TimeOffListRequest } from "./TimeOffListRequest"; -export type { TimeOffRetrieveRequest } from "./TimeOffRetrieveRequest"; diff --git a/src/api/resources/hris/resources/timeOff/exports.ts b/src/api/resources/hris/resources/timeOff/exports.ts deleted file mode 100644 index 156be6e57..000000000 --- a/src/api/resources/hris/resources/timeOff/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { TimeOffClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/timeOff/index.ts b/src/api/resources/hris/resources/timeOff/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/hris/resources/timeOff/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/TimeOffListRequestRemoteFields.ts b/src/api/resources/hris/resources/timeOff/types/TimeOffListRequestRemoteFields.ts deleted file mode 100644 index f32df7ff2..000000000 --- a/src/api/resources/hris/resources/timeOff/types/TimeOffListRequestRemoteFields.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const TimeOffListRequestRemoteFields = { - RequestType: "request_type", - RequestTypeStatus: "request_type,status", - RequestTypeStatusUnits: "request_type,status,units", - RequestTypeUnits: "request_type,units", - Status: "status", - StatusUnits: "status,units", - Units: "units", -} as const; -export type TimeOffListRequestRemoteFields = - (typeof TimeOffListRequestRemoteFields)[keyof typeof TimeOffListRequestRemoteFields]; diff --git a/src/api/resources/hris/resources/timeOff/types/TimeOffListRequestRequestType.ts b/src/api/resources/hris/resources/timeOff/types/TimeOffListRequestRequestType.ts deleted file mode 100644 index 48cbf04bb..000000000 --- a/src/api/resources/hris/resources/timeOff/types/TimeOffListRequestRequestType.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const TimeOffListRequestRequestType = { - Bereavement: "BEREAVEMENT", - JuryDuty: "JURY_DUTY", - Personal: "PERSONAL", - Sick: "SICK", - Vacation: "VACATION", - Volunteer: "VOLUNTEER", -} as const; -export type TimeOffListRequestRequestType = - (typeof TimeOffListRequestRequestType)[keyof typeof TimeOffListRequestRequestType]; diff --git a/src/api/resources/hris/resources/timeOff/types/TimeOffListRequestShowEnumOrigins.ts b/src/api/resources/hris/resources/timeOff/types/TimeOffListRequestShowEnumOrigins.ts deleted file mode 100644 index f1e5399d6..000000000 --- a/src/api/resources/hris/resources/timeOff/types/TimeOffListRequestShowEnumOrigins.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const TimeOffListRequestShowEnumOrigins = { - RequestType: "request_type", - RequestTypeStatus: "request_type,status", - RequestTypeStatusUnits: "request_type,status,units", - RequestTypeUnits: "request_type,units", - Status: "status", - StatusUnits: "status,units", - Units: "units", -} as const; -export type TimeOffListRequestShowEnumOrigins = - (typeof TimeOffListRequestShowEnumOrigins)[keyof typeof TimeOffListRequestShowEnumOrigins]; diff --git a/src/api/resources/hris/resources/timeOff/types/TimeOffListRequestStatus.ts b/src/api/resources/hris/resources/timeOff/types/TimeOffListRequestStatus.ts deleted file mode 100644 index 18ab82b59..000000000 --- a/src/api/resources/hris/resources/timeOff/types/TimeOffListRequestStatus.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const TimeOffListRequestStatus = { - Approved: "APPROVED", - Cancelled: "CANCELLED", - Declined: "DECLINED", - Deleted: "DELETED", - Requested: "REQUESTED", -} as const; -export type TimeOffListRequestStatus = (typeof TimeOffListRequestStatus)[keyof typeof TimeOffListRequestStatus]; 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/TimeOffRetrieveRequestRemoteFields.ts b/src/api/resources/hris/resources/timeOff/types/TimeOffRetrieveRequestRemoteFields.ts deleted file mode 100644 index 9fadc1328..000000000 --- a/src/api/resources/hris/resources/timeOff/types/TimeOffRetrieveRequestRemoteFields.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const TimeOffRetrieveRequestRemoteFields = { - RequestType: "request_type", - RequestTypeStatus: "request_type,status", - RequestTypeStatusUnits: "request_type,status,units", - RequestTypeUnits: "request_type,units", - Status: "status", - StatusUnits: "status,units", - Units: "units", -} as const; -export type TimeOffRetrieveRequestRemoteFields = - (typeof TimeOffRetrieveRequestRemoteFields)[keyof typeof TimeOffRetrieveRequestRemoteFields]; diff --git a/src/api/resources/hris/resources/timeOff/types/TimeOffRetrieveRequestShowEnumOrigins.ts b/src/api/resources/hris/resources/timeOff/types/TimeOffRetrieveRequestShowEnumOrigins.ts deleted file mode 100644 index d79a93407..000000000 --- a/src/api/resources/hris/resources/timeOff/types/TimeOffRetrieveRequestShowEnumOrigins.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const TimeOffRetrieveRequestShowEnumOrigins = { - RequestType: "request_type", - RequestTypeStatus: "request_type,status", - RequestTypeStatusUnits: "request_type,status,units", - RequestTypeUnits: "request_type,units", - Status: "status", - StatusUnits: "status,units", - Units: "units", -} as const; -export type TimeOffRetrieveRequestShowEnumOrigins = - (typeof TimeOffRetrieveRequestShowEnumOrigins)[keyof typeof TimeOffRetrieveRequestShowEnumOrigins]; diff --git a/src/api/resources/hris/resources/timeOff/types/index.ts b/src/api/resources/hris/resources/timeOff/types/index.ts deleted file mode 100644 index da891165f..000000000 --- a/src/api/resources/hris/resources/timeOff/types/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -export * from "./TimeOffListRequestExpand"; -export * from "./TimeOffListRequestRemoteFields"; -export * from "./TimeOffListRequestRequestType"; -export * from "./TimeOffListRequestShowEnumOrigins"; -export * from "./TimeOffListRequestStatus"; -export * from "./TimeOffRetrieveRequestExpand"; -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 deleted file mode 100644 index 6f1b60938..000000000 --- a/src/api/resources/hris/resources/timeOffBalances/client/Client.ts +++ /dev/null @@ -1,236 +0,0 @@ -// 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 TimeOffBalancesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class TimeOffBalancesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: TimeOffBalancesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `TimeOffBalance` objects. - * - * @param {Merge.hris.TimeOffBalancesListRequest} request - * @param {TimeOffBalancesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `TimeOffBalance` object with the given `id`. - * - * @param {string} id - * @param {Merge.hris.TimeOffBalancesRetrieveRequest} request - * @param {TimeOffBalancesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.timeOffBalances.retrieve("id", { - * expand: "employee", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "policy_type", - * showEnumOrigins: "policy_type" - * }) - */ - public retrieve( - id: string, - request: Merge.hris.TimeOffBalancesRetrieveRequest = {}, - requestOptions?: TimeOffBalancesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.hris.TimeOffBalancesRetrieveRequest = {}, - requestOptions?: TimeOffBalancesClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; - const _queryParams: Record = { - expand: expand != null ? expand : undefined, - include_remote_data: includeRemoteData, - 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, - `hris/v1/time-off-balances/${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.hris.TimeOffBalance.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}", - ); - } -} diff --git a/src/api/resources/hris/resources/timeOffBalances/client/index.ts b/src/api/resources/hris/resources/timeOffBalances/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/hris/resources/timeOffBalances/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/timeOffBalances/client/requests/TimeOffBalancesListRequest.ts b/src/api/resources/hris/resources/timeOffBalances/client/requests/TimeOffBalancesListRequest.ts deleted file mode 100644 index 7cddca79b..000000000 --- a/src/api/resources/hris/resources/timeOffBalances/client/requests/TimeOffBalancesListRequest.ts +++ /dev/null @@ -1,65 +0,0 @@ -// 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", - * 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" - * } - */ -export interface TimeOffBalancesListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** If provided, will only return 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"; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; - /** - * If provided, will only return TimeOffBalance with this policy type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT') - * - * * `VACATION` - VACATION - * * `SICK` - SICK - * * `PERSONAL` - PERSONAL - * * `JURY_DUTY` - JURY_DUTY - * * `VOLUNTEER` - VOLUNTEER - * * `BEREAVEMENT` - BEREAVEMENT - */ - policyType?: Merge.hris.TimeOffBalancesListRequestPolicyType; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: "policy_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?: "policy_type"; -} diff --git a/src/api/resources/hris/resources/timeOffBalances/client/requests/TimeOffBalancesRetrieveRequest.ts b/src/api/resources/hris/resources/timeOffBalances/client/requests/TimeOffBalancesRetrieveRequest.ts deleted file mode 100644 index c2a71146f..000000000 --- a/src/api/resources/hris/resources/timeOffBalances/client/requests/TimeOffBalancesRetrieveRequest.ts +++ /dev/null @@ -1,24 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * expand: "employee", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "policy_type", - * showEnumOrigins: "policy_type" - * } - */ -export interface TimeOffBalancesRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "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). */ - includeShellData?: boolean; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: "policy_type"; - /** 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?: "policy_type"; -} diff --git a/src/api/resources/hris/resources/timeOffBalances/client/requests/index.ts b/src/api/resources/hris/resources/timeOffBalances/client/requests/index.ts deleted file mode 100644 index 31f23037e..000000000 --- a/src/api/resources/hris/resources/timeOffBalances/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { TimeOffBalancesListRequest } from "./TimeOffBalancesListRequest"; -export type { TimeOffBalancesRetrieveRequest } from "./TimeOffBalancesRetrieveRequest"; diff --git a/src/api/resources/hris/resources/timeOffBalances/exports.ts b/src/api/resources/hris/resources/timeOffBalances/exports.ts deleted file mode 100644 index 5ac0ecce6..000000000 --- a/src/api/resources/hris/resources/timeOffBalances/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { TimeOffBalancesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/timeOffBalances/index.ts b/src/api/resources/hris/resources/timeOffBalances/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/hris/resources/timeOffBalances/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/hris/resources/timeOffBalances/types/TimeOffBalancesListRequestPolicyType.ts b/src/api/resources/hris/resources/timeOffBalances/types/TimeOffBalancesListRequestPolicyType.ts deleted file mode 100644 index 6ce503c63..000000000 --- a/src/api/resources/hris/resources/timeOffBalances/types/TimeOffBalancesListRequestPolicyType.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const TimeOffBalancesListRequestPolicyType = { - Bereavement: "BEREAVEMENT", - JuryDuty: "JURY_DUTY", - Personal: "PERSONAL", - Sick: "SICK", - Vacation: "VACATION", - Volunteer: "VOLUNTEER", -} as const; -export type TimeOffBalancesListRequestPolicyType = - (typeof TimeOffBalancesListRequestPolicyType)[keyof typeof TimeOffBalancesListRequestPolicyType]; diff --git a/src/api/resources/hris/resources/timeOffBalances/types/index.ts b/src/api/resources/hris/resources/timeOffBalances/types/index.ts deleted file mode 100644 index 14ee2ec5e..000000000 --- a/src/api/resources/hris/resources/timeOffBalances/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./TimeOffBalancesListRequestPolicyType"; diff --git a/src/api/resources/hris/resources/timesheetEntries/client/Client.ts b/src/api/resources/hris/resources/timesheetEntries/client/Client.ts deleted file mode 100644 index f70b5334c..000000000 --- a/src/api/resources/hris/resources/timesheetEntries/client/Client.ts +++ /dev/null @@ -1,388 +0,0 @@ -// 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 TimesheetEntriesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class TimesheetEntriesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: TimesheetEntriesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `TimesheetEntry` objects. - * - * @param {Merge.hris.TimesheetEntriesListRequest} request - * @param {TimesheetEntriesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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") - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Creates a `TimesheetEntry` object with the given values. - * - * @param {Merge.hris.TimesheetEntryEndpointRequest} request - * @param {TimesheetEntriesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.timesheetEntries.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public create( - request: Merge.hris.TimesheetEntryEndpointRequest, - requestOptions?: TimesheetEntriesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.hris.TimesheetEntryEndpointRequest, - requestOptions?: TimesheetEntriesClient.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, - "hris/v1/timesheet-entries", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.hris.TimesheetEntryEndpointRequest.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.hris.TimesheetEntryResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/timesheet-entries"); - } - - /** - * Returns a `TimesheetEntry` object with the given `id`. - * - * @param {string} id - * @param {Merge.hris.TimesheetEntriesRetrieveRequest} request - * @param {TimesheetEntriesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.timesheetEntries.retrieve("id", { - * expand: "employee", - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.hris.TimesheetEntriesRetrieveRequest = {}, - requestOptions?: TimesheetEntriesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.hris.TimesheetEntriesRetrieveRequest = {}, - requestOptions?: TimesheetEntriesClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - expand: expand != null ? expand : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/${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.hris.TimesheetEntry.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}", - ); - } - - /** - * Returns metadata for `TimesheetEntry` POSTs. - * - * @param {TimesheetEntriesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.timesheetEntries.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: TimesheetEntriesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: TimesheetEntriesClient.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/timesheet-entries/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.hris.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", - "/hris/v1/timesheet-entries/meta/post", - ); - } -} diff --git a/src/api/resources/hris/resources/timesheetEntries/client/index.ts b/src/api/resources/hris/resources/timesheetEntries/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/hris/resources/timesheetEntries/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/timesheetEntries/client/requests/TimesheetEntriesListRequest.ts b/src/api/resources/hris/resources/timesheetEntries/client/requests/TimesheetEntriesListRequest.ts deleted file mode 100644 index 56efd5fd7..000000000 --- a/src/api/resources/hris/resources/timesheetEntries/client/requests/TimesheetEntriesListRequest.ts +++ /dev/null @@ -1,62 +0,0 @@ -// 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", - * 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") - * } - */ -export interface TimesheetEntriesListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** If provided, will only return timesheet entries for this employee. */ - employeeId?: string; - /** If provided, will only return timesheet entries ended after this datetime. */ - endedAfter?: Date; - /** 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"; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Overrides the default ordering for this endpoint. Possible values include: start_time, -start_time. */ - orderBy?: Merge.hris.TimesheetEntriesListRequestOrderBy; - /** 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 timesheet entries started after this datetime. */ - startedAfter?: Date; - /** If provided, will only return timesheet entries started before this datetime. */ - startedBefore?: Date; -} diff --git a/src/api/resources/hris/resources/timesheetEntries/client/requests/TimesheetEntriesRetrieveRequest.ts b/src/api/resources/hris/resources/timesheetEntries/client/requests/TimesheetEntriesRetrieveRequest.ts deleted file mode 100644 index af7403b4c..000000000 --- a/src/api/resources/hris/resources/timesheetEntries/client/requests/TimesheetEntriesRetrieveRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @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"; - /** 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; -} diff --git a/src/api/resources/hris/resources/timesheetEntries/client/requests/TimesheetEntryEndpointRequest.ts b/src/api/resources/hris/resources/timesheetEntries/client/requests/TimesheetEntryEndpointRequest.ts deleted file mode 100644 index 2df01d9d7..000000000 --- a/src/api/resources/hris/resources/timesheetEntries/client/requests/TimesheetEntryEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface TimesheetEntryEndpointRequest { - /** 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.hris.TimesheetEntryRequest; -} diff --git a/src/api/resources/hris/resources/timesheetEntries/client/requests/index.ts b/src/api/resources/hris/resources/timesheetEntries/client/requests/index.ts deleted file mode 100644 index 4d79a8fb0..000000000 --- a/src/api/resources/hris/resources/timesheetEntries/client/requests/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type { TimesheetEntriesListRequest } from "./TimesheetEntriesListRequest"; -export type { TimesheetEntriesRetrieveRequest } from "./TimesheetEntriesRetrieveRequest"; -export type { TimesheetEntryEndpointRequest } from "./TimesheetEntryEndpointRequest"; diff --git a/src/api/resources/hris/resources/timesheetEntries/exports.ts b/src/api/resources/hris/resources/timesheetEntries/exports.ts deleted file mode 100644 index fe68156cd..000000000 --- a/src/api/resources/hris/resources/timesheetEntries/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { TimesheetEntriesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/timesheetEntries/index.ts b/src/api/resources/hris/resources/timesheetEntries/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/hris/resources/timesheetEntries/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/hris/resources/timesheetEntries/types/TimesheetEntriesListRequestOrderBy.ts b/src/api/resources/hris/resources/timesheetEntries/types/TimesheetEntriesListRequestOrderBy.ts deleted file mode 100644 index c92237972..000000000 --- a/src/api/resources/hris/resources/timesheetEntries/types/TimesheetEntriesListRequestOrderBy.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const TimesheetEntriesListRequestOrderBy = { - StartTimeDescending: "-start_time", - StartTimeAscending: "start_time", -} as const; -export type TimesheetEntriesListRequestOrderBy = - (typeof TimesheetEntriesListRequestOrderBy)[keyof typeof TimesheetEntriesListRequestOrderBy]; diff --git a/src/api/resources/hris/resources/timesheetEntries/types/index.ts b/src/api/resources/hris/resources/timesheetEntries/types/index.ts deleted file mode 100644 index f09ad04a1..000000000 --- a/src/api/resources/hris/resources/timesheetEntries/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./TimesheetEntriesListRequestOrderBy"; diff --git a/src/api/resources/hris/resources/webhookReceivers/client/Client.ts b/src/api/resources/hris/resources/webhookReceivers/client/Client.ts deleted file mode 100644 index 11e037094..000000000 --- a/src/api/resources/hris/resources/webhookReceivers/client/Client.ts +++ /dev/null @@ -1,162 +0,0 @@ -// 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 WebhookReceiversClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class WebhookReceiversClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: WebhookReceiversClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `WebhookReceiver` objects. - * - * @param {WebhookReceiversClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.webhookReceivers.list() - */ - public list( - requestOptions?: WebhookReceiversClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(requestOptions)); - } - - private async __list( - requestOptions?: WebhookReceiversClient.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/webhook-receivers", - ), - 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.hris.webhookReceivers.list.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/webhook-receivers"); - } - - /** - * Creates a `WebhookReceiver` object with the given values. - * - * @param {Merge.hris.WebhookReceiverRequest} request - * @param {WebhookReceiversClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.hris.webhookReceivers.create({ - * event: "event", - * isActive: true - * }) - */ - public create( - request: Merge.hris.WebhookReceiverRequest, - requestOptions?: WebhookReceiversClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.hris.WebhookReceiverRequest, - requestOptions?: WebhookReceiversClient.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/webhook-receivers", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.hris.WebhookReceiverRequest.jsonOrThrow(request, { 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.hris.WebhookReceiver.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/webhook-receivers"); - } -} diff --git a/src/api/resources/hris/resources/webhookReceivers/client/index.ts b/src/api/resources/hris/resources/webhookReceivers/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/hris/resources/webhookReceivers/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts b/src/api/resources/hris/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts deleted file mode 100644 index bcc11dbe7..000000000 --- a/src/api/resources/hris/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * event: "event", - * isActive: true - * } - */ -export interface WebhookReceiverRequest { - event: string; - isActive: boolean; - key?: string; -} diff --git a/src/api/resources/hris/resources/webhookReceivers/client/requests/index.ts b/src/api/resources/hris/resources/webhookReceivers/client/requests/index.ts deleted file mode 100644 index 0e668b74d..000000000 --- a/src/api/resources/hris/resources/webhookReceivers/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { WebhookReceiverRequest } from "./WebhookReceiverRequest"; diff --git a/src/api/resources/hris/resources/webhookReceivers/exports.ts b/src/api/resources/hris/resources/webhookReceivers/exports.ts deleted file mode 100644 index d0527565a..000000000 --- a/src/api/resources/hris/resources/webhookReceivers/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { WebhookReceiversClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/hris/resources/webhookReceivers/index.ts b/src/api/resources/hris/resources/webhookReceivers/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/hris/resources/webhookReceivers/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/hris/types/AccountDetails.ts b/src/api/resources/hris/types/AccountDetails.ts deleted file mode 100644 index 82264955a..000000000 --- a/src/api/resources/hris/types/AccountDetails.ts +++ /dev/null @@ -1,20 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AccountDetails { - id?: string; - integration?: string; - integrationSlug?: string; - category?: Merge.hris.AccountDetailsCategory; - endUserOriginId?: string; - endUserOrganizationName?: string; - endUserEmailAddress?: string; - status?: string; - webhookListenerUrl?: string; - /** Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets. */ - isDuplicate?: boolean; - accountType?: string; - /** The time at which account completes the linking flow. */ - completedAt?: Date; -} diff --git a/src/api/resources/hris/types/AccountDetailsAndActions.ts b/src/api/resources/hris/types/AccountDetailsAndActions.ts deleted file mode 100644 index f0687a73d..000000000 --- a/src/api/resources/hris/types/AccountDetailsAndActions.ts +++ /dev/null @@ -1,30 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The LinkedAccount Object - * ### Description - * The `LinkedAccount` object is used to represent an end user's link with a specific integration. - * - * ### Usage Example - * View a list of your organization's `LinkedAccount` objects. - */ -export interface AccountDetailsAndActions { - id: string; - category?: Merge.hris.AccountDetailsAndActionsCategory; - status: Merge.hris.AccountDetailsAndActionsStatus; - statusDetail?: string; - endUserOriginId?: string; - endUserOrganizationName: string; - endUserEmailAddress: string; - /** The tenant or domain the customer has provided access to. */ - subdomain?: string; - webhookListenerUrl: string; - /** Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets. */ - isDuplicate?: boolean; - integration?: Merge.hris.AccountDetailsAndActionsIntegration; - accountType: string; - completedAt: Date; - integrationSpecificFields?: Record; -} diff --git a/src/api/resources/hris/types/AccountDetailsAndActionsCategory.ts b/src/api/resources/hris/types/AccountDetailsAndActionsCategory.ts deleted file mode 100644 index 08292a97f..000000000 --- a/src/api/resources/hris/types/AccountDetailsAndActionsCategory.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 AccountDetailsAndActionsCategory = Merge.hris.CategoryEnum | string; diff --git a/src/api/resources/hris/types/AccountDetailsAndActionsIntegration.ts b/src/api/resources/hris/types/AccountDetailsAndActionsIntegration.ts deleted file mode 100644 index 4d31929af..000000000 --- a/src/api/resources/hris/types/AccountDetailsAndActionsIntegration.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AccountDetailsAndActionsIntegration { - name: string; - categories: Merge.hris.CategoriesEnum[]; - image?: string; - squareImage?: string; - color: string; - slug: string; - passthroughAvailable: boolean; - availableModelOperations?: Merge.hris.ModelOperation[]; -} diff --git a/src/api/resources/hris/types/AccountDetailsAndActionsStatus.ts b/src/api/resources/hris/types/AccountDetailsAndActionsStatus.ts deleted file mode 100644 index 43498e3f5..000000000 --- a/src/api/resources/hris/types/AccountDetailsAndActionsStatus.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 AccountDetailsAndActionsStatus = Merge.hris.AccountDetailsAndActionsStatusEnum | string; diff --git a/src/api/resources/hris/types/AccountDetailsAndActionsStatusEnum.ts b/src/api/resources/hris/types/AccountDetailsAndActionsStatusEnum.ts deleted file mode 100644 index ab1273765..000000000 --- a/src/api/resources/hris/types/AccountDetailsAndActionsStatusEnum.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `COMPLETE` - COMPLETE - * * `INCOMPLETE` - INCOMPLETE - * * `RELINK_NEEDED` - RELINK_NEEDED - * * `IDLE` - IDLE - */ -export const AccountDetailsAndActionsStatusEnum = { - Complete: "COMPLETE", - Incomplete: "INCOMPLETE", - RelinkNeeded: "RELINK_NEEDED", - Idle: "IDLE", -} as const; -export type AccountDetailsAndActionsStatusEnum = - (typeof AccountDetailsAndActionsStatusEnum)[keyof typeof AccountDetailsAndActionsStatusEnum]; diff --git a/src/api/resources/hris/types/AccountDetailsCategory.ts b/src/api/resources/hris/types/AccountDetailsCategory.ts deleted file mode 100644 index b363bcf3a..000000000 --- a/src/api/resources/hris/types/AccountDetailsCategory.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export type AccountDetailsCategory = Merge.hris.CategoryEnum | string; diff --git a/src/api/resources/hris/types/AccountIntegration.ts b/src/api/resources/hris/types/AccountIntegration.ts deleted file mode 100644 index 7b0cbbd99..000000000 --- a/src/api/resources/hris/types/AccountIntegration.ts +++ /dev/null @@ -1,25 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AccountIntegration { - /** Company name. */ - name: string; - /** Optional. This shortened name appears in places with limited space, usually in conjunction with the platform's logo (e.g., Merge Link menu).

Example: Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors) */ - abbreviatedName?: string; - /** Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris]. */ - categories?: Merge.hris.CategoriesEnum[]; - /** Company logo in rectangular shape. */ - image?: string; - /** Company logo in square shape. */ - squareImage?: string; - /** The color of this integration used for buttons and text throughout the app and landing pages. Choose a darker, saturated color. */ - color?: string; - slug?: string; - /** Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []} */ - apiEndpointsToDocumentationUrls?: Record; - /** Setup guide URL for third party webhook creation. Exposed in Merge Docs. */ - webhookSetupGuideUrl?: string; - /** Category or categories this integration is in beta status for. */ - categoryBetaStatus?: Record; -} diff --git a/src/api/resources/hris/types/AccountToken.ts b/src/api/resources/hris/types/AccountToken.ts deleted file mode 100644 index 60ec38e9a..000000000 --- a/src/api/resources/hris/types/AccountToken.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AccountToken { - accountToken: string; - integration: Merge.hris.AccountIntegration; - id: string; -} diff --git a/src/api/resources/hris/types/AccountTypeEnum.ts b/src/api/resources/hris/types/AccountTypeEnum.ts deleted file mode 100644 index 4b5ec590b..000000000 --- a/src/api/resources/hris/types/AccountTypeEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `SAVINGS` - SAVINGS - * * `CHECKING` - CHECKING - */ -export const AccountTypeEnum = { - Savings: "SAVINGS", - Checking: "CHECKING", -} as const; -export type AccountTypeEnum = (typeof AccountTypeEnum)[keyof typeof AccountTypeEnum]; diff --git a/src/api/resources/hris/types/AdvancedMetadata.ts b/src/api/resources/hris/types/AdvancedMetadata.ts deleted file mode 100644 index e5877563c..000000000 --- a/src/api/resources/hris/types/AdvancedMetadata.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface AdvancedMetadata { - id: string; - displayName?: string; - description?: string; - isRequired?: boolean; - isCustom?: boolean; - fieldChoices?: unknown[]; -} diff --git a/src/api/resources/hris/types/AsyncPassthroughReciept.ts b/src/api/resources/hris/types/AsyncPassthroughReciept.ts deleted file mode 100644 index d8bace047..000000000 --- a/src/api/resources/hris/types/AsyncPassthroughReciept.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface AsyncPassthroughReciept { - asyncPassthroughReceiptId: string; -} diff --git a/src/api/resources/hris/types/AuditLogEvent.ts b/src/api/resources/hris/types/AuditLogEvent.ts deleted file mode 100644 index abdb3af08..000000000 --- a/src/api/resources/hris/types/AuditLogEvent.ts +++ /dev/null @@ -1,73 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AuditLogEvent { - id?: string; - /** The User's full name at the time of this Event occurring. */ - userName?: string; - /** The User's email at the time of this Event occurring. */ - userEmail?: string; - /** - * Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. - * - * * `ADMIN` - ADMIN - * * `DEVELOPER` - DEVELOPER - * * `MEMBER` - MEMBER - * * `API` - API - * * `SYSTEM` - SYSTEM - * * `MERGE_TEAM` - MERGE_TEAM - */ - role: Merge.hris.AuditLogEventRole; - ipAddress: string; - /** - * Designates the type of event that occurred. - * - * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * * `INVITED_USER` - INVITED_USER - * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * * `CREATED_DESTINATION` - CREATED_DESTINATION - * * `DELETED_DESTINATION` - DELETED_DESTINATION - * * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * * `CHANGED_SCOPES` - CHANGED_SCOPES - * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * * `RESET_PASSWORD` - RESET_PASSWORD - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * * `MUTED_ISSUE` - MUTED_ISSUE - * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - */ - eventType: Merge.hris.AuditLogEventEventType; - eventDescription: string; - createdAt?: Date; -} diff --git a/src/api/resources/hris/types/AuditLogEventEventType.ts b/src/api/resources/hris/types/AuditLogEventEventType.ts deleted file mode 100644 index 6aa47861d..000000000 --- a/src/api/resources/hris/types/AuditLogEventEventType.ts +++ /dev/null @@ -1,52 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * Designates the type of event that occurred. - * - * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * * `INVITED_USER` - INVITED_USER - * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * * `CREATED_DESTINATION` - CREATED_DESTINATION - * * `DELETED_DESTINATION` - DELETED_DESTINATION - * * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * * `CHANGED_SCOPES` - CHANGED_SCOPES - * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * * `RESET_PASSWORD` - RESET_PASSWORD - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * * `MUTED_ISSUE` - MUTED_ISSUE - * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - */ -export type AuditLogEventEventType = Merge.hris.EventTypeEnum | string; diff --git a/src/api/resources/hris/types/AuditLogEventRole.ts b/src/api/resources/hris/types/AuditLogEventRole.ts deleted file mode 100644 index da873b28d..000000000 --- a/src/api/resources/hris/types/AuditLogEventRole.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. - * - * * `ADMIN` - ADMIN - * * `DEVELOPER` - DEVELOPER - * * `MEMBER` - MEMBER - * * `API` - API - * * `SYSTEM` - SYSTEM - * * `MERGE_TEAM` - MERGE_TEAM - */ -export type AuditLogEventRole = Merge.hris.RoleEnum | string; diff --git a/src/api/resources/hris/types/AvailableActions.ts b/src/api/resources/hris/types/AvailableActions.ts deleted file mode 100644 index 149552669..000000000 --- a/src/api/resources/hris/types/AvailableActions.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The AvailableActions Object - * ### Description - * The `Activity` object is used to see all available model/operation combinations for an integration. - * - * ### Usage Example - * Fetch all the actions available for the `Zenefits` integration. - */ -export interface AvailableActions { - integration: Merge.hris.AccountIntegration; - passthroughAvailable: boolean; - availableModelOperations?: Merge.hris.ModelOperation[]; -} diff --git a/src/api/resources/hris/types/BankInfo.ts b/src/api/resources/hris/types/BankInfo.ts deleted file mode 100644 index 7e3224cec..000000000 --- a/src/api/resources/hris/types/BankInfo.ts +++ /dev/null @@ -1,42 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The BankInfo Object - * ### Description - * The `BankInfo` object is used to represent the Bank Account information for an Employee. - * - * ### Usage Example - * Fetch from the `LIST BankInfo` endpoint and filter by `ID` to show all bank information. - */ -export interface BankInfo { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The employee with this bank account. */ - employee?: Merge.hris.BankInfoEmployee; - /** The account number. */ - accountNumber?: string; - /** The routing number. */ - routingNumber?: string; - /** The bank name. */ - bankName?: string; - /** - * The bank account type - * - * * `SAVINGS` - SAVINGS - * * `CHECKING` - CHECKING - */ - accountType?: Merge.hris.BankInfoAccountType; - /** When the matching bank object was created in the third party system. */ - remoteCreatedAt?: 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.hris.RemoteData[]; -} diff --git a/src/api/resources/hris/types/BankInfoAccountType.ts b/src/api/resources/hris/types/BankInfoAccountType.ts deleted file mode 100644 index aa6752b62..000000000 --- a/src/api/resources/hris/types/BankInfoAccountType.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 bank account type - * - * * `SAVINGS` - SAVINGS - * * `CHECKING` - CHECKING - */ -export type BankInfoAccountType = Merge.hris.AccountTypeEnum | string; diff --git a/src/api/resources/hris/types/BankInfoEmployee.ts b/src/api/resources/hris/types/BankInfoEmployee.ts deleted file mode 100644 index 57330f591..000000000 --- a/src/api/resources/hris/types/BankInfoEmployee.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 with this bank account. - */ -export type BankInfoEmployee = string | Merge.hris.Employee; diff --git a/src/api/resources/hris/types/Benefit.ts b/src/api/resources/hris/types/Benefit.ts deleted file mode 100644 index 8dd8f087c..000000000 --- a/src/api/resources/hris/types/Benefit.ts +++ /dev/null @@ -1,41 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Benefit Object - * ### Description - * The `Benefit` object is used to represent a benefit that an employee has enrolled in. - * - * ### Usage Example - * Fetch from the `LIST Benefits` endpoint and filter by `ID` to show all benefits. - */ -export interface Benefit { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The employee on the plan. */ - employee?: Merge.hris.BenefitEmployee; - /** The name of the benefit provider. */ - providerName?: string; - /** The type of benefit plan */ - benefitPlanType?: string; - /** The employee's contribution. */ - employeeContribution?: number; - /** The company's contribution. */ - companyContribution?: number; - /** The day and time the benefit started. */ - startDate?: Date; - /** The day and time the benefit ended. */ - endDate?: Date; - /** The employer benefit plan the employee is enrolled in. */ - employerBenefit?: 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/). */ - remoteWasDeleted?: boolean; - fieldMappings?: Record; - remoteData?: Merge.hris.RemoteData[]; -} diff --git a/src/api/resources/hris/types/BenefitEmployee.ts b/src/api/resources/hris/types/BenefitEmployee.ts deleted file mode 100644 index 0dff4fd45..000000000 --- a/src/api/resources/hris/types/BenefitEmployee.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 on the plan. - */ -export type BenefitEmployee = string | Merge.hris.Employee; diff --git a/src/api/resources/hris/types/BenefitPlanTypeEnum.ts b/src/api/resources/hris/types/BenefitPlanTypeEnum.ts deleted file mode 100644 index e99848b4e..000000000 --- a/src/api/resources/hris/types/BenefitPlanTypeEnum.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `MEDICAL` - MEDICAL - * * `HEALTH_SAVINGS` - HEALTH_SAVINGS - * * `INSURANCE` - INSURANCE - * * `RETIREMENT` - RETIREMENT - * * `OTHER` - OTHER - */ -export const BenefitPlanTypeEnum = { - Medical: "MEDICAL", - HealthSavings: "HEALTH_SAVINGS", - Insurance: "INSURANCE", - Retirement: "RETIREMENT", - Other: "OTHER", -} as const; -export type BenefitPlanTypeEnum = (typeof BenefitPlanTypeEnum)[keyof typeof BenefitPlanTypeEnum]; diff --git a/src/api/resources/hris/types/CategoriesEnum.ts b/src/api/resources/hris/types/CategoriesEnum.ts deleted file mode 100644 index fadfd2764..000000000 --- a/src/api/resources/hris/types/CategoriesEnum.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `hris` - hris - * * `ats` - ats - * * `accounting` - accounting - * * `ticketing` - ticketing - * * `crm` - crm - * * `mktg` - mktg - * * `filestorage` - filestorage - */ -export const CategoriesEnum = { - Hris: "hris", - Ats: "ats", - Accounting: "accounting", - Ticketing: "ticketing", - Crm: "crm", - Mktg: "mktg", - Filestorage: "filestorage", -} as const; -export type CategoriesEnum = (typeof CategoriesEnum)[keyof typeof CategoriesEnum]; diff --git a/src/api/resources/hris/types/CategoryEnum.ts b/src/api/resources/hris/types/CategoryEnum.ts deleted file mode 100644 index f2cd1da08..000000000 --- a/src/api/resources/hris/types/CategoryEnum.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `hris` - hris - * * `ats` - ats - * * `accounting` - accounting - * * `ticketing` - ticketing - * * `crm` - crm - * * `mktg` - mktg - * * `filestorage` - filestorage - */ -export const CategoryEnum = { - Hris: "hris", - Ats: "ats", - Accounting: "accounting", - Ticketing: "ticketing", - Crm: "crm", - Mktg: "mktg", - Filestorage: "filestorage", -} as const; -export type CategoryEnum = (typeof CategoryEnum)[keyof typeof CategoryEnum]; diff --git a/src/api/resources/hris/types/CommonModelScopeApi.ts b/src/api/resources/hris/types/CommonModelScopeApi.ts deleted file mode 100644 index f14aa2b3b..000000000 --- a/src/api/resources/hris/types/CommonModelScopeApi.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface CommonModelScopeApi { - /** The common models you want to update the scopes for */ - commonModels: Merge.hris.IndividualCommonModelScopeDeserializer[]; -} diff --git a/src/api/resources/hris/types/CommonModelScopesBodyRequest.ts b/src/api/resources/hris/types/CommonModelScopesBodyRequest.ts deleted file mode 100644 index fb00f52c9..000000000 --- a/src/api/resources/hris/types/CommonModelScopesBodyRequest.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface CommonModelScopesBodyRequest { - modelId: string; - enabledActions: Merge.hris.EnabledActionsEnum[]; - disabledFields: string[]; -} diff --git a/src/api/resources/hris/types/Company.ts b/src/api/resources/hris/types/Company.ts deleted file mode 100644 index d50b64a7a..000000000 --- a/src/api/resources/hris/types/Company.ts +++ /dev/null @@ -1,31 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Company Object - * ### Description - * The `Company` object is used to represent a company within the HRIS / Payroll system. - * - * ### Usage Example - * Fetch from the `LIST Companies` endpoint and filter by `ID` to show all companies. - */ -export interface Company { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The company's legal name. */ - legalName?: string; - /** The company's display name. */ - displayName?: string; - /** The company's Employer Identification Numbers. */ - eins?: (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; - remoteData?: Merge.hris.RemoteData[]; -} diff --git a/src/api/resources/hris/types/CompletedAccountInitialScreenEnum.ts b/src/api/resources/hris/types/CompletedAccountInitialScreenEnum.ts deleted file mode 100644 index cfe34d1e7..000000000 --- a/src/api/resources/hris/types/CompletedAccountInitialScreenEnum.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `SELECTIVE_SYNC` - SELECTIVE_SYNC - */ -export type CompletedAccountInitialScreenEnum = "SELECTIVE_SYNC"; diff --git a/src/api/resources/hris/types/CountryEnum.ts b/src/api/resources/hris/types/CountryEnum.ts deleted file mode 100644 index cbfdf589a..000000000 --- a/src/api/resources/hris/types/CountryEnum.ts +++ /dev/null @@ -1,505 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `AF` - Afghanistan - * * `AX` - Åland Islands - * * `AL` - Albania - * * `DZ` - Algeria - * * `AS` - American Samoa - * * `AD` - Andorra - * * `AO` - Angola - * * `AI` - Anguilla - * * `AQ` - Antarctica - * * `AG` - Antigua and Barbuda - * * `AR` - Argentina - * * `AM` - Armenia - * * `AW` - Aruba - * * `AU` - Australia - * * `AT` - Austria - * * `AZ` - Azerbaijan - * * `BS` - Bahamas - * * `BH` - Bahrain - * * `BD` - Bangladesh - * * `BB` - Barbados - * * `BY` - Belarus - * * `BE` - Belgium - * * `BZ` - Belize - * * `BJ` - Benin - * * `BM` - Bermuda - * * `BT` - Bhutan - * * `BO` - Bolivia - * * `BQ` - Bonaire, Sint Eustatius and Saba - * * `BA` - Bosnia and Herzegovina - * * `BW` - Botswana - * * `BV` - Bouvet Island - * * `BR` - Brazil - * * `IO` - British Indian Ocean Territory - * * `BN` - Brunei - * * `BG` - Bulgaria - * * `BF` - Burkina Faso - * * `BI` - Burundi - * * `CV` - Cabo Verde - * * `KH` - Cambodia - * * `CM` - Cameroon - * * `CA` - Canada - * * `KY` - Cayman Islands - * * `CF` - Central African Republic - * * `TD` - Chad - * * `CL` - Chile - * * `CN` - China - * * `CX` - Christmas Island - * * `CC` - Cocos (Keeling) Islands - * * `CO` - Colombia - * * `KM` - Comoros - * * `CG` - Congo - * * `CD` - Congo (the Democratic Republic of the) - * * `CK` - Cook Islands - * * `CR` - Costa Rica - * * `CI` - Côte d'Ivoire - * * `HR` - Croatia - * * `CU` - Cuba - * * `CW` - Curaçao - * * `CY` - Cyprus - * * `CZ` - Czechia - * * `DK` - Denmark - * * `DJ` - Djibouti - * * `DM` - Dominica - * * `DO` - Dominican Republic - * * `EC` - Ecuador - * * `EG` - Egypt - * * `SV` - El Salvador - * * `GQ` - Equatorial Guinea - * * `ER` - Eritrea - * * `EE` - Estonia - * * `SZ` - Eswatini - * * `ET` - Ethiopia - * * `FK` - Falkland Islands (Malvinas) - * * `FO` - Faroe Islands - * * `FJ` - Fiji - * * `FI` - Finland - * * `FR` - France - * * `GF` - French Guiana - * * `PF` - French Polynesia - * * `TF` - French Southern Territories - * * `GA` - Gabon - * * `GM` - Gambia - * * `GE` - Georgia - * * `DE` - Germany - * * `GH` - Ghana - * * `GI` - Gibraltar - * * `GR` - Greece - * * `GL` - Greenland - * * `GD` - Grenada - * * `GP` - Guadeloupe - * * `GU` - Guam - * * `GT` - Guatemala - * * `GG` - Guernsey - * * `GN` - Guinea - * * `GW` - Guinea-Bissau - * * `GY` - Guyana - * * `HT` - Haiti - * * `HM` - Heard Island and McDonald Islands - * * `VA` - Holy See - * * `HN` - Honduras - * * `HK` - Hong Kong - * * `HU` - Hungary - * * `IS` - Iceland - * * `IN` - India - * * `ID` - Indonesia - * * `IR` - Iran - * * `IQ` - Iraq - * * `IE` - Ireland - * * `IM` - Isle of Man - * * `IL` - Israel - * * `IT` - Italy - * * `JM` - Jamaica - * * `JP` - Japan - * * `JE` - Jersey - * * `JO` - Jordan - * * `KZ` - Kazakhstan - * * `KE` - Kenya - * * `KI` - Kiribati - * * `KW` - Kuwait - * * `KG` - Kyrgyzstan - * * `LA` - Laos - * * `LV` - Latvia - * * `LB` - Lebanon - * * `LS` - Lesotho - * * `LR` - Liberia - * * `LY` - Libya - * * `LI` - Liechtenstein - * * `LT` - Lithuania - * * `LU` - Luxembourg - * * `MO` - Macao - * * `MG` - Madagascar - * * `MW` - Malawi - * * `MY` - Malaysia - * * `MV` - Maldives - * * `ML` - Mali - * * `MT` - Malta - * * `MH` - Marshall Islands - * * `MQ` - Martinique - * * `MR` - Mauritania - * * `MU` - Mauritius - * * `YT` - Mayotte - * * `MX` - Mexico - * * `FM` - Micronesia (Federated States of) - * * `MD` - Moldova - * * `MC` - Monaco - * * `MN` - Mongolia - * * `ME` - Montenegro - * * `MS` - Montserrat - * * `MA` - Morocco - * * `MZ` - Mozambique - * * `MM` - Myanmar - * * `NA` - Namibia - * * `NR` - Nauru - * * `NP` - Nepal - * * `NL` - Netherlands - * * `NC` - New Caledonia - * * `NZ` - New Zealand - * * `NI` - Nicaragua - * * `NE` - Niger - * * `NG` - Nigeria - * * `NU` - Niue - * * `NF` - Norfolk Island - * * `KP` - North Korea - * * `MK` - North Macedonia - * * `MP` - Northern Mariana Islands - * * `NO` - Norway - * * `OM` - Oman - * * `PK` - Pakistan - * * `PW` - Palau - * * `PS` - Palestine, State of - * * `PA` - Panama - * * `PG` - Papua New Guinea - * * `PY` - Paraguay - * * `PE` - Peru - * * `PH` - Philippines - * * `PN` - Pitcairn - * * `PL` - Poland - * * `PT` - Portugal - * * `PR` - Puerto Rico - * * `QA` - Qatar - * * `RE` - Réunion - * * `RO` - Romania - * * `RU` - Russia - * * `RW` - Rwanda - * * `BL` - Saint Barthélemy - * * `SH` - Saint Helena, Ascension and Tristan da Cunha - * * `KN` - Saint Kitts and Nevis - * * `LC` - Saint Lucia - * * `MF` - Saint Martin (French part) - * * `PM` - Saint Pierre and Miquelon - * * `VC` - Saint Vincent and the Grenadines - * * `WS` - Samoa - * * `SM` - San Marino - * * `ST` - Sao Tome and Principe - * * `SA` - Saudi Arabia - * * `SN` - Senegal - * * `RS` - Serbia - * * `SC` - Seychelles - * * `SL` - Sierra Leone - * * `SG` - Singapore - * * `SX` - Sint Maarten (Dutch part) - * * `SK` - Slovakia - * * `SI` - Slovenia - * * `SB` - Solomon Islands - * * `SO` - Somalia - * * `ZA` - South Africa - * * `GS` - South Georgia and the South Sandwich Islands - * * `KR` - South Korea - * * `SS` - South Sudan - * * `ES` - Spain - * * `LK` - Sri Lanka - * * `SD` - Sudan - * * `SR` - Suriname - * * `SJ` - Svalbard and Jan Mayen - * * `SE` - Sweden - * * `CH` - Switzerland - * * `SY` - Syria - * * `TW` - Taiwan - * * `TJ` - Tajikistan - * * `TZ` - Tanzania - * * `TH` - Thailand - * * `TL` - Timor-Leste - * * `TG` - Togo - * * `TK` - Tokelau - * * `TO` - Tonga - * * `TT` - Trinidad and Tobago - * * `TN` - Tunisia - * * `TR` - Turkey - * * `TM` - Turkmenistan - * * `TC` - Turks and Caicos Islands - * * `TV` - Tuvalu - * * `UG` - Uganda - * * `UA` - Ukraine - * * `AE` - United Arab Emirates - * * `GB` - United Kingdom - * * `UM` - United States Minor Outlying Islands - * * `US` - United States of America - * * `UY` - Uruguay - * * `UZ` - Uzbekistan - * * `VU` - Vanuatu - * * `VE` - Venezuela - * * `VN` - Vietnam - * * `VG` - Virgin Islands (British) - * * `VI` - Virgin Islands (U.S.) - * * `WF` - Wallis and Futuna - * * `EH` - Western Sahara - * * `YE` - Yemen - * * `ZM` - Zambia - * * `ZW` - Zimbabwe - */ -export const CountryEnum = { - Af: "AF", - Ax: "AX", - Al: "AL", - Dz: "DZ", - As: "AS", - Ad: "AD", - Ao: "AO", - Ai: "AI", - Aq: "AQ", - Ag: "AG", - Ar: "AR", - Am: "AM", - Aw: "AW", - Au: "AU", - At: "AT", - Az: "AZ", - Bs: "BS", - Bh: "BH", - Bd: "BD", - Bb: "BB", - By: "BY", - Be: "BE", - Bz: "BZ", - Bj: "BJ", - Bm: "BM", - Bt: "BT", - Bo: "BO", - Bq: "BQ", - Ba: "BA", - Bw: "BW", - Bv: "BV", - Br: "BR", - Io: "IO", - Bn: "BN", - Bg: "BG", - Bf: "BF", - Bi: "BI", - Cv: "CV", - Kh: "KH", - Cm: "CM", - Ca: "CA", - Ky: "KY", - Cf: "CF", - Td: "TD", - Cl: "CL", - Cn: "CN", - Cx: "CX", - Cc: "CC", - Co: "CO", - Km: "KM", - Cg: "CG", - Cd: "CD", - Ck: "CK", - Cr: "CR", - Ci: "CI", - Hr: "HR", - Cu: "CU", - Cw: "CW", - Cy: "CY", - Cz: "CZ", - Dk: "DK", - Dj: "DJ", - Dm: "DM", - Do: "DO", - Ec: "EC", - Eg: "EG", - Sv: "SV", - Gq: "GQ", - Er: "ER", - Ee: "EE", - Sz: "SZ", - Et: "ET", - Fk: "FK", - Fo: "FO", - Fj: "FJ", - Fi: "FI", - Fr: "FR", - Gf: "GF", - Pf: "PF", - Tf: "TF", - Ga: "GA", - Gm: "GM", - Ge: "GE", - De: "DE", - Gh: "GH", - Gi: "GI", - Gr: "GR", - Gl: "GL", - Gd: "GD", - Gp: "GP", - Gu: "GU", - Gt: "GT", - Gg: "GG", - Gn: "GN", - Gw: "GW", - Gy: "GY", - Ht: "HT", - Hm: "HM", - Va: "VA", - Hn: "HN", - Hk: "HK", - Hu: "HU", - Is: "IS", - In: "IN", - Id: "ID", - Ir: "IR", - Iq: "IQ", - Ie: "IE", - Im: "IM", - Il: "IL", - It: "IT", - Jm: "JM", - Jp: "JP", - Je: "JE", - Jo: "JO", - Kz: "KZ", - Ke: "KE", - Ki: "KI", - Kw: "KW", - Kg: "KG", - La: "LA", - Lv: "LV", - Lb: "LB", - Ls: "LS", - Lr: "LR", - Ly: "LY", - Li: "LI", - Lt: "LT", - Lu: "LU", - Mo: "MO", - Mg: "MG", - Mw: "MW", - My: "MY", - Mv: "MV", - Ml: "ML", - Mt: "MT", - Mh: "MH", - Mq: "MQ", - Mr: "MR", - Mu: "MU", - Yt: "YT", - Mx: "MX", - Fm: "FM", - Md: "MD", - Mc: "MC", - Mn: "MN", - Me: "ME", - Ms: "MS", - Ma: "MA", - Mz: "MZ", - Mm: "MM", - Na: "NA", - Nr: "NR", - Np: "NP", - Nl: "NL", - Nc: "NC", - Nz: "NZ", - Ni: "NI", - Ne: "NE", - Ng: "NG", - Nu: "NU", - Nf: "NF", - Kp: "KP", - Mk: "MK", - Mp: "MP", - No: "NO", - Om: "OM", - Pk: "PK", - Pw: "PW", - Ps: "PS", - Pa: "PA", - Pg: "PG", - Py: "PY", - Pe: "PE", - Ph: "PH", - Pn: "PN", - Pl: "PL", - Pt: "PT", - Pr: "PR", - Qa: "QA", - Re: "RE", - Ro: "RO", - Ru: "RU", - Rw: "RW", - Bl: "BL", - Sh: "SH", - Kn: "KN", - Lc: "LC", - Mf: "MF", - Pm: "PM", - Vc: "VC", - Ws: "WS", - Sm: "SM", - St: "ST", - Sa: "SA", - Sn: "SN", - Rs: "RS", - Sc: "SC", - Sl: "SL", - Sg: "SG", - Sx: "SX", - Sk: "SK", - Si: "SI", - Sb: "SB", - So: "SO", - Za: "ZA", - Gs: "GS", - Kr: "KR", - Ss: "SS", - Es: "ES", - Lk: "LK", - Sd: "SD", - Sr: "SR", - Sj: "SJ", - Se: "SE", - Ch: "CH", - Sy: "SY", - Tw: "TW", - Tj: "TJ", - Tz: "TZ", - Th: "TH", - Tl: "TL", - Tg: "TG", - Tk: "TK", - To: "TO", - Tt: "TT", - Tn: "TN", - Tr: "TR", - Tm: "TM", - Tc: "TC", - Tv: "TV", - Ug: "UG", - Ua: "UA", - Ae: "AE", - Gb: "GB", - Um: "UM", - Us: "US", - Uy: "UY", - Uz: "UZ", - Vu: "VU", - Ve: "VE", - Vn: "VN", - Vg: "VG", - Vi: "VI", - Wf: "WF", - Eh: "EH", - Ye: "YE", - Zm: "ZM", - Zw: "ZW", -} as const; -export type CountryEnum = (typeof CountryEnum)[keyof typeof CountryEnum]; diff --git a/src/api/resources/hris/types/DataPassthroughRequest.ts b/src/api/resources/hris/types/DataPassthroughRequest.ts deleted file mode 100644 index 0e9da9732..000000000 --- a/src/api/resources/hris/types/DataPassthroughRequest.ts +++ /dev/null @@ -1,28 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The DataPassthrough Object - * ### Description - * The `DataPassthrough` object is used to send information to an otherwise-unsupported third-party endpoint. - * - * ### Usage Example - * Create a `DataPassthrough` to get team hierarchies from your Rippling integration. - */ -export interface DataPassthroughRequest { - method: Merge.hris.MethodEnum; - /** The path of the request in the third party's platform. */ - path: string; - /** An optional override of the third party's base url for the request. */ - baseUrlOverride?: string; - /** The data with the request. You must include a `request_format` parameter matching the data's format */ - data?: string; - /** Pass an array of `MultipartFormField` objects in here instead of using the `data` param if `request_format` is set to `MULTIPART`. */ - multipartFormData?: Merge.hris.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.hris.RequestFormatEnum; - /** 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/hris/types/DebugModeLog.ts b/src/api/resources/hris/types/DebugModeLog.ts deleted file mode 100644 index 631225bf2..000000000 --- a/src/api/resources/hris/types/DebugModeLog.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface DebugModeLog { - logId: string; - dashboardView: string; - logSummary: Merge.hris.DebugModelLogSummary; -} diff --git a/src/api/resources/hris/types/DebugModelLogSummary.ts b/src/api/resources/hris/types/DebugModelLogSummary.ts deleted file mode 100644 index ffce707e3..000000000 --- a/src/api/resources/hris/types/DebugModelLogSummary.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface DebugModelLogSummary { - url: string; - method: string; - statusCode: number; -} diff --git a/src/api/resources/hris/types/Deduction.ts b/src/api/resources/hris/types/Deduction.ts deleted file mode 100644 index 9c3676c58..000000000 --- a/src/api/resources/hris/types/Deduction.ts +++ /dev/null @@ -1,32 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Deduction Object - * ### Description - * The `Deduction` object is used to represent an array of the wages withheld from total earnings for the purpose of paying taxes. - * - * ### Usage Example - * Fetch from the `LIST Deductions` endpoint and filter by `ID` to show all deductions. - */ -export interface Deduction { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - employeePayrollRun?: string; - /** The deduction's name. */ - name?: string; - /** The amount of money that is withheld from an employee's gross pay by the employee. */ - employeeDeduction?: number; - /** The amount of money that is withheld on behalf of an employee by the company. */ - companyDeduction?: number; - /** 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.hris.RemoteData[]; -} diff --git a/src/api/resources/hris/types/Dependent.ts b/src/api/resources/hris/types/Dependent.ts deleted file mode 100644 index 904e74337..000000000 --- a/src/api/resources/hris/types/Dependent.ts +++ /dev/null @@ -1,61 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Dependent Object - * ### Description - * The `Dependent` object is used to represent a dependent (e.g. child, spouse, domestic partner, etc) of an `Employee` - * - * ### Usage Example - * Fetch from the `LIST Dependents` endpoint and filter by `ID` to show all dependents. - */ -export interface Dependent { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The dependents's first name. */ - firstName?: string; - /** The dependents's middle name. */ - middleName?: string; - /** The dependents's last name. */ - lastName?: string; - /** - * The dependent's relationship to the employee. - * - * * `CHILD` - CHILD - * * `SPOUSE` - SPOUSE - * * `DOMESTIC_PARTNER` - DOMESTIC_PARTNER - */ - relationship?: Merge.hris.DependentRelationship; - /** The employee this person is a dependent of. */ - employee?: string; - /** The dependent's date of birth. */ - dateOfBirth?: Date; - /** - * The dependent's gender. - * - * * `MALE` - MALE - * * `FEMALE` - FEMALE - * * `NON-BINARY` - NON-BINARY - * * `OTHER` - OTHER - * * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE - */ - gender?: Merge.hris.DependentGender; - /** The dependent's phone number. */ - phoneNumber?: string; - /** The dependents's home address. */ - homeLocation?: string; - /** Whether or not the dependent is a student */ - isStudent?: boolean; - /** The dependents's social security number. */ - ssn?: 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/). */ - remoteWasDeleted?: boolean; - fieldMappings?: Record; - remoteData?: Merge.hris.RemoteData[]; -} diff --git a/src/api/resources/hris/types/DependentGender.ts b/src/api/resources/hris/types/DependentGender.ts deleted file mode 100644 index fdc9cf0cd..000000000 --- a/src/api/resources/hris/types/DependentGender.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The dependent's gender. - * - * * `MALE` - MALE - * * `FEMALE` - FEMALE - * * `NON-BINARY` - NON-BINARY - * * `OTHER` - OTHER - * * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE - */ -export type DependentGender = Merge.hris.GenderEnum | string; diff --git a/src/api/resources/hris/types/DependentRelationship.ts b/src/api/resources/hris/types/DependentRelationship.ts deleted file mode 100644 index 1fc9f3cce..000000000 --- a/src/api/resources/hris/types/DependentRelationship.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 dependent's relationship to the employee. - * - * * `CHILD` - CHILD - * * `SPOUSE` - SPOUSE - * * `DOMESTIC_PARTNER` - DOMESTIC_PARTNER - */ -export type DependentRelationship = Merge.hris.RelationshipEnum | string; diff --git a/src/api/resources/hris/types/Earning.ts b/src/api/resources/hris/types/Earning.ts deleted file mode 100644 index 820f8deab..000000000 --- a/src/api/resources/hris/types/Earning.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Earning Object - * ### Description - * The `Earning` object is used to represent an array of different compensations that an employee receives within specific wage categories. - * - * ### Usage Example - * Fetch from the `LIST Earnings` endpoint and filter by `ID` to show all earnings. - */ -export interface Earning { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - employeePayrollRun?: string; - /** The amount earned. */ - amount?: number; - /** - * The type of earning. - * - * * `SALARY` - SALARY - * * `REIMBURSEMENT` - REIMBURSEMENT - * * `OVERTIME` - OVERTIME - * * `BONUS` - BONUS - */ - type?: Merge.hris.EarningType; - /** 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.hris.RemoteData[]; -} diff --git a/src/api/resources/hris/types/EarningType.ts b/src/api/resources/hris/types/EarningType.ts deleted file mode 100644 index 8ab2f711e..000000000 --- a/src/api/resources/hris/types/EarningType.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 type of earning. - * - * * `SALARY` - SALARY - * * `REIMBURSEMENT` - REIMBURSEMENT - * * `OVERTIME` - OVERTIME - * * `BONUS` - BONUS - */ -export type EarningType = Merge.hris.EarningTypeEnum | string; diff --git a/src/api/resources/hris/types/EarningTypeEnum.ts b/src/api/resources/hris/types/EarningTypeEnum.ts deleted file mode 100644 index 72b03a18c..000000000 --- a/src/api/resources/hris/types/EarningTypeEnum.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `SALARY` - SALARY - * * `REIMBURSEMENT` - REIMBURSEMENT - * * `OVERTIME` - OVERTIME - * * `BONUS` - BONUS - */ -export const EarningTypeEnum = { - Salary: "SALARY", - Reimbursement: "REIMBURSEMENT", - Overtime: "OVERTIME", - Bonus: "BONUS", -} as const; -export type EarningTypeEnum = (typeof EarningTypeEnum)[keyof typeof EarningTypeEnum]; diff --git a/src/api/resources/hris/types/Employee.ts b/src/api/resources/hris/types/Employee.ts deleted file mode 100644 index 192251a1e..000000000 --- a/src/api/resources/hris/types/Employee.ts +++ /dev/null @@ -1,115 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Employee Object - * ### Description - * The `Employee` object is used to represent any person who has been employed by a company. By default, it returns all employees. To filter for only active employees, set the `employment_status` query parameter to `ACTIVE`. - * - * ### Usage Example - * Fetch from the `LIST Employee` endpoint and filter by `ID` to show all employees. - */ -export interface Employee { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The employee's number that appears in the third-party integration's UI. */ - employeeNumber?: string; - /** The ID of the employee's company. */ - company?: Merge.hris.EmployeeCompany; - /** The employee's first name. */ - firstName?: string; - /** The employee's last name. */ - lastName?: string; - /** The employee's preferred first name. */ - preferredName?: string; - /** The employee's full name, to use for display purposes. If a preferred first name is available, the full name will include the preferred first name. */ - displayFullName?: string; - /** The employee's username that appears in the remote UI. */ - username?: string; - groups?: (Merge.hris.EmployeeGroupsItem | undefined)[]; - /** The employee's work email. */ - workEmail?: string; - /** The employee's personal email. */ - personalEmail?: string; - /** The employee's mobile phone number. */ - mobilePhoneNumber?: string; - /** Array of `Employment` IDs for this Employee. */ - employments?: (Merge.hris.EmployeeEmploymentsItem | undefined)[]; - /** The employee's home address. */ - homeLocation?: Merge.hris.EmployeeHomeLocation; - /** The employee's work address. */ - workLocation?: Merge.hris.EmployeeWorkLocation; - /** The employee ID of the employee's manager. */ - manager?: Merge.hris.EmployeeManager; - /** The employee's team. */ - team?: Merge.hris.EmployeeTeam; - /** The employee's pay group */ - payGroup?: Merge.hris.EmployeePayGroup; - /** The employee's social security number. */ - ssn?: string; - /** - * The employee's gender. - * - * * `MALE` - MALE - * * `FEMALE` - FEMALE - * * `NON-BINARY` - NON-BINARY - * * `OTHER` - OTHER - * * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE - */ - gender?: Merge.hris.EmployeeGender; - /** - * The employee's ethnicity. - * - * * `AMERICAN_INDIAN_OR_ALASKA_NATIVE` - AMERICAN_INDIAN_OR_ALASKA_NATIVE - * * `ASIAN_OR_INDIAN_SUBCONTINENT` - ASIAN_OR_INDIAN_SUBCONTINENT - * * `BLACK_OR_AFRICAN_AMERICAN` - BLACK_OR_AFRICAN_AMERICAN - * * `HISPANIC_OR_LATINO` - HISPANIC_OR_LATINO - * * `NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER` - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER - * * `TWO_OR_MORE_RACES` - TWO_OR_MORE_RACES - * * `WHITE` - WHITE - * * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE - */ - ethnicity?: Merge.hris.EmployeeEthnicity; - /** - * The employee's filing status as related to marital status. - * - * * `SINGLE` - SINGLE - * * `MARRIED_FILING_JOINTLY` - MARRIED_FILING_JOINTLY - * * `MARRIED_FILING_SEPARATELY` - MARRIED_FILING_SEPARATELY - * * `HEAD_OF_HOUSEHOLD` - HEAD_OF_HOUSEHOLD - * * `QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD` - QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD - */ - maritalStatus?: Merge.hris.EmployeeMaritalStatus; - /** The employee's date of birth. */ - dateOfBirth?: Date; - /** The date that the employee was hired, usually the day that an offer letter is signed. If an employee has multiple hire dates from previous employments, this represents the most recent hire date. Note: If you're looking for the employee's start date, refer to the start_date field. */ - hireDate?: Date; - /** The date that the employee started working. If an employee was rehired, the most recent start date will be returned. */ - startDate?: Date; - /** When the third party's employee was created. */ - remoteCreatedAt?: Date; - /** - * The employment status of the employee. - * - * * `ACTIVE` - ACTIVE - * * `PENDING` - PENDING - * * `INACTIVE` - INACTIVE - */ - employmentStatus?: Merge.hris.EmployeeEmploymentStatus; - /** The employee's termination date. */ - terminationDate?: Date; - /** The URL of the employee's avatar image. */ - avatar?: string; - /** Custom fields configured for a given model. */ - customFields?: Record; - /** 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.hris.RemoteData[]; -} diff --git a/src/api/resources/hris/types/EmployeeCompany.ts b/src/api/resources/hris/types/EmployeeCompany.ts deleted file mode 100644 index e9c1d6cdc..000000000 --- a/src/api/resources/hris/types/EmployeeCompany.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 ID of the employee's company. - */ -export type EmployeeCompany = string | Merge.hris.Company; diff --git a/src/api/resources/hris/types/EmployeeEmploymentStatus.ts b/src/api/resources/hris/types/EmployeeEmploymentStatus.ts deleted file mode 100644 index d8fd7ffd6..000000000 --- a/src/api/resources/hris/types/EmployeeEmploymentStatus.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 employment status of the employee. - * - * * `ACTIVE` - ACTIVE - * * `PENDING` - PENDING - * * `INACTIVE` - INACTIVE - */ -export type EmployeeEmploymentStatus = Merge.hris.EmploymentStatusEnum | string; diff --git a/src/api/resources/hris/types/EmployeeEmploymentsItem.ts b/src/api/resources/hris/types/EmployeeEmploymentsItem.ts deleted file mode 100644 index d000c6f5f..000000000 --- a/src/api/resources/hris/types/EmployeeEmploymentsItem.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 EmployeeEmploymentsItem = string | Merge.hris.Employment; diff --git a/src/api/resources/hris/types/EmployeeEthnicity.ts b/src/api/resources/hris/types/EmployeeEthnicity.ts deleted file mode 100644 index cdc06afa2..000000000 --- a/src/api/resources/hris/types/EmployeeEthnicity.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The employee's ethnicity. - * - * * `AMERICAN_INDIAN_OR_ALASKA_NATIVE` - AMERICAN_INDIAN_OR_ALASKA_NATIVE - * * `ASIAN_OR_INDIAN_SUBCONTINENT` - ASIAN_OR_INDIAN_SUBCONTINENT - * * `BLACK_OR_AFRICAN_AMERICAN` - BLACK_OR_AFRICAN_AMERICAN - * * `HISPANIC_OR_LATINO` - HISPANIC_OR_LATINO - * * `NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER` - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER - * * `TWO_OR_MORE_RACES` - TWO_OR_MORE_RACES - * * `WHITE` - WHITE - * * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE - */ -export type EmployeeEthnicity = Merge.hris.EthnicityEnum | string; diff --git a/src/api/resources/hris/types/EmployeeGender.ts b/src/api/resources/hris/types/EmployeeGender.ts deleted file mode 100644 index d5ac21a62..000000000 --- a/src/api/resources/hris/types/EmployeeGender.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The employee's gender. - * - * * `MALE` - MALE - * * `FEMALE` - FEMALE - * * `NON-BINARY` - NON-BINARY - * * `OTHER` - OTHER - * * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE - */ -export type EmployeeGender = Merge.hris.GenderEnum | string; diff --git a/src/api/resources/hris/types/EmployeeGroupsItem.ts b/src/api/resources/hris/types/EmployeeGroupsItem.ts deleted file mode 100644 index 4ae4dfdb2..000000000 --- a/src/api/resources/hris/types/EmployeeGroupsItem.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 EmployeeGroupsItem = string | Merge.hris.Group; diff --git a/src/api/resources/hris/types/EmployeeHomeLocation.ts b/src/api/resources/hris/types/EmployeeHomeLocation.ts deleted file mode 100644 index b6a7e88a2..000000000 --- a/src/api/resources/hris/types/EmployeeHomeLocation.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's home address. - */ -export type EmployeeHomeLocation = string | Merge.hris.Location; diff --git a/src/api/resources/hris/types/EmployeeManager.ts b/src/api/resources/hris/types/EmployeeManager.ts deleted file mode 100644 index 88dc037c3..000000000 --- a/src/api/resources/hris/types/EmployeeManager.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 ID of the employee's manager. - */ -export type EmployeeManager = string | Merge.hris.Employee; diff --git a/src/api/resources/hris/types/EmployeeMaritalStatus.ts b/src/api/resources/hris/types/EmployeeMaritalStatus.ts deleted file mode 100644 index 063aa0ee2..000000000 --- a/src/api/resources/hris/types/EmployeeMaritalStatus.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The employee's filing status as related to marital status. - * - * * `SINGLE` - SINGLE - * * `MARRIED_FILING_JOINTLY` - MARRIED_FILING_JOINTLY - * * `MARRIED_FILING_SEPARATELY` - MARRIED_FILING_SEPARATELY - * * `HEAD_OF_HOUSEHOLD` - HEAD_OF_HOUSEHOLD - * * `QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD` - QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD - */ -export type EmployeeMaritalStatus = Merge.hris.MaritalStatusEnum | string; diff --git a/src/api/resources/hris/types/EmployeePayGroup.ts b/src/api/resources/hris/types/EmployeePayGroup.ts deleted file mode 100644 index 2e808e8fd..000000000 --- a/src/api/resources/hris/types/EmployeePayGroup.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's pay group - */ -export type EmployeePayGroup = string | Merge.hris.PayGroup; diff --git a/src/api/resources/hris/types/EmployeePayrollRun.ts b/src/api/resources/hris/types/EmployeePayrollRun.ts deleted file mode 100644 index 5c730c69d..000000000 --- a/src/api/resources/hris/types/EmployeePayrollRun.ts +++ /dev/null @@ -1,42 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The EmployeePayrollRun Object - * ### Description - * The `EmployeePayrollRun` object is used to represent an employee's pay statement for a specific payroll run. - * - * ### Usage Example - * Fetch from the `LIST EmployeePayrollRun` endpoint and filter by `ID` to show all employee payroll runs. - */ -export interface EmployeePayrollRun { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The employee whose payroll is being run. */ - employee?: Merge.hris.EmployeePayrollRunEmployee; - /** The payroll being run. */ - payrollRun?: Merge.hris.EmployeePayrollRunPayrollRun; - /** The total earnings throughout a given period for an employee before any deductions are made. */ - grossPay?: number; - /** The take-home pay throughout a given period for an employee after deductions are made. */ - netPay?: number; - /** The day and time the payroll run started. */ - startDate?: Date; - /** The day and time the payroll run ended. */ - endDate?: Date; - /** The day and time the payroll run was checked. */ - checkDate?: Date; - earnings?: Merge.hris.Earning[]; - deductions?: Merge.hris.Deduction[]; - taxes?: Merge.hris.Tax[]; - /** 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.hris.RemoteData[]; -} diff --git a/src/api/resources/hris/types/EmployeePayrollRunEmployee.ts b/src/api/resources/hris/types/EmployeePayrollRunEmployee.ts deleted file mode 100644 index e588a99c9..000000000 --- a/src/api/resources/hris/types/EmployeePayrollRunEmployee.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 whose payroll is being run. - */ -export type EmployeePayrollRunEmployee = string | Merge.hris.Employee; diff --git a/src/api/resources/hris/types/EmployeePayrollRunPayrollRun.ts b/src/api/resources/hris/types/EmployeePayrollRunPayrollRun.ts deleted file mode 100644 index 80d6bf8f9..000000000 --- a/src/api/resources/hris/types/EmployeePayrollRunPayrollRun.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 payroll being run. - */ -export type EmployeePayrollRunPayrollRun = string | Merge.hris.PayrollRun; diff --git a/src/api/resources/hris/types/EmployeeRequest.ts b/src/api/resources/hris/types/EmployeeRequest.ts deleted file mode 100644 index 15a20a2b7..000000000 --- a/src/api/resources/hris/types/EmployeeRequest.ts +++ /dev/null @@ -1,102 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Employee Object - * ### Description - * The `Employee` object is used to represent any person who has been employed by a company. By default, it returns all employees. To filter for only active employees, set the `employment_status` query parameter to `ACTIVE`. - * - * ### Usage Example - * Fetch from the `LIST Employee` endpoint and filter by `ID` to show all employees. - */ -export interface EmployeeRequest { - /** The employee's number that appears in the third-party integration's UI. */ - employeeNumber?: string; - /** The ID of the employee's company. */ - company?: Merge.hris.EmployeeRequestCompany; - /** The employee's first name. */ - firstName?: string; - /** The employee's last name. */ - lastName?: string; - /** The employee's preferred first name. */ - preferredName?: string; - /** The employee's full name, to use for display purposes. If a preferred first name is available, the full name will include the preferred first name. */ - displayFullName?: string; - /** The employee's username that appears in the remote UI. */ - username?: string; - groups?: (Merge.hris.EmployeeRequestGroupsItem | undefined)[]; - /** The employee's work email. */ - workEmail?: string; - /** The employee's personal email. */ - personalEmail?: string; - /** The employee's mobile phone number. */ - mobilePhoneNumber?: string; - /** Array of `Employment` IDs for this Employee. */ - employments?: (Merge.hris.EmployeeRequestEmploymentsItem | undefined)[]; - /** The employee's home address. */ - homeLocation?: Merge.hris.EmployeeRequestHomeLocation; - /** The employee's work address. */ - workLocation?: Merge.hris.EmployeeRequestWorkLocation; - /** The employee ID of the employee's manager. */ - manager?: Merge.hris.EmployeeRequestManager; - /** The employee's team. */ - team?: Merge.hris.EmployeeRequestTeam; - /** The employee's pay group */ - payGroup?: Merge.hris.EmployeeRequestPayGroup; - /** The employee's social security number. */ - ssn?: string; - /** - * The employee's gender. - * - * * `MALE` - MALE - * * `FEMALE` - FEMALE - * * `NON-BINARY` - NON-BINARY - * * `OTHER` - OTHER - * * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE - */ - gender?: Merge.hris.EmployeeRequestGender; - /** - * The employee's ethnicity. - * - * * `AMERICAN_INDIAN_OR_ALASKA_NATIVE` - AMERICAN_INDIAN_OR_ALASKA_NATIVE - * * `ASIAN_OR_INDIAN_SUBCONTINENT` - ASIAN_OR_INDIAN_SUBCONTINENT - * * `BLACK_OR_AFRICAN_AMERICAN` - BLACK_OR_AFRICAN_AMERICAN - * * `HISPANIC_OR_LATINO` - HISPANIC_OR_LATINO - * * `NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER` - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER - * * `TWO_OR_MORE_RACES` - TWO_OR_MORE_RACES - * * `WHITE` - WHITE - * * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE - */ - ethnicity?: Merge.hris.EmployeeRequestEthnicity; - /** - * The employee's filing status as related to marital status. - * - * * `SINGLE` - SINGLE - * * `MARRIED_FILING_JOINTLY` - MARRIED_FILING_JOINTLY - * * `MARRIED_FILING_SEPARATELY` - MARRIED_FILING_SEPARATELY - * * `HEAD_OF_HOUSEHOLD` - HEAD_OF_HOUSEHOLD - * * `QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD` - QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD - */ - maritalStatus?: Merge.hris.EmployeeRequestMaritalStatus; - /** The employee's date of birth. */ - dateOfBirth?: Date; - /** The date that the employee was hired, usually the day that an offer letter is signed. If an employee has multiple hire dates from previous employments, this represents the most recent hire date. Note: If you're looking for the employee's start date, refer to the start_date field. */ - hireDate?: Date; - /** The date that the employee started working. If an employee was rehired, the most recent start date will be returned. */ - startDate?: Date; - /** - * The employment status of the employee. - * - * * `ACTIVE` - ACTIVE - * * `PENDING` - PENDING - * * `INACTIVE` - INACTIVE - */ - employmentStatus?: Merge.hris.EmployeeRequestEmploymentStatus; - /** The employee's termination date. */ - terminationDate?: Date; - /** The URL of the employee's avatar image. */ - avatar?: string; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/hris/types/EmployeeRequestCompany.ts b/src/api/resources/hris/types/EmployeeRequestCompany.ts deleted file mode 100644 index 56c46b61f..000000000 --- a/src/api/resources/hris/types/EmployeeRequestCompany.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 ID of the employee's company. - */ -export type EmployeeRequestCompany = string | Merge.hris.Company; diff --git a/src/api/resources/hris/types/EmployeeRequestEmploymentStatus.ts b/src/api/resources/hris/types/EmployeeRequestEmploymentStatus.ts deleted file mode 100644 index 706da50d5..000000000 --- a/src/api/resources/hris/types/EmployeeRequestEmploymentStatus.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 employment status of the employee. - * - * * `ACTIVE` - ACTIVE - * * `PENDING` - PENDING - * * `INACTIVE` - INACTIVE - */ -export type EmployeeRequestEmploymentStatus = Merge.hris.EmploymentStatusEnum | string; diff --git a/src/api/resources/hris/types/EmployeeRequestEmploymentsItem.ts b/src/api/resources/hris/types/EmployeeRequestEmploymentsItem.ts deleted file mode 100644 index f275c4846..000000000 --- a/src/api/resources/hris/types/EmployeeRequestEmploymentsItem.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 EmployeeRequestEmploymentsItem = string | Merge.hris.Employment; diff --git a/src/api/resources/hris/types/EmployeeRequestEthnicity.ts b/src/api/resources/hris/types/EmployeeRequestEthnicity.ts deleted file mode 100644 index 0c92754e6..000000000 --- a/src/api/resources/hris/types/EmployeeRequestEthnicity.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The employee's ethnicity. - * - * * `AMERICAN_INDIAN_OR_ALASKA_NATIVE` - AMERICAN_INDIAN_OR_ALASKA_NATIVE - * * `ASIAN_OR_INDIAN_SUBCONTINENT` - ASIAN_OR_INDIAN_SUBCONTINENT - * * `BLACK_OR_AFRICAN_AMERICAN` - BLACK_OR_AFRICAN_AMERICAN - * * `HISPANIC_OR_LATINO` - HISPANIC_OR_LATINO - * * `NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER` - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER - * * `TWO_OR_MORE_RACES` - TWO_OR_MORE_RACES - * * `WHITE` - WHITE - * * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE - */ -export type EmployeeRequestEthnicity = Merge.hris.EthnicityEnum | string; diff --git a/src/api/resources/hris/types/EmployeeRequestGender.ts b/src/api/resources/hris/types/EmployeeRequestGender.ts deleted file mode 100644 index 5c671a81a..000000000 --- a/src/api/resources/hris/types/EmployeeRequestGender.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The employee's gender. - * - * * `MALE` - MALE - * * `FEMALE` - FEMALE - * * `NON-BINARY` - NON-BINARY - * * `OTHER` - OTHER - * * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE - */ -export type EmployeeRequestGender = Merge.hris.GenderEnum | string; diff --git a/src/api/resources/hris/types/EmployeeRequestGroupsItem.ts b/src/api/resources/hris/types/EmployeeRequestGroupsItem.ts deleted file mode 100644 index eab67fa1c..000000000 --- a/src/api/resources/hris/types/EmployeeRequestGroupsItem.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 EmployeeRequestGroupsItem = string | Merge.hris.Group; diff --git a/src/api/resources/hris/types/EmployeeRequestHomeLocation.ts b/src/api/resources/hris/types/EmployeeRequestHomeLocation.ts deleted file mode 100644 index cbb88e416..000000000 --- a/src/api/resources/hris/types/EmployeeRequestHomeLocation.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's home address. - */ -export type EmployeeRequestHomeLocation = string | Merge.hris.Location; diff --git a/src/api/resources/hris/types/EmployeeRequestManager.ts b/src/api/resources/hris/types/EmployeeRequestManager.ts deleted file mode 100644 index ab6b63a8d..000000000 --- a/src/api/resources/hris/types/EmployeeRequestManager.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 ID of the employee's manager. - */ -export type EmployeeRequestManager = string | Merge.hris.Employee; diff --git a/src/api/resources/hris/types/EmployeeRequestMaritalStatus.ts b/src/api/resources/hris/types/EmployeeRequestMaritalStatus.ts deleted file mode 100644 index da2694487..000000000 --- a/src/api/resources/hris/types/EmployeeRequestMaritalStatus.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The employee's filing status as related to marital status. - * - * * `SINGLE` - SINGLE - * * `MARRIED_FILING_JOINTLY` - MARRIED_FILING_JOINTLY - * * `MARRIED_FILING_SEPARATELY` - MARRIED_FILING_SEPARATELY - * * `HEAD_OF_HOUSEHOLD` - HEAD_OF_HOUSEHOLD - * * `QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD` - QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD - */ -export type EmployeeRequestMaritalStatus = Merge.hris.MaritalStatusEnum | string; diff --git a/src/api/resources/hris/types/EmployeeRequestPayGroup.ts b/src/api/resources/hris/types/EmployeeRequestPayGroup.ts deleted file mode 100644 index 27e73397f..000000000 --- a/src/api/resources/hris/types/EmployeeRequestPayGroup.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's pay group - */ -export type EmployeeRequestPayGroup = string | Merge.hris.PayGroup; diff --git a/src/api/resources/hris/types/EmployeeRequestTeam.ts b/src/api/resources/hris/types/EmployeeRequestTeam.ts deleted file mode 100644 index 19f78c0aa..000000000 --- a/src/api/resources/hris/types/EmployeeRequestTeam.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's team. - */ -export type EmployeeRequestTeam = string | Merge.hris.Team; diff --git a/src/api/resources/hris/types/EmployeeRequestWorkLocation.ts b/src/api/resources/hris/types/EmployeeRequestWorkLocation.ts deleted file mode 100644 index 60d204518..000000000 --- a/src/api/resources/hris/types/EmployeeRequestWorkLocation.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's work address. - */ -export type EmployeeRequestWorkLocation = string | Merge.hris.Location; diff --git a/src/api/resources/hris/types/EmployeeResponse.ts b/src/api/resources/hris/types/EmployeeResponse.ts deleted file mode 100644 index 4aa2cc501..000000000 --- a/src/api/resources/hris/types/EmployeeResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface EmployeeResponse { - model: Merge.hris.Employee; - warnings: Merge.hris.WarningValidationProblem[]; - errors: Merge.hris.ErrorValidationProblem[]; - logs?: Merge.hris.DebugModeLog[]; -} diff --git a/src/api/resources/hris/types/EmployeeTeam.ts b/src/api/resources/hris/types/EmployeeTeam.ts deleted file mode 100644 index 96f2072ae..000000000 --- a/src/api/resources/hris/types/EmployeeTeam.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's team. - */ -export type EmployeeTeam = string | Merge.hris.Team; diff --git a/src/api/resources/hris/types/EmployeeWorkLocation.ts b/src/api/resources/hris/types/EmployeeWorkLocation.ts deleted file mode 100644 index a3cc86bed..000000000 --- a/src/api/resources/hris/types/EmployeeWorkLocation.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's work address. - */ -export type EmployeeWorkLocation = string | Merge.hris.Location; diff --git a/src/api/resources/hris/types/EmployerBenefit.ts b/src/api/resources/hris/types/EmployerBenefit.ts deleted file mode 100644 index 264a6b310..000000000 --- a/src/api/resources/hris/types/EmployerBenefit.ts +++ /dev/null @@ -1,41 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The EmployerBenefit Object - * ### Description - * The `Employer Benefit` object is used to represent a benefit plan offered by a company. - * - * ### Usage Example - * Fetch from the `LIST EmployerBenefits` endpoint and filter by `ID` to show all EmployerBenefits. - */ -export interface EmployerBenefit { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** - * The type of benefit plan. - * - * * `MEDICAL` - MEDICAL - * * `HEALTH_SAVINGS` - HEALTH_SAVINGS - * * `INSURANCE` - INSURANCE - * * `RETIREMENT` - RETIREMENT - * * `OTHER` - OTHER - */ - benefitPlanType?: Merge.hris.EmployerBenefitBenefitPlanType; - /** The employer benefit's name - typically the carrier or network name. */ - name?: string; - /** The employer benefit's description. */ - description?: string; - /** The employer benefit's deduction code. */ - deductionCode?: 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/). */ - remoteWasDeleted?: boolean; - fieldMappings?: Record; - remoteData?: Merge.hris.RemoteData[]; -} diff --git a/src/api/resources/hris/types/EmployerBenefitBenefitPlanType.ts b/src/api/resources/hris/types/EmployerBenefitBenefitPlanType.ts deleted file mode 100644 index 985753feb..000000000 --- a/src/api/resources/hris/types/EmployerBenefitBenefitPlanType.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The type of benefit plan. - * - * * `MEDICAL` - MEDICAL - * * `HEALTH_SAVINGS` - HEALTH_SAVINGS - * * `INSURANCE` - INSURANCE - * * `RETIREMENT` - RETIREMENT - * * `OTHER` - OTHER - */ -export type EmployerBenefitBenefitPlanType = Merge.hris.BenefitPlanTypeEnum | string; diff --git a/src/api/resources/hris/types/Employment.ts b/src/api/resources/hris/types/Employment.ts deleted file mode 100644 index b004956e5..000000000 --- a/src/api/resources/hris/types/Employment.ts +++ /dev/null @@ -1,395 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Employment Object - * ### Description - * The `Employment` object is used to represent a job position at a company. - * - * If an integration supports historical tracking of employments, it will be reflected in the data. If not, a new `Employment` object will be created whenever there is a change in job title or pay. The `effective_date` field should be used to order `Employment` objects, with the most recent date corresponding to the latest employment record for an employee. - * - * ### Usage Example - * Fetch from the `LIST Employments` endpoint and filter by `ID` to show all employees. - */ -export interface Employment { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The employee holding this position. */ - employee?: Merge.hris.EmploymentEmployee; - /** The position's title. */ - jobTitle?: string; - /** The position's pay rate. */ - payRate?: number; - /** - * The time period this pay rate encompasses. - * - * * `HOUR` - HOUR - * * `DAY` - DAY - * * `WEEK` - WEEK - * * `EVERY_TWO_WEEKS` - EVERY_TWO_WEEKS - * * `SEMIMONTHLY` - SEMIMONTHLY - * * `MONTH` - MONTH - * * `QUARTER` - QUARTER - * * `EVERY_SIX_MONTHS` - EVERY_SIX_MONTHS - * * `YEAR` - YEAR - */ - payPeriod?: Merge.hris.EmploymentPayPeriod; - /** - * The position's pay frequency. - * - * * `WEEKLY` - WEEKLY - * * `BIWEEKLY` - BIWEEKLY - * * `MONTHLY` - MONTHLY - * * `QUARTERLY` - QUARTERLY - * * `SEMIANNUALLY` - SEMIANNUALLY - * * `ANNUALLY` - ANNUALLY - * * `THIRTEEN-MONTHLY` - THIRTEEN-MONTHLY - * * `PRO_RATA` - PRO_RATA - * * `SEMIMONTHLY` - SEMIMONTHLY - */ - payFrequency?: Merge.hris.EmploymentPayFrequency; - /** - * The position's currency code. - * - * * `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) - */ - payCurrency?: Merge.hris.EmploymentPayCurrency; - /** The employment's pay group */ - payGroup?: Merge.hris.EmploymentPayGroup; - /** - * The position's FLSA status. - * - * * `EXEMPT` - EXEMPT - * * `SALARIED_NONEXEMPT` - SALARIED_NONEXEMPT - * * `NONEXEMPT` - NONEXEMPT - * * `OWNER` - OWNER - */ - flsaStatus?: Merge.hris.EmploymentFlsaStatus; - /** The position's effective date. */ - effectiveDate?: Date; - /** - * The position's type of employment. - * - * * `FULL_TIME` - FULL_TIME - * * `PART_TIME` - PART_TIME - * * `INTERN` - INTERN - * * `CONTRACTOR` - CONTRACTOR - * * `FREELANCE` - FREELANCE - */ - employmentType?: Merge.hris.EmploymentEmploymentType; - /** 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.hris.RemoteData[]; -} diff --git a/src/api/resources/hris/types/EmploymentEmployee.ts b/src/api/resources/hris/types/EmploymentEmployee.ts deleted file mode 100644 index 957eb51fd..000000000 --- a/src/api/resources/hris/types/EmploymentEmployee.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 holding this position. - */ -export type EmploymentEmployee = string | Merge.hris.Employee; diff --git a/src/api/resources/hris/types/EmploymentEmploymentType.ts b/src/api/resources/hris/types/EmploymentEmploymentType.ts deleted file mode 100644 index a060a7764..000000000 --- a/src/api/resources/hris/types/EmploymentEmploymentType.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The position's type of employment. - * - * * `FULL_TIME` - FULL_TIME - * * `PART_TIME` - PART_TIME - * * `INTERN` - INTERN - * * `CONTRACTOR` - CONTRACTOR - * * `FREELANCE` - FREELANCE - */ -export type EmploymentEmploymentType = Merge.hris.EmploymentTypeEnum | string; diff --git a/src/api/resources/hris/types/EmploymentFlsaStatus.ts b/src/api/resources/hris/types/EmploymentFlsaStatus.ts deleted file mode 100644 index 0bebfa0d3..000000000 --- a/src/api/resources/hris/types/EmploymentFlsaStatus.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 position's FLSA status. - * - * * `EXEMPT` - EXEMPT - * * `SALARIED_NONEXEMPT` - SALARIED_NONEXEMPT - * * `NONEXEMPT` - NONEXEMPT - * * `OWNER` - OWNER - */ -export type EmploymentFlsaStatus = Merge.hris.FlsaStatusEnum | string; diff --git a/src/api/resources/hris/types/EmploymentPayCurrency.ts b/src/api/resources/hris/types/EmploymentPayCurrency.ts deleted file mode 100644 index af806bf42..000000000 --- a/src/api/resources/hris/types/EmploymentPayCurrency.ts +++ /dev/null @@ -1,315 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The position's currency code. - * - * * `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 EmploymentPayCurrency = Merge.hris.PayCurrencyEnum | string; diff --git a/src/api/resources/hris/types/EmploymentPayFrequency.ts b/src/api/resources/hris/types/EmploymentPayFrequency.ts deleted file mode 100644 index 832132b9b..000000000 --- a/src/api/resources/hris/types/EmploymentPayFrequency.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The position's pay frequency. - * - * * `WEEKLY` - WEEKLY - * * `BIWEEKLY` - BIWEEKLY - * * `MONTHLY` - MONTHLY - * * `QUARTERLY` - QUARTERLY - * * `SEMIANNUALLY` - SEMIANNUALLY - * * `ANNUALLY` - ANNUALLY - * * `THIRTEEN-MONTHLY` - THIRTEEN-MONTHLY - * * `PRO_RATA` - PRO_RATA - * * `SEMIMONTHLY` - SEMIMONTHLY - */ -export type EmploymentPayFrequency = Merge.hris.PayFrequencyEnum | string; diff --git a/src/api/resources/hris/types/EmploymentPayGroup.ts b/src/api/resources/hris/types/EmploymentPayGroup.ts deleted file mode 100644 index 673848a4f..000000000 --- a/src/api/resources/hris/types/EmploymentPayGroup.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 employment's pay group - */ -export type EmploymentPayGroup = string | Merge.hris.PayGroup; diff --git a/src/api/resources/hris/types/EmploymentPayPeriod.ts b/src/api/resources/hris/types/EmploymentPayPeriod.ts deleted file mode 100644 index 4f9cdd71c..000000000 --- a/src/api/resources/hris/types/EmploymentPayPeriod.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The time period this pay rate encompasses. - * - * * `HOUR` - HOUR - * * `DAY` - DAY - * * `WEEK` - WEEK - * * `EVERY_TWO_WEEKS` - EVERY_TWO_WEEKS - * * `SEMIMONTHLY` - SEMIMONTHLY - * * `MONTH` - MONTH - * * `QUARTER` - QUARTER - * * `EVERY_SIX_MONTHS` - EVERY_SIX_MONTHS - * * `YEAR` - YEAR - */ -export type EmploymentPayPeriod = Merge.hris.PayPeriodEnum | string; diff --git a/src/api/resources/hris/types/EmploymentStatusEnum.ts b/src/api/resources/hris/types/EmploymentStatusEnum.ts deleted file mode 100644 index 576b8ef85..000000000 --- a/src/api/resources/hris/types/EmploymentStatusEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `ACTIVE` - ACTIVE - * * `PENDING` - PENDING - * * `INACTIVE` - INACTIVE - */ -export const EmploymentStatusEnum = { - Active: "ACTIVE", - Pending: "PENDING", - Inactive: "INACTIVE", -} as const; -export type EmploymentStatusEnum = (typeof EmploymentStatusEnum)[keyof typeof EmploymentStatusEnum]; diff --git a/src/api/resources/hris/types/EmploymentTypeEnum.ts b/src/api/resources/hris/types/EmploymentTypeEnum.ts deleted file mode 100644 index 6e0636039..000000000 --- a/src/api/resources/hris/types/EmploymentTypeEnum.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `FULL_TIME` - FULL_TIME - * * `PART_TIME` - PART_TIME - * * `INTERN` - INTERN - * * `CONTRACTOR` - CONTRACTOR - * * `FREELANCE` - FREELANCE - */ -export const EmploymentTypeEnum = { - FullTime: "FULL_TIME", - PartTime: "PART_TIME", - Intern: "INTERN", - Contractor: "CONTRACTOR", - Freelance: "FREELANCE", -} as const; -export type EmploymentTypeEnum = (typeof EmploymentTypeEnum)[keyof typeof EmploymentTypeEnum]; diff --git a/src/api/resources/hris/types/EnabledActionsEnum.ts b/src/api/resources/hris/types/EnabledActionsEnum.ts deleted file mode 100644 index f6ce6a343..000000000 --- a/src/api/resources/hris/types/EnabledActionsEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `READ` - READ - * * `WRITE` - WRITE - */ -export const EnabledActionsEnum = { - Read: "READ", - Write: "WRITE", -} as const; -export type EnabledActionsEnum = (typeof EnabledActionsEnum)[keyof typeof EnabledActionsEnum]; diff --git a/src/api/resources/hris/types/EncodingEnum.ts b/src/api/resources/hris/types/EncodingEnum.ts deleted file mode 100644 index 538e90395..000000000 --- a/src/api/resources/hris/types/EncodingEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `RAW` - RAW - * * `BASE64` - BASE64 - * * `GZIP_BASE64` - GZIP_BASE64 - */ -export const EncodingEnum = { - Raw: "RAW", - Base64: "BASE64", - GzipBase64: "GZIP_BASE64", -} as const; -export type EncodingEnum = (typeof EncodingEnum)[keyof typeof EncodingEnum]; diff --git a/src/api/resources/hris/types/ErrorValidationProblem.ts b/src/api/resources/hris/types/ErrorValidationProblem.ts deleted file mode 100644 index c33938108..000000000 --- a/src/api/resources/hris/types/ErrorValidationProblem.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface ErrorValidationProblem { - source?: Merge.hris.ValidationProblemSource; - title: string; - detail: string; - problemType: string; -} diff --git a/src/api/resources/hris/types/EthnicityEnum.ts b/src/api/resources/hris/types/EthnicityEnum.ts deleted file mode 100644 index 4021b40a9..000000000 --- a/src/api/resources/hris/types/EthnicityEnum.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `AMERICAN_INDIAN_OR_ALASKA_NATIVE` - AMERICAN_INDIAN_OR_ALASKA_NATIVE - * * `ASIAN_OR_INDIAN_SUBCONTINENT` - ASIAN_OR_INDIAN_SUBCONTINENT - * * `BLACK_OR_AFRICAN_AMERICAN` - BLACK_OR_AFRICAN_AMERICAN - * * `HISPANIC_OR_LATINO` - HISPANIC_OR_LATINO - * * `NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER` - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER - * * `TWO_OR_MORE_RACES` - TWO_OR_MORE_RACES - * * `WHITE` - WHITE - * * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE - */ -export const EthnicityEnum = { - AmericanIndianOrAlaskaNative: "AMERICAN_INDIAN_OR_ALASKA_NATIVE", - AsianOrIndianSubcontinent: "ASIAN_OR_INDIAN_SUBCONTINENT", - BlackOrAfricanAmerican: "BLACK_OR_AFRICAN_AMERICAN", - HispanicOrLatino: "HISPANIC_OR_LATINO", - NativeHawaiianOrOtherPacificIslander: "NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER", - TwoOrMoreRaces: "TWO_OR_MORE_RACES", - White: "WHITE", - PreferNotToDisclose: "PREFER_NOT_TO_DISCLOSE", -} as const; -export type EthnicityEnum = (typeof EthnicityEnum)[keyof typeof EthnicityEnum]; diff --git a/src/api/resources/hris/types/EventTypeEnum.ts b/src/api/resources/hris/types/EventTypeEnum.ts deleted file mode 100644 index 4e8aee7f7..000000000 --- a/src/api/resources/hris/types/EventTypeEnum.ts +++ /dev/null @@ -1,93 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * * `INVITED_USER` - INVITED_USER - * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * * `CREATED_DESTINATION` - CREATED_DESTINATION - * * `DELETED_DESTINATION` - DELETED_DESTINATION - * * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * * `CHANGED_SCOPES` - CHANGED_SCOPES - * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * * `RESET_PASSWORD` - RESET_PASSWORD - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * * `MUTED_ISSUE` - MUTED_ISSUE - * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - */ -export const EventTypeEnum = { - CreatedRemoteProductionApiKey: "CREATED_REMOTE_PRODUCTION_API_KEY", - DeletedRemoteProductionApiKey: "DELETED_REMOTE_PRODUCTION_API_KEY", - CreatedTestApiKey: "CREATED_TEST_API_KEY", - DeletedTestApiKey: "DELETED_TEST_API_KEY", - RegeneratedProductionApiKey: "REGENERATED_PRODUCTION_API_KEY", - RegeneratedWebhookSignature: "REGENERATED_WEBHOOK_SIGNATURE", - InvitedUser: "INVITED_USER", - TwoFactorAuthEnabled: "TWO_FACTOR_AUTH_ENABLED", - TwoFactorAuthDisabled: "TWO_FACTOR_AUTH_DISABLED", - DeletedLinkedAccount: "DELETED_LINKED_ACCOUNT", - DeletedAllCommonModelsForLinkedAccount: "DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT", - CreatedDestination: "CREATED_DESTINATION", - DeletedDestination: "DELETED_DESTINATION", - ChangedDestination: "CHANGED_DESTINATION", - ChangedScopes: "CHANGED_SCOPES", - ChangedPersonalInformation: "CHANGED_PERSONAL_INFORMATION", - ChangedOrganizationSettings: "CHANGED_ORGANIZATION_SETTINGS", - EnabledIntegration: "ENABLED_INTEGRATION", - DisabledIntegration: "DISABLED_INTEGRATION", - EnabledCategory: "ENABLED_CATEGORY", - DisabledCategory: "DISABLED_CATEGORY", - ChangedPassword: "CHANGED_PASSWORD", - ResetPassword: "RESET_PASSWORD", - EnabledRedactUnmappedDataForOrganization: "ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION", - EnabledRedactUnmappedDataForLinkedAccount: "ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT", - DisabledRedactUnmappedDataForOrganization: "DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION", - DisabledRedactUnmappedDataForLinkedAccount: "DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT", - CreatedIntegrationWideFieldMapping: "CREATED_INTEGRATION_WIDE_FIELD_MAPPING", - CreatedLinkedAccountFieldMapping: "CREATED_LINKED_ACCOUNT_FIELD_MAPPING", - ChangedIntegrationWideFieldMapping: "CHANGED_INTEGRATION_WIDE_FIELD_MAPPING", - ChangedLinkedAccountFieldMapping: "CHANGED_LINKED_ACCOUNT_FIELD_MAPPING", - DeletedIntegrationWideFieldMapping: "DELETED_INTEGRATION_WIDE_FIELD_MAPPING", - DeletedLinkedAccountFieldMapping: "DELETED_LINKED_ACCOUNT_FIELD_MAPPING", - CreatedLinkedAccountCommonModelOverride: "CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE", - ChangedLinkedAccountCommonModelOverride: "CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE", - DeletedLinkedAccountCommonModelOverride: "DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE", - ForcedLinkedAccountResync: "FORCED_LINKED_ACCOUNT_RESYNC", - MutedIssue: "MUTED_ISSUE", - GeneratedMagicLink: "GENERATED_MAGIC_LINK", - EnabledMergeWebhook: "ENABLED_MERGE_WEBHOOK", - DisabledMergeWebhook: "DISABLED_MERGE_WEBHOOK", - MergeWebhookTargetChanged: "MERGE_WEBHOOK_TARGET_CHANGED", - EndUserCredentialsAccessed: "END_USER_CREDENTIALS_ACCESSED", -} as const; -export type EventTypeEnum = (typeof EventTypeEnum)[keyof typeof EventTypeEnum]; diff --git a/src/api/resources/hris/types/ExternalTargetFieldApi.ts b/src/api/resources/hris/types/ExternalTargetFieldApi.ts deleted file mode 100644 index 7823d0137..000000000 --- a/src/api/resources/hris/types/ExternalTargetFieldApi.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface ExternalTargetFieldApi { - name?: string; - description?: string; - isMapped?: string; -} diff --git a/src/api/resources/hris/types/ExternalTargetFieldApiResponse.ts b/src/api/resources/hris/types/ExternalTargetFieldApiResponse.ts deleted file mode 100644 index 72bb9365e..000000000 --- a/src/api/resources/hris/types/ExternalTargetFieldApiResponse.ts +++ /dev/null @@ -1,22 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface ExternalTargetFieldApiResponse { - benefit?: Merge.hris.ExternalTargetFieldApi[]; - employerBenefit?: Merge.hris.ExternalTargetFieldApi[]; - company?: Merge.hris.ExternalTargetFieldApi[]; - employeePayrollRun?: Merge.hris.ExternalTargetFieldApi[]; - employee?: Merge.hris.ExternalTargetFieldApi[]; - employment?: Merge.hris.ExternalTargetFieldApi[]; - location?: Merge.hris.ExternalTargetFieldApi[]; - payrollRun?: Merge.hris.ExternalTargetFieldApi[]; - team?: Merge.hris.ExternalTargetFieldApi[]; - timeOff?: Merge.hris.ExternalTargetFieldApi[]; - timeOffBalance?: Merge.hris.ExternalTargetFieldApi[]; - bankInfo?: Merge.hris.ExternalTargetFieldApi[]; - payGroup?: Merge.hris.ExternalTargetFieldApi[]; - group?: Merge.hris.ExternalTargetFieldApi[]; - dependent?: Merge.hris.ExternalTargetFieldApi[]; - timesheetEntry?: Merge.hris.ExternalTargetFieldApi[]; -} diff --git a/src/api/resources/hris/types/FieldMappingApiInstance.ts b/src/api/resources/hris/types/FieldMappingApiInstance.ts deleted file mode 100644 index b04a51a1c..000000000 --- a/src/api/resources/hris/types/FieldMappingApiInstance.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface FieldMappingApiInstance { - id?: string; - isIntegrationWide?: boolean; - targetField?: Merge.hris.FieldMappingApiInstanceTargetField; - remoteField?: Merge.hris.FieldMappingApiInstanceRemoteField; - jmesPath?: string; -} diff --git a/src/api/resources/hris/types/FieldMappingApiInstanceRemoteField.ts b/src/api/resources/hris/types/FieldMappingApiInstanceRemoteField.ts deleted file mode 100644 index 22d654f76..000000000 --- a/src/api/resources/hris/types/FieldMappingApiInstanceRemoteField.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface FieldMappingApiInstanceRemoteField { - remoteKeyName?: string; - schema?: Record; - remoteEndpointInfo: Merge.hris.FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo; -} diff --git a/src/api/resources/hris/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts b/src/api/resources/hris/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts deleted file mode 100644 index 1f6e6cb3c..000000000 --- a/src/api/resources/hris/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo { - method?: string; - urlPath?: string; - fieldTraversalPath?: string[]; -} diff --git a/src/api/resources/hris/types/FieldMappingApiInstanceResponse.ts b/src/api/resources/hris/types/FieldMappingApiInstanceResponse.ts deleted file mode 100644 index 697dfd26d..000000000 --- a/src/api/resources/hris/types/FieldMappingApiInstanceResponse.ts +++ /dev/null @@ -1,22 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface FieldMappingApiInstanceResponse { - benefit?: Merge.hris.FieldMappingApiInstance[]; - employerBenefit?: Merge.hris.FieldMappingApiInstance[]; - company?: Merge.hris.FieldMappingApiInstance[]; - employeePayrollRun?: Merge.hris.FieldMappingApiInstance[]; - employee?: Merge.hris.FieldMappingApiInstance[]; - employment?: Merge.hris.FieldMappingApiInstance[]; - location?: Merge.hris.FieldMappingApiInstance[]; - payrollRun?: Merge.hris.FieldMappingApiInstance[]; - team?: Merge.hris.FieldMappingApiInstance[]; - timeOff?: Merge.hris.FieldMappingApiInstance[]; - timeOffBalance?: Merge.hris.FieldMappingApiInstance[]; - bankInfo?: Merge.hris.FieldMappingApiInstance[]; - payGroup?: Merge.hris.FieldMappingApiInstance[]; - group?: Merge.hris.FieldMappingApiInstance[]; - dependent?: Merge.hris.FieldMappingApiInstance[]; - timesheetEntry?: Merge.hris.FieldMappingApiInstance[]; -} diff --git a/src/api/resources/hris/types/FieldMappingApiInstanceTargetField.ts b/src/api/resources/hris/types/FieldMappingApiInstanceTargetField.ts deleted file mode 100644 index da6fd1317..000000000 --- a/src/api/resources/hris/types/FieldMappingApiInstanceTargetField.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface FieldMappingApiInstanceTargetField { - name: string; - description: string; - isOrganizationWide: boolean; -} diff --git a/src/api/resources/hris/types/FieldMappingInstanceResponse.ts b/src/api/resources/hris/types/FieldMappingInstanceResponse.ts deleted file mode 100644 index 51aa43f80..000000000 --- a/src/api/resources/hris/types/FieldMappingInstanceResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface FieldMappingInstanceResponse { - model: Merge.hris.FieldMappingApiInstance; - warnings: Merge.hris.WarningValidationProblem[]; - errors: Merge.hris.ErrorValidationProblem[]; - logs?: Merge.hris.DebugModeLog[]; -} diff --git a/src/api/resources/hris/types/FieldPermissionDeserializer.ts b/src/api/resources/hris/types/FieldPermissionDeserializer.ts deleted file mode 100644 index 62ec4f2de..000000000 --- a/src/api/resources/hris/types/FieldPermissionDeserializer.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface FieldPermissionDeserializer { - enabledFields?: unknown[]; - disabledFields?: unknown[]; -} diff --git a/src/api/resources/hris/types/FieldPermissionDeserializerRequest.ts b/src/api/resources/hris/types/FieldPermissionDeserializerRequest.ts deleted file mode 100644 index 768c90546..000000000 --- a/src/api/resources/hris/types/FieldPermissionDeserializerRequest.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface FieldPermissionDeserializerRequest { - enabledFields?: unknown[]; - disabledFields?: unknown[]; -} diff --git a/src/api/resources/hris/types/FlsaStatusEnum.ts b/src/api/resources/hris/types/FlsaStatusEnum.ts deleted file mode 100644 index d9b3aa60c..000000000 --- a/src/api/resources/hris/types/FlsaStatusEnum.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `EXEMPT` - EXEMPT - * * `SALARIED_NONEXEMPT` - SALARIED_NONEXEMPT - * * `NONEXEMPT` - NONEXEMPT - * * `OWNER` - OWNER - */ -export const FlsaStatusEnum = { - Exempt: "EXEMPT", - SalariedNonexempt: "SALARIED_NONEXEMPT", - Nonexempt: "NONEXEMPT", - Owner: "OWNER", -} as const; -export type FlsaStatusEnum = (typeof FlsaStatusEnum)[keyof typeof FlsaStatusEnum]; diff --git a/src/api/resources/hris/types/GenderEnum.ts b/src/api/resources/hris/types/GenderEnum.ts deleted file mode 100644 index 058591a04..000000000 --- a/src/api/resources/hris/types/GenderEnum.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `MALE` - MALE - * * `FEMALE` - FEMALE - * * `NON-BINARY` - NON-BINARY - * * `OTHER` - OTHER - * * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE - */ -export const GenderEnum = { - Male: "MALE", - Female: "FEMALE", - NonBinary: "NON-BINARY", - Other: "OTHER", - PreferNotToDisclose: "PREFER_NOT_TO_DISCLOSE", -} as const; -export type GenderEnum = (typeof GenderEnum)[keyof typeof GenderEnum]; diff --git a/src/api/resources/hris/types/Group.ts b/src/api/resources/hris/types/Group.ts deleted file mode 100644 index f2c361fe5..000000000 --- a/src/api/resources/hris/types/Group.ts +++ /dev/null @@ -1,41 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Group Object - * ### Description - * The `Group` object is used to represent any subset of employees across, for example, `DEPARTMENT` or `TEAM`. Employees can be in multiple Groups. - * - * ### Usage Example - * Fetch from the `LIST Employee` endpoint and expand groups to view an employee's groups. - */ -export interface Group { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The parent group for this group. */ - parentGroup?: string; - /** The group name. */ - name?: string; - /** - * The Group type returned directly from the third-party. - * - * * `TEAM` - TEAM - * * `DEPARTMENT` - DEPARTMENT - * * `COST_CENTER` - COST_CENTER - * * `BUSINESS_UNIT` - BUSINESS_UNIT - * * `GROUP` - GROUP - */ - type?: Merge.hris.GroupType; - /** Indicates whether the Group refers to a team in the third party platform. Note that this is an opinionated view based on how Merge observes most organizations representing teams in each third party platform. If your customer uses a platform different from most, there is a chance this will not be correct. */ - isCommonlyUsedAsTeam?: boolean; - /** 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.hris.RemoteData[]; -} diff --git a/src/api/resources/hris/types/GroupType.ts b/src/api/resources/hris/types/GroupType.ts deleted file mode 100644 index 6fa3ad399..000000000 --- a/src/api/resources/hris/types/GroupType.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The Group type returned directly from the third-party. - * - * * `TEAM` - TEAM - * * `DEPARTMENT` - DEPARTMENT - * * `COST_CENTER` - COST_CENTER - * * `BUSINESS_UNIT` - BUSINESS_UNIT - * * `GROUP` - GROUP - */ -export type GroupType = Merge.hris.GroupTypeEnum | string; diff --git a/src/api/resources/hris/types/GroupTypeEnum.ts b/src/api/resources/hris/types/GroupTypeEnum.ts deleted file mode 100644 index c7c74b2db..000000000 --- a/src/api/resources/hris/types/GroupTypeEnum.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `TEAM` - TEAM - * * `DEPARTMENT` - DEPARTMENT - * * `COST_CENTER` - COST_CENTER - * * `BUSINESS_UNIT` - BUSINESS_UNIT - * * `GROUP` - GROUP - */ -export const GroupTypeEnum = { - Team: "TEAM", - Department: "DEPARTMENT", - CostCenter: "COST_CENTER", - BusinessUnit: "BUSINESS_UNIT", - Group: "GROUP", -} as const; -export type GroupTypeEnum = (typeof GroupTypeEnum)[keyof typeof GroupTypeEnum]; diff --git a/src/api/resources/hris/types/IndividualCommonModelScopeDeserializer.ts b/src/api/resources/hris/types/IndividualCommonModelScopeDeserializer.ts deleted file mode 100644 index ee5a142be..000000000 --- a/src/api/resources/hris/types/IndividualCommonModelScopeDeserializer.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface IndividualCommonModelScopeDeserializer { - modelName: string; - modelPermissions?: Record; - fieldPermissions?: Merge.hris.FieldPermissionDeserializer; -} diff --git a/src/api/resources/hris/types/IndividualCommonModelScopeDeserializerRequest.ts b/src/api/resources/hris/types/IndividualCommonModelScopeDeserializerRequest.ts deleted file mode 100644 index 8b16247c9..000000000 --- a/src/api/resources/hris/types/IndividualCommonModelScopeDeserializerRequest.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface IndividualCommonModelScopeDeserializerRequest { - modelName: string; - modelPermissions?: Record; - fieldPermissions?: Merge.hris.FieldPermissionDeserializerRequest; -} diff --git a/src/api/resources/hris/types/Issue.ts b/src/api/resources/hris/types/Issue.ts deleted file mode 100644 index 309329c44..000000000 --- a/src/api/resources/hris/types/Issue.ts +++ /dev/null @@ -1,20 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface Issue { - id?: string; - /** - * Status of the issue. Options: ('ONGOING', 'RESOLVED') - * - * * `ONGOING` - ONGOING - * * `RESOLVED` - RESOLVED - */ - status?: Merge.hris.IssueStatus; - errorDescription: string; - endUser?: Record; - firstIncidentTime?: Date; - lastIncidentTime?: Date; - isMuted?: boolean; - errorDetails?: string[]; -} diff --git a/src/api/resources/hris/types/IssueStatus.ts b/src/api/resources/hris/types/IssueStatus.ts deleted file mode 100644 index 712e8414e..000000000 --- a/src/api/resources/hris/types/IssueStatus.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * Status of the issue. Options: ('ONGOING', 'RESOLVED') - * - * * `ONGOING` - ONGOING - * * `RESOLVED` - RESOLVED - */ -export type IssueStatus = Merge.hris.IssueStatusEnum | string; diff --git a/src/api/resources/hris/types/IssueStatusEnum.ts b/src/api/resources/hris/types/IssueStatusEnum.ts deleted file mode 100644 index 03b0cd555..000000000 --- a/src/api/resources/hris/types/IssueStatusEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `ONGOING` - ONGOING - * * `RESOLVED` - RESOLVED - */ -export const IssueStatusEnum = { - Ongoing: "ONGOING", - Resolved: "RESOLVED", -} as const; -export type IssueStatusEnum = (typeof IssueStatusEnum)[keyof typeof IssueStatusEnum]; diff --git a/src/api/resources/hris/types/LanguageEnum.ts b/src/api/resources/hris/types/LanguageEnum.ts deleted file mode 100644 index 603fc6498..000000000 --- a/src/api/resources/hris/types/LanguageEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `en` - en - * * `de` - de - */ -export const LanguageEnum = { - En: "en", - De: "de", -} as const; -export type LanguageEnum = (typeof LanguageEnum)[keyof typeof LanguageEnum]; diff --git a/src/api/resources/hris/types/LastSyncResultEnum.ts b/src/api/resources/hris/types/LastSyncResultEnum.ts deleted file mode 100644 index 3baf8309b..000000000 --- a/src/api/resources/hris/types/LastSyncResultEnum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `SYNCING` - SYNCING - * * `DONE` - DONE - * * `FAILED` - FAILED - * * `DISABLED` - DISABLED - * * `PAUSED` - PAUSED - * * `PARTIALLY_SYNCED` - PARTIALLY_SYNCED - */ -export const LastSyncResultEnum = { - Syncing: "SYNCING", - Done: "DONE", - Failed: "FAILED", - Disabled: "DISABLED", - Paused: "PAUSED", - PartiallySynced: "PARTIALLY_SYNCED", -} as const; -export type LastSyncResultEnum = (typeof LastSyncResultEnum)[keyof typeof LastSyncResultEnum]; diff --git a/src/api/resources/hris/types/LinkToken.ts b/src/api/resources/hris/types/LinkToken.ts deleted file mode 100644 index 09879f9b1..000000000 --- a/src/api/resources/hris/types/LinkToken.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface LinkToken { - linkToken: string; - integrationName?: string; - magicLinkUrl?: string; -} diff --git a/src/api/resources/hris/types/LinkedAccountStatus.ts b/src/api/resources/hris/types/LinkedAccountStatus.ts deleted file mode 100644 index fa55c41fb..000000000 --- a/src/api/resources/hris/types/LinkedAccountStatus.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface LinkedAccountStatus { - linkedAccountStatus: string; - canMakeRequest: boolean; -} diff --git a/src/api/resources/hris/types/Location.ts b/src/api/resources/hris/types/Location.ts deleted file mode 100644 index a3dfd0f71..000000000 --- a/src/api/resources/hris/types/Location.ts +++ /dev/null @@ -1,300 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Location Object - * ### Description - * The `Location` object is used to represent an address that can be associated with an employee. - * - * ### Usage Example - * Fetch from the `LIST Locations` endpoint and filter by `ID` to show all office locations. - */ -export interface Location { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The location's name. */ - name?: string; - /** The location's phone number. */ - phoneNumber?: string; - /** Line 1 of the location's street address. */ - street1?: string; - /** Line 2 of the location's street address. */ - street2?: string; - /** The location's city. */ - city?: string; - /** The location's state. Represents a region if outside of the US. */ - state?: string; - /** The location's zip code or postal code. */ - zipCode?: string; - /** - * The location's country. - * - * * `AF` - Afghanistan - * * `AX` - Åland Islands - * * `AL` - Albania - * * `DZ` - Algeria - * * `AS` - American Samoa - * * `AD` - Andorra - * * `AO` - Angola - * * `AI` - Anguilla - * * `AQ` - Antarctica - * * `AG` - Antigua and Barbuda - * * `AR` - Argentina - * * `AM` - Armenia - * * `AW` - Aruba - * * `AU` - Australia - * * `AT` - Austria - * * `AZ` - Azerbaijan - * * `BS` - Bahamas - * * `BH` - Bahrain - * * `BD` - Bangladesh - * * `BB` - Barbados - * * `BY` - Belarus - * * `BE` - Belgium - * * `BZ` - Belize - * * `BJ` - Benin - * * `BM` - Bermuda - * * `BT` - Bhutan - * * `BO` - Bolivia - * * `BQ` - Bonaire, Sint Eustatius and Saba - * * `BA` - Bosnia and Herzegovina - * * `BW` - Botswana - * * `BV` - Bouvet Island - * * `BR` - Brazil - * * `IO` - British Indian Ocean Territory - * * `BN` - Brunei - * * `BG` - Bulgaria - * * `BF` - Burkina Faso - * * `BI` - Burundi - * * `CV` - Cabo Verde - * * `KH` - Cambodia - * * `CM` - Cameroon - * * `CA` - Canada - * * `KY` - Cayman Islands - * * `CF` - Central African Republic - * * `TD` - Chad - * * `CL` - Chile - * * `CN` - China - * * `CX` - Christmas Island - * * `CC` - Cocos (Keeling) Islands - * * `CO` - Colombia - * * `KM` - Comoros - * * `CG` - Congo - * * `CD` - Congo (the Democratic Republic of the) - * * `CK` - Cook Islands - * * `CR` - Costa Rica - * * `CI` - Côte d'Ivoire - * * `HR` - Croatia - * * `CU` - Cuba - * * `CW` - Curaçao - * * `CY` - Cyprus - * * `CZ` - Czechia - * * `DK` - Denmark - * * `DJ` - Djibouti - * * `DM` - Dominica - * * `DO` - Dominican Republic - * * `EC` - Ecuador - * * `EG` - Egypt - * * `SV` - El Salvador - * * `GQ` - Equatorial Guinea - * * `ER` - Eritrea - * * `EE` - Estonia - * * `SZ` - Eswatini - * * `ET` - Ethiopia - * * `FK` - Falkland Islands (Malvinas) - * * `FO` - Faroe Islands - * * `FJ` - Fiji - * * `FI` - Finland - * * `FR` - France - * * `GF` - French Guiana - * * `PF` - French Polynesia - * * `TF` - French Southern Territories - * * `GA` - Gabon - * * `GM` - Gambia - * * `GE` - Georgia - * * `DE` - Germany - * * `GH` - Ghana - * * `GI` - Gibraltar - * * `GR` - Greece - * * `GL` - Greenland - * * `GD` - Grenada - * * `GP` - Guadeloupe - * * `GU` - Guam - * * `GT` - Guatemala - * * `GG` - Guernsey - * * `GN` - Guinea - * * `GW` - Guinea-Bissau - * * `GY` - Guyana - * * `HT` - Haiti - * * `HM` - Heard Island and McDonald Islands - * * `VA` - Holy See - * * `HN` - Honduras - * * `HK` - Hong Kong - * * `HU` - Hungary - * * `IS` - Iceland - * * `IN` - India - * * `ID` - Indonesia - * * `IR` - Iran - * * `IQ` - Iraq - * * `IE` - Ireland - * * `IM` - Isle of Man - * * `IL` - Israel - * * `IT` - Italy - * * `JM` - Jamaica - * * `JP` - Japan - * * `JE` - Jersey - * * `JO` - Jordan - * * `KZ` - Kazakhstan - * * `KE` - Kenya - * * `KI` - Kiribati - * * `KW` - Kuwait - * * `KG` - Kyrgyzstan - * * `LA` - Laos - * * `LV` - Latvia - * * `LB` - Lebanon - * * `LS` - Lesotho - * * `LR` - Liberia - * * `LY` - Libya - * * `LI` - Liechtenstein - * * `LT` - Lithuania - * * `LU` - Luxembourg - * * `MO` - Macao - * * `MG` - Madagascar - * * `MW` - Malawi - * * `MY` - Malaysia - * * `MV` - Maldives - * * `ML` - Mali - * * `MT` - Malta - * * `MH` - Marshall Islands - * * `MQ` - Martinique - * * `MR` - Mauritania - * * `MU` - Mauritius - * * `YT` - Mayotte - * * `MX` - Mexico - * * `FM` - Micronesia (Federated States of) - * * `MD` - Moldova - * * `MC` - Monaco - * * `MN` - Mongolia - * * `ME` - Montenegro - * * `MS` - Montserrat - * * `MA` - Morocco - * * `MZ` - Mozambique - * * `MM` - Myanmar - * * `NA` - Namibia - * * `NR` - Nauru - * * `NP` - Nepal - * * `NL` - Netherlands - * * `NC` - New Caledonia - * * `NZ` - New Zealand - * * `NI` - Nicaragua - * * `NE` - Niger - * * `NG` - Nigeria - * * `NU` - Niue - * * `NF` - Norfolk Island - * * `KP` - North Korea - * * `MK` - North Macedonia - * * `MP` - Northern Mariana Islands - * * `NO` - Norway - * * `OM` - Oman - * * `PK` - Pakistan - * * `PW` - Palau - * * `PS` - Palestine, State of - * * `PA` - Panama - * * `PG` - Papua New Guinea - * * `PY` - Paraguay - * * `PE` - Peru - * * `PH` - Philippines - * * `PN` - Pitcairn - * * `PL` - Poland - * * `PT` - Portugal - * * `PR` - Puerto Rico - * * `QA` - Qatar - * * `RE` - Réunion - * * `RO` - Romania - * * `RU` - Russia - * * `RW` - Rwanda - * * `BL` - Saint Barthélemy - * * `SH` - Saint Helena, Ascension and Tristan da Cunha - * * `KN` - Saint Kitts and Nevis - * * `LC` - Saint Lucia - * * `MF` - Saint Martin (French part) - * * `PM` - Saint Pierre and Miquelon - * * `VC` - Saint Vincent and the Grenadines - * * `WS` - Samoa - * * `SM` - San Marino - * * `ST` - Sao Tome and Principe - * * `SA` - Saudi Arabia - * * `SN` - Senegal - * * `RS` - Serbia - * * `SC` - Seychelles - * * `SL` - Sierra Leone - * * `SG` - Singapore - * * `SX` - Sint Maarten (Dutch part) - * * `SK` - Slovakia - * * `SI` - Slovenia - * * `SB` - Solomon Islands - * * `SO` - Somalia - * * `ZA` - South Africa - * * `GS` - South Georgia and the South Sandwich Islands - * * `KR` - South Korea - * * `SS` - South Sudan - * * `ES` - Spain - * * `LK` - Sri Lanka - * * `SD` - Sudan - * * `SR` - Suriname - * * `SJ` - Svalbard and Jan Mayen - * * `SE` - Sweden - * * `CH` - Switzerland - * * `SY` - Syria - * * `TW` - Taiwan - * * `TJ` - Tajikistan - * * `TZ` - Tanzania - * * `TH` - Thailand - * * `TL` - Timor-Leste - * * `TG` - Togo - * * `TK` - Tokelau - * * `TO` - Tonga - * * `TT` - Trinidad and Tobago - * * `TN` - Tunisia - * * `TR` - Turkey - * * `TM` - Turkmenistan - * * `TC` - Turks and Caicos Islands - * * `TV` - Tuvalu - * * `UG` - Uganda - * * `UA` - Ukraine - * * `AE` - United Arab Emirates - * * `GB` - United Kingdom - * * `UM` - United States Minor Outlying Islands - * * `US` - United States of America - * * `UY` - Uruguay - * * `UZ` - Uzbekistan - * * `VU` - Vanuatu - * * `VE` - Venezuela - * * `VN` - Vietnam - * * `VG` - Virgin Islands (British) - * * `VI` - Virgin Islands (U.S.) - * * `WF` - Wallis and Futuna - * * `EH` - Western Sahara - * * `YE` - Yemen - * * `ZM` - Zambia - * * `ZW` - Zimbabwe - */ - country?: Merge.hris.LocationCountry; - /** - * The location's type. Can be either WORK or HOME - * - * * `HOME` - HOME - * * `WORK` - WORK - */ - locationType?: Merge.hris.LocationLocationType; - /** 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.hris.RemoteData[]; -} diff --git a/src/api/resources/hris/types/LocationCountry.ts b/src/api/resources/hris/types/LocationCountry.ts deleted file mode 100644 index 56600209e..000000000 --- a/src/api/resources/hris/types/LocationCountry.ts +++ /dev/null @@ -1,258 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The location's country. - * - * * `AF` - Afghanistan - * * `AX` - Åland Islands - * * `AL` - Albania - * * `DZ` - Algeria - * * `AS` - American Samoa - * * `AD` - Andorra - * * `AO` - Angola - * * `AI` - Anguilla - * * `AQ` - Antarctica - * * `AG` - Antigua and Barbuda - * * `AR` - Argentina - * * `AM` - Armenia - * * `AW` - Aruba - * * `AU` - Australia - * * `AT` - Austria - * * `AZ` - Azerbaijan - * * `BS` - Bahamas - * * `BH` - Bahrain - * * `BD` - Bangladesh - * * `BB` - Barbados - * * `BY` - Belarus - * * `BE` - Belgium - * * `BZ` - Belize - * * `BJ` - Benin - * * `BM` - Bermuda - * * `BT` - Bhutan - * * `BO` - Bolivia - * * `BQ` - Bonaire, Sint Eustatius and Saba - * * `BA` - Bosnia and Herzegovina - * * `BW` - Botswana - * * `BV` - Bouvet Island - * * `BR` - Brazil - * * `IO` - British Indian Ocean Territory - * * `BN` - Brunei - * * `BG` - Bulgaria - * * `BF` - Burkina Faso - * * `BI` - Burundi - * * `CV` - Cabo Verde - * * `KH` - Cambodia - * * `CM` - Cameroon - * * `CA` - Canada - * * `KY` - Cayman Islands - * * `CF` - Central African Republic - * * `TD` - Chad - * * `CL` - Chile - * * `CN` - China - * * `CX` - Christmas Island - * * `CC` - Cocos (Keeling) Islands - * * `CO` - Colombia - * * `KM` - Comoros - * * `CG` - Congo - * * `CD` - Congo (the Democratic Republic of the) - * * `CK` - Cook Islands - * * `CR` - Costa Rica - * * `CI` - Côte d'Ivoire - * * `HR` - Croatia - * * `CU` - Cuba - * * `CW` - Curaçao - * * `CY` - Cyprus - * * `CZ` - Czechia - * * `DK` - Denmark - * * `DJ` - Djibouti - * * `DM` - Dominica - * * `DO` - Dominican Republic - * * `EC` - Ecuador - * * `EG` - Egypt - * * `SV` - El Salvador - * * `GQ` - Equatorial Guinea - * * `ER` - Eritrea - * * `EE` - Estonia - * * `SZ` - Eswatini - * * `ET` - Ethiopia - * * `FK` - Falkland Islands (Malvinas) - * * `FO` - Faroe Islands - * * `FJ` - Fiji - * * `FI` - Finland - * * `FR` - France - * * `GF` - French Guiana - * * `PF` - French Polynesia - * * `TF` - French Southern Territories - * * `GA` - Gabon - * * `GM` - Gambia - * * `GE` - Georgia - * * `DE` - Germany - * * `GH` - Ghana - * * `GI` - Gibraltar - * * `GR` - Greece - * * `GL` - Greenland - * * `GD` - Grenada - * * `GP` - Guadeloupe - * * `GU` - Guam - * * `GT` - Guatemala - * * `GG` - Guernsey - * * `GN` - Guinea - * * `GW` - Guinea-Bissau - * * `GY` - Guyana - * * `HT` - Haiti - * * `HM` - Heard Island and McDonald Islands - * * `VA` - Holy See - * * `HN` - Honduras - * * `HK` - Hong Kong - * * `HU` - Hungary - * * `IS` - Iceland - * * `IN` - India - * * `ID` - Indonesia - * * `IR` - Iran - * * `IQ` - Iraq - * * `IE` - Ireland - * * `IM` - Isle of Man - * * `IL` - Israel - * * `IT` - Italy - * * `JM` - Jamaica - * * `JP` - Japan - * * `JE` - Jersey - * * `JO` - Jordan - * * `KZ` - Kazakhstan - * * `KE` - Kenya - * * `KI` - Kiribati - * * `KW` - Kuwait - * * `KG` - Kyrgyzstan - * * `LA` - Laos - * * `LV` - Latvia - * * `LB` - Lebanon - * * `LS` - Lesotho - * * `LR` - Liberia - * * `LY` - Libya - * * `LI` - Liechtenstein - * * `LT` - Lithuania - * * `LU` - Luxembourg - * * `MO` - Macao - * * `MG` - Madagascar - * * `MW` - Malawi - * * `MY` - Malaysia - * * `MV` - Maldives - * * `ML` - Mali - * * `MT` - Malta - * * `MH` - Marshall Islands - * * `MQ` - Martinique - * * `MR` - Mauritania - * * `MU` - Mauritius - * * `YT` - Mayotte - * * `MX` - Mexico - * * `FM` - Micronesia (Federated States of) - * * `MD` - Moldova - * * `MC` - Monaco - * * `MN` - Mongolia - * * `ME` - Montenegro - * * `MS` - Montserrat - * * `MA` - Morocco - * * `MZ` - Mozambique - * * `MM` - Myanmar - * * `NA` - Namibia - * * `NR` - Nauru - * * `NP` - Nepal - * * `NL` - Netherlands - * * `NC` - New Caledonia - * * `NZ` - New Zealand - * * `NI` - Nicaragua - * * `NE` - Niger - * * `NG` - Nigeria - * * `NU` - Niue - * * `NF` - Norfolk Island - * * `KP` - North Korea - * * `MK` - North Macedonia - * * `MP` - Northern Mariana Islands - * * `NO` - Norway - * * `OM` - Oman - * * `PK` - Pakistan - * * `PW` - Palau - * * `PS` - Palestine, State of - * * `PA` - Panama - * * `PG` - Papua New Guinea - * * `PY` - Paraguay - * * `PE` - Peru - * * `PH` - Philippines - * * `PN` - Pitcairn - * * `PL` - Poland - * * `PT` - Portugal - * * `PR` - Puerto Rico - * * `QA` - Qatar - * * `RE` - Réunion - * * `RO` - Romania - * * `RU` - Russia - * * `RW` - Rwanda - * * `BL` - Saint Barthélemy - * * `SH` - Saint Helena, Ascension and Tristan da Cunha - * * `KN` - Saint Kitts and Nevis - * * `LC` - Saint Lucia - * * `MF` - Saint Martin (French part) - * * `PM` - Saint Pierre and Miquelon - * * `VC` - Saint Vincent and the Grenadines - * * `WS` - Samoa - * * `SM` - San Marino - * * `ST` - Sao Tome and Principe - * * `SA` - Saudi Arabia - * * `SN` - Senegal - * * `RS` - Serbia - * * `SC` - Seychelles - * * `SL` - Sierra Leone - * * `SG` - Singapore - * * `SX` - Sint Maarten (Dutch part) - * * `SK` - Slovakia - * * `SI` - Slovenia - * * `SB` - Solomon Islands - * * `SO` - Somalia - * * `ZA` - South Africa - * * `GS` - South Georgia and the South Sandwich Islands - * * `KR` - South Korea - * * `SS` - South Sudan - * * `ES` - Spain - * * `LK` - Sri Lanka - * * `SD` - Sudan - * * `SR` - Suriname - * * `SJ` - Svalbard and Jan Mayen - * * `SE` - Sweden - * * `CH` - Switzerland - * * `SY` - Syria - * * `TW` - Taiwan - * * `TJ` - Tajikistan - * * `TZ` - Tanzania - * * `TH` - Thailand - * * `TL` - Timor-Leste - * * `TG` - Togo - * * `TK` - Tokelau - * * `TO` - Tonga - * * `TT` - Trinidad and Tobago - * * `TN` - Tunisia - * * `TR` - Turkey - * * `TM` - Turkmenistan - * * `TC` - Turks and Caicos Islands - * * `TV` - Tuvalu - * * `UG` - Uganda - * * `UA` - Ukraine - * * `AE` - United Arab Emirates - * * `GB` - United Kingdom - * * `UM` - United States Minor Outlying Islands - * * `US` - United States of America - * * `UY` - Uruguay - * * `UZ` - Uzbekistan - * * `VU` - Vanuatu - * * `VE` - Venezuela - * * `VN` - Vietnam - * * `VG` - Virgin Islands (British) - * * `VI` - Virgin Islands (U.S.) - * * `WF` - Wallis and Futuna - * * `EH` - Western Sahara - * * `YE` - Yemen - * * `ZM` - Zambia - * * `ZW` - Zimbabwe - */ -export type LocationCountry = Merge.hris.CountryEnum | string; diff --git a/src/api/resources/hris/types/LocationLocationType.ts b/src/api/resources/hris/types/LocationLocationType.ts deleted file mode 100644 index 8ae3adc97..000000000 --- a/src/api/resources/hris/types/LocationLocationType.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 location's type. Can be either WORK or HOME - * - * * `HOME` - HOME - * * `WORK` - WORK - */ -export type LocationLocationType = Merge.hris.LocationTypeEnum | string; diff --git a/src/api/resources/hris/types/LocationTypeEnum.ts b/src/api/resources/hris/types/LocationTypeEnum.ts deleted file mode 100644 index c9aadea65..000000000 --- a/src/api/resources/hris/types/LocationTypeEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `HOME` - HOME - * * `WORK` - WORK - */ -export const LocationTypeEnum = { - Home: "HOME", - Work: "WORK", -} as const; -export type LocationTypeEnum = (typeof LocationTypeEnum)[keyof typeof LocationTypeEnum]; diff --git a/src/api/resources/hris/types/MaritalStatusEnum.ts b/src/api/resources/hris/types/MaritalStatusEnum.ts deleted file mode 100644 index 887c630c6..000000000 --- a/src/api/resources/hris/types/MaritalStatusEnum.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `SINGLE` - SINGLE - * * `MARRIED_FILING_JOINTLY` - MARRIED_FILING_JOINTLY - * * `MARRIED_FILING_SEPARATELY` - MARRIED_FILING_SEPARATELY - * * `HEAD_OF_HOUSEHOLD` - HEAD_OF_HOUSEHOLD - * * `QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD` - QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD - */ -export const MaritalStatusEnum = { - Single: "SINGLE", - MarriedFilingJointly: "MARRIED_FILING_JOINTLY", - MarriedFilingSeparately: "MARRIED_FILING_SEPARATELY", - HeadOfHousehold: "HEAD_OF_HOUSEHOLD", - QualifyingWidowOrWidowerWithDependentChild: "QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD", -} as const; -export type MaritalStatusEnum = (typeof MaritalStatusEnum)[keyof typeof MaritalStatusEnum]; diff --git a/src/api/resources/hris/types/MetaResponse.ts b/src/api/resources/hris/types/MetaResponse.ts deleted file mode 100644 index 8c6c6005d..000000000 --- a/src/api/resources/hris/types/MetaResponse.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface MetaResponse { - requestSchema: Record; - remoteFieldClasses?: Record; - status?: Merge.hris.LinkedAccountStatus; - hasConditionalParams: boolean; - hasRequiredLinkedAccountParams: boolean; -} diff --git a/src/api/resources/hris/types/MethodEnum.ts b/src/api/resources/hris/types/MethodEnum.ts deleted file mode 100644 index b8fb03bb0..000000000 --- a/src/api/resources/hris/types/MethodEnum.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `GET` - GET - * * `OPTIONS` - OPTIONS - * * `HEAD` - HEAD - * * `POST` - POST - * * `PUT` - PUT - * * `PATCH` - PATCH - * * `DELETE` - DELETE - */ -export const MethodEnum = { - Get: "GET", - Options: "OPTIONS", - Head: "HEAD", - Post: "POST", - Put: "PUT", - Patch: "PATCH", - Delete: "DELETE", -} as const; -export type MethodEnum = (typeof MethodEnum)[keyof typeof MethodEnum]; diff --git a/src/api/resources/hris/types/ModelOperation.ts b/src/api/resources/hris/types/ModelOperation.ts deleted file mode 100644 index 520f668d9..000000000 --- a/src/api/resources/hris/types/ModelOperation.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * # The ModelOperation Object - * ### Description - * The `ModelOperation` object is used to represent the operations that are currently supported for a given model. - * - * ### Usage Example - * View what operations are supported for the `Candidate` endpoint. - */ -export interface ModelOperation { - modelName: string; - availableOperations: string[]; - requiredPostParameters: string[]; - supportedFields: string[]; -} diff --git a/src/api/resources/hris/types/ModelPermissionDeserializer.ts b/src/api/resources/hris/types/ModelPermissionDeserializer.ts deleted file mode 100644 index 58b672e56..000000000 --- a/src/api/resources/hris/types/ModelPermissionDeserializer.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface ModelPermissionDeserializer { - isEnabled?: boolean; -} diff --git a/src/api/resources/hris/types/ModelPermissionDeserializerRequest.ts b/src/api/resources/hris/types/ModelPermissionDeserializerRequest.ts deleted file mode 100644 index 1e140a95a..000000000 --- a/src/api/resources/hris/types/ModelPermissionDeserializerRequest.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface ModelPermissionDeserializerRequest { - isEnabled?: boolean; -} diff --git a/src/api/resources/hris/types/MultipartFormFieldRequest.ts b/src/api/resources/hris/types/MultipartFormFieldRequest.ts deleted file mode 100644 index 6e4dc5330..000000000 --- a/src/api/resources/hris/types/MultipartFormFieldRequest.ts +++ /dev/null @@ -1,30 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The MultipartFormField Object - * ### Description - * The `MultipartFormField` object is used to represent fields in an HTTP request using `multipart/form-data`. - * - * ### Usage Example - * Create a `MultipartFormField` to define a multipart form entry. - */ -export interface MultipartFormFieldRequest { - /** The name of the form field */ - name: string; - /** The data for the form field. */ - data: string; - /** - * The encoding of the value of `data`. Defaults to `RAW` if not defined. - * - * * `RAW` - RAW - * * `BASE64` - BASE64 - * * `GZIP_BASE64` - GZIP_BASE64 - */ - encoding?: Merge.hris.MultipartFormFieldRequestEncoding; - /** 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. */ - contentType?: string; -} 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/PaginatedAccountDetailsAndActionsList.ts b/src/api/resources/hris/types/PaginatedAccountDetailsAndActionsList.ts deleted file mode 100644 index 0970bd447..000000000 --- a/src/api/resources/hris/types/PaginatedAccountDetailsAndActionsList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedAccountDetailsAndActionsList { - next?: string; - previous?: string; - results?: Merge.hris.AccountDetailsAndActions[]; -} diff --git a/src/api/resources/hris/types/PaginatedAuditLogEventList.ts b/src/api/resources/hris/types/PaginatedAuditLogEventList.ts deleted file mode 100644 index b489a62ae..000000000 --- a/src/api/resources/hris/types/PaginatedAuditLogEventList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedAuditLogEventList { - next?: string; - previous?: string; - results?: Merge.hris.AuditLogEvent[]; -} diff --git a/src/api/resources/hris/types/PaginatedBankInfoList.ts b/src/api/resources/hris/types/PaginatedBankInfoList.ts deleted file mode 100644 index 52458350c..000000000 --- a/src/api/resources/hris/types/PaginatedBankInfoList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedBankInfoList { - next?: string; - previous?: string; - results?: Merge.hris.BankInfo[]; -} diff --git a/src/api/resources/hris/types/PaginatedBenefitList.ts b/src/api/resources/hris/types/PaginatedBenefitList.ts deleted file mode 100644 index c8fd9525d..000000000 --- a/src/api/resources/hris/types/PaginatedBenefitList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedBenefitList { - next?: string; - previous?: string; - results?: Merge.hris.Benefit[]; -} diff --git a/src/api/resources/hris/types/PaginatedCompanyList.ts b/src/api/resources/hris/types/PaginatedCompanyList.ts deleted file mode 100644 index e71051a2f..000000000 --- a/src/api/resources/hris/types/PaginatedCompanyList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedCompanyList { - next?: string; - previous?: string; - results?: Merge.hris.Company[]; -} diff --git a/src/api/resources/hris/types/PaginatedDependentList.ts b/src/api/resources/hris/types/PaginatedDependentList.ts deleted file mode 100644 index c80381c89..000000000 --- a/src/api/resources/hris/types/PaginatedDependentList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedDependentList { - next?: string; - previous?: string; - results?: Merge.hris.Dependent[]; -} diff --git a/src/api/resources/hris/types/PaginatedEmployeeList.ts b/src/api/resources/hris/types/PaginatedEmployeeList.ts deleted file mode 100644 index 480c965df..000000000 --- a/src/api/resources/hris/types/PaginatedEmployeeList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedEmployeeList { - next?: string; - previous?: string; - results?: Merge.hris.Employee[]; -} diff --git a/src/api/resources/hris/types/PaginatedEmployeePayrollRunList.ts b/src/api/resources/hris/types/PaginatedEmployeePayrollRunList.ts deleted file mode 100644 index 9ab5e5be1..000000000 --- a/src/api/resources/hris/types/PaginatedEmployeePayrollRunList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedEmployeePayrollRunList { - next?: string; - previous?: string; - results?: Merge.hris.EmployeePayrollRun[]; -} diff --git a/src/api/resources/hris/types/PaginatedEmployerBenefitList.ts b/src/api/resources/hris/types/PaginatedEmployerBenefitList.ts deleted file mode 100644 index bfae2f43e..000000000 --- a/src/api/resources/hris/types/PaginatedEmployerBenefitList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedEmployerBenefitList { - next?: string; - previous?: string; - results?: Merge.hris.EmployerBenefit[]; -} diff --git a/src/api/resources/hris/types/PaginatedEmploymentList.ts b/src/api/resources/hris/types/PaginatedEmploymentList.ts deleted file mode 100644 index 6a0305fc8..000000000 --- a/src/api/resources/hris/types/PaginatedEmploymentList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedEmploymentList { - next?: string; - previous?: string; - results?: Merge.hris.Employment[]; -} diff --git a/src/api/resources/hris/types/PaginatedGroupList.ts b/src/api/resources/hris/types/PaginatedGroupList.ts deleted file mode 100644 index 7c8466079..000000000 --- a/src/api/resources/hris/types/PaginatedGroupList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedGroupList { - next?: string; - previous?: string; - results?: Merge.hris.Group[]; -} diff --git a/src/api/resources/hris/types/PaginatedIssueList.ts b/src/api/resources/hris/types/PaginatedIssueList.ts deleted file mode 100644 index 8093e96fa..000000000 --- a/src/api/resources/hris/types/PaginatedIssueList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedIssueList { - next?: string; - previous?: string; - results?: Merge.hris.Issue[]; -} diff --git a/src/api/resources/hris/types/PaginatedLocationList.ts b/src/api/resources/hris/types/PaginatedLocationList.ts deleted file mode 100644 index 35edbb8fe..000000000 --- a/src/api/resources/hris/types/PaginatedLocationList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedLocationList { - next?: string; - previous?: string; - results?: Merge.hris.Location[]; -} diff --git a/src/api/resources/hris/types/PaginatedPayGroupList.ts b/src/api/resources/hris/types/PaginatedPayGroupList.ts deleted file mode 100644 index d9b8299a3..000000000 --- a/src/api/resources/hris/types/PaginatedPayGroupList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedPayGroupList { - next?: string; - previous?: string; - results?: Merge.hris.PayGroup[]; -} diff --git a/src/api/resources/hris/types/PaginatedPayrollRunList.ts b/src/api/resources/hris/types/PaginatedPayrollRunList.ts deleted file mode 100644 index 0cac2d069..000000000 --- a/src/api/resources/hris/types/PaginatedPayrollRunList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedPayrollRunList { - next?: string; - previous?: string; - results?: Merge.hris.PayrollRun[]; -} diff --git a/src/api/resources/hris/types/PaginatedSyncStatusList.ts b/src/api/resources/hris/types/PaginatedSyncStatusList.ts deleted file mode 100644 index d51416a37..000000000 --- a/src/api/resources/hris/types/PaginatedSyncStatusList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedSyncStatusList { - next?: string; - previous?: string; - results?: Merge.hris.SyncStatus[]; -} diff --git a/src/api/resources/hris/types/PaginatedTeamList.ts b/src/api/resources/hris/types/PaginatedTeamList.ts deleted file mode 100644 index 0baccaa09..000000000 --- a/src/api/resources/hris/types/PaginatedTeamList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedTeamList { - next?: string; - previous?: string; - results?: Merge.hris.Team[]; -} diff --git a/src/api/resources/hris/types/PaginatedTimeOffBalanceList.ts b/src/api/resources/hris/types/PaginatedTimeOffBalanceList.ts deleted file mode 100644 index 16bd8f73f..000000000 --- a/src/api/resources/hris/types/PaginatedTimeOffBalanceList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedTimeOffBalanceList { - next?: string; - previous?: string; - results?: Merge.hris.TimeOffBalance[]; -} diff --git a/src/api/resources/hris/types/PaginatedTimeOffList.ts b/src/api/resources/hris/types/PaginatedTimeOffList.ts deleted file mode 100644 index fc0732a62..000000000 --- a/src/api/resources/hris/types/PaginatedTimeOffList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedTimeOffList { - next?: string; - previous?: string; - results?: Merge.hris.TimeOff[]; -} diff --git a/src/api/resources/hris/types/PaginatedTimesheetEntryList.ts b/src/api/resources/hris/types/PaginatedTimesheetEntryList.ts deleted file mode 100644 index 1937a06a5..000000000 --- a/src/api/resources/hris/types/PaginatedTimesheetEntryList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedTimesheetEntryList { - next?: string; - previous?: string; - results?: Merge.hris.TimesheetEntry[]; -} diff --git a/src/api/resources/hris/types/PayCurrencyEnum.ts b/src/api/resources/hris/types/PayCurrencyEnum.ts deleted file mode 100644 index f1f9072c2..000000000 --- a/src/api/resources/hris/types/PayCurrencyEnum.ts +++ /dev/null @@ -1,619 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `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 const PayCurrencyEnum = { - Xua: "XUA", - Afn: "AFN", - Afa: "AFA", - All: "ALL", - Alk: "ALK", - Dzd: "DZD", - Adp: "ADP", - Aoa: "AOA", - Aok: "AOK", - Aon: "AON", - Aor: "AOR", - Ara: "ARA", - Ars: "ARS", - Arm: "ARM", - Arp: "ARP", - Arl: "ARL", - Amd: "AMD", - Awg: "AWG", - Aud: "AUD", - Ats: "ATS", - Azn: "AZN", - Azm: "AZM", - Bsd: "BSD", - Bhd: "BHD", - Bdt: "BDT", - Bbd: "BBD", - Byn: "BYN", - Byb: "BYB", - Byr: "BYR", - Bef: "BEF", - Bec: "BEC", - Bel: "BEL", - Bzd: "BZD", - Bmd: "BMD", - Btn: "BTN", - Bob: "BOB", - Bol: "BOL", - Bov: "BOV", - Bop: "BOP", - Bam: "BAM", - Bad: "BAD", - Ban: "BAN", - Bwp: "BWP", - Brc: "BRC", - Brz: "BRZ", - Bre: "BRE", - Brr: "BRR", - Brn: "BRN", - Brb: "BRB", - Brl: "BRL", - Gbp: "GBP", - Bnd: "BND", - Bgl: "BGL", - Bgn: "BGN", - Bgo: "BGO", - Bgm: "BGM", - Buk: "BUK", - Bif: "BIF", - Xpf: "XPF", - Khr: "KHR", - Cad: "CAD", - Cve: "CVE", - Kyd: "KYD", - Xaf: "XAF", - Cle: "CLE", - Clp: "CLP", - Clf: "CLF", - Cnx: "CNX", - Cny: "CNY", - Cnh: "CNH", - Cop: "COP", - Cou: "COU", - Kmf: "KMF", - Cdf: "CDF", - Crc: "CRC", - Hrd: "HRD", - Hrk: "HRK", - Cuc: "CUC", - Cup: "CUP", - Cyp: "CYP", - Czk: "CZK", - Csk: "CSK", - Dkk: "DKK", - Djf: "DJF", - Dop: "DOP", - Nlg: "NLG", - Xcd: "XCD", - Ddm: "DDM", - Ecs: "ECS", - Ecv: "ECV", - Egp: "EGP", - Gqe: "GQE", - Ern: "ERN", - Eek: "EEK", - Etb: "ETB", - Eur: "EUR", - Xba: "XBA", - Xeu: "XEU", - Xbb: "XBB", - Xbc: "XBC", - Xbd: "XBD", - Fkp: "FKP", - Fjd: "FJD", - Fim: "FIM", - Frf: "FRF", - Xfo: "XFO", - Xfu: "XFU", - Gmd: "GMD", - Gek: "GEK", - Gel: "GEL", - Dem: "DEM", - Ghs: "GHS", - Ghc: "GHC", - Gip: "GIP", - Xau: "XAU", - Grd: "GRD", - Gtq: "GTQ", - Gwp: "GWP", - Gnf: "GNF", - Gns: "GNS", - Gyd: "GYD", - Htg: "HTG", - Hnl: "HNL", - Hkd: "HKD", - Huf: "HUF", - Imp: "IMP", - Isk: "ISK", - Isj: "ISJ", - Inr: "INR", - Idr: "IDR", - Irr: "IRR", - Iqd: "IQD", - Iep: "IEP", - Ils: "ILS", - Ilp: "ILP", - Ilr: "ILR", - Itl: "ITL", - Jmd: "JMD", - Jpy: "JPY", - Jod: "JOD", - Kzt: "KZT", - Kes: "KES", - Kwd: "KWD", - Kgs: "KGS", - Lak: "LAK", - Lvl: "LVL", - Lvr: "LVR", - Lbp: "LBP", - Lsl: "LSL", - Lrd: "LRD", - Lyd: "LYD", - Ltl: "LTL", - Ltt: "LTT", - Lul: "LUL", - Luc: "LUC", - Luf: "LUF", - Mop: "MOP", - Mkd: "MKD", - Mkn: "MKN", - Mga: "MGA", - Mgf: "MGF", - Mwk: "MWK", - Myr: "MYR", - Mvr: "MVR", - Mvp: "MVP", - Mlf: "MLF", - Mtl: "MTL", - Mtp: "MTP", - Mru: "MRU", - Mro: "MRO", - Mur: "MUR", - Mxv: "MXV", - Mxn: "MXN", - Mxp: "MXP", - Mdc: "MDC", - Mdl: "MDL", - Mcf: "MCF", - Mnt: "MNT", - Mad: "MAD", - Maf: "MAF", - Mze: "MZE", - Mzn: "MZN", - Mzm: "MZM", - Mmk: "MMK", - Nad: "NAD", - Npr: "NPR", - Ang: "ANG", - Twd: "TWD", - Nzd: "NZD", - Nio: "NIO", - Nic: "NIC", - Ngn: "NGN", - Kpw: "KPW", - Nok: "NOK", - Omr: "OMR", - Pkr: "PKR", - Xpd: "XPD", - Pab: "PAB", - Pgk: "PGK", - Pyg: "PYG", - Pei: "PEI", - Pen: "PEN", - Pes: "PES", - Php: "PHP", - Xpt: "XPT", - Pln: "PLN", - Plz: "PLZ", - Pte: "PTE", - Gwe: "GWE", - Qar: "QAR", - Xre: "XRE", - Rhd: "RHD", - Ron: "RON", - Rol: "ROL", - Rub: "RUB", - Rur: "RUR", - Rwf: "RWF", - Svc: "SVC", - Wst: "WST", - Sar: "SAR", - Rsd: "RSD", - Csd: "CSD", - Scr: "SCR", - Sll: "SLL", - Xag: "XAG", - Sgd: "SGD", - Skk: "SKK", - Sit: "SIT", - Sbd: "SBD", - Sos: "SOS", - Zar: "ZAR", - Zal: "ZAL", - Krh: "KRH", - Krw: "KRW", - Kro: "KRO", - Ssp: "SSP", - Sur: "SUR", - Esp: "ESP", - Esa: "ESA", - Esb: "ESB", - Xdr: "XDR", - Lkr: "LKR", - Shp: "SHP", - Xsu: "XSU", - Sdd: "SDD", - Sdg: "SDG", - Sdp: "SDP", - Srd: "SRD", - Srg: "SRG", - Szl: "SZL", - Sek: "SEK", - Chf: "CHF", - Syp: "SYP", - Stn: "STN", - Std: "STD", - Tvd: "TVD", - Tjr: "TJR", - Tjs: "TJS", - Tzs: "TZS", - Xts: "XTS", - Thb: "THB", - Xxx: "XXX", - Tpe: "TPE", - Top: "TOP", - Ttd: "TTD", - Tnd: "TND", - Try: "TRY", - Trl: "TRL", - Tmt: "TMT", - Tmm: "TMM", - Usd: "USD", - Usn: "USN", - Uss: "USS", - Ugx: "UGX", - Ugs: "UGS", - Uah: "UAH", - Uak: "UAK", - Aed: "AED", - Uyw: "UYW", - Uyu: "UYU", - Uyp: "UYP", - Uyi: "UYI", - Uzs: "UZS", - Vuv: "VUV", - Ves: "VES", - Veb: "VEB", - Vef: "VEF", - Vnd: "VND", - Vnn: "VNN", - Che: "CHE", - Chw: "CHW", - Xof: "XOF", - Ydd: "YDD", - Yer: "YER", - Yun: "YUN", - Yud: "YUD", - Yum: "YUM", - Yur: "YUR", - Zwn: "ZWN", - Zrn: "ZRN", - Zrz: "ZRZ", - Zmw: "ZMW", - Zmk: "ZMK", - Zwd: "ZWD", - Zwr: "ZWR", - Zwl: "ZWL", -} as const; -export type PayCurrencyEnum = (typeof PayCurrencyEnum)[keyof typeof PayCurrencyEnum]; diff --git a/src/api/resources/hris/types/PayFrequencyEnum.ts b/src/api/resources/hris/types/PayFrequencyEnum.ts deleted file mode 100644 index 9837f6d74..000000000 --- a/src/api/resources/hris/types/PayFrequencyEnum.ts +++ /dev/null @@ -1,25 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `WEEKLY` - WEEKLY - * * `BIWEEKLY` - BIWEEKLY - * * `MONTHLY` - MONTHLY - * * `QUARTERLY` - QUARTERLY - * * `SEMIANNUALLY` - SEMIANNUALLY - * * `ANNUALLY` - ANNUALLY - * * `THIRTEEN-MONTHLY` - THIRTEEN-MONTHLY - * * `PRO_RATA` - PRO_RATA - * * `SEMIMONTHLY` - SEMIMONTHLY - */ -export const PayFrequencyEnum = { - Weekly: "WEEKLY", - Biweekly: "BIWEEKLY", - Monthly: "MONTHLY", - Quarterly: "QUARTERLY", - Semiannually: "SEMIANNUALLY", - Annually: "ANNUALLY", - ThirteenMonthly: "THIRTEEN-MONTHLY", - ProRata: "PRO_RATA", - Semimonthly: "SEMIMONTHLY", -} as const; -export type PayFrequencyEnum = (typeof PayFrequencyEnum)[keyof typeof PayFrequencyEnum]; diff --git a/src/api/resources/hris/types/PayGroup.ts b/src/api/resources/hris/types/PayGroup.ts deleted file mode 100644 index ee408c554..000000000 --- a/src/api/resources/hris/types/PayGroup.ts +++ /dev/null @@ -1,27 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The PayGroup Object - * ### Description - * The `PayGroup` object is used to represent a subset of employees that are put together for payroll processing purposes. - * - * ### Usage Example - * Fetch from the `LIST PayGroup` endpoint and filter by `ID` to show all pay group information. - */ -export interface PayGroup { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The pay group name. */ - payGroupName?: 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/). */ - remoteWasDeleted?: boolean; - fieldMappings?: Record; - remoteData?: Merge.hris.RemoteData[]; -} diff --git a/src/api/resources/hris/types/PayPeriodEnum.ts b/src/api/resources/hris/types/PayPeriodEnum.ts deleted file mode 100644 index 3956d94a0..000000000 --- a/src/api/resources/hris/types/PayPeriodEnum.ts +++ /dev/null @@ -1,25 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `HOUR` - HOUR - * * `DAY` - DAY - * * `WEEK` - WEEK - * * `EVERY_TWO_WEEKS` - EVERY_TWO_WEEKS - * * `SEMIMONTHLY` - SEMIMONTHLY - * * `MONTH` - MONTH - * * `QUARTER` - QUARTER - * * `EVERY_SIX_MONTHS` - EVERY_SIX_MONTHS - * * `YEAR` - YEAR - */ -export const PayPeriodEnum = { - Hour: "HOUR", - Day: "DAY", - Week: "WEEK", - EveryTwoWeeks: "EVERY_TWO_WEEKS", - Semimonthly: "SEMIMONTHLY", - Month: "MONTH", - Quarter: "QUARTER", - EverySixMonths: "EVERY_SIX_MONTHS", - Year: "YEAR", -} as const; -export type PayPeriodEnum = (typeof PayPeriodEnum)[keyof typeof PayPeriodEnum]; diff --git a/src/api/resources/hris/types/PayrollRun.ts b/src/api/resources/hris/types/PayrollRun.ts deleted file mode 100644 index b6fd5575d..000000000 --- a/src/api/resources/hris/types/PayrollRun.ts +++ /dev/null @@ -1,51 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The PayrollRun Object - * ### Description - * The `PayrollRun` object is used to represent a group of pay statements for a specific pay schedule. - * - * ### Usage Example - * Fetch from the `LIST PayrollRuns` endpoint and filter by `ID` to show all payroll runs. - */ -export interface PayrollRun { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** - * The state of the payroll run - * - * * `PAID` - PAID - * * `DRAFT` - DRAFT - * * `APPROVED` - APPROVED - * * `FAILED` - FAILED - * * `CLOSED` - CLOSED - */ - runState?: Merge.hris.PayrollRunRunState; - /** - * The type of the payroll run - * - * * `REGULAR` - REGULAR - * * `OFF_CYCLE` - OFF_CYCLE - * * `CORRECTION` - CORRECTION - * * `TERMINATION` - TERMINATION - * * `SIGN_ON_BONUS` - SIGN_ON_BONUS - */ - runType?: Merge.hris.PayrollRunRunType; - /** The day and time the payroll run started. */ - startDate?: Date; - /** The day and time the payroll run ended. */ - endDate?: Date; - /** The day and time the payroll run was checked. */ - checkDate?: 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.hris.RemoteData[]; -} diff --git a/src/api/resources/hris/types/PayrollRunRunState.ts b/src/api/resources/hris/types/PayrollRunRunState.ts deleted file mode 100644 index 565151ef1..000000000 --- a/src/api/resources/hris/types/PayrollRunRunState.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The state of the payroll run - * - * * `PAID` - PAID - * * `DRAFT` - DRAFT - * * `APPROVED` - APPROVED - * * `FAILED` - FAILED - * * `CLOSED` - CLOSED - */ -export type PayrollRunRunState = Merge.hris.RunStateEnum | string; diff --git a/src/api/resources/hris/types/PayrollRunRunType.ts b/src/api/resources/hris/types/PayrollRunRunType.ts deleted file mode 100644 index 1a8b79796..000000000 --- a/src/api/resources/hris/types/PayrollRunRunType.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The type of the payroll run - * - * * `REGULAR` - REGULAR - * * `OFF_CYCLE` - OFF_CYCLE - * * `CORRECTION` - CORRECTION - * * `TERMINATION` - TERMINATION - * * `SIGN_ON_BONUS` - SIGN_ON_BONUS - */ -export type PayrollRunRunType = Merge.hris.RunTypeEnum | string; diff --git a/src/api/resources/hris/types/PolicyTypeEnum.ts b/src/api/resources/hris/types/PolicyTypeEnum.ts deleted file mode 100644 index 2f28fde5e..000000000 --- a/src/api/resources/hris/types/PolicyTypeEnum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `VACATION` - VACATION - * * `SICK` - SICK - * * `PERSONAL` - PERSONAL - * * `JURY_DUTY` - JURY_DUTY - * * `VOLUNTEER` - VOLUNTEER - * * `BEREAVEMENT` - BEREAVEMENT - */ -export const PolicyTypeEnum = { - Vacation: "VACATION", - Sick: "SICK", - Personal: "PERSONAL", - JuryDuty: "JURY_DUTY", - Volunteer: "VOLUNTEER", - Bereavement: "BEREAVEMENT", -} as const; -export type PolicyTypeEnum = (typeof PolicyTypeEnum)[keyof typeof PolicyTypeEnum]; diff --git a/src/api/resources/hris/types/ReasonEnum.ts b/src/api/resources/hris/types/ReasonEnum.ts deleted file mode 100644 index 68e1eab2f..000000000 --- a/src/api/resources/hris/types/ReasonEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `GENERAL_CUSTOMER_REQUEST` - GENERAL_CUSTOMER_REQUEST - * * `GDPR` - GDPR - * * `OTHER` - OTHER - */ -export const ReasonEnum = { - GeneralCustomerRequest: "GENERAL_CUSTOMER_REQUEST", - Gdpr: "GDPR", - Other: "OTHER", -} as const; -export type ReasonEnum = (typeof ReasonEnum)[keyof typeof ReasonEnum]; diff --git a/src/api/resources/hris/types/RelationshipEnum.ts b/src/api/resources/hris/types/RelationshipEnum.ts deleted file mode 100644 index 778dbe4e7..000000000 --- a/src/api/resources/hris/types/RelationshipEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `CHILD` - CHILD - * * `SPOUSE` - SPOUSE - * * `DOMESTIC_PARTNER` - DOMESTIC_PARTNER - */ -export const RelationshipEnum = { - Child: "CHILD", - Spouse: "SPOUSE", - DomesticPartner: "DOMESTIC_PARTNER", -} as const; -export type RelationshipEnum = (typeof RelationshipEnum)[keyof typeof RelationshipEnum]; diff --git a/src/api/resources/hris/types/RemoteData.ts b/src/api/resources/hris/types/RemoteData.ts deleted file mode 100644 index 3fad40786..000000000 --- a/src/api/resources/hris/types/RemoteData.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * # The RemoteData Object - * ### Description - * The `RemoteData` object is used to represent the full data pulled from the third-party API for an object. - * - * ### Usage Example - * TODO - */ -export interface RemoteData { - /** The third-party API path that is being called. */ - path: string; - /** The data returned from the third-party for this object in its original, unnormalized format. */ - data?: unknown; -} diff --git a/src/api/resources/hris/types/RemoteEndpointInfo.ts b/src/api/resources/hris/types/RemoteEndpointInfo.ts deleted file mode 100644 index f28a1667a..000000000 --- a/src/api/resources/hris/types/RemoteEndpointInfo.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface RemoteEndpointInfo { - method: string; - urlPath: string; - fieldTraversalPath: unknown[]; -} diff --git a/src/api/resources/hris/types/RemoteFieldApi.ts b/src/api/resources/hris/types/RemoteFieldApi.ts deleted file mode 100644 index 4989e9043..000000000 --- a/src/api/resources/hris/types/RemoteFieldApi.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface RemoteFieldApi { - schema: Record; - remoteKeyName: string; - remoteEndpointInfo: Merge.hris.RemoteEndpointInfo; - exampleValues?: unknown[]; - advancedMetadata?: Merge.hris.AdvancedMetadata; - coverage?: Merge.hris.RemoteFieldApiCoverage; -} diff --git a/src/api/resources/hris/types/RemoteFieldApiCoverage.ts b/src/api/resources/hris/types/RemoteFieldApiCoverage.ts deleted file mode 100644 index 3691c464e..000000000 --- a/src/api/resources/hris/types/RemoteFieldApiCoverage.ts +++ /dev/null @@ -1,3 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export type RemoteFieldApiCoverage = number | number; diff --git a/src/api/resources/hris/types/RemoteFieldApiResponse.ts b/src/api/resources/hris/types/RemoteFieldApiResponse.ts deleted file mode 100644 index aa36ce9dd..000000000 --- a/src/api/resources/hris/types/RemoteFieldApiResponse.ts +++ /dev/null @@ -1,22 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface RemoteFieldApiResponse { - benefit?: Merge.hris.RemoteFieldApi[]; - employerBenefit?: Merge.hris.RemoteFieldApi[]; - company?: Merge.hris.RemoteFieldApi[]; - employeePayrollRun?: Merge.hris.RemoteFieldApi[]; - employee?: Merge.hris.RemoteFieldApi[]; - employment?: Merge.hris.RemoteFieldApi[]; - location?: Merge.hris.RemoteFieldApi[]; - payrollRun?: Merge.hris.RemoteFieldApi[]; - team?: Merge.hris.RemoteFieldApi[]; - timeOff?: Merge.hris.RemoteFieldApi[]; - timeOffBalance?: Merge.hris.RemoteFieldApi[]; - bankInfo?: Merge.hris.RemoteFieldApi[]; - payGroup?: Merge.hris.RemoteFieldApi[]; - group?: Merge.hris.RemoteFieldApi[]; - dependent?: Merge.hris.RemoteFieldApi[]; - timesheetEntry?: Merge.hris.RemoteFieldApi[]; -} diff --git a/src/api/resources/hris/types/RemoteKey.ts b/src/api/resources/hris/types/RemoteKey.ts deleted file mode 100644 index 04d86d608..000000000 --- a/src/api/resources/hris/types/RemoteKey.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * # The RemoteKey Object - * ### Description - * The `RemoteKey` object is used to represent a request for a new remote key. - * - * ### Usage Example - * Post a `GenerateRemoteKey` to receive a new `RemoteKey`. - */ -export interface RemoteKey { - name: string; - key: string; -} diff --git a/src/api/resources/hris/types/RemoteResponse.ts b/src/api/resources/hris/types/RemoteResponse.ts deleted file mode 100644 index 97695de3a..000000000 --- a/src/api/resources/hris/types/RemoteResponse.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The RemoteResponse Object - * ### Description - * The `RemoteResponse` object is used to represent information returned from a third-party endpoint. - * - * ### Usage Example - * View the `RemoteResponse` returned from your `DataPassthrough`. - */ -export interface RemoteResponse { - method: string; - path: string; - status: number; - response?: unknown; - responseHeaders?: Record; - responseType?: Merge.hris.RemoteResponseResponseType; - headers?: Record; -} diff --git a/src/api/resources/hris/types/RemoteResponseResponseType.ts b/src/api/resources/hris/types/RemoteResponseResponseType.ts deleted file mode 100644 index 6d3b9187e..000000000 --- a/src/api/resources/hris/types/RemoteResponseResponseType.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 RemoteResponseResponseType = Merge.hris.ResponseTypeEnum | string; diff --git a/src/api/resources/hris/types/RequestFormatEnum.ts b/src/api/resources/hris/types/RequestFormatEnum.ts deleted file mode 100644 index 2673da47f..000000000 --- a/src/api/resources/hris/types/RequestFormatEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `JSON` - JSON - * * `XML` - XML - * * `MULTIPART` - MULTIPART - */ -export const RequestFormatEnum = { - Json: "JSON", - Xml: "XML", - Multipart: "MULTIPART", -} as const; -export type RequestFormatEnum = (typeof RequestFormatEnum)[keyof typeof RequestFormatEnum]; diff --git a/src/api/resources/hris/types/RequestTypeEnum.ts b/src/api/resources/hris/types/RequestTypeEnum.ts deleted file mode 100644 index ec5081277..000000000 --- a/src/api/resources/hris/types/RequestTypeEnum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `VACATION` - VACATION - * * `SICK` - SICK - * * `PERSONAL` - PERSONAL - * * `JURY_DUTY` - JURY_DUTY - * * `VOLUNTEER` - VOLUNTEER - * * `BEREAVEMENT` - BEREAVEMENT - */ -export const RequestTypeEnum = { - Vacation: "VACATION", - Sick: "SICK", - Personal: "PERSONAL", - JuryDuty: "JURY_DUTY", - Volunteer: "VOLUNTEER", - Bereavement: "BEREAVEMENT", -} as const; -export type RequestTypeEnum = (typeof RequestTypeEnum)[keyof typeof RequestTypeEnum]; diff --git a/src/api/resources/hris/types/ResponseTypeEnum.ts b/src/api/resources/hris/types/ResponseTypeEnum.ts deleted file mode 100644 index dfce6bea7..000000000 --- a/src/api/resources/hris/types/ResponseTypeEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `JSON` - JSON - * * `BASE64_GZIP` - BASE64_GZIP - */ -export const ResponseTypeEnum = { - Json: "JSON", - Base64Gzip: "BASE64_GZIP", -} as const; -export type ResponseTypeEnum = (typeof ResponseTypeEnum)[keyof typeof ResponseTypeEnum]; diff --git a/src/api/resources/hris/types/RoleEnum.ts b/src/api/resources/hris/types/RoleEnum.ts deleted file mode 100644 index 524088eb7..000000000 --- a/src/api/resources/hris/types/RoleEnum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `ADMIN` - ADMIN - * * `DEVELOPER` - DEVELOPER - * * `MEMBER` - MEMBER - * * `API` - API - * * `SYSTEM` - SYSTEM - * * `MERGE_TEAM` - MERGE_TEAM - */ -export const RoleEnum = { - Admin: "ADMIN", - Developer: "DEVELOPER", - Member: "MEMBER", - Api: "API", - System: "SYSTEM", - MergeTeam: "MERGE_TEAM", -} as const; -export type RoleEnum = (typeof RoleEnum)[keyof typeof RoleEnum]; diff --git a/src/api/resources/hris/types/RunStateEnum.ts b/src/api/resources/hris/types/RunStateEnum.ts deleted file mode 100644 index 95ce768ea..000000000 --- a/src/api/resources/hris/types/RunStateEnum.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `PAID` - PAID - * * `DRAFT` - DRAFT - * * `APPROVED` - APPROVED - * * `FAILED` - FAILED - * * `CLOSED` - CLOSED - */ -export const RunStateEnum = { - Paid: "PAID", - Draft: "DRAFT", - Approved: "APPROVED", - Failed: "FAILED", - Closed: "CLOSED", -} as const; -export type RunStateEnum = (typeof RunStateEnum)[keyof typeof RunStateEnum]; diff --git a/src/api/resources/hris/types/RunTypeEnum.ts b/src/api/resources/hris/types/RunTypeEnum.ts deleted file mode 100644 index 4b671d74e..000000000 --- a/src/api/resources/hris/types/RunTypeEnum.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `REGULAR` - REGULAR - * * `OFF_CYCLE` - OFF_CYCLE - * * `CORRECTION` - CORRECTION - * * `TERMINATION` - TERMINATION - * * `SIGN_ON_BONUS` - SIGN_ON_BONUS - */ -export const RunTypeEnum = { - Regular: "REGULAR", - OffCycle: "OFF_CYCLE", - Correction: "CORRECTION", - Termination: "TERMINATION", - SignOnBonus: "SIGN_ON_BONUS", -} as const; -export type RunTypeEnum = (typeof RunTypeEnum)[keyof typeof RunTypeEnum]; diff --git a/src/api/resources/hris/types/SelectiveSyncConfigurationsUsageEnum.ts b/src/api/resources/hris/types/SelectiveSyncConfigurationsUsageEnum.ts deleted file mode 100644 index 4fce467f7..000000000 --- a/src/api/resources/hris/types/SelectiveSyncConfigurationsUsageEnum.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `IN_NEXT_SYNC` - IN_NEXT_SYNC - * * `IN_LAST_SYNC` - IN_LAST_SYNC - */ -export const SelectiveSyncConfigurationsUsageEnum = { - InNextSync: "IN_NEXT_SYNC", - InLastSync: "IN_LAST_SYNC", -} as const; -export type SelectiveSyncConfigurationsUsageEnum = - (typeof SelectiveSyncConfigurationsUsageEnum)[keyof typeof SelectiveSyncConfigurationsUsageEnum]; diff --git a/src/api/resources/hris/types/StatusFd5Enum.ts b/src/api/resources/hris/types/StatusFd5Enum.ts deleted file mode 100644 index 2ecbb5852..000000000 --- a/src/api/resources/hris/types/StatusFd5Enum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `SYNCING` - SYNCING - * * `DONE` - DONE - * * `FAILED` - FAILED - * * `DISABLED` - DISABLED - * * `PAUSED` - PAUSED - * * `PARTIALLY_SYNCED` - PARTIALLY_SYNCED - */ -export const StatusFd5Enum = { - Syncing: "SYNCING", - Done: "DONE", - Failed: "FAILED", - Disabled: "DISABLED", - Paused: "PAUSED", - PartiallySynced: "PARTIALLY_SYNCED", -} as const; -export type StatusFd5Enum = (typeof StatusFd5Enum)[keyof typeof StatusFd5Enum]; diff --git a/src/api/resources/hris/types/SyncStatus.ts b/src/api/resources/hris/types/SyncStatus.ts deleted file mode 100644 index a77c829b4..000000000 --- a/src/api/resources/hris/types/SyncStatus.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The SyncStatus Object - * ### Description - * The `SyncStatus` object is used to represent the syncing state of an account - * - * ### Usage Example - * View the `SyncStatus` for an account to see how recently its models were synced. - */ -export interface SyncStatus { - modelName: string; - modelId: string; - lastSyncStart?: Date; - nextSyncStart?: Date; - lastSyncResult?: Merge.hris.SyncStatusLastSyncResult; - lastSyncFinished?: Date; - status: Merge.hris.StatusFd5Enum; - isInitialSync: boolean; - selectiveSyncConfigurationsUsage?: Merge.hris.SelectiveSyncConfigurationsUsageEnum; -} diff --git a/src/api/resources/hris/types/SyncStatusLastSyncResult.ts b/src/api/resources/hris/types/SyncStatusLastSyncResult.ts deleted file mode 100644 index 450a1999c..000000000 --- a/src/api/resources/hris/types/SyncStatusLastSyncResult.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 SyncStatusLastSyncResult = Merge.hris.LastSyncResultEnum | string; diff --git a/src/api/resources/hris/types/Tax.ts b/src/api/resources/hris/types/Tax.ts deleted file mode 100644 index 5913b3c27..000000000 --- a/src/api/resources/hris/types/Tax.ts +++ /dev/null @@ -1,32 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Tax Object - * ### Description - * The `Tax` object is used to represent an array of the tax deductions for a given employee's payroll run. - * - * ### Usage Example - * Fetch from the `LIST Taxes` endpoint and filter by `ID` to show all taxes. - */ -export interface Tax { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - employeePayrollRun?: string; - /** The tax's name. */ - name?: string; - /** The tax amount. */ - amount?: number; - /** Whether or not the employer is responsible for paying the tax. */ - employerTax?: boolean; - /** 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.hris.RemoteData[]; -} diff --git a/src/api/resources/hris/types/Team.ts b/src/api/resources/hris/types/Team.ts deleted file mode 100644 index 35aa0a7ce..000000000 --- a/src/api/resources/hris/types/Team.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Team Object - * ### Description - * The `Team` object is used to represent a subdivision of the company, usually a department. Each employee will be grouped into one specific Team. - * - * ### Usage Example - * If you're building a way to filter by `Team`, you'd hit the `GET Teams` endpoint to fetch the `Teams`, and then use the `ID` of the team your user selects to filter the `GET Employees` endpoint. - */ -export interface Team { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The team's name. */ - name?: string; - /** The team's parent team. */ - parentTeam?: Merge.hris.TeamParentTeam; - /** 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.hris.RemoteData[]; -} diff --git a/src/api/resources/hris/types/TeamParentTeam.ts b/src/api/resources/hris/types/TeamParentTeam.ts deleted file mode 100644 index 0e24e9ce9..000000000 --- a/src/api/resources/hris/types/TeamParentTeam.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 team's parent team. - */ -export type TeamParentTeam = string | Merge.hris.Team; diff --git a/src/api/resources/hris/types/TimeOff.ts b/src/api/resources/hris/types/TimeOff.ts deleted file mode 100644 index 3000596d2..000000000 --- a/src/api/resources/hris/types/TimeOff.ts +++ /dev/null @@ -1,65 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The TimeOff Object - * ### Description - * The `TimeOff` object is used to represent all employees' Time Off entries. - * - * ### Usage Example - * Fetch from the `LIST TimeOffs` endpoint and filter by `ID` to show all time off requests. - */ -export interface TimeOff { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The employee requesting time off. */ - employee?: Merge.hris.TimeOffEmployee; - /** The Merge ID of the employee with the ability to approve the time off request. */ - approver?: Merge.hris.TimeOffApprover; - /** - * The status of this time off request. - * - * * `REQUESTED` - REQUESTED - * * `APPROVED` - APPROVED - * * `DECLINED` - DECLINED - * * `CANCELLED` - CANCELLED - * * `DELETED` - DELETED - */ - status?: Merge.hris.TimeOffStatus; - /** The employee note for this time off request. */ - employeeNote?: string; - /** - * The measurement that the third-party integration uses to count time requested. - * - * * `HOURS` - HOURS - * * `DAYS` - DAYS - */ - units?: Merge.hris.TimeOffUnits; - /** The time off quantity measured by the prescribed “units”. */ - amount?: number; - /** - * The type of time off request. - * - * * `VACATION` - VACATION - * * `SICK` - SICK - * * `PERSONAL` - PERSONAL - * * `JURY_DUTY` - JURY_DUTY - * * `VOLUNTEER` - VOLUNTEER - * * `BEREAVEMENT` - BEREAVEMENT - */ - requestType?: Merge.hris.TimeOffRequestType; - /** The day and time of the start of the time requested off. */ - startTime?: Date; - /** The day and time of the end of the time requested off. */ - endTime?: 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.hris.RemoteData[]; -} diff --git a/src/api/resources/hris/types/TimeOffApprover.ts b/src/api/resources/hris/types/TimeOffApprover.ts deleted file mode 100644 index 42e281e5b..000000000 --- a/src/api/resources/hris/types/TimeOffApprover.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 Merge ID of the employee with the ability to approve the time off request. - */ -export type TimeOffApprover = string | Merge.hris.Employee; diff --git a/src/api/resources/hris/types/TimeOffBalance.ts b/src/api/resources/hris/types/TimeOffBalance.ts deleted file mode 100644 index 93b650406..000000000 --- a/src/api/resources/hris/types/TimeOffBalance.ts +++ /dev/null @@ -1,42 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The TimeOffBalance Object - * ### Description - * The `TimeOffBalance` object is used to represent current balances for an employee's Time Off plan. - * - * ### Usage Example - * Fetch from the `LIST TimeOffBalances` endpoint and filter by `ID` to show all time off balances. - */ -export interface TimeOffBalance { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The employee the balance belongs to. */ - employee?: Merge.hris.TimeOffBalanceEmployee; - /** The current remaining PTO balance, measured in hours. For integrations that return this value in days, Merge multiplies by 8 to calculate hours. */ - balance?: number; - /** The amount of PTO used in terms of hours. For integrations that return this value in days, Merge multiplies by 8 to calculate hours. */ - used?: number; - /** - * The policy type of this time off balance. - * - * * `VACATION` - VACATION - * * `SICK` - SICK - * * `PERSONAL` - PERSONAL - * * `JURY_DUTY` - JURY_DUTY - * * `VOLUNTEER` - VOLUNTEER - * * `BEREAVEMENT` - BEREAVEMENT - */ - policyType?: Merge.hris.TimeOffBalancePolicyType; - /** 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.hris.RemoteData[]; -} diff --git a/src/api/resources/hris/types/TimeOffBalanceEmployee.ts b/src/api/resources/hris/types/TimeOffBalanceEmployee.ts deleted file mode 100644 index 0b6c6f519..000000000 --- a/src/api/resources/hris/types/TimeOffBalanceEmployee.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 the balance belongs to. - */ -export type TimeOffBalanceEmployee = string | Merge.hris.Employee; diff --git a/src/api/resources/hris/types/TimeOffBalancePolicyType.ts b/src/api/resources/hris/types/TimeOffBalancePolicyType.ts deleted file mode 100644 index b5db9afa4..000000000 --- a/src/api/resources/hris/types/TimeOffBalancePolicyType.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The policy type of this time off balance. - * - * * `VACATION` - VACATION - * * `SICK` - SICK - * * `PERSONAL` - PERSONAL - * * `JURY_DUTY` - JURY_DUTY - * * `VOLUNTEER` - VOLUNTEER - * * `BEREAVEMENT` - BEREAVEMENT - */ -export type TimeOffBalancePolicyType = Merge.hris.PolicyTypeEnum | string; diff --git a/src/api/resources/hris/types/TimeOffEmployee.ts b/src/api/resources/hris/types/TimeOffEmployee.ts deleted file mode 100644 index fc3b3ca2e..000000000 --- a/src/api/resources/hris/types/TimeOffEmployee.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 requesting time off. - */ -export type TimeOffEmployee = string | Merge.hris.Employee; diff --git a/src/api/resources/hris/types/TimeOffRequest.ts b/src/api/resources/hris/types/TimeOffRequest.ts deleted file mode 100644 index 765af7146..000000000 --- a/src/api/resources/hris/types/TimeOffRequest.ts +++ /dev/null @@ -1,56 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The TimeOff Object - * ### Description - * The `TimeOff` object is used to represent all employees' Time Off entries. - * - * ### Usage Example - * Fetch from the `LIST TimeOffs` endpoint and filter by `ID` to show all time off requests. - */ -export interface TimeOffRequest { - /** The employee requesting time off. */ - employee?: Merge.hris.TimeOffRequestEmployee; - /** The Merge ID of the employee with the ability to approve the time off request. */ - approver?: Merge.hris.TimeOffRequestApprover; - /** - * The status of this time off request. - * - * * `REQUESTED` - REQUESTED - * * `APPROVED` - APPROVED - * * `DECLINED` - DECLINED - * * `CANCELLED` - CANCELLED - * * `DELETED` - DELETED - */ - status?: Merge.hris.TimeOffRequestStatus; - /** The employee note for this time off request. */ - employeeNote?: string; - /** - * The measurement that the third-party integration uses to count time requested. - * - * * `HOURS` - HOURS - * * `DAYS` - DAYS - */ - units?: Merge.hris.TimeOffRequestUnits; - /** The time off quantity measured by the prescribed “units”. */ - amount?: number; - /** - * The type of time off request. - * - * * `VACATION` - VACATION - * * `SICK` - SICK - * * `PERSONAL` - PERSONAL - * * `JURY_DUTY` - JURY_DUTY - * * `VOLUNTEER` - VOLUNTEER - * * `BEREAVEMENT` - BEREAVEMENT - */ - requestType?: Merge.hris.TimeOffRequestRequestType; - /** The day and time of the start of the time requested off. */ - startTime?: Date; - /** The day and time of the end of the time requested off. */ - endTime?: Date; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/hris/types/TimeOffRequestApprover.ts b/src/api/resources/hris/types/TimeOffRequestApprover.ts deleted file mode 100644 index c9b1c0cc8..000000000 --- a/src/api/resources/hris/types/TimeOffRequestApprover.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 Merge ID of the employee with the ability to approve the time off request. - */ -export type TimeOffRequestApprover = string | Merge.hris.Employee; diff --git a/src/api/resources/hris/types/TimeOffRequestEmployee.ts b/src/api/resources/hris/types/TimeOffRequestEmployee.ts deleted file mode 100644 index 93d7540c9..000000000 --- a/src/api/resources/hris/types/TimeOffRequestEmployee.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 requesting time off. - */ -export type TimeOffRequestEmployee = string | Merge.hris.Employee; diff --git a/src/api/resources/hris/types/TimeOffRequestRequestType.ts b/src/api/resources/hris/types/TimeOffRequestRequestType.ts deleted file mode 100644 index 88d1b1cd6..000000000 --- a/src/api/resources/hris/types/TimeOffRequestRequestType.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The type of time off request. - * - * * `VACATION` - VACATION - * * `SICK` - SICK - * * `PERSONAL` - PERSONAL - * * `JURY_DUTY` - JURY_DUTY - * * `VOLUNTEER` - VOLUNTEER - * * `BEREAVEMENT` - BEREAVEMENT - */ -export type TimeOffRequestRequestType = Merge.hris.RequestTypeEnum | string; diff --git a/src/api/resources/hris/types/TimeOffRequestStatus.ts b/src/api/resources/hris/types/TimeOffRequestStatus.ts deleted file mode 100644 index 83682818e..000000000 --- a/src/api/resources/hris/types/TimeOffRequestStatus.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The status of this time off request. - * - * * `REQUESTED` - REQUESTED - * * `APPROVED` - APPROVED - * * `DECLINED` - DECLINED - * * `CANCELLED` - CANCELLED - * * `DELETED` - DELETED - */ -export type TimeOffRequestStatus = Merge.hris.TimeOffStatusEnum | string; diff --git a/src/api/resources/hris/types/TimeOffRequestType.ts b/src/api/resources/hris/types/TimeOffRequestType.ts deleted file mode 100644 index 717f8a1cd..000000000 --- a/src/api/resources/hris/types/TimeOffRequestType.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The type of time off request. - * - * * `VACATION` - VACATION - * * `SICK` - SICK - * * `PERSONAL` - PERSONAL - * * `JURY_DUTY` - JURY_DUTY - * * `VOLUNTEER` - VOLUNTEER - * * `BEREAVEMENT` - BEREAVEMENT - */ -export type TimeOffRequestType = Merge.hris.RequestTypeEnum | string; diff --git a/src/api/resources/hris/types/TimeOffRequestUnits.ts b/src/api/resources/hris/types/TimeOffRequestUnits.ts deleted file mode 100644 index 7d601ae11..000000000 --- a/src/api/resources/hris/types/TimeOffRequestUnits.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 measurement that the third-party integration uses to count time requested. - * - * * `HOURS` - HOURS - * * `DAYS` - DAYS - */ -export type TimeOffRequestUnits = Merge.hris.UnitsEnum | string; diff --git a/src/api/resources/hris/types/TimeOffResponse.ts b/src/api/resources/hris/types/TimeOffResponse.ts deleted file mode 100644 index ba5cf6854..000000000 --- a/src/api/resources/hris/types/TimeOffResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface TimeOffResponse { - model: Merge.hris.TimeOff; - warnings: Merge.hris.WarningValidationProblem[]; - errors: Merge.hris.ErrorValidationProblem[]; - logs?: Merge.hris.DebugModeLog[]; -} diff --git a/src/api/resources/hris/types/TimeOffStatus.ts b/src/api/resources/hris/types/TimeOffStatus.ts deleted file mode 100644 index 5bd654ab5..000000000 --- a/src/api/resources/hris/types/TimeOffStatus.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The status of this time off request. - * - * * `REQUESTED` - REQUESTED - * * `APPROVED` - APPROVED - * * `DECLINED` - DECLINED - * * `CANCELLED` - CANCELLED - * * `DELETED` - DELETED - */ -export type TimeOffStatus = Merge.hris.TimeOffStatusEnum | string; diff --git a/src/api/resources/hris/types/TimeOffStatusEnum.ts b/src/api/resources/hris/types/TimeOffStatusEnum.ts deleted file mode 100644 index eb2e6a501..000000000 --- a/src/api/resources/hris/types/TimeOffStatusEnum.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `REQUESTED` - REQUESTED - * * `APPROVED` - APPROVED - * * `DECLINED` - DECLINED - * * `CANCELLED` - CANCELLED - * * `DELETED` - DELETED - */ -export const TimeOffStatusEnum = { - Requested: "REQUESTED", - Approved: "APPROVED", - Declined: "DECLINED", - Cancelled: "CANCELLED", - Deleted: "DELETED", -} as const; -export type TimeOffStatusEnum = (typeof TimeOffStatusEnum)[keyof typeof TimeOffStatusEnum]; diff --git a/src/api/resources/hris/types/TimeOffUnits.ts b/src/api/resources/hris/types/TimeOffUnits.ts deleted file mode 100644 index af10a0979..000000000 --- a/src/api/resources/hris/types/TimeOffUnits.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 measurement that the third-party integration uses to count time requested. - * - * * `HOURS` - HOURS - * * `DAYS` - DAYS - */ -export type TimeOffUnits = Merge.hris.UnitsEnum | string; diff --git a/src/api/resources/hris/types/TimesheetEntry.ts b/src/api/resources/hris/types/TimesheetEntry.ts deleted file mode 100644 index 9a2841431..000000000 --- a/src/api/resources/hris/types/TimesheetEntry.ts +++ /dev/null @@ -1,34 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Timesheet Entry Object - * ### Description - * The `Timesheet Entry` object is used to track coverage for hours worked by an 'Employee'. - * - * - * ### Usage Example - * GET and POST Timesheet Entries - */ -export interface TimesheetEntry { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The employee the timesheet entry is for. */ - employee?: Merge.hris.TimesheetEntryEmployee; - /** The number of hours logged by the employee. */ - hoursWorked?: number; - /** The time at which the employee started work. */ - startTime?: Date; - /** The time at which the employee ended work. */ - endTime?: 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.hris.RemoteData[]; -} diff --git a/src/api/resources/hris/types/TimesheetEntryEmployee.ts b/src/api/resources/hris/types/TimesheetEntryEmployee.ts deleted file mode 100644 index 8f8213839..000000000 --- a/src/api/resources/hris/types/TimesheetEntryEmployee.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 the timesheet entry is for. - */ -export type TimesheetEntryEmployee = string | Merge.hris.Employee; diff --git a/src/api/resources/hris/types/TimesheetEntryRequest.ts b/src/api/resources/hris/types/TimesheetEntryRequest.ts deleted file mode 100644 index c5784cc05..000000000 --- a/src/api/resources/hris/types/TimesheetEntryRequest.ts +++ /dev/null @@ -1,25 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Timesheet Entry Object - * ### Description - * The `Timesheet Entry` object is used to track coverage for hours worked by an 'Employee'. - * - * - * ### Usage Example - * GET and POST Timesheet Entries - */ -export interface TimesheetEntryRequest { - /** The employee the timesheet entry is for. */ - employee?: Merge.hris.TimesheetEntryRequestEmployee; - /** The number of hours logged by the employee. */ - hoursWorked?: number; - /** The time at which the employee started work. */ - startTime?: Date; - /** The time at which the employee ended work. */ - endTime?: Date; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/hris/types/TimesheetEntryRequestEmployee.ts b/src/api/resources/hris/types/TimesheetEntryRequestEmployee.ts deleted file mode 100644 index 2c076da13..000000000 --- a/src/api/resources/hris/types/TimesheetEntryRequestEmployee.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 the timesheet entry is for. - */ -export type TimesheetEntryRequestEmployee = string | Merge.hris.Employee; diff --git a/src/api/resources/hris/types/TimesheetEntryResponse.ts b/src/api/resources/hris/types/TimesheetEntryResponse.ts deleted file mode 100644 index 52fb23baf..000000000 --- a/src/api/resources/hris/types/TimesheetEntryResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface TimesheetEntryResponse { - model: Merge.hris.TimesheetEntry; - warnings: Merge.hris.WarningValidationProblem[]; - errors: Merge.hris.ErrorValidationProblem[]; - logs?: Merge.hris.DebugModeLog[]; -} diff --git a/src/api/resources/hris/types/UnitsEnum.ts b/src/api/resources/hris/types/UnitsEnum.ts deleted file mode 100644 index b30a62468..000000000 --- a/src/api/resources/hris/types/UnitsEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `HOURS` - HOURS - * * `DAYS` - DAYS - */ -export const UnitsEnum = { - Hours: "HOURS", - Days: "DAYS", -} as const; -export type UnitsEnum = (typeof UnitsEnum)[keyof typeof UnitsEnum]; diff --git a/src/api/resources/hris/types/ValidationProblemSource.ts b/src/api/resources/hris/types/ValidationProblemSource.ts deleted file mode 100644 index 853332073..000000000 --- a/src/api/resources/hris/types/ValidationProblemSource.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface ValidationProblemSource { - pointer: string; -} diff --git a/src/api/resources/hris/types/WarningValidationProblem.ts b/src/api/resources/hris/types/WarningValidationProblem.ts deleted file mode 100644 index 19065e64f..000000000 --- a/src/api/resources/hris/types/WarningValidationProblem.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface WarningValidationProblem { - source?: Merge.hris.ValidationProblemSource; - title: string; - detail: string; - problemType: string; -} diff --git a/src/api/resources/hris/types/WebhookReceiver.ts b/src/api/resources/hris/types/WebhookReceiver.ts deleted file mode 100644 index f9c8ebc4b..000000000 --- a/src/api/resources/hris/types/WebhookReceiver.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface WebhookReceiver { - event: string; - isActive: boolean; - key?: string; -} diff --git a/src/api/resources/hris/types/index.ts b/src/api/resources/hris/types/index.ts deleted file mode 100644 index 92f0860a7..000000000 --- a/src/api/resources/hris/types/index.ts +++ /dev/null @@ -1,199 +0,0 @@ -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 "./AccountTypeEnum"; -export * from "./AdvancedMetadata"; -export * from "./AsyncPassthroughReciept"; -export * from "./AuditLogEvent"; -export * from "./AuditLogEventEventType"; -export * from "./AuditLogEventRole"; -export * from "./AvailableActions"; -export * from "./BankInfo"; -export * from "./BankInfoAccountType"; -export * from "./BankInfoEmployee"; -export * from "./Benefit"; -export * from "./BenefitEmployee"; -export * from "./BenefitPlanTypeEnum"; -export * from "./CategoriesEnum"; -export * from "./CategoryEnum"; -export * from "./CommonModelScopeApi"; -export * from "./CommonModelScopesBodyRequest"; -export * from "./Company"; -export * from "./CompletedAccountInitialScreenEnum"; -export * from "./CountryEnum"; -export * from "./DataPassthroughRequest"; -export * from "./DebugModeLog"; -export * from "./DebugModelLogSummary"; -export * from "./Deduction"; -export * from "./Dependent"; -export * from "./DependentGender"; -export * from "./DependentRelationship"; -export * from "./Earning"; -export * from "./EarningType"; -export * from "./EarningTypeEnum"; -export * from "./Employee"; -export * from "./EmployeeCompany"; -export * from "./EmployeeEmploymentStatus"; -export * from "./EmployeeEmploymentsItem"; -export * from "./EmployeeEthnicity"; -export * from "./EmployeeGender"; -export * from "./EmployeeGroupsItem"; -export * from "./EmployeeHomeLocation"; -export * from "./EmployeeManager"; -export * from "./EmployeeMaritalStatus"; -export * from "./EmployeePayGroup"; -export * from "./EmployeePayrollRun"; -export * from "./EmployeePayrollRunEmployee"; -export * from "./EmployeePayrollRunPayrollRun"; -export * from "./EmployeeRequest"; -export * from "./EmployeeRequestCompany"; -export * from "./EmployeeRequestEmploymentStatus"; -export * from "./EmployeeRequestEmploymentsItem"; -export * from "./EmployeeRequestEthnicity"; -export * from "./EmployeeRequestGender"; -export * from "./EmployeeRequestGroupsItem"; -export * from "./EmployeeRequestHomeLocation"; -export * from "./EmployeeRequestManager"; -export * from "./EmployeeRequestMaritalStatus"; -export * from "./EmployeeRequestPayGroup"; -export * from "./EmployeeRequestTeam"; -export * from "./EmployeeRequestWorkLocation"; -export * from "./EmployeeResponse"; -export * from "./EmployeeTeam"; -export * from "./EmployeeWorkLocation"; -export * from "./EmployerBenefit"; -export * from "./EmployerBenefitBenefitPlanType"; -export * from "./Employment"; -export * from "./EmploymentEmployee"; -export * from "./EmploymentEmploymentType"; -export * from "./EmploymentFlsaStatus"; -export * from "./EmploymentPayCurrency"; -export * from "./EmploymentPayFrequency"; -export * from "./EmploymentPayGroup"; -export * from "./EmploymentPayPeriod"; -export * from "./EmploymentStatusEnum"; -export * from "./EmploymentTypeEnum"; -export * from "./EnabledActionsEnum"; -export * from "./EncodingEnum"; -export * from "./ErrorValidationProblem"; -export * from "./EthnicityEnum"; -export * from "./EventTypeEnum"; -export * from "./ExternalTargetFieldApi"; -export * from "./ExternalTargetFieldApiResponse"; -export * from "./FieldMappingApiInstance"; -export * from "./FieldMappingApiInstanceRemoteField"; -export * from "./FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo"; -export * from "./FieldMappingApiInstanceResponse"; -export * from "./FieldMappingApiInstanceTargetField"; -export * from "./FieldMappingInstanceResponse"; -export * from "./FieldPermissionDeserializer"; -export * from "./FieldPermissionDeserializerRequest"; -export * from "./FlsaStatusEnum"; -export * from "./GenderEnum"; -export * from "./Group"; -export * from "./GroupType"; -export * from "./GroupTypeEnum"; -export * from "./IndividualCommonModelScopeDeserializer"; -export * from "./IndividualCommonModelScopeDeserializerRequest"; -export * from "./Issue"; -export * from "./IssueStatus"; -export * from "./IssueStatusEnum"; -export * from "./LanguageEnum"; -export * from "./LastSyncResultEnum"; -export * from "./LinkedAccountStatus"; -export * from "./LinkToken"; -export * from "./Location"; -export * from "./LocationCountry"; -export * from "./LocationLocationType"; -export * from "./LocationTypeEnum"; -export * from "./MaritalStatusEnum"; -export * from "./MetaResponse"; -export * from "./MethodEnum"; -export * from "./ModelOperation"; -export * from "./ModelPermissionDeserializer"; -export * from "./ModelPermissionDeserializerRequest"; -export * from "./MultipartFormFieldRequest"; -export * from "./MultipartFormFieldRequestEncoding"; -export * from "./PaginatedAccountDetailsAndActionsList"; -export * from "./PaginatedAuditLogEventList"; -export * from "./PaginatedBankInfoList"; -export * from "./PaginatedBenefitList"; -export * from "./PaginatedCompanyList"; -export * from "./PaginatedDependentList"; -export * from "./PaginatedEmployeeList"; -export * from "./PaginatedEmployeePayrollRunList"; -export * from "./PaginatedEmployerBenefitList"; -export * from "./PaginatedEmploymentList"; -export * from "./PaginatedGroupList"; -export * from "./PaginatedIssueList"; -export * from "./PaginatedLocationList"; -export * from "./PaginatedPayGroupList"; -export * from "./PaginatedPayrollRunList"; -export * from "./PaginatedSyncStatusList"; -export * from "./PaginatedTeamList"; -export * from "./PaginatedTimeOffBalanceList"; -export * from "./PaginatedTimeOffList"; -export * from "./PaginatedTimesheetEntryList"; -export * from "./PayCurrencyEnum"; -export * from "./PayFrequencyEnum"; -export * from "./PayGroup"; -export * from "./PayPeriodEnum"; -export * from "./PayrollRun"; -export * from "./PayrollRunRunState"; -export * from "./PayrollRunRunType"; -export * from "./PolicyTypeEnum"; -export * from "./ReasonEnum"; -export * from "./RelationshipEnum"; -export * from "./RemoteData"; -export * from "./RemoteEndpointInfo"; -export * from "./RemoteFieldApi"; -export * from "./RemoteFieldApiCoverage"; -export * from "./RemoteFieldApiResponse"; -export * from "./RemoteKey"; -export * from "./RemoteResponse"; -export * from "./RemoteResponseResponseType"; -export * from "./RequestFormatEnum"; -export * from "./RequestTypeEnum"; -export * from "./ResponseTypeEnum"; -export * from "./RoleEnum"; -export * from "./RunStateEnum"; -export * from "./RunTypeEnum"; -export * from "./SelectiveSyncConfigurationsUsageEnum"; -export * from "./StatusFd5Enum"; -export * from "./SyncStatus"; -export * from "./SyncStatusLastSyncResult"; -export * from "./Tax"; -export * from "./Team"; -export * from "./TeamParentTeam"; -export * from "./TimeOff"; -export * from "./TimeOffApprover"; -export * from "./TimeOffBalance"; -export * from "./TimeOffBalanceEmployee"; -export * from "./TimeOffBalancePolicyType"; -export * from "./TimeOffEmployee"; -export * from "./TimeOffRequest"; -export * from "./TimeOffRequestApprover"; -export * from "./TimeOffRequestEmployee"; -export * from "./TimeOffRequestRequestType"; -export * from "./TimeOffRequestStatus"; -export * from "./TimeOffRequestType"; -export * from "./TimeOffRequestUnits"; -export * from "./TimeOffResponse"; -export * from "./TimeOffStatus"; -export * from "./TimeOffStatusEnum"; -export * from "./TimeOffUnits"; -export * from "./TimesheetEntry"; -export * from "./TimesheetEntryEmployee"; -export * from "./TimesheetEntryRequest"; -export * from "./TimesheetEntryRequestEmployee"; -export * from "./TimesheetEntryResponse"; -export * from "./UnitsEnum"; -export * from "./ValidationProblemSource"; -export * from "./WarningValidationProblem"; -export * from "./WebhookReceiver"; diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts index 759acc241..58ab8f95f 100644 --- a/src/api/resources/index.ts +++ b/src/api/resources/index.ts @@ -1,6 +1 @@ -export * as accounting from "./accounting"; -export * as ats from "./ats"; -export * as crm from "./crm"; export * as filestorage from "./filestorage"; -export * as hris from "./hris"; -export * as ticketing from "./ticketing"; diff --git a/src/api/resources/ticketing/client/Client.ts b/src/api/resources/ticketing/client/Client.ts deleted file mode 100644 index eb2598619..000000000 --- a/src/api/resources/ticketing/client/Client.ts +++ /dev/null @@ -1,184 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type { BaseClientOptions } from "../../../../BaseClient"; -import { type NormalizedClientOptionsWithAuth, normalizeClientOptionsWithAuth } from "../../../../BaseClient"; -import { AccountDetailsClient } from "../resources/accountDetails/client/Client"; -import { AccountsClient } from "../resources/accounts/client/Client"; -import { AccountTokenClient } from "../resources/accountToken/client/Client"; -import { AsyncPassthroughClient } from "../resources/asyncPassthrough/client/Client"; -import { AttachmentsClient } from "../resources/attachments/client/Client"; -import { AuditTrailClient } from "../resources/auditTrail/client/Client"; -import { AvailableActionsClient } from "../resources/availableActions/client/Client"; -import { CollectionsClient } from "../resources/collections/client/Client"; -import { CommentsClient } from "../resources/comments/client/Client"; -import { ContactsClient } from "../resources/contacts/client/Client"; -import { DeleteAccountClient } from "../resources/deleteAccount/client/Client"; -import { FieldMappingClient } from "../resources/fieldMapping/client/Client"; -import { ForceResyncClient } from "../resources/forceResync/client/Client"; -import { GenerateKeyClient } from "../resources/generateKey/client/Client"; -import { IssuesClient } from "../resources/issues/client/Client"; -import { LinkedAccountsClient } from "../resources/linkedAccounts/client/Client"; -import { LinkTokenClient } from "../resources/linkToken/client/Client"; -import { PassthroughClient } from "../resources/passthrough/client/Client"; -import { ProjectsClient } from "../resources/projects/client/Client"; -import { RegenerateKeyClient } from "../resources/regenerateKey/client/Client"; -import { RolesClient } from "../resources/roles/client/Client"; -import { ScopesClient } from "../resources/scopes/client/Client"; -import { SyncStatusClient } from "../resources/syncStatus/client/Client"; -import { TagsClient } from "../resources/tags/client/Client"; -import { TeamsClient } from "../resources/teams/client/Client"; -import { TicketsClient } from "../resources/tickets/client/Client"; -import { UsersClient } from "../resources/users/client/Client"; -import { WebhookReceiversClient } from "../resources/webhookReceivers/client/Client"; - -export declare namespace TicketingClient { - export type Options = BaseClientOptions; -} - -export class TicketingClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - protected _accountDetails: AccountDetailsClient | undefined; - protected _accountToken: AccountTokenClient | undefined; - protected _accounts: AccountsClient | undefined; - protected _asyncPassthrough: AsyncPassthroughClient | undefined; - protected _attachments: AttachmentsClient | undefined; - protected _auditTrail: AuditTrailClient | undefined; - protected _availableActions: AvailableActionsClient | undefined; - protected _collections: CollectionsClient | undefined; - protected _comments: CommentsClient | undefined; - protected _contacts: ContactsClient | undefined; - protected _scopes: ScopesClient | undefined; - protected _deleteAccount: DeleteAccountClient | undefined; - protected _fieldMapping: FieldMappingClient | undefined; - protected _generateKey: GenerateKeyClient | undefined; - protected _issues: IssuesClient | undefined; - protected _linkToken: LinkTokenClient | undefined; - protected _linkedAccounts: LinkedAccountsClient | undefined; - protected _passthrough: PassthroughClient | undefined; - protected _projects: ProjectsClient | undefined; - protected _regenerateKey: RegenerateKeyClient | undefined; - protected _roles: RolesClient | undefined; - protected _syncStatus: SyncStatusClient | undefined; - protected _forceResync: ForceResyncClient | undefined; - protected _tags: TagsClient | undefined; - protected _teams: TeamsClient | undefined; - protected _tickets: TicketsClient | undefined; - protected _users: UsersClient | undefined; - protected _webhookReceivers: WebhookReceiversClient | undefined; - - constructor(options: TicketingClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - public get accountDetails(): AccountDetailsClient { - return (this._accountDetails ??= new AccountDetailsClient(this._options)); - } - - public get accountToken(): AccountTokenClient { - return (this._accountToken ??= new AccountTokenClient(this._options)); - } - - public get accounts(): AccountsClient { - return (this._accounts ??= new AccountsClient(this._options)); - } - - public get asyncPassthrough(): AsyncPassthroughClient { - return (this._asyncPassthrough ??= new AsyncPassthroughClient(this._options)); - } - - public get attachments(): AttachmentsClient { - return (this._attachments ??= new AttachmentsClient(this._options)); - } - - public get auditTrail(): AuditTrailClient { - return (this._auditTrail ??= new AuditTrailClient(this._options)); - } - - public get availableActions(): AvailableActionsClient { - return (this._availableActions ??= new AvailableActionsClient(this._options)); - } - - public get collections(): CollectionsClient { - return (this._collections ??= new CollectionsClient(this._options)); - } - - public get comments(): CommentsClient { - return (this._comments ??= new CommentsClient(this._options)); - } - - public get contacts(): ContactsClient { - return (this._contacts ??= new ContactsClient(this._options)); - } - - public get scopes(): ScopesClient { - return (this._scopes ??= new ScopesClient(this._options)); - } - - public get deleteAccount(): DeleteAccountClient { - return (this._deleteAccount ??= new DeleteAccountClient(this._options)); - } - - public get fieldMapping(): FieldMappingClient { - return (this._fieldMapping ??= new FieldMappingClient(this._options)); - } - - public get generateKey(): GenerateKeyClient { - return (this._generateKey ??= new GenerateKeyClient(this._options)); - } - - public get issues(): IssuesClient { - return (this._issues ??= new IssuesClient(this._options)); - } - - public get linkToken(): LinkTokenClient { - return (this._linkToken ??= new LinkTokenClient(this._options)); - } - - public get linkedAccounts(): LinkedAccountsClient { - return (this._linkedAccounts ??= new LinkedAccountsClient(this._options)); - } - - public get passthrough(): PassthroughClient { - return (this._passthrough ??= new PassthroughClient(this._options)); - } - - public get projects(): ProjectsClient { - return (this._projects ??= new ProjectsClient(this._options)); - } - - public get regenerateKey(): RegenerateKeyClient { - return (this._regenerateKey ??= new RegenerateKeyClient(this._options)); - } - - public get roles(): RolesClient { - return (this._roles ??= new RolesClient(this._options)); - } - - public get syncStatus(): SyncStatusClient { - return (this._syncStatus ??= new SyncStatusClient(this._options)); - } - - public get forceResync(): ForceResyncClient { - return (this._forceResync ??= new ForceResyncClient(this._options)); - } - - public get tags(): TagsClient { - return (this._tags ??= new TagsClient(this._options)); - } - - public get teams(): TeamsClient { - return (this._teams ??= new TeamsClient(this._options)); - } - - public get tickets(): TicketsClient { - return (this._tickets ??= new TicketsClient(this._options)); - } - - public get users(): UsersClient { - return (this._users ??= new UsersClient(this._options)); - } - - public get webhookReceivers(): WebhookReceiversClient { - return (this._webhookReceivers ??= new WebhookReceiversClient(this._options)); - } -} diff --git a/src/api/resources/ticketing/client/index.ts b/src/api/resources/ticketing/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/ticketing/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/ticketing/exports.ts b/src/api/resources/ticketing/exports.ts deleted file mode 100644 index 38bfd9064..000000000 --- a/src/api/resources/ticketing/exports.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { TicketingClient } from "./client/Client"; -export * from "./client/index"; -export * from "./resources/index"; diff --git a/src/api/resources/ticketing/index.ts b/src/api/resources/ticketing/index.ts deleted file mode 100644 index fb00ab43d..000000000 --- a/src/api/resources/ticketing/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./client"; -export * from "./resources"; -export * from "./types"; diff --git a/src/api/resources/ticketing/resources/accountDetails/client/Client.ts b/src/api/resources/ticketing/resources/accountDetails/client/Client.ts deleted file mode 100644 index f4450ae75..000000000 --- a/src/api/resources/ticketing/resources/accountDetails/client/Client.ts +++ /dev/null @@ -1,89 +0,0 @@ -// 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 AccountDetailsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AccountDetailsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AccountDetailsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Get details for a linked account. - * - * @param {AccountDetailsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.accountDetails.retrieve() - */ - public retrieve( - requestOptions?: AccountDetailsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(requestOptions)); - } - - private async __retrieve( - requestOptions?: AccountDetailsClient.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-details", - ), - 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.ticketing.AccountDetails.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/account-details"); - } -} diff --git a/src/api/resources/ticketing/resources/accountDetails/client/index.ts b/src/api/resources/ticketing/resources/accountDetails/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/ticketing/resources/accountDetails/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/ticketing/resources/accountDetails/exports.ts b/src/api/resources/ticketing/resources/accountDetails/exports.ts deleted file mode 100644 index 418f11a73..000000000 --- a/src/api/resources/ticketing/resources/accountDetails/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AccountDetailsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/accountDetails/index.ts b/src/api/resources/ticketing/resources/accountDetails/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ticketing/resources/accountDetails/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ticketing/resources/accountToken/client/Client.ts b/src/api/resources/ticketing/resources/accountToken/client/Client.ts deleted file mode 100644 index 57cc0ec12..000000000 --- a/src/api/resources/ticketing/resources/accountToken/client/Client.ts +++ /dev/null @@ -1,97 +0,0 @@ -// 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 AccountTokenClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AccountTokenClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AccountTokenClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns the account token for the end user with the provided public token. - * - * @param {string} public_token - * @param {AccountTokenClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.accountToken.retrieve("public_token") - */ - public retrieve( - public_token: string, - requestOptions?: AccountTokenClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(public_token, requestOptions)); - } - - private async __retrieve( - public_token: string, - 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/${core.url.encodePathParam(public_token)}`, - ), - 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.ticketing.AccountToken.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/account-token/{public_token}", - ); - } -} diff --git a/src/api/resources/ticketing/resources/accountToken/client/index.ts b/src/api/resources/ticketing/resources/accountToken/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/ticketing/resources/accountToken/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/ticketing/resources/accountToken/exports.ts b/src/api/resources/ticketing/resources/accountToken/exports.ts deleted file mode 100644 index 52f681c49..000000000 --- a/src/api/resources/ticketing/resources/accountToken/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AccountTokenClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/accountToken/index.ts b/src/api/resources/ticketing/resources/accountToken/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ticketing/resources/accountToken/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ticketing/resources/accounts/client/Client.ts b/src/api/resources/ticketing/resources/accounts/client/Client.ts deleted file mode 100644 index 59d5c3274..000000000 --- a/src/api/resources/ticketing/resources/accounts/client/Client.ts +++ /dev/null @@ -1,205 +0,0 @@ -// 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 AccountsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AccountsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AccountsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Account` objects. - * - * @param {Merge.ticketing.AccountsListRequest} request - * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns an `Account` object with the given `id`. - * - * @param {string} id - * @param {Merge.ticketing.AccountsRetrieveRequest} request - * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.accounts.retrieve("id", { - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.ticketing.AccountsRetrieveRequest = {}, - requestOptions?: AccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.ticketing.AccountsRetrieveRequest = {}, - requestOptions?: AccountsClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `ticketing/v1/accounts/${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.ticketing.Account.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/ticketing/resources/accounts/client/index.ts b/src/api/resources/ticketing/resources/accounts/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ticketing/resources/accounts/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ticketing/resources/accounts/client/requests/AccountsListRequest.ts b/src/api/resources/ticketing/resources/accounts/client/requests/AccountsListRequest.ts deleted file mode 100644 index 54ddb4b84..000000000 --- a/src/api/resources/ticketing/resources/accounts/client/requests/AccountsListRequest.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - * pageSize: 1, - * remoteId: "remote_id" - * } - */ -export interface AccountsListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. */ - pageSize?: number; - /** The API provider's ID for the given object. */ - remoteId?: string; -} diff --git a/src/api/resources/ticketing/resources/accounts/client/requests/AccountsRetrieveRequest.ts b/src/api/resources/ticketing/resources/accounts/client/requests/AccountsRetrieveRequest.ts deleted file mode 100644 index 1ad21c951..000000000 --- a/src/api/resources/ticketing/resources/accounts/client/requests/AccountsRetrieveRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * includeRemoteData: true, - * includeShellData: true - * } - */ -export interface AccountsRetrieveRequest { - /** 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; -} diff --git a/src/api/resources/ticketing/resources/accounts/client/requests/index.ts b/src/api/resources/ticketing/resources/accounts/client/requests/index.ts deleted file mode 100644 index 4f6341f9b..000000000 --- a/src/api/resources/ticketing/resources/accounts/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { AccountsListRequest } from "./AccountsListRequest"; -export type { AccountsRetrieveRequest } from "./AccountsRetrieveRequest"; diff --git a/src/api/resources/ticketing/resources/accounts/exports.ts b/src/api/resources/ticketing/resources/accounts/exports.ts deleted file mode 100644 index 11698f7e4..000000000 --- a/src/api/resources/ticketing/resources/accounts/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AccountsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/accounts/index.ts b/src/api/resources/ticketing/resources/accounts/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ticketing/resources/accounts/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ticketing/resources/asyncPassthrough/client/Client.ts b/src/api/resources/ticketing/resources/asyncPassthrough/client/Client.ts deleted file mode 100644 index aed0fbb31..000000000 --- a/src/api/resources/ticketing/resources/asyncPassthrough/client/Client.ts +++ /dev/null @@ -1,177 +0,0 @@ -// 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 AsyncPassthroughClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AsyncPassthroughClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AsyncPassthroughClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Asynchronously pull data from an endpoint not currently supported by Merge. - * - * @param {Merge.ticketing.DataPassthroughRequest} request - * @param {AsyncPassthroughClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.asyncPassthrough.create({ - * method: "GET", - * path: "/scooters" - * }) - */ - public create( - request: Merge.ticketing.DataPassthroughRequest, - requestOptions?: AsyncPassthroughClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.ticketing.DataPassthroughRequest, - requestOptions?: AsyncPassthroughClient.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/async-passthrough", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.ticketing.DataPassthroughRequest.jsonOrThrow(request, { - 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.ticketing.AsyncPassthroughReciept.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/async-passthrough", - ); - } - - /** - * Retrieves data from earlier async-passthrough POST request - * - * @param {string} async_passthrough_receipt_id - * @param {AsyncPassthroughClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.asyncPassthrough.retrieve("async_passthrough_receipt_id") - */ - public retrieve( - async_passthrough_receipt_id: string, - requestOptions?: AsyncPassthroughClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(async_passthrough_receipt_id, requestOptions)); - } - - private async __retrieve( - async_passthrough_receipt_id: string, - requestOptions?: AsyncPassthroughClient.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/async-passthrough/${core.url.encodePathParam(async_passthrough_receipt_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.ticketing.AsyncPassthroughRetrieveResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/async-passthrough/{async_passthrough_receipt_id}", - ); - } -} diff --git a/src/api/resources/ticketing/resources/asyncPassthrough/client/index.ts b/src/api/resources/ticketing/resources/asyncPassthrough/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/ticketing/resources/asyncPassthrough/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/ticketing/resources/asyncPassthrough/exports.ts b/src/api/resources/ticketing/resources/asyncPassthrough/exports.ts deleted file mode 100644 index 559d07505..000000000 --- a/src/api/resources/ticketing/resources/asyncPassthrough/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AsyncPassthroughClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/asyncPassthrough/index.ts b/src/api/resources/ticketing/resources/asyncPassthrough/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/ticketing/resources/asyncPassthrough/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/ticketing/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.ts b/src/api/resources/ticketing/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.ts deleted file mode 100644 index c1b212cf1..000000000 --- a/src/api/resources/ticketing/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.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 AsyncPassthroughRetrieveResponse = Merge.ticketing.RemoteResponse | string; diff --git a/src/api/resources/ticketing/resources/asyncPassthrough/types/index.ts b/src/api/resources/ticketing/resources/asyncPassthrough/types/index.ts deleted file mode 100644 index f2b2d0e21..000000000 --- a/src/api/resources/ticketing/resources/asyncPassthrough/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./AsyncPassthroughRetrieveResponse"; diff --git a/src/api/resources/ticketing/resources/attachments/client/Client.ts b/src/api/resources/ticketing/resources/attachments/client/Client.ts deleted file mode 100644 index fc52722ca..000000000 --- a/src/api/resources/ticketing/resources/attachments/client/Client.ts +++ /dev/null @@ -1,437 +0,0 @@ -// 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"; -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 AttachmentsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AttachmentsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AttachmentsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Attachment` objects. - * - * @param {Merge.ticketing.AttachmentsListRequest} request - * @param {AttachmentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Creates an `Attachment` object with the given values. - * - * @param {Merge.ticketing.TicketingAttachmentEndpointRequest} request - * @param {AttachmentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.attachments.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public create( - request: Merge.ticketing.TicketingAttachmentEndpointRequest, - requestOptions?: AttachmentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.ticketing.TicketingAttachmentEndpointRequest, - requestOptions?: AttachmentsClient.RequestOptions, - ): Promise> { - const { isDebugMode, runAsync, ..._body } = request; - const _queryParams: Record = { - is_debug_mode: isDebugMode, - run_async: runAsync, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ticketing/v1/attachments", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.ticketing.TicketingAttachmentEndpointRequest.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.ticketing.TicketingAttachmentResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/attachments"); - } - - /** - * Returns an `Attachment` object with the given `id`. - * - * @param {string} id - * @param {Merge.ticketing.AttachmentsRetrieveRequest} request - * @param {AttachmentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.attachments.retrieve("id", { - * expand: "ticket", - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.ticketing.AttachmentsRetrieveRequest = {}, - requestOptions?: AttachmentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.ticketing.AttachmentsRetrieveRequest = {}, - requestOptions?: AttachmentsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - expand: expand != null ? expand : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/${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.ticketing.Attachment.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}", - ); - } - - /** - * Returns the `File` content with the given `id` as a stream of bytes. - */ - public downloadRetrieve( - id: string, - request: Merge.ticketing.AttachmentsDownloadRetrieveRequest = {}, - requestOptions?: AttachmentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__downloadRetrieve(id, request, requestOptions)); - } - - private async __downloadRetrieve( - id: string, - request: Merge.ticketing.AttachmentsDownloadRetrieveRequest = {}, - requestOptions?: AttachmentsClient.RequestOptions, - ): Promise> { - const { includeShellData, mimeType } = request; - const _queryParams: Record = { - include_shell_data: includeShellData, - mime_type: mimeType, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/${core.url.encodePathParam(id)}/download`, - ), - 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, - fetchFn: this._options?.fetch, - logging: this._options.logging, - }); - if (_response.ok) { - return { data: _response.body, rawResponse: _response.rawResponse }; - } - - if (_response.error.reason === "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/{id}/download", - ); - } - - /** - * Returns metadata for `TicketingAttachment` POSTs. - * - * @param {AttachmentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.attachments.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: AttachmentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: AttachmentsClient.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/attachments/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.ticketing.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", - "/ticketing/v1/attachments/meta/post", - ); - } -} diff --git a/src/api/resources/ticketing/resources/attachments/client/index.ts b/src/api/resources/ticketing/resources/attachments/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ticketing/resources/attachments/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ticketing/resources/attachments/client/requests/AttachmentsDownloadRetrieveRequest.ts b/src/api/resources/ticketing/resources/attachments/client/requests/AttachmentsDownloadRetrieveRequest.ts deleted file mode 100644 index b03ec95ac..000000000 --- a/src/api/resources/ticketing/resources/attachments/client/requests/AttachmentsDownloadRetrieveRequest.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface AttachmentsDownloadRetrieveRequest { - /** 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, 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. */ - mimeType?: string; -} diff --git a/src/api/resources/ticketing/resources/attachments/client/requests/AttachmentsListRequest.ts b/src/api/resources/ticketing/resources/attachments/client/requests/AttachmentsListRequest.ts deleted file mode 100644 index 40f1d8b71..000000000 --- a/src/api/resources/ticketing/resources/attachments/client/requests/AttachmentsListRequest.ts +++ /dev/null @@ -1,48 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * 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" - * } - */ -export interface AttachmentsListRequest { - /** 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?: "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. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; - /** If provided, will only return attachments created in the third party platform after this datetime. */ - remoteCreatedAfter?: Date; - /** The API provider's ID for the given object. */ - remoteId?: string; - /** If provided, will only return comments for this ticket. */ - ticketId?: string; -} diff --git a/src/api/resources/ticketing/resources/attachments/client/requests/AttachmentsRetrieveRequest.ts b/src/api/resources/ticketing/resources/attachments/client/requests/AttachmentsRetrieveRequest.ts deleted file mode 100644 index 889e4d930..000000000 --- a/src/api/resources/ticketing/resources/attachments/client/requests/AttachmentsRetrieveRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @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"; - /** 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; -} diff --git a/src/api/resources/ticketing/resources/attachments/client/requests/TicketingAttachmentEndpointRequest.ts b/src/api/resources/ticketing/resources/attachments/client/requests/TicketingAttachmentEndpointRequest.ts deleted file mode 100644 index f4b0a75e8..000000000 --- a/src/api/resources/ticketing/resources/attachments/client/requests/TicketingAttachmentEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface TicketingAttachmentEndpointRequest { - /** Whether to include debug fields (such as log file links) in the response. */ - isDebugMode?: boolean; - /** Whether or not third-party updates should be run asynchronously. */ - runAsync?: boolean; - model: Merge.ticketing.AttachmentRequest; -} diff --git a/src/api/resources/ticketing/resources/attachments/client/requests/index.ts b/src/api/resources/ticketing/resources/attachments/client/requests/index.ts deleted file mode 100644 index 8b4ccb0c5..000000000 --- a/src/api/resources/ticketing/resources/attachments/client/requests/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export type { AttachmentsDownloadRetrieveRequest } from "./AttachmentsDownloadRetrieveRequest"; -export type { AttachmentsListRequest } from "./AttachmentsListRequest"; -export type { AttachmentsRetrieveRequest } from "./AttachmentsRetrieveRequest"; -export type { TicketingAttachmentEndpointRequest } from "./TicketingAttachmentEndpointRequest"; diff --git a/src/api/resources/ticketing/resources/attachments/exports.ts b/src/api/resources/ticketing/resources/attachments/exports.ts deleted file mode 100644 index cdb3146a3..000000000 --- a/src/api/resources/ticketing/resources/attachments/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AttachmentsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/attachments/index.ts b/src/api/resources/ticketing/resources/attachments/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ticketing/resources/attachments/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ticketing/resources/auditTrail/client/Client.ts b/src/api/resources/ticketing/resources/auditTrail/client/Client.ts deleted file mode 100644 index a23d1bd09..000000000 --- a/src/api/resources/ticketing/resources/auditTrail/client/Client.ts +++ /dev/null @@ -1,108 +0,0 @@ -// 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 AuditTrailClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AuditTrailClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AuditTrailClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Gets a list of audit trail events. - * - * @param {Merge.ticketing.AuditTrailListRequest} request - * @param {AuditTrailClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.auditTrail.list({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * endDate: "end_date", - * eventType: "event_type", - * pageSize: 1, - * startDate: "start_date", - * userEmail: "user_email" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } -} diff --git a/src/api/resources/ticketing/resources/auditTrail/client/index.ts b/src/api/resources/ticketing/resources/auditTrail/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ticketing/resources/auditTrail/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ticketing/resources/auditTrail/client/requests/AuditTrailListRequest.ts b/src/api/resources/ticketing/resources/auditTrail/client/requests/AuditTrailListRequest.ts deleted file mode 100644 index b188a570e..000000000 --- a/src/api/resources/ticketing/resources/auditTrail/client/requests/AuditTrailListRequest.ts +++ /dev/null @@ -1,27 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * endDate: "end_date", - * eventType: "event_type", - * pageSize: 1, - * startDate: "start_date", - * userEmail: "user_email" - * } - */ -export interface AuditTrailListRequest { - /** The pagination cursor value. */ - cursor?: string; - /** If included, will only include audit trail events that occurred before this time */ - 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. The maximum limit is 100. */ - pageSize?: number; - /** If included, will only include audit trail events that occurred after this time */ - startDate?: string; - /** If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email. */ - userEmail?: string; -} diff --git a/src/api/resources/ticketing/resources/auditTrail/client/requests/index.ts b/src/api/resources/ticketing/resources/auditTrail/client/requests/index.ts deleted file mode 100644 index 1878598de..000000000 --- a/src/api/resources/ticketing/resources/auditTrail/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { AuditTrailListRequest } from "./AuditTrailListRequest"; diff --git a/src/api/resources/ticketing/resources/auditTrail/exports.ts b/src/api/resources/ticketing/resources/auditTrail/exports.ts deleted file mode 100644 index 0a7d225a1..000000000 --- a/src/api/resources/ticketing/resources/auditTrail/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AuditTrailClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/auditTrail/index.ts b/src/api/resources/ticketing/resources/auditTrail/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ticketing/resources/auditTrail/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ticketing/resources/availableActions/client/Client.ts b/src/api/resources/ticketing/resources/availableActions/client/Client.ts deleted file mode 100644 index 699f4d0b0..000000000 --- a/src/api/resources/ticketing/resources/availableActions/client/Client.ts +++ /dev/null @@ -1,94 +0,0 @@ -// 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 AvailableActionsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class AvailableActionsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: AvailableActionsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of models and actions available for an account. - * - * @param {AvailableActionsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.availableActions.retrieve() - */ - public retrieve( - requestOptions?: AvailableActionsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(requestOptions)); - } - - private async __retrieve( - requestOptions?: AvailableActionsClient.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/available-actions", - ), - 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.ticketing.AvailableActions.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/available-actions", - ); - } -} diff --git a/src/api/resources/ticketing/resources/availableActions/client/index.ts b/src/api/resources/ticketing/resources/availableActions/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/ticketing/resources/availableActions/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/ticketing/resources/availableActions/exports.ts b/src/api/resources/ticketing/resources/availableActions/exports.ts deleted file mode 100644 index 660bd32af..000000000 --- a/src/api/resources/ticketing/resources/availableActions/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { AvailableActionsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/availableActions/index.ts b/src/api/resources/ticketing/resources/availableActions/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ticketing/resources/availableActions/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ticketing/resources/collections/client/Client.ts b/src/api/resources/ticketing/resources/collections/client/Client.ts deleted file mode 100644 index fd6d247b9..000000000 --- a/src/api/resources/ticketing/resources/collections/client/Client.ts +++ /dev/null @@ -1,335 +0,0 @@ -// 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 CollectionsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class CollectionsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: CollectionsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Collection` objects. - * - * @param {Merge.ticketing.CollectionsListRequest} request - * @param {CollectionsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * 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) - * - * @param {string} collection_id - * @param {Merge.ticketing.CollectionsViewersListRequest} request - * @param {CollectionsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.collections.viewersList("collection_id", { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "team", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * pageSize: 1 - * }) - */ - public 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, - ); - const _response = await (this._options.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", - ); - } - - /** - * Returns a `Collection` object with the given `id`. - * - * @param {string} id - * @param {Merge.ticketing.CollectionsRetrieveRequest} request - * @param {CollectionsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.collections.retrieve("id", { - * expand: "parent_collection", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "collection_type", - * showEnumOrigins: "collection_type" - * }) - */ - public retrieve( - id: string, - request: Merge.ticketing.CollectionsRetrieveRequest = {}, - requestOptions?: CollectionsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.ticketing.CollectionsRetrieveRequest = {}, - requestOptions?: CollectionsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; - const _queryParams: Record = { - expand: expand != null ? expand : undefined, - include_remote_data: includeRemoteData, - 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, - `ticketing/v1/collections/${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.ticketing.Collection.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}", - ); - } -} diff --git a/src/api/resources/ticketing/resources/collections/client/index.ts b/src/api/resources/ticketing/resources/collections/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ticketing/resources/collections/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ticketing/resources/collections/client/requests/CollectionsListRequest.ts b/src/api/resources/ticketing/resources/collections/client/requests/CollectionsListRequest.ts deleted file mode 100644 index 7f11cd592..000000000 --- a/src/api/resources/ticketing/resources/collections/client/requests/CollectionsListRequest.ts +++ /dev/null @@ -1,59 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * 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" - * } - */ -export interface CollectionsListRequest { - /** If provided, will only return collections of the given type. */ - collectionType?: Merge.ticketing.CollectionsListRequestCollectionType; - /** 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?: "parent_collection"; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** If provided, will only return collections with this name. */ - name?: string; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; - /** If provided, will only return collections whose parent collection matches the given id. */ - parentCollectionId?: string; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: "collection_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?: "collection_type"; -} diff --git a/src/api/resources/ticketing/resources/collections/client/requests/CollectionsRetrieveRequest.ts b/src/api/resources/ticketing/resources/collections/client/requests/CollectionsRetrieveRequest.ts deleted file mode 100644 index 9cb9ed8f3..000000000 --- a/src/api/resources/ticketing/resources/collections/client/requests/CollectionsRetrieveRequest.ts +++ /dev/null @@ -1,24 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * expand: "parent_collection", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "collection_type", - * showEnumOrigins: "collection_type" - * } - */ -export interface CollectionsRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "parent_collection"; - /** 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; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: "collection_type"; - /** 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?: "collection_type"; -} diff --git a/src/api/resources/ticketing/resources/collections/client/requests/CollectionsViewersListRequest.ts b/src/api/resources/ticketing/resources/collections/client/requests/CollectionsViewersListRequest.ts deleted file mode 100644 index ce3eea657..000000000 --- a/src/api/resources/ticketing/resources/collections/client/requests/CollectionsViewersListRequest.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "team", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * pageSize: 1 - * } - */ -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; - /** 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. */ - pageSize?: number; -} diff --git a/src/api/resources/ticketing/resources/collections/client/requests/index.ts b/src/api/resources/ticketing/resources/collections/client/requests/index.ts deleted file mode 100644 index ba3e5e960..000000000 --- a/src/api/resources/ticketing/resources/collections/client/requests/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type { CollectionsListRequest } from "./CollectionsListRequest"; -export type { CollectionsRetrieveRequest } from "./CollectionsRetrieveRequest"; -export type { CollectionsViewersListRequest } from "./CollectionsViewersListRequest"; diff --git a/src/api/resources/ticketing/resources/collections/exports.ts b/src/api/resources/ticketing/resources/collections/exports.ts deleted file mode 100644 index f4a4cb567..000000000 --- a/src/api/resources/ticketing/resources/collections/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { CollectionsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/collections/index.ts b/src/api/resources/ticketing/resources/collections/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/ticketing/resources/collections/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/ticketing/resources/collections/types/CollectionsListRequestCollectionType.ts b/src/api/resources/ticketing/resources/collections/types/CollectionsListRequestCollectionType.ts deleted file mode 100644 index 04421851b..000000000 --- a/src/api/resources/ticketing/resources/collections/types/CollectionsListRequestCollectionType.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const CollectionsListRequestCollectionType = { - Empty: "", - List: "LIST", - Project: "PROJECT", -} as const; -export type CollectionsListRequestCollectionType = - (typeof CollectionsListRequestCollectionType)[keyof typeof CollectionsListRequestCollectionType]; 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/index.ts b/src/api/resources/ticketing/resources/collections/types/index.ts deleted file mode 100644 index fa9590b69..000000000 --- a/src/api/resources/ticketing/resources/collections/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./CollectionsListRequestCollectionType"; -export * from "./CollectionsViewersListRequestExpand"; diff --git a/src/api/resources/ticketing/resources/comments/client/Client.ts b/src/api/resources/ticketing/resources/comments/client/Client.ts deleted file mode 100644 index 358270d10..000000000 --- a/src/api/resources/ticketing/resources/comments/client/Client.ts +++ /dev/null @@ -1,374 +0,0 @@ -// 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 CommentsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class CommentsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: CommentsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Comment` objects. - * - * @param {Merge.ticketing.CommentsListRequest} request - * @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Creates a `Comment` object with the given values. - * - * @param {Merge.ticketing.CommentEndpointRequest} request - * @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.comments.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public create( - request: Merge.ticketing.CommentEndpointRequest, - requestOptions?: CommentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.ticketing.CommentEndpointRequest, - requestOptions?: CommentsClient.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, - "ticketing/v1/comments", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.ticketing.CommentEndpointRequest.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.ticketing.CommentResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/comments"); - } - - /** - * Returns a `Comment` object with the given `id`. - * - * @param {string} id - * @param {Merge.ticketing.CommentsRetrieveRequest} request - * @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.comments.retrieve("id", { - * expand: "contact", - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.ticketing.CommentsRetrieveRequest = {}, - requestOptions?: CommentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.ticketing.CommentsRetrieveRequest = {}, - requestOptions?: CommentsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.ticketing.CommentsRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `ticketing/v1/comments/${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.ticketing.Comment.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } - - /** - * Returns metadata for `Comment` POSTs. - * - * @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.comments.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: CommentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: CommentsClient.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/comments/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.ticketing.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", - "/ticketing/v1/comments/meta/post", - ); - } -} diff --git a/src/api/resources/ticketing/resources/comments/client/index.ts b/src/api/resources/ticketing/resources/comments/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ticketing/resources/comments/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ticketing/resources/comments/client/requests/CommentEndpointRequest.ts b/src/api/resources/ticketing/resources/comments/client/requests/CommentEndpointRequest.ts deleted file mode 100644 index 8218805ab..000000000 --- a/src/api/resources/ticketing/resources/comments/client/requests/CommentEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface CommentEndpointRequest { - /** Whether to include debug fields (such as log file links) in the response. */ - isDebugMode?: boolean; - /** Whether or not third-party updates should be run asynchronously. */ - runAsync?: boolean; - model: Merge.ticketing.CommentRequest; -} diff --git a/src/api/resources/ticketing/resources/comments/client/requests/CommentsListRequest.ts b/src/api/resources/ticketing/resources/comments/client/requests/CommentsListRequest.ts deleted file mode 100644 index 3a0acee64..000000000 --- a/src/api/resources/ticketing/resources/comments/client/requests/CommentsListRequest.ts +++ /dev/null @@ -1,50 +0,0 @@ -// 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: "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" - * } - */ -export interface CommentsListRequest { - /** 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.ticketing.CommentsListRequestExpand; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; - /** If provided, will only return Comments created in the third party platform after this datetime. */ - remoteCreatedAfter?: Date; - /** The API provider's ID for the given object. */ - remoteId?: string; - /** If provided, will only return comments for this ticket. */ - ticketId?: string; -} diff --git a/src/api/resources/ticketing/resources/comments/client/requests/CommentsRetrieveRequest.ts b/src/api/resources/ticketing/resources/comments/client/requests/CommentsRetrieveRequest.ts deleted file mode 100644 index 7ca458c61..000000000 --- a/src/api/resources/ticketing/resources/comments/client/requests/CommentsRetrieveRequest.ts +++ /dev/null @@ -1,20 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -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; - /** 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; -} diff --git a/src/api/resources/ticketing/resources/comments/client/requests/index.ts b/src/api/resources/ticketing/resources/comments/client/requests/index.ts deleted file mode 100644 index 557c1e4f0..000000000 --- a/src/api/resources/ticketing/resources/comments/client/requests/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type { CommentEndpointRequest } from "./CommentEndpointRequest"; -export type { CommentsListRequest } from "./CommentsListRequest"; -export type { CommentsRetrieveRequest } from "./CommentsRetrieveRequest"; diff --git a/src/api/resources/ticketing/resources/comments/exports.ts b/src/api/resources/ticketing/resources/comments/exports.ts deleted file mode 100644 index 91d2362cc..000000000 --- a/src/api/resources/ticketing/resources/comments/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { CommentsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/comments/index.ts b/src/api/resources/ticketing/resources/comments/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/ticketing/resources/comments/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/api/resources/ticketing/resources/comments/types/index.ts deleted file mode 100644 index cbff3a9fc..000000000 --- a/src/api/resources/ticketing/resources/comments/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./CommentsListRequestExpand"; -export * from "./CommentsRetrieveRequestExpand"; diff --git a/src/api/resources/ticketing/resources/contacts/client/Client.ts b/src/api/resources/ticketing/resources/contacts/client/Client.ts deleted file mode 100644 index 8b9db9987..000000000 --- a/src/api/resources/ticketing/resources/contacts/client/Client.ts +++ /dev/null @@ -1,363 +0,0 @@ -// 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 ContactsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class ContactsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: ContactsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Contact` objects. - * - * @param {Merge.ticketing.ContactsListRequest} request - * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Creates a `Contact` object with the given values. - * - * @param {Merge.ticketing.TicketingContactEndpointRequest} request - * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.contacts.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public create( - request: Merge.ticketing.TicketingContactEndpointRequest, - requestOptions?: ContactsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.ticketing.TicketingContactEndpointRequest, - requestOptions?: ContactsClient.RequestOptions, - ): Promise> { - const { isDebugMode, runAsync, ..._body } = request; - const _queryParams: Record = { - is_debug_mode: isDebugMode, - run_async: runAsync, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ticketing/v1/contacts", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.ticketing.TicketingContactEndpointRequest.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.ticketing.TicketingContactResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/contacts"); - } - - /** - * Returns a `Contact` object with the given `id`. - * - * @param {string} id - * @param {Merge.ticketing.ContactsRetrieveRequest} request - * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.contacts.retrieve("id", { - * expand: "account", - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.ticketing.ContactsRetrieveRequest = {}, - requestOptions?: ContactsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.ticketing.ContactsRetrieveRequest = {}, - requestOptions?: ContactsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - expand: expand != null ? expand : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/${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.ticketing.Contact.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } - - /** - * Returns metadata for `TicketingContact` POSTs. - * - * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.contacts.metaPostRetrieve() - */ - public metaPostRetrieve( - requestOptions?: ContactsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); - } - - private async __metaPostRetrieve( - requestOptions?: ContactsClient.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/contacts/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.ticketing.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", - "/ticketing/v1/contacts/meta/post", - ); - } -} diff --git a/src/api/resources/ticketing/resources/contacts/client/index.ts b/src/api/resources/ticketing/resources/contacts/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ticketing/resources/contacts/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ticketing/resources/contacts/client/requests/ContactsListRequest.ts b/src/api/resources/ticketing/resources/contacts/client/requests/ContactsListRequest.ts deleted file mode 100644 index eb9e96bf6..000000000 --- a/src/api/resources/ticketing/resources/contacts/client/requests/ContactsListRequest.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * 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" - * } - */ -export interface ContactsListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** If provided, will only return Contacts that match this email. */ - emailAddress?: string; - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "account"; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; - /** The API provider's ID for the given object. */ - remoteId?: string; -} diff --git a/src/api/resources/ticketing/resources/contacts/client/requests/ContactsRetrieveRequest.ts b/src/api/resources/ticketing/resources/contacts/client/requests/ContactsRetrieveRequest.ts deleted file mode 100644 index 6cf7be736..000000000 --- a/src/api/resources/ticketing/resources/contacts/client/requests/ContactsRetrieveRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @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"; - /** 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; -} diff --git a/src/api/resources/ticketing/resources/contacts/client/requests/TicketingContactEndpointRequest.ts b/src/api/resources/ticketing/resources/contacts/client/requests/TicketingContactEndpointRequest.ts deleted file mode 100644 index d631c7069..000000000 --- a/src/api/resources/ticketing/resources/contacts/client/requests/TicketingContactEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface TicketingContactEndpointRequest { - /** Whether to include debug fields (such as log file links) in the response. */ - isDebugMode?: boolean; - /** Whether or not third-party updates should be run asynchronously. */ - runAsync?: boolean; - model: Merge.ticketing.ContactRequest; -} diff --git a/src/api/resources/ticketing/resources/contacts/client/requests/index.ts b/src/api/resources/ticketing/resources/contacts/client/requests/index.ts deleted file mode 100644 index 6d7953019..000000000 --- a/src/api/resources/ticketing/resources/contacts/client/requests/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type { ContactsListRequest } from "./ContactsListRequest"; -export type { ContactsRetrieveRequest } from "./ContactsRetrieveRequest"; -export type { TicketingContactEndpointRequest } from "./TicketingContactEndpointRequest"; diff --git a/src/api/resources/ticketing/resources/contacts/exports.ts b/src/api/resources/ticketing/resources/contacts/exports.ts deleted file mode 100644 index d5052718a..000000000 --- a/src/api/resources/ticketing/resources/contacts/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { ContactsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/contacts/index.ts b/src/api/resources/ticketing/resources/contacts/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ticketing/resources/contacts/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ticketing/resources/deleteAccount/client/Client.ts b/src/api/resources/ticketing/resources/deleteAccount/client/Client.ts deleted file mode 100644 index 0f3e7b5fc..000000000 --- a/src/api/resources/ticketing/resources/deleteAccount/client/Client.ts +++ /dev/null @@ -1,74 +0,0 @@ -// 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"; - -export declare namespace DeleteAccountClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class DeleteAccountClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: DeleteAccountClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Delete a linked account. - * - * @param {DeleteAccountClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.deleteAccount.delete() - */ - public delete(requestOptions?: DeleteAccountClient.RequestOptions): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__delete(requestOptions)); - } - - private async __delete(requestOptions?: DeleteAccountClient.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/delete-account", - ), - 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: undefined, rawResponse: _response.rawResponse }; - } - - if (_response.error.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/delete-account"); - } -} diff --git a/src/api/resources/ticketing/resources/deleteAccount/client/index.ts b/src/api/resources/ticketing/resources/deleteAccount/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/ticketing/resources/deleteAccount/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/ticketing/resources/deleteAccount/exports.ts b/src/api/resources/ticketing/resources/deleteAccount/exports.ts deleted file mode 100644 index b2e5e49b6..000000000 --- a/src/api/resources/ticketing/resources/deleteAccount/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { DeleteAccountClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/deleteAccount/index.ts b/src/api/resources/ticketing/resources/deleteAccount/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ticketing/resources/deleteAccount/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ticketing/resources/fieldMapping/client/Client.ts b/src/api/resources/ticketing/resources/fieldMapping/client/Client.ts deleted file mode 100644 index dd490353d..000000000 --- a/src/api/resources/ticketing/resources/fieldMapping/client/Client.ts +++ /dev/null @@ -1,475 +0,0 @@ -// 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 FieldMappingClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class FieldMappingClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: FieldMappingClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * 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/). - * - * @param {Merge.ticketing.FieldMappingsRetrieveRequest} request - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.fieldMapping.fieldMappingsRetrieve({ - * excludeRemoteFieldMetadata: true - * }) - */ - public fieldMappingsRetrieve( - request: Merge.ticketing.FieldMappingsRetrieveRequest = {}, - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__fieldMappingsRetrieve(request, requestOptions)); - } - - private async __fieldMappingsRetrieve( - request: Merge.ticketing.FieldMappingsRetrieveRequest = {}, - requestOptions?: FieldMappingClient.RequestOptions, - ): Promise> { - const { excludeRemoteFieldMetadata } = request; - const _queryParams: Record = { - exclude_remote_field_metadata: excludeRemoteFieldMetadata, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/field-mappings", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 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.FieldMappingApiInstanceResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/field-mappings"); - } - - /** - * 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. - * - * @param {Merge.ticketing.CreateFieldMappingRequest} request - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public fieldMappingsCreate( - request: Merge.ticketing.CreateFieldMappingRequest, - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__fieldMappingsCreate(request, requestOptions)); - } - - private async __fieldMappingsCreate( - request: Merge.ticketing.CreateFieldMappingRequest, - requestOptions?: FieldMappingClient.RequestOptions, - ): Promise> { - const { excludeRemoteFieldMetadata, ..._body } = request; - const _queryParams: Record = { - exclude_remote_field_metadata: excludeRemoteFieldMetadata, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/field-mappings", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.ticketing.CreateFieldMappingRequest.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.ticketing.FieldMappingInstanceResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/field-mappings"); - } - - /** - * 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. - * - * @param {string} field_mapping_id - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.fieldMapping.fieldMappingsDestroy("field_mapping_id") - */ - public fieldMappingsDestroy( - field_mapping_id: string, - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__fieldMappingsDestroy(field_mapping_id, requestOptions)); - } - - private async __fieldMappingsDestroy( - field_mapping_id: string, - requestOptions?: FieldMappingClient.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/field-mappings/${core.url.encodePathParam(field_mapping_id)}`, - ), - method: "DELETE", - 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.FieldMappingInstanceResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "DELETE", - "/ticketing/v1/field-mappings/{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. - * - * @param {string} field_mapping_id - * @param {Merge.ticketing.PatchedEditFieldMappingRequest} request - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id") - */ - public fieldMappingsPartialUpdate( - field_mapping_id: string, - request: Merge.ticketing.PatchedEditFieldMappingRequest = {}, - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise( - this.__fieldMappingsPartialUpdate(field_mapping_id, request, requestOptions), - ); - } - - private async __fieldMappingsPartialUpdate( - field_mapping_id: string, - request: Merge.ticketing.PatchedEditFieldMappingRequest = {}, - requestOptions?: FieldMappingClient.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/field-mappings/${core.url.encodePathParam(field_mapping_id)}`, - ), - method: "PATCH", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.ticketing.PatchedEditFieldMappingRequest.jsonOrThrow(request, { - 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.ticketing.FieldMappingInstanceResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "PATCH", - "/ticketing/v1/field-mappings/{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/). - * - * @param {Merge.ticketing.RemoteFieldsRetrieveRequest} request - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.fieldMapping.remoteFieldsRetrieve({ - * commonModels: "common_models", - * includeExampleValues: "include_example_values" - * }) - */ - public remoteFieldsRetrieve( - request: Merge.ticketing.RemoteFieldsRetrieveRequest = {}, - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldsRetrieve(request, requestOptions)); - } - - private async __remoteFieldsRetrieve( - request: Merge.ticketing.RemoteFieldsRetrieveRequest = {}, - requestOptions?: FieldMappingClient.RequestOptions, - ): Promise> { - const { commonModels, includeExampleValues } = request; - const _queryParams: Record = { - common_models: commonModels, - include_example_values: includeExampleValues, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/remote-fields", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 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.RemoteFieldApiResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/remote-fields"); - } - - /** - * 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/). - * - * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.fieldMapping.targetFieldsRetrieve() - */ - public targetFieldsRetrieve( - requestOptions?: FieldMappingClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__targetFieldsRetrieve(requestOptions)); - } - - private async __targetFieldsRetrieve( - requestOptions?: FieldMappingClient.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/target-fields", - ), - 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.ticketing.ExternalTargetFieldApiResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/target-fields"); - } -} diff --git a/src/api/resources/ticketing/resources/fieldMapping/client/index.ts b/src/api/resources/ticketing/resources/fieldMapping/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ticketing/resources/fieldMapping/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ticketing/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/api/resources/ticketing/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts deleted file mode 100644 index 64683cd2f..000000000 --- a/src/api/resources/ticketing/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ /dev/null @@ -1,32 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * 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" - * } - */ -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; - /** 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. */ - targetFieldDescription: string; - /** 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; - /** 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/ticketing/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts b/src/api/resources/ticketing/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts deleted file mode 100644 index 7235c6e26..000000000 --- a/src/api/resources/ticketing/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * excludeRemoteFieldMetadata: true - * } - */ -export interface FieldMappingsRetrieveRequest { - /** 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; -} diff --git a/src/api/resources/ticketing/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts b/src/api/resources/ticketing/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts deleted file mode 100644 index 5ca4a0560..000000000 --- a/src/api/resources/ticketing/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * {} - */ -export interface PatchedEditFieldMappingRequest { - /** 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/ticketing/resources/fieldMapping/client/requests/RemoteFieldsRetrieveRequest.ts b/src/api/resources/ticketing/resources/fieldMapping/client/requests/RemoteFieldsRetrieveRequest.ts deleted file mode 100644 index 99718436d..000000000 --- a/src/api/resources/ticketing/resources/fieldMapping/client/requests/RemoteFieldsRetrieveRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * commonModels: "common_models", - * includeExampleValues: "include_example_values" - * } - */ -export interface RemoteFieldsRetrieveRequest { - /** A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models. */ - commonModels?: string; - /** If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers. */ - includeExampleValues?: string; -} diff --git a/src/api/resources/ticketing/resources/fieldMapping/client/requests/index.ts b/src/api/resources/ticketing/resources/fieldMapping/client/requests/index.ts deleted file mode 100644 index 1b7bf82f2..000000000 --- a/src/api/resources/ticketing/resources/fieldMapping/client/requests/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export type { CreateFieldMappingRequest } from "./CreateFieldMappingRequest"; -export type { FieldMappingsRetrieveRequest } from "./FieldMappingsRetrieveRequest"; -export type { PatchedEditFieldMappingRequest } from "./PatchedEditFieldMappingRequest"; -export type { RemoteFieldsRetrieveRequest } from "./RemoteFieldsRetrieveRequest"; diff --git a/src/api/resources/ticketing/resources/fieldMapping/exports.ts b/src/api/resources/ticketing/resources/fieldMapping/exports.ts deleted file mode 100644 index 62e814785..000000000 --- a/src/api/resources/ticketing/resources/fieldMapping/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { FieldMappingClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/fieldMapping/index.ts b/src/api/resources/ticketing/resources/fieldMapping/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ticketing/resources/fieldMapping/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ticketing/resources/forceResync/client/Client.ts b/src/api/resources/ticketing/resources/forceResync/client/Client.ts deleted file mode 100644 index 606d2f34a..000000000 --- a/src/api/resources/ticketing/resources/forceResync/client/Client.ts +++ /dev/null @@ -1,94 +0,0 @@ -// 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 ForceResyncClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class ForceResyncClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: ForceResyncClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * 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. - * - * @param {ForceResyncClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.forceResync.syncStatusResyncCreate() - */ - public syncStatusResyncCreate( - requestOptions?: ForceResyncClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__syncStatusResyncCreate(requestOptions)); - } - - private async __syncStatusResyncCreate( - requestOptions?: ForceResyncClient.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/sync-status/resync", - ), - 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.forceResync.syncStatusResyncCreate.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/sync-status/resync", - ); - } -} diff --git a/src/api/resources/ticketing/resources/forceResync/client/index.ts b/src/api/resources/ticketing/resources/forceResync/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/ticketing/resources/forceResync/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/ticketing/resources/forceResync/exports.ts b/src/api/resources/ticketing/resources/forceResync/exports.ts deleted file mode 100644 index e9e97915f..000000000 --- a/src/api/resources/ticketing/resources/forceResync/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { ForceResyncClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/forceResync/index.ts b/src/api/resources/ticketing/resources/forceResync/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ticketing/resources/forceResync/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ticketing/resources/generateKey/client/Client.ts b/src/api/resources/ticketing/resources/generateKey/client/Client.ts deleted file mode 100644 index 2755de1b7..000000000 --- a/src/api/resources/ticketing/resources/generateKey/client/Client.ts +++ /dev/null @@ -1,99 +0,0 @@ -// 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 GenerateKeyClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class GenerateKeyClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: GenerateKeyClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Create a remote key. - * - * @param {Merge.ticketing.GenerateRemoteKeyRequest} request - * @param {GenerateKeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.generateKey.create({ - * name: "Remote Deployment Key 1" - * }) - */ - public create( - request: Merge.ticketing.GenerateRemoteKeyRequest, - requestOptions?: GenerateKeyClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.ticketing.GenerateRemoteKeyRequest, - requestOptions?: GenerateKeyClient.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/generate-key", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.ticketing.GenerateRemoteKeyRequest.jsonOrThrow(request, { - 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.ticketing.RemoteKey.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/generate-key"); - } -} diff --git a/src/api/resources/ticketing/resources/generateKey/client/index.ts b/src/api/resources/ticketing/resources/generateKey/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ticketing/resources/generateKey/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ticketing/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts b/src/api/resources/ticketing/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts deleted file mode 100644 index 923e28af4..000000000 --- a/src/api/resources/ticketing/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * name: "Remote Deployment Key 1" - * } - */ -export interface GenerateRemoteKeyRequest { - /** The name of the remote key */ - name: string; -} diff --git a/src/api/resources/ticketing/resources/generateKey/client/requests/index.ts b/src/api/resources/ticketing/resources/generateKey/client/requests/index.ts deleted file mode 100644 index 61b0bc4ac..000000000 --- a/src/api/resources/ticketing/resources/generateKey/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { GenerateRemoteKeyRequest } from "./GenerateRemoteKeyRequest"; diff --git a/src/api/resources/ticketing/resources/generateKey/exports.ts b/src/api/resources/ticketing/resources/generateKey/exports.ts deleted file mode 100644 index e6761067f..000000000 --- a/src/api/resources/ticketing/resources/generateKey/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { GenerateKeyClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/generateKey/index.ts b/src/api/resources/ticketing/resources/generateKey/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ticketing/resources/generateKey/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ticketing/resources/index.ts b/src/api/resources/ticketing/resources/index.ts deleted file mode 100644 index b4f3e166a..000000000 --- a/src/api/resources/ticketing/resources/index.ts +++ /dev/null @@ -1,58 +0,0 @@ -export * as accountDetails from "./accountDetails"; -export * as accounts from "./accounts"; -export * from "./accounts/client/requests"; -export * as accountToken from "./accountToken"; -export * as asyncPassthrough from "./asyncPassthrough"; -export * from "./asyncPassthrough/types"; -export * as attachments from "./attachments"; -export * from "./attachments/client/requests"; -export * as auditTrail from "./auditTrail"; -export * from "./auditTrail/client/requests"; -export * as availableActions from "./availableActions"; -export * as collections from "./collections"; -export * from "./collections/client/requests"; -export * from "./collections/types"; -export * as comments from "./comments"; -export * from "./comments/client/requests"; -export * from "./comments/types"; -export * as contacts from "./contacts"; -export * from "./contacts/client/requests"; -export * as deleteAccount from "./deleteAccount"; -export * as fieldMapping from "./fieldMapping"; -export * from "./fieldMapping/client/requests"; -export * as forceResync from "./forceResync"; -export * as generateKey from "./generateKey"; -export * from "./generateKey/client/requests"; -export * as issues from "./issues"; -export * from "./issues/client/requests"; -export * from "./issues/types"; -export * as linkedAccounts from "./linkedAccounts"; -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 projects from "./projects"; -export * from "./projects/client/requests"; -export * from "./projects/types"; -export * as regenerateKey from "./regenerateKey"; -export * from "./regenerateKey/client/requests"; -export * as roles from "./roles"; -export * from "./roles/client/requests"; -export * as scopes from "./scopes"; -export * from "./scopes/client/requests"; -export * as syncStatus from "./syncStatus"; -export * from "./syncStatus/client/requests"; -export * as tags from "./tags"; -export * from "./tags/client/requests"; -export * as teams from "./teams"; -export * from "./teams/client/requests"; -export * as tickets from "./tickets"; -export * from "./tickets/client/requests"; -export * from "./tickets/types"; -export * as users from "./users"; -export * from "./users/client/requests"; -export * from "./users/types"; -export * as webhookReceivers from "./webhookReceivers"; -export * from "./webhookReceivers/client/requests"; diff --git a/src/api/resources/ticketing/resources/issues/client/Client.ts b/src/api/resources/ticketing/resources/issues/client/Client.ts deleted file mode 100644 index dd254c7d9..000000000 --- a/src/api/resources/ticketing/resources/issues/client/Client.ts +++ /dev/null @@ -1,211 +0,0 @@ -// 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 IssuesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class IssuesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: IssuesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Gets all issues for Organization. - * - * @param {Merge.ticketing.IssuesListRequest} request - * @param {IssuesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Get a specific issue. - * - * @param {string} id - * @param {IssuesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.issues.retrieve("id") - */ - public retrieve( - id: string, - requestOptions?: IssuesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, requestOptions)); - } - - private async __retrieve( - id: string, - requestOptions?: IssuesClient.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/issues/${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.ticketing.Issue.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/ticketing/resources/issues/client/index.ts b/src/api/resources/ticketing/resources/issues/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ticketing/resources/issues/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ticketing/resources/issues/client/requests/IssuesListRequest.ts b/src/api/resources/ticketing/resources/issues/client/requests/IssuesListRequest.ts deleted file mode 100644 index 7f42a2a8a..000000000 --- a/src/api/resources/ticketing/resources/issues/client/requests/IssuesListRequest.ts +++ /dev/null @@ -1,55 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * 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" - * } - */ -export interface IssuesListRequest { - accountToken?: string; - /** The pagination cursor value. */ - cursor?: string; - /** If included, will only include issues whose most recent action occurred before this time */ - endDate?: string; - endUserOrganizationName?: string; - /** If provided, will only return issues whose first incident time was after this datetime. */ - firstIncidentTimeAfter?: Date; - /** If provided, will only return issues whose first incident time was before this datetime. */ - firstIncidentTimeBefore?: Date; - /** If true, will include muted issues */ - includeMuted?: string; - integrationName?: string; - /** If provided, will only return issues whose last incident time was after this datetime. */ - lastIncidentTimeAfter?: Date; - /** If provided, will only return issues whose last incident time was before this datetime. */ - lastIncidentTimeBefore?: Date; - /** If provided, will only include issues pertaining to the linked account passed in. */ - linkedAccountId?: string; - /** 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; - /** - * Status of the issue. Options: ('ONGOING', 'RESOLVED') - * - * * `ONGOING` - ONGOING - * * `RESOLVED` - RESOLVED - */ - status?: Merge.ticketing.IssuesListRequestStatus; -} diff --git a/src/api/resources/ticketing/resources/issues/client/requests/index.ts b/src/api/resources/ticketing/resources/issues/client/requests/index.ts deleted file mode 100644 index 169c5eb5a..000000000 --- a/src/api/resources/ticketing/resources/issues/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { IssuesListRequest } from "./IssuesListRequest"; diff --git a/src/api/resources/ticketing/resources/issues/exports.ts b/src/api/resources/ticketing/resources/issues/exports.ts deleted file mode 100644 index 85da34cb7..000000000 --- a/src/api/resources/ticketing/resources/issues/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { IssuesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/issues/index.ts b/src/api/resources/ticketing/resources/issues/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/ticketing/resources/issues/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/ticketing/resources/issues/types/IssuesListRequestStatus.ts b/src/api/resources/ticketing/resources/issues/types/IssuesListRequestStatus.ts deleted file mode 100644 index 6429e7e23..000000000 --- a/src/api/resources/ticketing/resources/issues/types/IssuesListRequestStatus.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const IssuesListRequestStatus = { - Ongoing: "ONGOING", - Resolved: "RESOLVED", -} as const; -export type IssuesListRequestStatus = (typeof IssuesListRequestStatus)[keyof typeof IssuesListRequestStatus]; diff --git a/src/api/resources/ticketing/resources/issues/types/index.ts b/src/api/resources/ticketing/resources/issues/types/index.ts deleted file mode 100644 index 554cdf48c..000000000 --- a/src/api/resources/ticketing/resources/issues/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./IssuesListRequestStatus"; diff --git a/src/api/resources/ticketing/resources/linkToken/client/Client.ts b/src/api/resources/ticketing/resources/linkToken/client/Client.ts deleted file mode 100644 index 60d2aadbf..000000000 --- a/src/api/resources/ticketing/resources/linkToken/client/Client.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 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 LinkTokenClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class LinkTokenClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: LinkTokenClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Creates a link token to be used when linking a new end user. - * - * @param {Merge.ticketing.EndUserDetailsRequest} request - * @param {LinkTokenClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.linkToken.create({ - * endUserEmailAddress: "example@gmail.com", - * endUserOrganizationName: "Test Organization", - * endUserOriginId: "12345", - * categories: ["hris", "ats"] - * }) - */ - public create( - request: Merge.ticketing.EndUserDetailsRequest, - requestOptions?: LinkTokenClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.ticketing.EndUserDetailsRequest, - requestOptions?: LinkTokenClient.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/link-token", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.ticketing.EndUserDetailsRequest.jsonOrThrow(request, { 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.ticketing.LinkToken.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/link-token"); - } -} diff --git a/src/api/resources/ticketing/resources/linkToken/client/index.ts b/src/api/resources/ticketing/resources/linkToken/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ticketing/resources/linkToken/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ticketing/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/api/resources/ticketing/resources/linkToken/client/requests/EndUserDetailsRequest.ts deleted file mode 100644 index 3d3f8d253..000000000 --- a/src/api/resources/ticketing/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ /dev/null @@ -1,55 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * endUserEmailAddress: "example@gmail.com", - * endUserOrganizationName: "Test Organization", - * endUserOriginId: "12345", - * categories: ["hris", "ats"] - * } - */ -export interface EndUserDetailsRequest { - /** Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. */ - endUserEmailAddress: string; - /** Your end user's organization. */ - endUserOrganizationName: string; - /** This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. */ - endUserOriginId: string; - /** The integration categories to show in Merge Link. */ - categories: Merge.ticketing.CategoriesEnum[]; - /** The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. */ - integration?: string; - /** An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. */ - linkExpiryMins?: number; - /** Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. */ - shouldCreateMagicLinkUrl?: boolean; - /** Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link. */ - hideAdminMagicLink?: boolean; - /** An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account. */ - commonModels?: Merge.ticketing.CommonModelScopesBodyRequest[]; - /** When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings. */ - categoryCommonModelScopes?: Record< - string, - Merge.ticketing.IndividualCommonModelScopeDeserializerRequest[] | undefined - >; - /** - * The following subset of IETF language tags can be used to configure localization. - * - * * `en` - en - * * `de` - de - */ - language?: Merge.ticketing.EndUserDetailsRequestLanguage; - /** The boolean that indicates whether initial, periodic, and force syncs will be disabled. */ - 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/client/requests/index.ts b/src/api/resources/ticketing/resources/linkToken/client/requests/index.ts deleted file mode 100644 index 67eabb553..000000000 --- a/src/api/resources/ticketing/resources/linkToken/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { EndUserDetailsRequest } from "./EndUserDetailsRequest"; diff --git a/src/api/resources/ticketing/resources/linkToken/exports.ts b/src/api/resources/ticketing/resources/linkToken/exports.ts deleted file mode 100644 index 10e007018..000000000 --- a/src/api/resources/ticketing/resources/linkToken/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { LinkTokenClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/linkToken/index.ts b/src/api/resources/ticketing/resources/linkToken/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/ticketing/resources/linkToken/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/ticketing/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts b/src/api/resources/ticketing/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts deleted file mode 100644 index e2f489eac..000000000 --- a/src/api/resources/ticketing/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../index"; - -/** - * When creating a Link token, you can specifiy the initial screen of Linking Flow for a completed Linked Account. - * - * * `SELECTIVE_SYNC` - SELECTIVE_SYNC - */ -export type EndUserDetailsRequestCompletedAccountInitialScreen = - | Merge.ticketing.CompletedAccountInitialScreenEnum - | string; diff --git a/src/api/resources/ticketing/resources/linkToken/types/EndUserDetailsRequestLanguage.ts b/src/api/resources/ticketing/resources/linkToken/types/EndUserDetailsRequestLanguage.ts deleted file mode 100644 index 4648e94ba..000000000 --- a/src/api/resources/ticketing/resources/linkToken/types/EndUserDetailsRequestLanguage.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 following subset of IETF language tags can be used to configure localization. - * - * * `en` - en - * * `de` - de - */ -export type EndUserDetailsRequestLanguage = Merge.ticketing.LanguageEnum | string; diff --git a/src/api/resources/ticketing/resources/linkToken/types/index.ts b/src/api/resources/ticketing/resources/linkToken/types/index.ts deleted file mode 100644 index 7aed25cb1..000000000 --- a/src/api/resources/ticketing/resources/linkToken/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -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 deleted file mode 100644 index e77195b07..000000000 --- a/src/api/resources/ticketing/resources/linkedAccounts/client/Client.ts +++ /dev/null @@ -1,141 +0,0 @@ -// 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 LinkedAccountsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class LinkedAccountsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: LinkedAccountsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * List linked accounts for your organization. - * - * @param {Merge.ticketing.LinkedAccountsListRequest} request - * @param {LinkedAccountsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } -} diff --git a/src/api/resources/ticketing/resources/linkedAccounts/client/index.ts b/src/api/resources/ticketing/resources/linkedAccounts/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ticketing/resources/linkedAccounts/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ticketing/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts b/src/api/resources/ticketing/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts deleted file mode 100644 index 884694cc2..000000000 --- a/src/api/resources/ticketing/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts +++ /dev/null @@ -1,59 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * 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" - * } - */ -export interface LinkedAccountsListRequest { - /** - * Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing` - * - * * `hris` - hris - * * `ats` - ats - * * `accounting` - accounting - * * `ticketing` - ticketing - * * `crm` - crm - * * `mktg` - mktg - * * `filestorage` - filestorage - */ - category?: Merge.ticketing.LinkedAccountsListRequestCategory; - /** The pagination cursor value. */ - cursor?: string; - /** If provided, will only return linked accounts associated with the given email address. */ - endUserEmailAddress?: string; - /** If provided, will only return linked accounts associated with the given organization name. */ - endUserOrganizationName?: string; - /** If provided, will only return linked accounts associated with the given origin ID. */ - endUserOriginId?: string; - /** Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. */ - endUserOriginIds?: string; - id?: string; - /** Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. */ - ids?: string; - /** If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account. */ - includeDuplicates?: boolean; - /** If provided, will only return linked accounts associated with the given integration name. */ - 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. The maximum limit is 100. */ - pageSize?: number; - /** Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` */ - status?: string; -} diff --git a/src/api/resources/ticketing/resources/linkedAccounts/client/requests/index.ts b/src/api/resources/ticketing/resources/linkedAccounts/client/requests/index.ts deleted file mode 100644 index ae4db9c3b..000000000 --- a/src/api/resources/ticketing/resources/linkedAccounts/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { LinkedAccountsListRequest } from "./LinkedAccountsListRequest"; diff --git a/src/api/resources/ticketing/resources/linkedAccounts/exports.ts b/src/api/resources/ticketing/resources/linkedAccounts/exports.ts deleted file mode 100644 index 236b70b1a..000000000 --- a/src/api/resources/ticketing/resources/linkedAccounts/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { LinkedAccountsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/linkedAccounts/index.ts b/src/api/resources/ticketing/resources/linkedAccounts/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/ticketing/resources/linkedAccounts/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/api/resources/ticketing/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts b/src/api/resources/ticketing/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts deleted file mode 100644 index 61bd028eb..000000000 --- a/src/api/resources/ticketing/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const LinkedAccountsListRequestCategory = { - Accounting: "accounting", - Ats: "ats", - Crm: "crm", - Filestorage: "filestorage", - Hris: "hris", - Mktg: "mktg", - Ticketing: "ticketing", -} as const; -export type LinkedAccountsListRequestCategory = - (typeof LinkedAccountsListRequestCategory)[keyof typeof LinkedAccountsListRequestCategory]; diff --git a/src/api/resources/ticketing/resources/linkedAccounts/types/index.ts b/src/api/resources/ticketing/resources/linkedAccounts/types/index.ts deleted file mode 100644 index 91de6010a..000000000 --- a/src/api/resources/ticketing/resources/linkedAccounts/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./LinkedAccountsListRequestCategory"; diff --git a/src/api/resources/ticketing/resources/passthrough/client/Client.ts b/src/api/resources/ticketing/resources/passthrough/client/Client.ts deleted file mode 100644 index 3ac009e07..000000000 --- a/src/api/resources/ticketing/resources/passthrough/client/Client.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 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 PassthroughClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class PassthroughClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: PassthroughClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Pull data from an endpoint not currently supported by Merge. - * - * @param {Merge.ticketing.DataPassthroughRequest} request - * @param {PassthroughClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.passthrough.create({ - * method: "GET", - * path: "/scooters" - * }) - */ - public create( - request: Merge.ticketing.DataPassthroughRequest, - requestOptions?: PassthroughClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.ticketing.DataPassthroughRequest, - requestOptions?: PassthroughClient.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/passthrough", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.ticketing.DataPassthroughRequest.jsonOrThrow(request, { - 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.ticketing.RemoteResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/passthrough"); - } -} diff --git a/src/api/resources/ticketing/resources/passthrough/client/index.ts b/src/api/resources/ticketing/resources/passthrough/client/index.ts deleted file mode 100644 index cb0ff5c3b..000000000 --- a/src/api/resources/ticketing/resources/passthrough/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/src/api/resources/ticketing/resources/passthrough/exports.ts b/src/api/resources/ticketing/resources/passthrough/exports.ts deleted file mode 100644 index 645fbb4b8..000000000 --- a/src/api/resources/ticketing/resources/passthrough/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { PassthroughClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/passthrough/index.ts b/src/api/resources/ticketing/resources/passthrough/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ticketing/resources/passthrough/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ticketing/resources/projects/client/Client.ts b/src/api/resources/ticketing/resources/projects/client/Client.ts deleted file mode 100644 index 378f77cc6..000000000 --- a/src/api/resources/ticketing/resources/projects/client/Client.ts +++ /dev/null @@ -1,301 +0,0 @@ -// 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 ProjectsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class ProjectsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: ProjectsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Project` objects. - * - * @param {Merge.ticketing.ProjectsListRequest} request - * @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `Project` object with the given `id`. - * - * @param {string} id - * @param {Merge.ticketing.ProjectsRetrieveRequest} request - * @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.projects.retrieve("id", { - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.ticketing.ProjectsRetrieveRequest = {}, - requestOptions?: ProjectsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.ticketing.ProjectsRetrieveRequest = {}, - requestOptions?: ProjectsClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `ticketing/v1/projects/${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.ticketing.Project.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } - - /** - * Returns a list of `User` objects. - * - * @param {string} parent_id - * @param {Merge.ticketing.ProjectsUsersListRequest} request - * @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @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( - 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, - ); - const _response = await (this._options.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", - ); - } -} diff --git a/src/api/resources/ticketing/resources/projects/client/index.ts b/src/api/resources/ticketing/resources/projects/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ticketing/resources/projects/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ticketing/resources/projects/client/requests/ProjectsListRequest.ts b/src/api/resources/ticketing/resources/projects/client/requests/ProjectsListRequest.ts deleted file mode 100644 index 6675807e5..000000000 --- a/src/api/resources/ticketing/resources/projects/client/requests/ProjectsListRequest.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - * pageSize: 1, - * remoteId: "remote_id" - * } - */ -export interface ProjectsListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; - /** The API provider's ID for the given object. */ - remoteId?: string; -} diff --git a/src/api/resources/ticketing/resources/projects/client/requests/ProjectsRetrieveRequest.ts b/src/api/resources/ticketing/resources/projects/client/requests/ProjectsRetrieveRequest.ts deleted file mode 100644 index f304783f2..000000000 --- a/src/api/resources/ticketing/resources/projects/client/requests/ProjectsRetrieveRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * includeRemoteData: true, - * includeShellData: true - * } - */ -export interface ProjectsRetrieveRequest { - /** 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; -} diff --git a/src/api/resources/ticketing/resources/projects/client/requests/ProjectsUsersListRequest.ts b/src/api/resources/ticketing/resources/projects/client/requests/ProjectsUsersListRequest.ts deleted file mode 100644 index fa4313fad..000000000 --- a/src/api/resources/ticketing/resources/projects/client/requests/ProjectsUsersListRequest.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "roles", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * pageSize: 1 - * } - */ -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; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; -} diff --git a/src/api/resources/ticketing/resources/projects/client/requests/index.ts b/src/api/resources/ticketing/resources/projects/client/requests/index.ts deleted file mode 100644 index 55c395708..000000000 --- a/src/api/resources/ticketing/resources/projects/client/requests/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type { ProjectsListRequest } from "./ProjectsListRequest"; -export type { ProjectsRetrieveRequest } from "./ProjectsRetrieveRequest"; -export type { ProjectsUsersListRequest } from "./ProjectsUsersListRequest"; diff --git a/src/api/resources/ticketing/resources/projects/exports.ts b/src/api/resources/ticketing/resources/projects/exports.ts deleted file mode 100644 index 19ddc5a28..000000000 --- a/src/api/resources/ticketing/resources/projects/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { ProjectsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/projects/index.ts b/src/api/resources/ticketing/resources/projects/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/ticketing/resources/projects/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/index.ts b/src/api/resources/ticketing/resources/projects/types/index.ts deleted file mode 100644 index d28a1cea3..000000000 --- a/src/api/resources/ticketing/resources/projects/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./ProjectsUsersListRequestExpand"; diff --git a/src/api/resources/ticketing/resources/regenerateKey/client/Client.ts b/src/api/resources/ticketing/resources/regenerateKey/client/Client.ts deleted file mode 100644 index c68e832f7..000000000 --- a/src/api/resources/ticketing/resources/regenerateKey/client/Client.ts +++ /dev/null @@ -1,99 +0,0 @@ -// 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 RegenerateKeyClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class RegenerateKeyClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: RegenerateKeyClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Exchange remote keys. - * - * @param {Merge.ticketing.RemoteKeyForRegenerationRequest} request - * @param {RegenerateKeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.regenerateKey.create({ - * name: "Remote Deployment Key 1" - * }) - */ - public create( - request: Merge.ticketing.RemoteKeyForRegenerationRequest, - requestOptions?: RegenerateKeyClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.ticketing.RemoteKeyForRegenerationRequest, - requestOptions?: RegenerateKeyClient.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/regenerate-key", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.ticketing.RemoteKeyForRegenerationRequest.jsonOrThrow(request, { - 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.ticketing.RemoteKey.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/regenerate-key"); - } -} diff --git a/src/api/resources/ticketing/resources/regenerateKey/client/index.ts b/src/api/resources/ticketing/resources/regenerateKey/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ticketing/resources/regenerateKey/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ticketing/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts b/src/api/resources/ticketing/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts deleted file mode 100644 index 19dc4fa80..000000000 --- a/src/api/resources/ticketing/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * name: "Remote Deployment Key 1" - * } - */ -export interface RemoteKeyForRegenerationRequest { - /** The name of the remote key */ - name: string; -} diff --git a/src/api/resources/ticketing/resources/regenerateKey/client/requests/index.ts b/src/api/resources/ticketing/resources/regenerateKey/client/requests/index.ts deleted file mode 100644 index 339a5503f..000000000 --- a/src/api/resources/ticketing/resources/regenerateKey/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { RemoteKeyForRegenerationRequest } from "./RemoteKeyForRegenerationRequest"; diff --git a/src/api/resources/ticketing/resources/regenerateKey/exports.ts b/src/api/resources/ticketing/resources/regenerateKey/exports.ts deleted file mode 100644 index f9276142f..000000000 --- a/src/api/resources/ticketing/resources/regenerateKey/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { RegenerateKeyClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/regenerateKey/index.ts b/src/api/resources/ticketing/resources/regenerateKey/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ticketing/resources/regenerateKey/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ticketing/resources/roles/client/Client.ts b/src/api/resources/ticketing/resources/roles/client/Client.ts deleted file mode 100644 index acf7ba487..000000000 --- a/src/api/resources/ticketing/resources/roles/client/Client.ts +++ /dev/null @@ -1,205 +0,0 @@ -// 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 RolesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class RolesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: RolesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Role` objects. - * - * @param {Merge.ticketing.RolesListRequest} request - * @param {RolesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `Role` object with the given `id`. - * - * @param {string} id - * @param {Merge.ticketing.RolesRetrieveRequest} request - * @param {RolesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.roles.retrieve("id", { - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.ticketing.RolesRetrieveRequest = {}, - requestOptions?: RolesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.ticketing.RolesRetrieveRequest = {}, - requestOptions?: RolesClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `ticketing/v1/roles/${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.ticketing.Role.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/ticketing/resources/roles/client/index.ts b/src/api/resources/ticketing/resources/roles/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ticketing/resources/roles/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ticketing/resources/roles/client/requests/RolesListRequest.ts b/src/api/resources/ticketing/resources/roles/client/requests/RolesListRequest.ts deleted file mode 100644 index 61e97511b..000000000 --- a/src/api/resources/ticketing/resources/roles/client/requests/RolesListRequest.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - * pageSize: 1, - * remoteId: "remote_id" - * } - */ -export interface RolesListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; - /** The API provider's ID for the given object. */ - remoteId?: string; -} diff --git a/src/api/resources/ticketing/resources/roles/client/requests/RolesRetrieveRequest.ts b/src/api/resources/ticketing/resources/roles/client/requests/RolesRetrieveRequest.ts deleted file mode 100644 index 7014644ce..000000000 --- a/src/api/resources/ticketing/resources/roles/client/requests/RolesRetrieveRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * includeRemoteData: true, - * includeShellData: true - * } - */ -export interface RolesRetrieveRequest { - /** 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; -} diff --git a/src/api/resources/ticketing/resources/roles/client/requests/index.ts b/src/api/resources/ticketing/resources/roles/client/requests/index.ts deleted file mode 100644 index 6c57d2636..000000000 --- a/src/api/resources/ticketing/resources/roles/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { RolesListRequest } from "./RolesListRequest"; -export type { RolesRetrieveRequest } from "./RolesRetrieveRequest"; diff --git a/src/api/resources/ticketing/resources/roles/exports.ts b/src/api/resources/ticketing/resources/roles/exports.ts deleted file mode 100644 index d81a1290e..000000000 --- a/src/api/resources/ticketing/resources/roles/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { RolesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/roles/index.ts b/src/api/resources/ticketing/resources/roles/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ticketing/resources/roles/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ticketing/resources/scopes/client/Client.ts b/src/api/resources/ticketing/resources/scopes/client/Client.ts deleted file mode 100644 index 79512de12..000000000 --- a/src/api/resources/ticketing/resources/scopes/client/Client.ts +++ /dev/null @@ -1,258 +0,0 @@ -// 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 ScopesClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class ScopesClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: ScopesClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * 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). - * - * @param {ScopesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.scopes.defaultScopesRetrieve() - */ - public defaultScopesRetrieve( - requestOptions?: ScopesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__defaultScopesRetrieve(requestOptions)); - } - - private async __defaultScopesRetrieve( - requestOptions?: ScopesClient.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/default-scopes", - ), - 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.ticketing.CommonModelScopeApi.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/default-scopes"); - } - - /** - * 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). - * - * @param {ScopesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.scopes.linkedAccountScopesRetrieve() - */ - public linkedAccountScopesRetrieve( - requestOptions?: ScopesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__linkedAccountScopesRetrieve(requestOptions)); - } - - private async __linkedAccountScopesRetrieve( - requestOptions?: ScopesClient.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/linked-account-scopes", - ), - 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.ticketing.CommonModelScopeApi.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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-account-scopes", - ); - } - - /** - * 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) - * - * @param {Merge.ticketing.LinkedAccountCommonModelScopeDeserializerRequest} request - * @param {ScopesClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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 - * } - * } - * }] - * }) - */ - public linkedAccountScopesCreate( - request: Merge.ticketing.LinkedAccountCommonModelScopeDeserializerRequest, - requestOptions?: ScopesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__linkedAccountScopesCreate(request, requestOptions)); - } - - private async __linkedAccountScopesCreate( - request: Merge.ticketing.LinkedAccountCommonModelScopeDeserializerRequest, - requestOptions?: ScopesClient.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/linked-account-scopes", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.ticketing.LinkedAccountCommonModelScopeDeserializerRequest.jsonOrThrow(request, { - 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.ticketing.CommonModelScopeApi.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/linked-account-scopes", - ); - } -} diff --git a/src/api/resources/ticketing/resources/scopes/client/index.ts b/src/api/resources/ticketing/resources/scopes/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ticketing/resources/scopes/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ticketing/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts b/src/api/resources/ticketing/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts deleted file mode 100644 index 193f6df9b..000000000 --- a/src/api/resources/ticketing/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts +++ /dev/null @@ -1,35 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * commonModels: [{ - * modelName: "Employee", - * modelPermissions: { - * "READ": { - * isEnabled: true - * }, - * "WRITE": { - * isEnabled: false - * } - * }, - * fieldPermissions: { - * enabledFields: ["avatar", "home_location"], - * disabledFields: ["work_location"] - * } - * }, { - * modelName: "Benefit", - * modelPermissions: { - * "WRITE": { - * isEnabled: false - * } - * } - * }] - * } - */ -export interface LinkedAccountCommonModelScopeDeserializerRequest { - /** The common models you want to update the scopes for */ - commonModels: Merge.ticketing.IndividualCommonModelScopeDeserializerRequest[]; -} diff --git a/src/api/resources/ticketing/resources/scopes/client/requests/index.ts b/src/api/resources/ticketing/resources/scopes/client/requests/index.ts deleted file mode 100644 index b77c0e5da..000000000 --- a/src/api/resources/ticketing/resources/scopes/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { LinkedAccountCommonModelScopeDeserializerRequest } from "./LinkedAccountCommonModelScopeDeserializerRequest"; diff --git a/src/api/resources/ticketing/resources/scopes/exports.ts b/src/api/resources/ticketing/resources/scopes/exports.ts deleted file mode 100644 index c641749fe..000000000 --- a/src/api/resources/ticketing/resources/scopes/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { ScopesClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/scopes/index.ts b/src/api/resources/ticketing/resources/scopes/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ticketing/resources/scopes/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ticketing/resources/syncStatus/client/Client.ts b/src/api/resources/ticketing/resources/syncStatus/client/Client.ts deleted file mode 100644 index 314a8472c..000000000 --- a/src/api/resources/ticketing/resources/syncStatus/client/Client.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 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 SyncStatusClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class SyncStatusClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: SyncStatusClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * 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). - * - * @param {Merge.ticketing.SyncStatusListRequest} request - * @param {SyncStatusClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.syncStatus.list({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * pageSize: 1 - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } -} diff --git a/src/api/resources/ticketing/resources/syncStatus/client/index.ts b/src/api/resources/ticketing/resources/syncStatus/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ticketing/resources/syncStatus/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ticketing/resources/syncStatus/client/requests/SyncStatusListRequest.ts b/src/api/resources/ticketing/resources/syncStatus/client/requests/SyncStatusListRequest.ts deleted file mode 100644 index 94e1240fc..000000000 --- a/src/api/resources/ticketing/resources/syncStatus/client/requests/SyncStatusListRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * pageSize: 1 - * } - */ -export interface SyncStatusListRequest { - /** The pagination cursor value. */ - cursor?: string; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; -} diff --git a/src/api/resources/ticketing/resources/syncStatus/client/requests/index.ts b/src/api/resources/ticketing/resources/syncStatus/client/requests/index.ts deleted file mode 100644 index 9c815333a..000000000 --- a/src/api/resources/ticketing/resources/syncStatus/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { SyncStatusListRequest } from "./SyncStatusListRequest"; diff --git a/src/api/resources/ticketing/resources/syncStatus/exports.ts b/src/api/resources/ticketing/resources/syncStatus/exports.ts deleted file mode 100644 index 9593edcc7..000000000 --- a/src/api/resources/ticketing/resources/syncStatus/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { SyncStatusClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/syncStatus/index.ts b/src/api/resources/ticketing/resources/syncStatus/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ticketing/resources/syncStatus/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ticketing/resources/tags/client/Client.ts b/src/api/resources/ticketing/resources/tags/client/Client.ts deleted file mode 100644 index bb1faf047..000000000 --- a/src/api/resources/ticketing/resources/tags/client/Client.ts +++ /dev/null @@ -1,205 +0,0 @@ -// 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 TagsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class TagsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: TagsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Tag` objects. - * - * @param {Merge.ticketing.TagsListRequest} request - * @param {TagsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `Tag` object with the given `id`. - * - * @param {string} id - * @param {Merge.ticketing.TagsRetrieveRequest} request - * @param {TagsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.tags.retrieve("id", { - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.ticketing.TagsRetrieveRequest = {}, - requestOptions?: TagsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.ticketing.TagsRetrieveRequest = {}, - requestOptions?: TagsClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `ticketing/v1/tags/${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.ticketing.Tag.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/ticketing/resources/tags/client/index.ts b/src/api/resources/ticketing/resources/tags/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ticketing/resources/tags/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ticketing/resources/tags/client/requests/TagsListRequest.ts b/src/api/resources/ticketing/resources/tags/client/requests/TagsListRequest.ts deleted file mode 100644 index 440c60c11..000000000 --- a/src/api/resources/ticketing/resources/tags/client/requests/TagsListRequest.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - * pageSize: 1, - * remoteId: "remote_id" - * } - */ -export interface TagsListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; - /** The API provider's ID for the given object. */ - remoteId?: string; -} diff --git a/src/api/resources/ticketing/resources/tags/client/requests/TagsRetrieveRequest.ts b/src/api/resources/ticketing/resources/tags/client/requests/TagsRetrieveRequest.ts deleted file mode 100644 index fb2473530..000000000 --- a/src/api/resources/ticketing/resources/tags/client/requests/TagsRetrieveRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * includeRemoteData: true, - * includeShellData: true - * } - */ -export interface TagsRetrieveRequest { - /** 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; -} diff --git a/src/api/resources/ticketing/resources/tags/client/requests/index.ts b/src/api/resources/ticketing/resources/tags/client/requests/index.ts deleted file mode 100644 index 25fb90b8a..000000000 --- a/src/api/resources/ticketing/resources/tags/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { TagsListRequest } from "./TagsListRequest"; -export type { TagsRetrieveRequest } from "./TagsRetrieveRequest"; diff --git a/src/api/resources/ticketing/resources/tags/exports.ts b/src/api/resources/ticketing/resources/tags/exports.ts deleted file mode 100644 index c0ea39bb2..000000000 --- a/src/api/resources/ticketing/resources/tags/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { TagsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/tags/index.ts b/src/api/resources/ticketing/resources/tags/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ticketing/resources/tags/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ticketing/resources/teams/client/Client.ts b/src/api/resources/ticketing/resources/teams/client/Client.ts deleted file mode 100644 index 7cfa4e6ce..000000000 --- a/src/api/resources/ticketing/resources/teams/client/Client.ts +++ /dev/null @@ -1,205 +0,0 @@ -// 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 TeamsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class TeamsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: TeamsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Team` objects. - * - * @param {Merge.ticketing.TeamsListRequest} request - * @param {TeamsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `Team` object with the given `id`. - * - * @param {string} id - * @param {Merge.ticketing.TeamsRetrieveRequest} request - * @param {TeamsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.teams.retrieve("id", { - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.ticketing.TeamsRetrieveRequest = {}, - requestOptions?: TeamsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.ticketing.TeamsRetrieveRequest = {}, - requestOptions?: TeamsClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `ticketing/v1/teams/${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.ticketing.Team.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/ticketing/resources/teams/client/index.ts b/src/api/resources/ticketing/resources/teams/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ticketing/resources/teams/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ticketing/resources/teams/client/requests/TeamsListRequest.ts b/src/api/resources/ticketing/resources/teams/client/requests/TeamsListRequest.ts deleted file mode 100644 index 88c20fb48..000000000 --- a/src/api/resources/ticketing/resources/teams/client/requests/TeamsListRequest.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * createdAfter: new Date("2024-01-15T09:30:00.000Z"), - * createdBefore: new Date("2024-01-15T09:30:00.000Z"), - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - * pageSize: 1, - * remoteId: "remote_id" - * } - */ -export interface TeamsListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; - /** The API provider's ID for the given object. */ - remoteId?: string; -} diff --git a/src/api/resources/ticketing/resources/teams/client/requests/TeamsRetrieveRequest.ts b/src/api/resources/ticketing/resources/teams/client/requests/TeamsRetrieveRequest.ts deleted file mode 100644 index 95853ed0d..000000000 --- a/src/api/resources/ticketing/resources/teams/client/requests/TeamsRetrieveRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * includeRemoteData: true, - * includeShellData: true - * } - */ -export interface TeamsRetrieveRequest { - /** 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; -} diff --git a/src/api/resources/ticketing/resources/teams/client/requests/index.ts b/src/api/resources/ticketing/resources/teams/client/requests/index.ts deleted file mode 100644 index 38ece4621..000000000 --- a/src/api/resources/ticketing/resources/teams/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { TeamsListRequest } from "./TeamsListRequest"; -export type { TeamsRetrieveRequest } from "./TeamsRetrieveRequest"; diff --git a/src/api/resources/ticketing/resources/teams/exports.ts b/src/api/resources/ticketing/resources/teams/exports.ts deleted file mode 100644 index ca58e20d5..000000000 --- a/src/api/resources/ticketing/resources/teams/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { TeamsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/teams/index.ts b/src/api/resources/ticketing/resources/teams/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ticketing/resources/teams/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ticketing/resources/tickets/client/Client.ts b/src/api/resources/ticketing/resources/tickets/client/Client.ts deleted file mode 100644 index c4fe18f60..000000000 --- a/src/api/resources/ticketing/resources/tickets/client/Client.ts +++ /dev/null @@ -1,841 +0,0 @@ -// 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 TicketsClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class TicketsClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: TicketsClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `Ticket` objects. - * - * @param {Merge.ticketing.TicketsListRequest} request - * @param {TicketsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Creates a `Ticket` object with the given values. - * - * @param {Merge.ticketing.TicketEndpointRequest} request - * @param {TicketsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.tickets.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public create( - request: Merge.ticketing.TicketEndpointRequest, - requestOptions?: TicketsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.ticketing.TicketEndpointRequest, - requestOptions?: TicketsClient.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, - "ticketing/v1/tickets", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.ticketing.TicketEndpointRequest.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.ticketing.TicketResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/tickets"); - } - - /** - * Returns a `Ticket` object with the given `id`. - * - * @param {string} id - * @param {Merge.ticketing.TicketsRetrieveRequest} request - * @param {TicketsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.tickets.retrieve("id", { - * expand: "account", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * remoteFields: "priority", - * showEnumOrigins: "priority" - * }) - */ - public retrieve( - id: string, - request: Merge.ticketing.TicketsRetrieveRequest = {}, - requestOptions?: TicketsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.ticketing.TicketsRetrieveRequest = {}, - requestOptions?: TicketsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeRemoteFields, includeShellData, remoteFields, showEnumOrigins } = - request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.ticketing.TicketsRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - remote_fields: - remoteFields != null - ? serializers.ticketing.TicketsRetrieveRequestRemoteFields.jsonOrThrow(remoteFields, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - show_enum_origins: - showEnumOrigins != null - ? serializers.ticketing.TicketsRetrieveRequestShowEnumOrigins.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, - `ticketing/v1/tickets/${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.ticketing.Ticket.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } - - /** - * Updates a `Ticket` object with the given `id`. - * - * @param {string} id - * @param {Merge.ticketing.PatchedTicketEndpointRequest} request - * @param {TicketsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.tickets.partialUpdate("id", { - * isDebugMode: true, - * runAsync: true, - * model: {} - * }) - */ - public partialUpdate( - id: string, - request: Merge.ticketing.PatchedTicketEndpointRequest, - requestOptions?: TicketsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__partialUpdate(id, request, requestOptions)); - } - - private async __partialUpdate( - id: string, - request: Merge.ticketing.PatchedTicketEndpointRequest, - requestOptions?: TicketsClient.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, - `ticketing/v1/tickets/${core.url.encodePathParam(id)}`, - ), - method: "PATCH", - headers: _headers, - contentType: "application/json", - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.ticketing.PatchedTicketEndpointRequest.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.ticketing.TicketResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/ticketing/v1/tickets/{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) - * - * @param {string} ticket_id - * @param {Merge.ticketing.TicketsViewersListRequest} request - * @param {TicketsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.tickets.viewersList("ticket_id", { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "team", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * pageSize: 1 - * }) - */ - public viewersList( - ticket_id: string, - request: Merge.ticketing.TicketsViewersListRequest = {}, - requestOptions?: TicketsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__viewersList(ticket_id, request, requestOptions)); - } - - private async __viewersList( - ticket_id: string, - request: Merge.ticketing.TicketsViewersListRequest = {}, - requestOptions?: TicketsClient.RequestOptions, - ): Promise> { - const { cursor, expand, includeDeletedData, includeRemoteData, includeShellData, pageSize } = request; - const _queryParams: Record = { - cursor, - expand: - expand != null - ? serializers.ticketing.TicketsViewersListRequestExpand.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", - ); - } - - /** - * Returns metadata for `Ticket` PATCHs. - * - * @param {string} id - * @param {TicketsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.tickets.metaPatchRetrieve("id") - */ - public metaPatchRetrieve( - id: string, - requestOptions?: TicketsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPatchRetrieve(id, requestOptions)); - } - - private async __metaPatchRetrieve( - id: string, - requestOptions?: TicketsClient.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/tickets/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.ticketing.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", - "/ticketing/v1/tickets/meta/patch/{id}", - ); - } - - /** - * Returns metadata for `Ticket` POSTs. - * - * @param {Merge.ticketing.TicketsMetaPostRetrieveRequest} request - * @param {TicketsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.tickets.metaPostRetrieve({ - * collectionId: "collection_id", - * ticketType: "ticket_type" - * }) - */ - public metaPostRetrieve( - request: Merge.ticketing.TicketsMetaPostRetrieveRequest = {}, - requestOptions?: TicketsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(request, requestOptions)); - } - - private async __metaPostRetrieve( - request: Merge.ticketing.TicketsMetaPostRetrieveRequest = {}, - requestOptions?: TicketsClient.RequestOptions, - ): Promise> { - const { collectionId, ticketType } = request; - const _queryParams: Record = { - collection_id: collectionId, - ticket_type: ticketType, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.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/meta/post", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 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.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", - "/ticketing/v1/tickets/meta/post", - ); - } - - /** - * Returns a list of `RemoteFieldClass` objects. - * - * @param {Merge.ticketing.TicketsRemoteFieldClassesListRequest} request - * @param {TicketsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.tickets.remoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * ids: "ids", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * }) - */ - public remoteFieldClassesList( - request: Merge.ticketing.TicketsRemoteFieldClassesListRequest = {}, - requestOptions?: TicketsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); - } - - private 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, - ); - const _response = await (this._options.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", - ); - } -} diff --git a/src/api/resources/ticketing/resources/tickets/client/index.ts b/src/api/resources/ticketing/resources/tickets/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ticketing/resources/tickets/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ticketing/resources/tickets/client/requests/PatchedTicketEndpointRequest.ts b/src/api/resources/ticketing/resources/tickets/client/requests/PatchedTicketEndpointRequest.ts deleted file mode 100644 index b2e04f03e..000000000 --- a/src/api/resources/ticketing/resources/tickets/client/requests/PatchedTicketEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface PatchedTicketEndpointRequest { - /** Whether to include debug fields (such as log file links) in the response. */ - isDebugMode?: boolean; - /** Whether or not third-party updates should be run asynchronously. */ - runAsync?: boolean; - model: Merge.ticketing.PatchedTicketRequest; -} diff --git a/src/api/resources/ticketing/resources/tickets/client/requests/TicketEndpointRequest.ts b/src/api/resources/ticketing/resources/tickets/client/requests/TicketEndpointRequest.ts deleted file mode 100644 index 988e352c8..000000000 --- a/src/api/resources/ticketing/resources/tickets/client/requests/TicketEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface TicketEndpointRequest { - /** Whether to include debug fields (such as log file links) in the response. */ - isDebugMode?: boolean; - /** Whether or not third-party updates should be run asynchronously. */ - runAsync?: boolean; - model: Merge.ticketing.TicketRequest; -} diff --git a/src/api/resources/ticketing/resources/tickets/client/requests/TicketsListRequest.ts b/src/api/resources/ticketing/resources/tickets/client/requests/TicketsListRequest.ts deleted file mode 100644 index a6c5b191e..000000000 --- a/src/api/resources/ticketing/resources/tickets/client/requests/TicketsListRequest.ts +++ /dev/null @@ -1,123 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * 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" - * } - */ -export interface TicketsListRequest { - /** If provided, will only return tickets for this account. */ - accountId?: string; - /** If provided, will only return tickets assigned to the assignee_ids; multiple assignee_ids can be separated by commas. */ - assigneeIds?: string; - /** If provided, will only return tickets assigned to the collection_ids; multiple collection_ids can be separated by commas. */ - collectionIds?: string; - /** If provided, will only return tickets completed after this datetime. */ - completedAfter?: Date; - /** If provided, will only return tickets completed before this datetime. */ - completedBefore?: Date; - /** If provided, will only return tickets 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; - /** If provided, will only return tickets created by this creator_id. */ - creatorId?: string; - /** If provided, will only return tickets created by the creator_ids; multiple creator_ids can be separated by commas. */ - creatorIds?: string; - /** The pagination cursor value. */ - cursor?: string; - /** If provided, will only return tickets due after this datetime. */ - dueAfter?: Date; - /** 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; - /** 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; - /** If provided, will only return tickets with this name. */ - name?: string; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; - /** If provided, will only return sub tickets of the parent_ticket_id. */ - parentTicketId?: string; - /** - * If provided, will only return tickets of this priority. - * - * * `URGENT` - URGENT - * * `HIGH` - HIGH - * * `NORMAL` - NORMAL - * * `LOW` - LOW - */ - priority?: Merge.ticketing.TicketsListRequestPriority; - /** If provided, will only return tickets created in the third party platform after this datetime. */ - remoteCreatedAfter?: Date; - /** If provided, will only return tickets created in the third party platform before this datetime. */ - remoteCreatedBefore?: Date; - /** Deprecated. Use show_enum_origins. */ - remoteFields?: Merge.ticketing.TicketsListRequestRemoteFields; - /** The API provider's ID for the given object. */ - remoteId?: 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. */ - remoteUpdatedBefore?: Date; - /** 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.TicketsListRequestShowEnumOrigins; - /** If provided, will only return tickets of this status. */ - status?: Merge.ticketing.TicketsListRequestStatus; - /** If provided, will only return tickets matching the tags; multiple tags can be separated by commas. */ - tags?: string; - /** If provided, will only return tickets of this type. */ - ticketType?: string; - /** If provided, will only return tickets where the URL matches or contains the substring */ - ticketUrl?: string; -} diff --git a/src/api/resources/ticketing/resources/tickets/client/requests/TicketsMetaPostRetrieveRequest.ts b/src/api/resources/ticketing/resources/tickets/client/requests/TicketsMetaPostRetrieveRequest.ts deleted file mode 100644 index 4ce7c707f..000000000 --- a/src/api/resources/ticketing/resources/tickets/client/requests/TicketsMetaPostRetrieveRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * collectionId: "collection_id", - * ticketType: "ticket_type" - * } - */ -export interface TicketsMetaPostRetrieveRequest { - /** If provided, will only return tickets for this collection. */ - collectionId?: string; - /** If provided, will only return tickets for this ticket type. */ - ticketType?: string; -} diff --git a/src/api/resources/ticketing/resources/tickets/client/requests/TicketsRemoteFieldClassesListRequest.ts b/src/api/resources/ticketing/resources/tickets/client/requests/TicketsRemoteFieldClassesListRequest.ts deleted file mode 100644 index add11e7df..000000000 --- a/src/api/resources/ticketing/resources/tickets/client/requests/TicketsRemoteFieldClassesListRequest.ts +++ /dev/null @@ -1,33 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * ids: "ids", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * } - */ -export interface TicketsRemoteFieldClassesListRequest { - /** The pagination cursor value. */ - cursor?: string; - /** If provided, will only return remote field classes with the `ids` in this list */ - ids?: 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/ticketing/resources/tickets/client/requests/TicketsRetrieveRequest.ts b/src/api/resources/ticketing/resources/tickets/client/requests/TicketsRetrieveRequest.ts deleted file mode 100644 index db5816ce1..000000000 --- a/src/api/resources/ticketing/resources/tickets/client/requests/TicketsRetrieveRequest.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * expand: "account", - * includeRemoteData: true, - * includeRemoteFields: true, - * includeShellData: true, - * remoteFields: "priority", - * showEnumOrigins: "priority" - * } - */ -export interface TicketsRetrieveRequest { - /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ticketing.TicketsRetrieveRequestExpand; - /** 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?: Merge.ticketing.TicketsRetrieveRequestRemoteFields; - /** 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.TicketsRetrieveRequestShowEnumOrigins; -} diff --git a/src/api/resources/ticketing/resources/tickets/client/requests/TicketsViewersListRequest.ts b/src/api/resources/ticketing/resources/tickets/client/requests/TicketsViewersListRequest.ts deleted file mode 100644 index edf20328f..000000000 --- a/src/api/resources/ticketing/resources/tickets/client/requests/TicketsViewersListRequest.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "team", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * pageSize: 1 - * } - */ -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; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; -} diff --git a/src/api/resources/ticketing/resources/tickets/client/requests/index.ts b/src/api/resources/ticketing/resources/tickets/client/requests/index.ts deleted file mode 100644 index f9ea12a9e..000000000 --- a/src/api/resources/ticketing/resources/tickets/client/requests/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -export type { PatchedTicketEndpointRequest } from "./PatchedTicketEndpointRequest"; -export type { TicketEndpointRequest } from "./TicketEndpointRequest"; -export type { TicketsListRequest } from "./TicketsListRequest"; -export type { TicketsMetaPostRetrieveRequest } from "./TicketsMetaPostRetrieveRequest"; -export type { TicketsRemoteFieldClassesListRequest } from "./TicketsRemoteFieldClassesListRequest"; -export type { TicketsRetrieveRequest } from "./TicketsRetrieveRequest"; -export type { TicketsViewersListRequest } from "./TicketsViewersListRequest"; diff --git a/src/api/resources/ticketing/resources/tickets/exports.ts b/src/api/resources/ticketing/resources/tickets/exports.ts deleted file mode 100644 index 33088a721..000000000 --- a/src/api/resources/ticketing/resources/tickets/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { TicketsClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/tickets/index.ts b/src/api/resources/ticketing/resources/tickets/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/ticketing/resources/tickets/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/TicketsListRequestPriority.ts b/src/api/resources/ticketing/resources/tickets/types/TicketsListRequestPriority.ts deleted file mode 100644 index f4dc75bf6..000000000 --- a/src/api/resources/ticketing/resources/tickets/types/TicketsListRequestPriority.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const TicketsListRequestPriority = { - High: "HIGH", - Low: "LOW", - Normal: "NORMAL", - Urgent: "URGENT", -} as const; -export type TicketsListRequestPriority = (typeof TicketsListRequestPriority)[keyof typeof TicketsListRequestPriority]; diff --git a/src/api/resources/ticketing/resources/tickets/types/TicketsListRequestRemoteFields.ts b/src/api/resources/ticketing/resources/tickets/types/TicketsListRequestRemoteFields.ts deleted file mode 100644 index 5be9bac88..000000000 --- a/src/api/resources/ticketing/resources/tickets/types/TicketsListRequestRemoteFields.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const TicketsListRequestRemoteFields = { - 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 TicketsListRequestRemoteFields = - (typeof TicketsListRequestRemoteFields)[keyof typeof TicketsListRequestRemoteFields]; diff --git a/src/api/resources/ticketing/resources/tickets/types/TicketsListRequestShowEnumOrigins.ts b/src/api/resources/ticketing/resources/tickets/types/TicketsListRequestShowEnumOrigins.ts deleted file mode 100644 index 689ba5eb5..000000000 --- a/src/api/resources/ticketing/resources/tickets/types/TicketsListRequestShowEnumOrigins.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const TicketsListRequestShowEnumOrigins = { - 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 TicketsListRequestShowEnumOrigins = - (typeof TicketsListRequestShowEnumOrigins)[keyof typeof TicketsListRequestShowEnumOrigins]; diff --git a/src/api/resources/ticketing/resources/tickets/types/TicketsListRequestStatus.ts b/src/api/resources/ticketing/resources/tickets/types/TicketsListRequestStatus.ts deleted file mode 100644 index df8636830..000000000 --- a/src/api/resources/ticketing/resources/tickets/types/TicketsListRequestStatus.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const TicketsListRequestStatus = { - Empty: "", - Closed: "CLOSED", - InProgress: "IN_PROGRESS", - OnHold: "ON_HOLD", - Open: "OPEN", -} as const; -export type TicketsListRequestStatus = (typeof TicketsListRequestStatus)[keyof typeof TicketsListRequestStatus]; 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/TicketsRetrieveRequestRemoteFields.ts b/src/api/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestRemoteFields.ts deleted file mode 100644 index 65540c873..000000000 --- a/src/api/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestRemoteFields.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const TicketsRetrieveRequestRemoteFields = { - 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 TicketsRetrieveRequestRemoteFields = - (typeof TicketsRetrieveRequestRemoteFields)[keyof typeof TicketsRetrieveRequestRemoteFields]; diff --git a/src/api/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestShowEnumOrigins.ts b/src/api/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestShowEnumOrigins.ts deleted file mode 100644 index 6717440a2..000000000 --- a/src/api/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestShowEnumOrigins.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const TicketsRetrieveRequestShowEnumOrigins = { - 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 TicketsRetrieveRequestShowEnumOrigins = - (typeof TicketsRetrieveRequestShowEnumOrigins)[keyof typeof TicketsRetrieveRequestShowEnumOrigins]; 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/index.ts b/src/api/resources/ticketing/resources/tickets/types/index.ts deleted file mode 100644 index 2f77f6366..000000000 --- a/src/api/resources/ticketing/resources/tickets/types/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -export * from "./TicketsListRequestExpand"; -export * from "./TicketsListRequestPriority"; -export * from "./TicketsListRequestRemoteFields"; -export * from "./TicketsListRequestShowEnumOrigins"; -export * from "./TicketsListRequestStatus"; -export * from "./TicketsRetrieveRequestExpand"; -export * from "./TicketsRetrieveRequestRemoteFields"; -export * from "./TicketsRetrieveRequestShowEnumOrigins"; -export * from "./TicketsViewersListRequestExpand"; diff --git a/src/api/resources/ticketing/resources/users/client/Client.ts b/src/api/resources/ticketing/resources/users/client/Client.ts deleted file mode 100644 index e38cbb1cc..000000000 --- a/src/api/resources/ticketing/resources/users/client/Client.ts +++ /dev/null @@ -1,226 +0,0 @@ -// 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 UsersClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class UsersClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: UsersClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `User` objects. - * - * @param {Merge.ticketing.UsersListRequest} request - * @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * 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" - * }) - */ - public 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, - ); - const _response = await (this._options.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"); - } - - /** - * Returns a `User` object with the given `id`. - * - * @param {string} id - * @param {Merge.ticketing.UsersRetrieveRequest} request - * @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.users.retrieve("id", { - * expand: "roles", - * includeRemoteData: true, - * includeShellData: true - * }) - */ - public retrieve( - id: string, - request: Merge.ticketing.UsersRetrieveRequest = {}, - requestOptions?: UsersClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); - } - - private async __retrieve( - id: string, - request: Merge.ticketing.UsersRetrieveRequest = {}, - requestOptions?: UsersClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; - const _queryParams: Record = { - expand: - expand != null - ? serializers.ticketing.UsersRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `ticketing/v1/users/${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.ticketing.User.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/{id}"); - } -} diff --git a/src/api/resources/ticketing/resources/users/client/index.ts b/src/api/resources/ticketing/resources/users/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ticketing/resources/users/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ticketing/resources/users/client/requests/UsersListRequest.ts b/src/api/resources/ticketing/resources/users/client/requests/UsersListRequest.ts deleted file mode 100644 index 97b9283e4..000000000 --- a/src/api/resources/ticketing/resources/users/client/requests/UsersListRequest.ts +++ /dev/null @@ -1,50 +0,0 @@ -// 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", - * 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" - * } - */ -export interface UsersListRequest { - /** If provided, will only return objects created after this datetime. */ - createdAfter?: Date; - /** If provided, will only return objects created before this datetime. */ - createdBefore?: Date; - /** The pagination cursor value. */ - cursor?: string; - /** If provided, will only return 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; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - includeDeletedData?: boolean; - /** Whether to include the original data Merge fetched from the third-party to produce these models. */ - includeRemoteData?: boolean; - /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ - includeShellData?: boolean; - /** If provided, only objects synced by Merge after this date time will be returned. */ - modifiedAfter?: Date; - /** If provided, only objects synced by Merge before this date time will be returned. */ - modifiedBefore?: Date; - /** Number of results to return per page. The maximum limit is 100. */ - pageSize?: number; - /** The API provider's ID for the given object. */ - remoteId?: string; - /** If provided, will only return users matching in this team. */ - team?: 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 deleted file mode 100644 index 4fef54eb4..000000000 --- a/src/api/resources/ticketing/resources/users/client/requests/UsersRetrieveRequest.ts +++ /dev/null @@ -1,20 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -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; - /** 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; -} diff --git a/src/api/resources/ticketing/resources/users/client/requests/index.ts b/src/api/resources/ticketing/resources/users/client/requests/index.ts deleted file mode 100644 index cd759fb96..000000000 --- a/src/api/resources/ticketing/resources/users/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { UsersListRequest } from "./UsersListRequest"; -export type { UsersRetrieveRequest } from "./UsersRetrieveRequest"; diff --git a/src/api/resources/ticketing/resources/users/exports.ts b/src/api/resources/ticketing/resources/users/exports.ts deleted file mode 100644 index e416b996a..000000000 --- a/src/api/resources/ticketing/resources/users/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { UsersClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/users/index.ts b/src/api/resources/ticketing/resources/users/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/api/resources/ticketing/resources/users/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/api/resources/ticketing/resources/users/types/index.ts deleted file mode 100644 index e07d9f0f0..000000000 --- a/src/api/resources/ticketing/resources/users/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./UsersListRequestExpand"; -export * from "./UsersRetrieveRequestExpand"; diff --git a/src/api/resources/ticketing/resources/webhookReceivers/client/Client.ts b/src/api/resources/ticketing/resources/webhookReceivers/client/Client.ts deleted file mode 100644 index 395fc1d6f..000000000 --- a/src/api/resources/ticketing/resources/webhookReceivers/client/Client.ts +++ /dev/null @@ -1,174 +0,0 @@ -// 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 WebhookReceiversClient { - export type Options = BaseClientOptions; - - export interface RequestOptions extends BaseRequestOptions {} -} - -export class WebhookReceiversClient { - protected readonly _options: NormalizedClientOptionsWithAuth; - - constructor(options: WebhookReceiversClient.Options) { - this._options = normalizeClientOptionsWithAuth(options); - } - - /** - * Returns a list of `WebhookReceiver` objects. - * - * @param {WebhookReceiversClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.webhookReceivers.list() - */ - public list( - requestOptions?: WebhookReceiversClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(requestOptions)); - } - - private async __list( - requestOptions?: WebhookReceiversClient.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/webhook-receivers", - ), - 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.ticketing.webhookReceivers.list.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "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/webhook-receivers", - ); - } - - /** - * Creates a `WebhookReceiver` object with the given values. - * - * @param {Merge.ticketing.WebhookReceiverRequest} request - * @param {WebhookReceiversClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.webhookReceivers.create({ - * event: "event", - * isActive: true - * }) - */ - public create( - request: Merge.ticketing.WebhookReceiverRequest, - requestOptions?: WebhookReceiversClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: Merge.ticketing.WebhookReceiverRequest, - requestOptions?: WebhookReceiversClient.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/webhook-receivers", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryParameters: requestOptions?.queryParams, - requestType: "json", - body: serializers.ticketing.WebhookReceiverRequest.jsonOrThrow(request, { - 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.ticketing.WebhookReceiver.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.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/webhook-receivers", - ); - } -} diff --git a/src/api/resources/ticketing/resources/webhookReceivers/client/index.ts b/src/api/resources/ticketing/resources/webhookReceivers/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/api/resources/ticketing/resources/webhookReceivers/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ticketing/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts b/src/api/resources/ticketing/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts deleted file mode 100644 index bcc11dbe7..000000000 --- a/src/api/resources/ticketing/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * @example - * { - * event: "event", - * isActive: true - * } - */ -export interface WebhookReceiverRequest { - event: string; - isActive: boolean; - key?: string; -} diff --git a/src/api/resources/ticketing/resources/webhookReceivers/client/requests/index.ts b/src/api/resources/ticketing/resources/webhookReceivers/client/requests/index.ts deleted file mode 100644 index 0e668b74d..000000000 --- a/src/api/resources/ticketing/resources/webhookReceivers/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { WebhookReceiverRequest } from "./WebhookReceiverRequest"; diff --git a/src/api/resources/ticketing/resources/webhookReceivers/exports.ts b/src/api/resources/ticketing/resources/webhookReceivers/exports.ts deleted file mode 100644 index d0527565a..000000000 --- a/src/api/resources/ticketing/resources/webhookReceivers/exports.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export { WebhookReceiversClient } from "./client/Client"; -export * from "./client/index"; diff --git a/src/api/resources/ticketing/resources/webhookReceivers/index.ts b/src/api/resources/ticketing/resources/webhookReceivers/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/api/resources/ticketing/resources/webhookReceivers/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ticketing/types/Account.ts b/src/api/resources/ticketing/types/Account.ts deleted file mode 100644 index 04d904224..000000000 --- a/src/api/resources/ticketing/types/Account.ts +++ /dev/null @@ -1,31 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Account Object - * ### Description - * The `Account` object is used to represent the account that a ticket is associated with. - * - * The account is a company that may be a customer. This does not represent the company that is receiving the ticket. - * - * ### Usage Example - * TODO - */ -export interface Account { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The account's name. */ - name?: string; - /** The account's domain names. */ - domains?: (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; - remoteData?: Merge.ticketing.RemoteData[]; -} diff --git a/src/api/resources/ticketing/types/AccountDetails.ts b/src/api/resources/ticketing/types/AccountDetails.ts deleted file mode 100644 index 325d224d6..000000000 --- a/src/api/resources/ticketing/types/AccountDetails.ts +++ /dev/null @@ -1,20 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AccountDetails { - id?: string; - integration?: string; - integrationSlug?: string; - category?: Merge.ticketing.AccountDetailsCategory; - endUserOriginId?: string; - endUserOrganizationName?: string; - endUserEmailAddress?: string; - status?: string; - webhookListenerUrl?: string; - /** Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets. */ - isDuplicate?: boolean; - accountType?: string; - /** The time at which account completes the linking flow. */ - completedAt?: Date; -} diff --git a/src/api/resources/ticketing/types/AccountDetailsAndActions.ts b/src/api/resources/ticketing/types/AccountDetailsAndActions.ts deleted file mode 100644 index af72b4d39..000000000 --- a/src/api/resources/ticketing/types/AccountDetailsAndActions.ts +++ /dev/null @@ -1,30 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The LinkedAccount Object - * ### Description - * The `LinkedAccount` object is used to represent an end user's link with a specific integration. - * - * ### Usage Example - * View a list of your organization's `LinkedAccount` objects. - */ -export interface AccountDetailsAndActions { - id: string; - category?: Merge.ticketing.AccountDetailsAndActionsCategory; - status: Merge.ticketing.AccountDetailsAndActionsStatus; - statusDetail?: string; - endUserOriginId?: string; - endUserOrganizationName: string; - endUserEmailAddress: string; - /** The tenant or domain the customer has provided access to. */ - subdomain?: string; - webhookListenerUrl: string; - /** Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets. */ - isDuplicate?: boolean; - integration?: Merge.ticketing.AccountDetailsAndActionsIntegration; - accountType: string; - completedAt: Date; - integrationSpecificFields?: Record; -} diff --git a/src/api/resources/ticketing/types/AccountDetailsAndActionsCategory.ts b/src/api/resources/ticketing/types/AccountDetailsAndActionsCategory.ts deleted file mode 100644 index 8af6679a6..000000000 --- a/src/api/resources/ticketing/types/AccountDetailsAndActionsCategory.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 AccountDetailsAndActionsCategory = Merge.ticketing.CategoryEnum | string; diff --git a/src/api/resources/ticketing/types/AccountDetailsAndActionsIntegration.ts b/src/api/resources/ticketing/types/AccountDetailsAndActionsIntegration.ts deleted file mode 100644 index cd5c15742..000000000 --- a/src/api/resources/ticketing/types/AccountDetailsAndActionsIntegration.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AccountDetailsAndActionsIntegration { - name: string; - categories: Merge.ticketing.CategoriesEnum[]; - image?: string; - squareImage?: string; - color: string; - slug: string; - passthroughAvailable: boolean; - availableModelOperations?: Merge.ticketing.ModelOperation[]; -} diff --git a/src/api/resources/ticketing/types/AccountDetailsAndActionsStatus.ts b/src/api/resources/ticketing/types/AccountDetailsAndActionsStatus.ts deleted file mode 100644 index d65a7b054..000000000 --- a/src/api/resources/ticketing/types/AccountDetailsAndActionsStatus.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 AccountDetailsAndActionsStatus = Merge.ticketing.AccountDetailsAndActionsStatusEnum | string; diff --git a/src/api/resources/ticketing/types/AccountDetailsAndActionsStatusEnum.ts b/src/api/resources/ticketing/types/AccountDetailsAndActionsStatusEnum.ts deleted file mode 100644 index ab1273765..000000000 --- a/src/api/resources/ticketing/types/AccountDetailsAndActionsStatusEnum.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `COMPLETE` - COMPLETE - * * `INCOMPLETE` - INCOMPLETE - * * `RELINK_NEEDED` - RELINK_NEEDED - * * `IDLE` - IDLE - */ -export const AccountDetailsAndActionsStatusEnum = { - Complete: "COMPLETE", - Incomplete: "INCOMPLETE", - RelinkNeeded: "RELINK_NEEDED", - Idle: "IDLE", -} as const; -export type AccountDetailsAndActionsStatusEnum = - (typeof AccountDetailsAndActionsStatusEnum)[keyof typeof AccountDetailsAndActionsStatusEnum]; diff --git a/src/api/resources/ticketing/types/AccountDetailsCategory.ts b/src/api/resources/ticketing/types/AccountDetailsCategory.ts deleted file mode 100644 index 9c5a26252..000000000 --- a/src/api/resources/ticketing/types/AccountDetailsCategory.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export type AccountDetailsCategory = Merge.ticketing.CategoryEnum | string; diff --git a/src/api/resources/ticketing/types/AccountIntegration.ts b/src/api/resources/ticketing/types/AccountIntegration.ts deleted file mode 100644 index e0422ef1a..000000000 --- a/src/api/resources/ticketing/types/AccountIntegration.ts +++ /dev/null @@ -1,25 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AccountIntegration { - /** Company name. */ - name: string; - /** Optional. This shortened name appears in places with limited space, usually in conjunction with the platform's logo (e.g., Merge Link menu).

Example: Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors) */ - abbreviatedName?: string; - /** Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris]. */ - categories?: Merge.ticketing.CategoriesEnum[]; - /** Company logo in rectangular shape. */ - image?: string; - /** Company logo in square shape. */ - squareImage?: string; - /** The color of this integration used for buttons and text throughout the app and landing pages. Choose a darker, saturated color. */ - color?: string; - slug?: string; - /** Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []} */ - apiEndpointsToDocumentationUrls?: Record; - /** Setup guide URL for third party webhook creation. Exposed in Merge Docs. */ - webhookSetupGuideUrl?: string; - /** Category or categories this integration is in beta status for. */ - categoryBetaStatus?: Record; -} diff --git a/src/api/resources/ticketing/types/AccountToken.ts b/src/api/resources/ticketing/types/AccountToken.ts deleted file mode 100644 index cb7ede0b4..000000000 --- a/src/api/resources/ticketing/types/AccountToken.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AccountToken { - accountToken: string; - integration: Merge.ticketing.AccountIntegration; - id: string; -} diff --git a/src/api/resources/ticketing/types/AdvancedMetadata.ts b/src/api/resources/ticketing/types/AdvancedMetadata.ts deleted file mode 100644 index e5877563c..000000000 --- a/src/api/resources/ticketing/types/AdvancedMetadata.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface AdvancedMetadata { - id: string; - displayName?: string; - description?: string; - isRequired?: boolean; - isCustom?: boolean; - fieldChoices?: unknown[]; -} diff --git a/src/api/resources/ticketing/types/AsyncPassthroughReciept.ts b/src/api/resources/ticketing/types/AsyncPassthroughReciept.ts deleted file mode 100644 index d8bace047..000000000 --- a/src/api/resources/ticketing/types/AsyncPassthroughReciept.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface AsyncPassthroughReciept { - asyncPassthroughReceiptId: string; -} diff --git a/src/api/resources/ticketing/types/Attachment.ts b/src/api/resources/ticketing/types/Attachment.ts deleted file mode 100644 index 94405b5e6..000000000 --- a/src/api/resources/ticketing/types/Attachment.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Attachment Object - * ### Description - * The `Attachment` object is used to represent an attachment for a ticket. - * - * ### Usage Example - * TODO - */ -export interface Attachment { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The attachment's name. It is required to include the file extension in the attachment's name. */ - fileName?: string; - /** The ticket associated with the attachment. */ - ticket?: Merge.ticketing.AttachmentTicket; - /** The attachment's url. It is required to include the file extension in the file's URL. */ - fileUrl?: string; - /** The attachment's file format. */ - contentType?: string; - /** The user who uploaded the attachment. */ - uploadedBy?: string; - /** When the third party's attachment was created. */ - remoteCreatedAt?: 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[]; -} diff --git a/src/api/resources/ticketing/types/AttachmentRequest.ts b/src/api/resources/ticketing/types/AttachmentRequest.ts deleted file mode 100644 index 92a052485..000000000 --- a/src/api/resources/ticketing/types/AttachmentRequest.ts +++ /dev/null @@ -1,26 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Attachment Object - * ### Description - * The `Attachment` object is used to represent an attachment for a ticket. - * - * ### Usage Example - * TODO - */ -export interface AttachmentRequest { - /** The attachment's name. It is required to include the file extension in the attachment's name. */ - fileName?: string; - /** The ticket associated with the attachment. */ - ticket?: Merge.ticketing.AttachmentRequestTicket; - /** The attachment's url. It is required to include the file extension in the file's URL. */ - fileUrl?: string; - /** The attachment's file format. */ - contentType?: string; - /** The user who uploaded the attachment. */ - uploadedBy?: string; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/ticketing/types/AttachmentRequestTicket.ts b/src/api/resources/ticketing/types/AttachmentRequestTicket.ts deleted file mode 100644 index 13131b8e8..000000000 --- a/src/api/resources/ticketing/types/AttachmentRequestTicket.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 ticket associated with the attachment. - */ -export type AttachmentRequestTicket = string | Merge.ticketing.Ticket; diff --git a/src/api/resources/ticketing/types/AttachmentTicket.ts b/src/api/resources/ticketing/types/AttachmentTicket.ts deleted file mode 100644 index e486a6384..000000000 --- a/src/api/resources/ticketing/types/AttachmentTicket.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 ticket associated with the attachment. - */ -export type AttachmentTicket = string | Merge.ticketing.Ticket; diff --git a/src/api/resources/ticketing/types/AuditLogEvent.ts b/src/api/resources/ticketing/types/AuditLogEvent.ts deleted file mode 100644 index 2dcd9f104..000000000 --- a/src/api/resources/ticketing/types/AuditLogEvent.ts +++ /dev/null @@ -1,73 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface AuditLogEvent { - id?: string; - /** The User's full name at the time of this Event occurring. */ - userName?: string; - /** The User's email at the time of this Event occurring. */ - userEmail?: string; - /** - * Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. - * - * * `ADMIN` - ADMIN - * * `DEVELOPER` - DEVELOPER - * * `MEMBER` - MEMBER - * * `API` - API - * * `SYSTEM` - SYSTEM - * * `MERGE_TEAM` - MERGE_TEAM - */ - role: Merge.ticketing.AuditLogEventRole; - ipAddress: string; - /** - * Designates the type of event that occurred. - * - * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * * `INVITED_USER` - INVITED_USER - * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * * `CREATED_DESTINATION` - CREATED_DESTINATION - * * `DELETED_DESTINATION` - DELETED_DESTINATION - * * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * * `CHANGED_SCOPES` - CHANGED_SCOPES - * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * * `RESET_PASSWORD` - RESET_PASSWORD - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * * `MUTED_ISSUE` - MUTED_ISSUE - * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - */ - eventType: Merge.ticketing.AuditLogEventEventType; - eventDescription: string; - createdAt?: Date; -} diff --git a/src/api/resources/ticketing/types/AuditLogEventEventType.ts b/src/api/resources/ticketing/types/AuditLogEventEventType.ts deleted file mode 100644 index 6b09d3fe9..000000000 --- a/src/api/resources/ticketing/types/AuditLogEventEventType.ts +++ /dev/null @@ -1,52 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * Designates the type of event that occurred. - * - * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * * `INVITED_USER` - INVITED_USER - * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * * `CREATED_DESTINATION` - CREATED_DESTINATION - * * `DELETED_DESTINATION` - DELETED_DESTINATION - * * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * * `CHANGED_SCOPES` - CHANGED_SCOPES - * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * * `RESET_PASSWORD` - RESET_PASSWORD - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * * `MUTED_ISSUE` - MUTED_ISSUE - * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - */ -export type AuditLogEventEventType = Merge.ticketing.EventTypeEnum | string; diff --git a/src/api/resources/ticketing/types/AuditLogEventRole.ts b/src/api/resources/ticketing/types/AuditLogEventRole.ts deleted file mode 100644 index 71c27e3c5..000000000 --- a/src/api/resources/ticketing/types/AuditLogEventRole.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. - * - * * `ADMIN` - ADMIN - * * `DEVELOPER` - DEVELOPER - * * `MEMBER` - MEMBER - * * `API` - API - * * `SYSTEM` - SYSTEM - * * `MERGE_TEAM` - MERGE_TEAM - */ -export type AuditLogEventRole = Merge.ticketing.RoleEnum | string; diff --git a/src/api/resources/ticketing/types/AvailableActions.ts b/src/api/resources/ticketing/types/AvailableActions.ts deleted file mode 100644 index 1380015c2..000000000 --- a/src/api/resources/ticketing/types/AvailableActions.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The AvailableActions Object - * ### Description - * The `Activity` object is used to see all available model/operation combinations for an integration. - * - * ### Usage Example - * Fetch all the actions available for the `Zenefits` integration. - */ -export interface AvailableActions { - integration: Merge.ticketing.AccountIntegration; - passthroughAvailable: boolean; - availableModelOperations?: Merge.ticketing.ModelOperation[]; -} diff --git a/src/api/resources/ticketing/types/CategoriesEnum.ts b/src/api/resources/ticketing/types/CategoriesEnum.ts deleted file mode 100644 index f442eef79..000000000 --- a/src/api/resources/ticketing/types/CategoriesEnum.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `hris` - hris - * * `ats` - ats - * * `accounting` - accounting - * * `ticketing` - ticketing - * * `crm` - crm - * * `mktg` - mktg - * * `filestorage` - filestorage - * * `knowledgebase` - knowledgebase - */ -export const CategoriesEnum = { - Hris: "hris", - Ats: "ats", - Accounting: "accounting", - Ticketing: "ticketing", - 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 deleted file mode 100644 index 02badbab2..000000000 --- a/src/api/resources/ticketing/types/CategoryEnum.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `hris` - hris - * * `ats` - ats - * * `accounting` - accounting - * * `ticketing` - ticketing - * * `crm` - crm - * * `mktg` - mktg - * * `filestorage` - filestorage - * * `knowledgebase` - knowledgebase - */ -export const CategoryEnum = { - Hris: "hris", - Ats: "ats", - Accounting: "accounting", - Ticketing: "ticketing", - 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 deleted file mode 100644 index e1ebe92dd..000000000 --- a/src/api/resources/ticketing/types/Collection.ts +++ /dev/null @@ -1,53 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Collection Object - * ### Description - * The `Collection` object is used to represent one or more `Tickets`. There can be a hierarchy of `Collections`, in which a sub-collection belongs to a parent-collection. - * - * ### Usage Example - * TODO - */ -export interface Collection { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The collection's name. */ - name?: string; - /** The collection's description. */ - description?: string; - /** - * The level of access a User has to the Collection and its sub-objects. - * - * * `PRIVATE` - PRIVATE - * * `COMPANY` - COMPANY - * * `PUBLIC` - PUBLIC - * * `PARENT_COLLECTION` - PARENT_COLLECTION - */ - accessLevel?: Merge.ticketing.CollectionAccessLevel; - /** - * The collection's type. - * - * * `LIST` - LIST - * * `PROJECT` - PROJECT - */ - collectionType?: Merge.ticketing.CollectionCollectionType; - /** The parent collection for this collection. */ - parentCollection?: Merge.ticketing.CollectionParentCollection; - /** The 3rd party url of the Collection. */ - collectionUrl?: string; - /** When the third party's collection was created. */ - remoteCreatedAt?: Date; - /** When the third party's collection 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.ticketing.RemoteData[]; -} diff --git a/src/api/resources/ticketing/types/CollectionAccessLevel.ts b/src/api/resources/ticketing/types/CollectionAccessLevel.ts deleted file mode 100644 index 5c71af125..000000000 --- a/src/api/resources/ticketing/types/CollectionAccessLevel.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 level of access a User has to the Collection and its sub-objects. - * - * * `PRIVATE` - PRIVATE - * * `COMPANY` - COMPANY - * * `PUBLIC` - PUBLIC - * * `PARENT_COLLECTION` - PARENT_COLLECTION - */ -export type CollectionAccessLevel = Merge.ticketing.CollectionAccessLevelEnum | string; diff --git a/src/api/resources/ticketing/types/CollectionAccessLevelEnum.ts b/src/api/resources/ticketing/types/CollectionAccessLevelEnum.ts deleted file mode 100644 index 176aad8ab..000000000 --- a/src/api/resources/ticketing/types/CollectionAccessLevelEnum.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `PRIVATE` - PRIVATE - * * `COMPANY` - COMPANY - * * `PUBLIC` - PUBLIC - * * `PARENT_COLLECTION` - PARENT_COLLECTION - */ -export const CollectionAccessLevelEnum = { - Private: "PRIVATE", - Company: "COMPANY", - Public: "PUBLIC", - ParentCollection: "PARENT_COLLECTION", -} as const; -export type CollectionAccessLevelEnum = (typeof CollectionAccessLevelEnum)[keyof typeof CollectionAccessLevelEnum]; 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/CollectionParentCollection.ts b/src/api/resources/ticketing/types/CollectionParentCollection.ts deleted file mode 100644 index 0a920a402..000000000 --- a/src/api/resources/ticketing/types/CollectionParentCollection.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 parent collection for this collection. - */ -export type CollectionParentCollection = string | Merge.ticketing.Collection; diff --git a/src/api/resources/ticketing/types/CollectionTypeEnum.ts b/src/api/resources/ticketing/types/CollectionTypeEnum.ts deleted file mode 100644 index 2f063ee15..000000000 --- a/src/api/resources/ticketing/types/CollectionTypeEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `LIST` - LIST - * * `PROJECT` - PROJECT - */ -export const CollectionTypeEnum = { - List: "LIST", - Project: "PROJECT", -} as const; -export type CollectionTypeEnum = (typeof CollectionTypeEnum)[keyof typeof CollectionTypeEnum]; diff --git a/src/api/resources/ticketing/types/Comment.ts b/src/api/resources/ticketing/types/Comment.ts deleted file mode 100644 index aa62bac09..000000000 --- a/src/api/resources/ticketing/types/Comment.ts +++ /dev/null @@ -1,39 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Comment Object - * ### Description - * The `Comment` object is used to represent a comment on a ticket. - * - * ### Usage Example - * TODO - */ -export interface Comment { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The author of the Comment, if the author is a User. If the third party does not support specifying an author, we will append "[Posted on behalf of {name}]" to the comment. */ - user?: Merge.ticketing.CommentUser; - /** The author of the Comment, if the author is a Contact.If the third party does not support specifying an author, we will append "[Posted on behalf of {name}]" to the comment. */ - contact?: Merge.ticketing.CommentContact; - /** The comment's text body. */ - body?: string; - /** The comment's text body formatted as html. */ - htmlBody?: string; - /** The ticket associated with the comment. */ - ticket?: Merge.ticketing.CommentTicket; - /** Whether or not the comment is internal. */ - isPrivate?: boolean; - /** When the third party's comment was created. */ - remoteCreatedAt?: 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[]; -} diff --git a/src/api/resources/ticketing/types/CommentContact.ts b/src/api/resources/ticketing/types/CommentContact.ts deleted file mode 100644 index ddb70e638..000000000 --- a/src/api/resources/ticketing/types/CommentContact.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 author of the Comment, if the author is a Contact.If the third party does not support specifying an author, we will append "[Posted on behalf of {name}]" to the comment. - */ -export type CommentContact = string | Merge.ticketing.Contact; diff --git a/src/api/resources/ticketing/types/CommentRequest.ts b/src/api/resources/ticketing/types/CommentRequest.ts deleted file mode 100644 index ed9b70653..000000000 --- a/src/api/resources/ticketing/types/CommentRequest.ts +++ /dev/null @@ -1,28 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Comment Object - * ### Description - * The `Comment` object is used to represent a comment on a ticket. - * - * ### Usage Example - * TODO - */ -export interface CommentRequest { - /** The author of the Comment, if the author is a User. If the third party does not support specifying an author, we will append "[Posted on behalf of {name}]" to the comment. */ - user?: Merge.ticketing.CommentRequestUser; - /** The author of the Comment, if the author is a Contact.If the third party does not support specifying an author, we will append "[Posted on behalf of {name}]" to the comment. */ - contact?: Merge.ticketing.CommentRequestContact; - /** The comment's text body. */ - body?: string; - /** The comment's text body formatted as html. */ - htmlBody?: string; - /** The ticket associated with the comment. */ - ticket?: Merge.ticketing.CommentRequestTicket; - /** Whether or not the comment is internal. */ - isPrivate?: boolean; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/ticketing/types/CommentRequestContact.ts b/src/api/resources/ticketing/types/CommentRequestContact.ts deleted file mode 100644 index f7a66dc28..000000000 --- a/src/api/resources/ticketing/types/CommentRequestContact.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 author of the Comment, if the author is a Contact.If the third party does not support specifying an author, we will append "[Posted on behalf of {name}]" to the comment. - */ -export type CommentRequestContact = string | Merge.ticketing.Contact; diff --git a/src/api/resources/ticketing/types/CommentRequestTicket.ts b/src/api/resources/ticketing/types/CommentRequestTicket.ts deleted file mode 100644 index e8d0c130c..000000000 --- a/src/api/resources/ticketing/types/CommentRequestTicket.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 ticket associated with the comment. - */ -export type CommentRequestTicket = string | Merge.ticketing.Ticket; diff --git a/src/api/resources/ticketing/types/CommentRequestUser.ts b/src/api/resources/ticketing/types/CommentRequestUser.ts deleted file mode 100644 index 1d2cbb24e..000000000 --- a/src/api/resources/ticketing/types/CommentRequestUser.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 author of the Comment, if the author is a User. If the third party does not support specifying an author, we will append "[Posted on behalf of {name}]" to the comment. - */ -export type CommentRequestUser = string | Merge.ticketing.User; diff --git a/src/api/resources/ticketing/types/CommentResponse.ts b/src/api/resources/ticketing/types/CommentResponse.ts deleted file mode 100644 index 7343d6f9a..000000000 --- a/src/api/resources/ticketing/types/CommentResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface CommentResponse { - model: Merge.ticketing.Comment; - warnings: Merge.ticketing.WarningValidationProblem[]; - errors: Merge.ticketing.ErrorValidationProblem[]; - logs?: Merge.ticketing.DebugModeLog[]; -} diff --git a/src/api/resources/ticketing/types/CommentTicket.ts b/src/api/resources/ticketing/types/CommentTicket.ts deleted file mode 100644 index 31e763b75..000000000 --- a/src/api/resources/ticketing/types/CommentTicket.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 ticket associated with the comment. - */ -export type CommentTicket = string | Merge.ticketing.Ticket; diff --git a/src/api/resources/ticketing/types/CommentUser.ts b/src/api/resources/ticketing/types/CommentUser.ts deleted file mode 100644 index db099a60a..000000000 --- a/src/api/resources/ticketing/types/CommentUser.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 author of the Comment, if the author is a User. If the third party does not support specifying an author, we will append "[Posted on behalf of {name}]" to the comment. - */ -export type CommentUser = string | Merge.ticketing.User; diff --git a/src/api/resources/ticketing/types/CommonModelScopeApi.ts b/src/api/resources/ticketing/types/CommonModelScopeApi.ts deleted file mode 100644 index bc8018f18..000000000 --- a/src/api/resources/ticketing/types/CommonModelScopeApi.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface CommonModelScopeApi { - /** The common models you want to update the scopes for */ - commonModels: Merge.ticketing.IndividualCommonModelScopeDeserializer[]; -} diff --git a/src/api/resources/ticketing/types/CommonModelScopesBodyRequest.ts b/src/api/resources/ticketing/types/CommonModelScopesBodyRequest.ts deleted file mode 100644 index 457f7b8b4..000000000 --- a/src/api/resources/ticketing/types/CommonModelScopesBodyRequest.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface CommonModelScopesBodyRequest { - modelId: string; - enabledActions: Merge.ticketing.EnabledActionsEnum[]; - disabledFields: string[]; -} 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/Contact.ts b/src/api/resources/ticketing/types/Contact.ts deleted file mode 100644 index 3b80eb40c..000000000 --- a/src/api/resources/ticketing/types/Contact.ts +++ /dev/null @@ -1,35 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Contact Object - * ### Description - * The `Contact` object is used to represent the customer, lead, or external user that a ticket is associated with. - * - * ### Usage Example - * TODO - */ -export interface Contact { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The contact's name. */ - name?: string; - /** The contact's email address. */ - emailAddress?: string; - /** The contact's phone number. */ - phoneNumber?: string; - /** The contact's details. */ - details?: string; - /** The contact's account. */ - account?: Merge.ticketing.ContactAccount; - /** 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[]; -} diff --git a/src/api/resources/ticketing/types/ContactAccount.ts b/src/api/resources/ticketing/types/ContactAccount.ts deleted file mode 100644 index 219381820..000000000 --- a/src/api/resources/ticketing/types/ContactAccount.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 contact's account. - */ -export type ContactAccount = string | Merge.ticketing.Account; diff --git a/src/api/resources/ticketing/types/ContactRequest.ts b/src/api/resources/ticketing/types/ContactRequest.ts deleted file mode 100644 index c405418e8..000000000 --- a/src/api/resources/ticketing/types/ContactRequest.ts +++ /dev/null @@ -1,26 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Contact Object - * ### Description - * The `Contact` object is used to represent the customer, lead, or external user that a ticket is associated with. - * - * ### Usage Example - * TODO - */ -export interface ContactRequest { - /** The contact's name. */ - name?: string; - /** The contact's email address. */ - emailAddress?: string; - /** The contact's phone number. */ - phoneNumber?: string; - /** The contact's details. */ - details?: string; - /** The contact's account. */ - account?: Merge.ticketing.ContactRequestAccount; - integrationParams?: Record; - linkedAccountParams?: Record; -} diff --git a/src/api/resources/ticketing/types/ContactRequestAccount.ts b/src/api/resources/ticketing/types/ContactRequestAccount.ts deleted file mode 100644 index 23e5e13df..000000000 --- a/src/api/resources/ticketing/types/ContactRequestAccount.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 contact's account. - */ -export type ContactRequestAccount = string | Merge.ticketing.Account; diff --git a/src/api/resources/ticketing/types/DataPassthroughRequest.ts b/src/api/resources/ticketing/types/DataPassthroughRequest.ts deleted file mode 100644 index e789f1915..000000000 --- a/src/api/resources/ticketing/types/DataPassthroughRequest.ts +++ /dev/null @@ -1,28 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The DataPassthrough Object - * ### Description - * The `DataPassthrough` object is used to send information to an otherwise-unsupported third-party endpoint. - * - * ### Usage Example - * Create a `DataPassthrough` to get team hierarchies from your Rippling integration. - */ -export interface DataPassthroughRequest { - method: Merge.ticketing.MethodEnum; - /** The path of the request in the third party's platform. */ - path: string; - /** An optional override of the third party's base url for the request. */ - baseUrlOverride?: string; - /** The data with the request. You must include a `request_format` parameter matching the data's format */ - data?: string; - /** Pass an array of `MultipartFormField` objects in here instead of using the `data` param if `request_format` is set to `MULTIPART`. */ - multipartFormData?: Merge.ticketing.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.ticketing.RequestFormatEnum; - /** 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/ticketing/types/DebugModeLog.ts b/src/api/resources/ticketing/types/DebugModeLog.ts deleted file mode 100644 index 32d2ca156..000000000 --- a/src/api/resources/ticketing/types/DebugModeLog.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface DebugModeLog { - logId: string; - dashboardView: string; - logSummary: Merge.ticketing.DebugModelLogSummary; -} diff --git a/src/api/resources/ticketing/types/DebugModelLogSummary.ts b/src/api/resources/ticketing/types/DebugModelLogSummary.ts deleted file mode 100644 index ffce707e3..000000000 --- a/src/api/resources/ticketing/types/DebugModelLogSummary.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface DebugModelLogSummary { - url: string; - method: string; - statusCode: number; -} diff --git a/src/api/resources/ticketing/types/EnabledActionsEnum.ts b/src/api/resources/ticketing/types/EnabledActionsEnum.ts deleted file mode 100644 index f6ce6a343..000000000 --- a/src/api/resources/ticketing/types/EnabledActionsEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `READ` - READ - * * `WRITE` - WRITE - */ -export const EnabledActionsEnum = { - Read: "READ", - Write: "WRITE", -} as const; -export type EnabledActionsEnum = (typeof EnabledActionsEnum)[keyof typeof EnabledActionsEnum]; diff --git a/src/api/resources/ticketing/types/EncodingEnum.ts b/src/api/resources/ticketing/types/EncodingEnum.ts deleted file mode 100644 index 538e90395..000000000 --- a/src/api/resources/ticketing/types/EncodingEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `RAW` - RAW - * * `BASE64` - BASE64 - * * `GZIP_BASE64` - GZIP_BASE64 - */ -export const EncodingEnum = { - Raw: "RAW", - Base64: "BASE64", - GzipBase64: "GZIP_BASE64", -} as const; -export type EncodingEnum = (typeof EncodingEnum)[keyof typeof EncodingEnum]; diff --git a/src/api/resources/ticketing/types/ErrorValidationProblem.ts b/src/api/resources/ticketing/types/ErrorValidationProblem.ts deleted file mode 100644 index bfec3b1ad..000000000 --- a/src/api/resources/ticketing/types/ErrorValidationProblem.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface ErrorValidationProblem { - source?: Merge.ticketing.ValidationProblemSource; - title: string; - detail: string; - problemType: string; -} diff --git a/src/api/resources/ticketing/types/EventTypeEnum.ts b/src/api/resources/ticketing/types/EventTypeEnum.ts deleted file mode 100644 index 4e8aee7f7..000000000 --- a/src/api/resources/ticketing/types/EventTypeEnum.ts +++ /dev/null @@ -1,93 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY - * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY - * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY - * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY - * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY - * * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE - * * `INVITED_USER` - INVITED_USER - * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED - * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED - * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT - * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT - * * `CREATED_DESTINATION` - CREATED_DESTINATION - * * `DELETED_DESTINATION` - DELETED_DESTINATION - * * `CHANGED_DESTINATION` - CHANGED_DESTINATION - * * `CHANGED_SCOPES` - CHANGED_SCOPES - * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION - * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS - * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION - * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION - * * `ENABLED_CATEGORY` - ENABLED_CATEGORY - * * `DISABLED_CATEGORY` - DISABLED_CATEGORY - * * `CHANGED_PASSWORD` - CHANGED_PASSWORD - * * `RESET_PASSWORD` - RESET_PASSWORD - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION - * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT - * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING - * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING - * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING - * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING - * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE - * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC - * * `MUTED_ISSUE` - MUTED_ISSUE - * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK - * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK - * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK - * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED - * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED - */ -export const EventTypeEnum = { - CreatedRemoteProductionApiKey: "CREATED_REMOTE_PRODUCTION_API_KEY", - DeletedRemoteProductionApiKey: "DELETED_REMOTE_PRODUCTION_API_KEY", - CreatedTestApiKey: "CREATED_TEST_API_KEY", - DeletedTestApiKey: "DELETED_TEST_API_KEY", - RegeneratedProductionApiKey: "REGENERATED_PRODUCTION_API_KEY", - RegeneratedWebhookSignature: "REGENERATED_WEBHOOK_SIGNATURE", - InvitedUser: "INVITED_USER", - TwoFactorAuthEnabled: "TWO_FACTOR_AUTH_ENABLED", - TwoFactorAuthDisabled: "TWO_FACTOR_AUTH_DISABLED", - DeletedLinkedAccount: "DELETED_LINKED_ACCOUNT", - DeletedAllCommonModelsForLinkedAccount: "DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT", - CreatedDestination: "CREATED_DESTINATION", - DeletedDestination: "DELETED_DESTINATION", - ChangedDestination: "CHANGED_DESTINATION", - ChangedScopes: "CHANGED_SCOPES", - ChangedPersonalInformation: "CHANGED_PERSONAL_INFORMATION", - ChangedOrganizationSettings: "CHANGED_ORGANIZATION_SETTINGS", - EnabledIntegration: "ENABLED_INTEGRATION", - DisabledIntegration: "DISABLED_INTEGRATION", - EnabledCategory: "ENABLED_CATEGORY", - DisabledCategory: "DISABLED_CATEGORY", - ChangedPassword: "CHANGED_PASSWORD", - ResetPassword: "RESET_PASSWORD", - EnabledRedactUnmappedDataForOrganization: "ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION", - EnabledRedactUnmappedDataForLinkedAccount: "ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT", - DisabledRedactUnmappedDataForOrganization: "DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION", - DisabledRedactUnmappedDataForLinkedAccount: "DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT", - CreatedIntegrationWideFieldMapping: "CREATED_INTEGRATION_WIDE_FIELD_MAPPING", - CreatedLinkedAccountFieldMapping: "CREATED_LINKED_ACCOUNT_FIELD_MAPPING", - ChangedIntegrationWideFieldMapping: "CHANGED_INTEGRATION_WIDE_FIELD_MAPPING", - ChangedLinkedAccountFieldMapping: "CHANGED_LINKED_ACCOUNT_FIELD_MAPPING", - DeletedIntegrationWideFieldMapping: "DELETED_INTEGRATION_WIDE_FIELD_MAPPING", - DeletedLinkedAccountFieldMapping: "DELETED_LINKED_ACCOUNT_FIELD_MAPPING", - CreatedLinkedAccountCommonModelOverride: "CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE", - ChangedLinkedAccountCommonModelOverride: "CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE", - DeletedLinkedAccountCommonModelOverride: "DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE", - ForcedLinkedAccountResync: "FORCED_LINKED_ACCOUNT_RESYNC", - MutedIssue: "MUTED_ISSUE", - GeneratedMagicLink: "GENERATED_MAGIC_LINK", - EnabledMergeWebhook: "ENABLED_MERGE_WEBHOOK", - DisabledMergeWebhook: "DISABLED_MERGE_WEBHOOK", - MergeWebhookTargetChanged: "MERGE_WEBHOOK_TARGET_CHANGED", - EndUserCredentialsAccessed: "END_USER_CREDENTIALS_ACCESSED", -} as const; -export type EventTypeEnum = (typeof EventTypeEnum)[keyof typeof EventTypeEnum]; diff --git a/src/api/resources/ticketing/types/ExternalTargetFieldApi.ts b/src/api/resources/ticketing/types/ExternalTargetFieldApi.ts deleted file mode 100644 index 7823d0137..000000000 --- a/src/api/resources/ticketing/types/ExternalTargetFieldApi.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface ExternalTargetFieldApi { - name?: string; - description?: string; - isMapped?: string; -} diff --git a/src/api/resources/ticketing/types/ExternalTargetFieldApiResponse.ts b/src/api/resources/ticketing/types/ExternalTargetFieldApiResponse.ts deleted file mode 100644 index 1e1c924a9..000000000 --- a/src/api/resources/ticketing/types/ExternalTargetFieldApiResponse.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface ExternalTargetFieldApiResponse { - ticket?: Merge.ticketing.ExternalTargetFieldApi[]; - comment?: Merge.ticketing.ExternalTargetFieldApi[]; - project?: Merge.ticketing.ExternalTargetFieldApi[]; - collection?: Merge.ticketing.ExternalTargetFieldApi[]; - user?: Merge.ticketing.ExternalTargetFieldApi[]; - role?: Merge.ticketing.ExternalTargetFieldApi[]; - account?: Merge.ticketing.ExternalTargetFieldApi[]; - team?: Merge.ticketing.ExternalTargetFieldApi[]; - attachment?: Merge.ticketing.ExternalTargetFieldApi[]; - tag?: Merge.ticketing.ExternalTargetFieldApi[]; - contact?: Merge.ticketing.ExternalTargetFieldApi[]; -} diff --git a/src/api/resources/ticketing/types/FieldFormatEnum.ts b/src/api/resources/ticketing/types/FieldFormatEnum.ts deleted file mode 100644 index 47fd5bfe9..000000000 --- a/src/api/resources/ticketing/types/FieldFormatEnum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `string` - string - * * `number` - number - * * `date` - date - * * `datetime` - datetime - * * `bool` - bool - * * `list` - list - */ -export const FieldFormatEnum = { - String: "string", - Number: "number", - Date: "date", - Datetime: "datetime", - Bool: "bool", - List: "list", -} as const; -export type FieldFormatEnum = (typeof FieldFormatEnum)[keyof typeof FieldFormatEnum]; diff --git a/src/api/resources/ticketing/types/FieldMappingApiInstance.ts b/src/api/resources/ticketing/types/FieldMappingApiInstance.ts deleted file mode 100644 index 4402597de..000000000 --- a/src/api/resources/ticketing/types/FieldMappingApiInstance.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface FieldMappingApiInstance { - id?: string; - isIntegrationWide?: boolean; - targetField?: Merge.ticketing.FieldMappingApiInstanceTargetField; - remoteField?: Merge.ticketing.FieldMappingApiInstanceRemoteField; - jmesPath?: string; -} diff --git a/src/api/resources/ticketing/types/FieldMappingApiInstanceRemoteField.ts b/src/api/resources/ticketing/types/FieldMappingApiInstanceRemoteField.ts deleted file mode 100644 index 96a643fb6..000000000 --- a/src/api/resources/ticketing/types/FieldMappingApiInstanceRemoteField.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface FieldMappingApiInstanceRemoteField { - remoteKeyName?: string; - schema?: Record; - remoteEndpointInfo: Merge.ticketing.FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo; -} diff --git a/src/api/resources/ticketing/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts b/src/api/resources/ticketing/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts deleted file mode 100644 index 1f6e6cb3c..000000000 --- a/src/api/resources/ticketing/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo { - method?: string; - urlPath?: string; - fieldTraversalPath?: string[]; -} diff --git a/src/api/resources/ticketing/types/FieldMappingApiInstanceResponse.ts b/src/api/resources/ticketing/types/FieldMappingApiInstanceResponse.ts deleted file mode 100644 index 93c7d8446..000000000 --- a/src/api/resources/ticketing/types/FieldMappingApiInstanceResponse.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface FieldMappingApiInstanceResponse { - ticket?: Merge.ticketing.FieldMappingApiInstance[]; - comment?: Merge.ticketing.FieldMappingApiInstance[]; - project?: Merge.ticketing.FieldMappingApiInstance[]; - collection?: Merge.ticketing.FieldMappingApiInstance[]; - user?: Merge.ticketing.FieldMappingApiInstance[]; - role?: Merge.ticketing.FieldMappingApiInstance[]; - account?: Merge.ticketing.FieldMappingApiInstance[]; - team?: Merge.ticketing.FieldMappingApiInstance[]; - attachment?: Merge.ticketing.FieldMappingApiInstance[]; - tag?: Merge.ticketing.FieldMappingApiInstance[]; - contact?: Merge.ticketing.FieldMappingApiInstance[]; -} diff --git a/src/api/resources/ticketing/types/FieldMappingApiInstanceTargetField.ts b/src/api/resources/ticketing/types/FieldMappingApiInstanceTargetField.ts deleted file mode 100644 index da6fd1317..000000000 --- a/src/api/resources/ticketing/types/FieldMappingApiInstanceTargetField.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface FieldMappingApiInstanceTargetField { - name: string; - description: string; - isOrganizationWide: boolean; -} diff --git a/src/api/resources/ticketing/types/FieldMappingInstanceResponse.ts b/src/api/resources/ticketing/types/FieldMappingInstanceResponse.ts deleted file mode 100644 index 127719f2c..000000000 --- a/src/api/resources/ticketing/types/FieldMappingInstanceResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface FieldMappingInstanceResponse { - model: Merge.ticketing.FieldMappingApiInstance; - warnings: Merge.ticketing.WarningValidationProblem[]; - errors: Merge.ticketing.ErrorValidationProblem[]; - logs?: Merge.ticketing.DebugModeLog[]; -} diff --git a/src/api/resources/ticketing/types/FieldPermissionDeserializer.ts b/src/api/resources/ticketing/types/FieldPermissionDeserializer.ts deleted file mode 100644 index 62ec4f2de..000000000 --- a/src/api/resources/ticketing/types/FieldPermissionDeserializer.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface FieldPermissionDeserializer { - enabledFields?: unknown[]; - disabledFields?: unknown[]; -} diff --git a/src/api/resources/ticketing/types/FieldPermissionDeserializerRequest.ts b/src/api/resources/ticketing/types/FieldPermissionDeserializerRequest.ts deleted file mode 100644 index 768c90546..000000000 --- a/src/api/resources/ticketing/types/FieldPermissionDeserializerRequest.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface FieldPermissionDeserializerRequest { - enabledFields?: unknown[]; - disabledFields?: unknown[]; -} diff --git a/src/api/resources/ticketing/types/FieldTypeEnum.ts b/src/api/resources/ticketing/types/FieldTypeEnum.ts deleted file mode 100644 index 40fb1b5c6..000000000 --- a/src/api/resources/ticketing/types/FieldTypeEnum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `string` - string - * * `number` - number - * * `date` - date - * * `datetime` - datetime - * * `bool` - bool - * * `list` - list - */ -export const FieldTypeEnum = { - String: "string", - Number: "number", - Date: "date", - Datetime: "datetime", - Bool: "bool", - List: "list", -} as const; -export type FieldTypeEnum = (typeof FieldTypeEnum)[keyof typeof FieldTypeEnum]; diff --git a/src/api/resources/ticketing/types/IndividualCommonModelScopeDeserializer.ts b/src/api/resources/ticketing/types/IndividualCommonModelScopeDeserializer.ts deleted file mode 100644 index 989123ed7..000000000 --- a/src/api/resources/ticketing/types/IndividualCommonModelScopeDeserializer.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface IndividualCommonModelScopeDeserializer { - modelName: string; - modelPermissions?: Record; - fieldPermissions?: Merge.ticketing.FieldPermissionDeserializer; -} diff --git a/src/api/resources/ticketing/types/IndividualCommonModelScopeDeserializerRequest.ts b/src/api/resources/ticketing/types/IndividualCommonModelScopeDeserializerRequest.ts deleted file mode 100644 index 2bb958506..000000000 --- a/src/api/resources/ticketing/types/IndividualCommonModelScopeDeserializerRequest.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface IndividualCommonModelScopeDeserializerRequest { - modelName: string; - modelPermissions?: Record; - fieldPermissions?: Merge.ticketing.FieldPermissionDeserializerRequest; -} diff --git a/src/api/resources/ticketing/types/Issue.ts b/src/api/resources/ticketing/types/Issue.ts deleted file mode 100644 index e183a7a0b..000000000 --- a/src/api/resources/ticketing/types/Issue.ts +++ /dev/null @@ -1,20 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface Issue { - id?: string; - /** - * Status of the issue. Options: ('ONGOING', 'RESOLVED') - * - * * `ONGOING` - ONGOING - * * `RESOLVED` - RESOLVED - */ - status?: Merge.ticketing.IssueStatus; - errorDescription: string; - endUser?: Record; - firstIncidentTime?: Date; - lastIncidentTime?: Date; - isMuted?: boolean; - errorDetails?: string[]; -} diff --git a/src/api/resources/ticketing/types/IssueStatus.ts b/src/api/resources/ticketing/types/IssueStatus.ts deleted file mode 100644 index 78bd7685f..000000000 --- a/src/api/resources/ticketing/types/IssueStatus.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * Status of the issue. Options: ('ONGOING', 'RESOLVED') - * - * * `ONGOING` - ONGOING - * * `RESOLVED` - RESOLVED - */ -export type IssueStatus = Merge.ticketing.IssueStatusEnum | string; diff --git a/src/api/resources/ticketing/types/IssueStatusEnum.ts b/src/api/resources/ticketing/types/IssueStatusEnum.ts deleted file mode 100644 index 03b0cd555..000000000 --- a/src/api/resources/ticketing/types/IssueStatusEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `ONGOING` - ONGOING - * * `RESOLVED` - RESOLVED - */ -export const IssueStatusEnum = { - Ongoing: "ONGOING", - Resolved: "RESOLVED", -} as const; -export type IssueStatusEnum = (typeof IssueStatusEnum)[keyof typeof IssueStatusEnum]; diff --git a/src/api/resources/ticketing/types/ItemFormatEnum.ts b/src/api/resources/ticketing/types/ItemFormatEnum.ts deleted file mode 100644 index 4374c7f09..000000000 --- a/src/api/resources/ticketing/types/ItemFormatEnum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `string` - uuid - * * `number` - url - * * `date` - email - * * `datetime` - phone - * * `bool` - currency - * * `list` - decimal - */ -export const ItemFormatEnum = { - String: "string", - Number: "number", - Date: "date", - Datetime: "datetime", - Bool: "bool", - List: "list", -} as const; -export type ItemFormatEnum = (typeof ItemFormatEnum)[keyof typeof ItemFormatEnum]; diff --git a/src/api/resources/ticketing/types/ItemSchema.ts b/src/api/resources/ticketing/types/ItemSchema.ts deleted file mode 100644 index 5d8b158f0..000000000 --- a/src/api/resources/ticketing/types/ItemSchema.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface ItemSchema { - itemType?: Merge.ticketing.ItemTypeEnum; - itemFormat?: Merge.ticketing.ItemFormatEnum; - itemChoices?: string[]; -} diff --git a/src/api/resources/ticketing/types/ItemTypeEnum.ts b/src/api/resources/ticketing/types/ItemTypeEnum.ts deleted file mode 100644 index 836ffd0b2..000000000 --- a/src/api/resources/ticketing/types/ItemTypeEnum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `string` - string - * * `number` - number - * * `date` - date - * * `datetime` - datetime - * * `bool` - bool - * * `list` - list - */ -export const ItemTypeEnum = { - String: "string", - Number: "number", - Date: "date", - Datetime: "datetime", - Bool: "bool", - List: "list", -} as const; -export type ItemTypeEnum = (typeof ItemTypeEnum)[keyof typeof ItemTypeEnum]; diff --git a/src/api/resources/ticketing/types/LanguageEnum.ts b/src/api/resources/ticketing/types/LanguageEnum.ts deleted file mode 100644 index 603fc6498..000000000 --- a/src/api/resources/ticketing/types/LanguageEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `en` - en - * * `de` - de - */ -export const LanguageEnum = { - En: "en", - De: "de", -} as const; -export type LanguageEnum = (typeof LanguageEnum)[keyof typeof LanguageEnum]; diff --git a/src/api/resources/ticketing/types/LastSyncResultEnum.ts b/src/api/resources/ticketing/types/LastSyncResultEnum.ts deleted file mode 100644 index 3baf8309b..000000000 --- a/src/api/resources/ticketing/types/LastSyncResultEnum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `SYNCING` - SYNCING - * * `DONE` - DONE - * * `FAILED` - FAILED - * * `DISABLED` - DISABLED - * * `PAUSED` - PAUSED - * * `PARTIALLY_SYNCED` - PARTIALLY_SYNCED - */ -export const LastSyncResultEnum = { - Syncing: "SYNCING", - Done: "DONE", - Failed: "FAILED", - Disabled: "DISABLED", - Paused: "PAUSED", - PartiallySynced: "PARTIALLY_SYNCED", -} as const; -export type LastSyncResultEnum = (typeof LastSyncResultEnum)[keyof typeof LastSyncResultEnum]; diff --git a/src/api/resources/ticketing/types/LinkToken.ts b/src/api/resources/ticketing/types/LinkToken.ts deleted file mode 100644 index 09879f9b1..000000000 --- a/src/api/resources/ticketing/types/LinkToken.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface LinkToken { - linkToken: string; - integrationName?: string; - magicLinkUrl?: string; -} diff --git a/src/api/resources/ticketing/types/LinkedAccountStatus.ts b/src/api/resources/ticketing/types/LinkedAccountStatus.ts deleted file mode 100644 index fa55c41fb..000000000 --- a/src/api/resources/ticketing/types/LinkedAccountStatus.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface LinkedAccountStatus { - linkedAccountStatus: string; - canMakeRequest: boolean; -} diff --git a/src/api/resources/ticketing/types/MetaResponse.ts b/src/api/resources/ticketing/types/MetaResponse.ts deleted file mode 100644 index e711567d9..000000000 --- a/src/api/resources/ticketing/types/MetaResponse.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface MetaResponse { - requestSchema: Record; - remoteFieldClasses?: Record; - status?: Merge.ticketing.LinkedAccountStatus; - hasConditionalParams: boolean; - hasRequiredLinkedAccountParams: boolean; -} diff --git a/src/api/resources/ticketing/types/MethodEnum.ts b/src/api/resources/ticketing/types/MethodEnum.ts deleted file mode 100644 index b8fb03bb0..000000000 --- a/src/api/resources/ticketing/types/MethodEnum.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `GET` - GET - * * `OPTIONS` - OPTIONS - * * `HEAD` - HEAD - * * `POST` - POST - * * `PUT` - PUT - * * `PATCH` - PATCH - * * `DELETE` - DELETE - */ -export const MethodEnum = { - Get: "GET", - Options: "OPTIONS", - Head: "HEAD", - Post: "POST", - Put: "PUT", - Patch: "PATCH", - Delete: "DELETE", -} as const; -export type MethodEnum = (typeof MethodEnum)[keyof typeof MethodEnum]; diff --git a/src/api/resources/ticketing/types/ModelOperation.ts b/src/api/resources/ticketing/types/ModelOperation.ts deleted file mode 100644 index 520f668d9..000000000 --- a/src/api/resources/ticketing/types/ModelOperation.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * # The ModelOperation Object - * ### Description - * The `ModelOperation` object is used to represent the operations that are currently supported for a given model. - * - * ### Usage Example - * View what operations are supported for the `Candidate` endpoint. - */ -export interface ModelOperation { - modelName: string; - availableOperations: string[]; - requiredPostParameters: string[]; - supportedFields: string[]; -} diff --git a/src/api/resources/ticketing/types/ModelPermissionDeserializer.ts b/src/api/resources/ticketing/types/ModelPermissionDeserializer.ts deleted file mode 100644 index 58b672e56..000000000 --- a/src/api/resources/ticketing/types/ModelPermissionDeserializer.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface ModelPermissionDeserializer { - isEnabled?: boolean; -} diff --git a/src/api/resources/ticketing/types/ModelPermissionDeserializerRequest.ts b/src/api/resources/ticketing/types/ModelPermissionDeserializerRequest.ts deleted file mode 100644 index 1e140a95a..000000000 --- a/src/api/resources/ticketing/types/ModelPermissionDeserializerRequest.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface ModelPermissionDeserializerRequest { - isEnabled?: boolean; -} diff --git a/src/api/resources/ticketing/types/MultipartFormFieldRequest.ts b/src/api/resources/ticketing/types/MultipartFormFieldRequest.ts deleted file mode 100644 index eb989e1f4..000000000 --- a/src/api/resources/ticketing/types/MultipartFormFieldRequest.ts +++ /dev/null @@ -1,30 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The MultipartFormField Object - * ### Description - * The `MultipartFormField` object is used to represent fields in an HTTP request using `multipart/form-data`. - * - * ### Usage Example - * Create a `MultipartFormField` to define a multipart form entry. - */ -export interface MultipartFormFieldRequest { - /** The name of the form field */ - name: string; - /** The data for the form field. */ - data: string; - /** - * The encoding of the value of `data`. Defaults to `RAW` if not defined. - * - * * `RAW` - RAW - * * `BASE64` - BASE64 - * * `GZIP_BASE64` - GZIP_BASE64 - */ - encoding?: Merge.ticketing.MultipartFormFieldRequestEncoding; - /** 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. */ - contentType?: string; -} diff --git a/src/api/resources/ticketing/types/MultipartFormFieldRequestEncoding.ts b/src/api/resources/ticketing/types/MultipartFormFieldRequestEncoding.ts deleted file mode 100644 index b24eb0a4d..000000000 --- a/src/api/resources/ticketing/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.ticketing.EncodingEnum | string; diff --git a/src/api/resources/ticketing/types/PaginatedAccountDetailsAndActionsList.ts b/src/api/resources/ticketing/types/PaginatedAccountDetailsAndActionsList.ts deleted file mode 100644 index 9840d282f..000000000 --- a/src/api/resources/ticketing/types/PaginatedAccountDetailsAndActionsList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedAccountDetailsAndActionsList { - next?: string; - previous?: string; - results?: Merge.ticketing.AccountDetailsAndActions[]; -} diff --git a/src/api/resources/ticketing/types/PaginatedAccountList.ts b/src/api/resources/ticketing/types/PaginatedAccountList.ts deleted file mode 100644 index c9450e5e2..000000000 --- a/src/api/resources/ticketing/types/PaginatedAccountList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedAccountList { - next?: string; - previous?: string; - results?: Merge.ticketing.Account[]; -} diff --git a/src/api/resources/ticketing/types/PaginatedAttachmentList.ts b/src/api/resources/ticketing/types/PaginatedAttachmentList.ts deleted file mode 100644 index ef6a84716..000000000 --- a/src/api/resources/ticketing/types/PaginatedAttachmentList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedAttachmentList { - next?: string; - previous?: string; - results?: Merge.ticketing.Attachment[]; -} diff --git a/src/api/resources/ticketing/types/PaginatedAuditLogEventList.ts b/src/api/resources/ticketing/types/PaginatedAuditLogEventList.ts deleted file mode 100644 index 10f1caa78..000000000 --- a/src/api/resources/ticketing/types/PaginatedAuditLogEventList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedAuditLogEventList { - next?: string; - previous?: string; - results?: Merge.ticketing.AuditLogEvent[]; -} diff --git a/src/api/resources/ticketing/types/PaginatedCollectionList.ts b/src/api/resources/ticketing/types/PaginatedCollectionList.ts deleted file mode 100644 index 9110cbf98..000000000 --- a/src/api/resources/ticketing/types/PaginatedCollectionList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedCollectionList { - next?: string; - previous?: string; - results?: Merge.ticketing.Collection[]; -} diff --git a/src/api/resources/ticketing/types/PaginatedCommentList.ts b/src/api/resources/ticketing/types/PaginatedCommentList.ts deleted file mode 100644 index 7964280c9..000000000 --- a/src/api/resources/ticketing/types/PaginatedCommentList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedCommentList { - next?: string; - previous?: string; - results?: Merge.ticketing.Comment[]; -} diff --git a/src/api/resources/ticketing/types/PaginatedContactList.ts b/src/api/resources/ticketing/types/PaginatedContactList.ts deleted file mode 100644 index 9be1a2aa7..000000000 --- a/src/api/resources/ticketing/types/PaginatedContactList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedContactList { - next?: string; - previous?: string; - results?: Merge.ticketing.Contact[]; -} diff --git a/src/api/resources/ticketing/types/PaginatedIssueList.ts b/src/api/resources/ticketing/types/PaginatedIssueList.ts deleted file mode 100644 index 53412581c..000000000 --- a/src/api/resources/ticketing/types/PaginatedIssueList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedIssueList { - next?: string; - previous?: string; - results?: Merge.ticketing.Issue[]; -} diff --git a/src/api/resources/ticketing/types/PaginatedProjectList.ts b/src/api/resources/ticketing/types/PaginatedProjectList.ts deleted file mode 100644 index 2333d3a56..000000000 --- a/src/api/resources/ticketing/types/PaginatedProjectList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedProjectList { - next?: string; - previous?: string; - results?: Merge.ticketing.Project[]; -} diff --git a/src/api/resources/ticketing/types/PaginatedRemoteFieldClassList.ts b/src/api/resources/ticketing/types/PaginatedRemoteFieldClassList.ts deleted file mode 100644 index 9c950aaf0..000000000 --- a/src/api/resources/ticketing/types/PaginatedRemoteFieldClassList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedRemoteFieldClassList { - next?: string; - previous?: string; - results?: Merge.ticketing.RemoteFieldClass[]; -} diff --git a/src/api/resources/ticketing/types/PaginatedRoleList.ts b/src/api/resources/ticketing/types/PaginatedRoleList.ts deleted file mode 100644 index 53a62548b..000000000 --- a/src/api/resources/ticketing/types/PaginatedRoleList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedRoleList { - next?: string; - previous?: string; - results?: Merge.ticketing.Role[]; -} diff --git a/src/api/resources/ticketing/types/PaginatedSyncStatusList.ts b/src/api/resources/ticketing/types/PaginatedSyncStatusList.ts deleted file mode 100644 index ccefde60e..000000000 --- a/src/api/resources/ticketing/types/PaginatedSyncStatusList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedSyncStatusList { - next?: string; - previous?: string; - results?: Merge.ticketing.SyncStatus[]; -} diff --git a/src/api/resources/ticketing/types/PaginatedTagList.ts b/src/api/resources/ticketing/types/PaginatedTagList.ts deleted file mode 100644 index e7064b956..000000000 --- a/src/api/resources/ticketing/types/PaginatedTagList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedTagList { - next?: string; - previous?: string; - results?: Merge.ticketing.Tag[]; -} diff --git a/src/api/resources/ticketing/types/PaginatedTeamList.ts b/src/api/resources/ticketing/types/PaginatedTeamList.ts deleted file mode 100644 index 4ea9ac0b7..000000000 --- a/src/api/resources/ticketing/types/PaginatedTeamList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedTeamList { - next?: string; - previous?: string; - results?: Merge.ticketing.Team[]; -} diff --git a/src/api/resources/ticketing/types/PaginatedTicketList.ts b/src/api/resources/ticketing/types/PaginatedTicketList.ts deleted file mode 100644 index b49674e15..000000000 --- a/src/api/resources/ticketing/types/PaginatedTicketList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedTicketList { - next?: string; - previous?: string; - results?: Merge.ticketing.Ticket[]; -} diff --git a/src/api/resources/ticketing/types/PaginatedUserList.ts b/src/api/resources/ticketing/types/PaginatedUserList.ts deleted file mode 100644 index 3bfb739f4..000000000 --- a/src/api/resources/ticketing/types/PaginatedUserList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedUserList { - next?: string; - previous?: string; - results?: Merge.ticketing.User[]; -} diff --git a/src/api/resources/ticketing/types/PaginatedViewerList.ts b/src/api/resources/ticketing/types/PaginatedViewerList.ts deleted file mode 100644 index 65f8823a7..000000000 --- a/src/api/resources/ticketing/types/PaginatedViewerList.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface PaginatedViewerList { - next?: string; - previous?: string; - results?: Merge.ticketing.Viewer[]; -} diff --git a/src/api/resources/ticketing/types/PatchedTicketRequest.ts b/src/api/resources/ticketing/types/PatchedTicketRequest.ts deleted file mode 100644 index 1ac786db2..000000000 --- a/src/api/resources/ticketing/types/PatchedTicketRequest.ts +++ /dev/null @@ -1,71 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Ticket Object - * ### Description - * The `Ticket` object is used to represent a ticket, issue, task or case. - * ### Usage Example - * TODO - */ -export interface PatchedTicketRequest { - /** The ticket's name. */ - name?: string; - /** The individual `Users` who are assigned to this ticket. This does not include `Users` who just have view access to this ticket. To fetch all `Users` and `Teams` that can access the ticket, use the `GET /tickets/{ticket_id}/viewers` [endpoint](https://docs.merge.dev/ticketing/tickets/#tickets_viewers_list). */ - assignees?: (string | undefined)[]; - /** The `Teams` that are assigned to this ticket. This does not include `Teams` who just have view access to this ticket. To fetch all `Users` and `Teams` that can access this ticket, use the `GET /tickets/{ticket_id}/viewers` [endpoint](https://docs.merge.dev/ticketing/tickets/#tickets_viewers_list). */ - assignedTeams?: (string | undefined)[]; - /** The user who created this ticket. */ - creator?: string; - /** The ticket's due date. */ - dueDate?: Date; - /** - * The current status of the ticket. - * - * * `OPEN` - OPEN - * * `CLOSED` - CLOSED - * * `IN_PROGRESS` - IN_PROGRESS - * * `ON_HOLD` - ON_HOLD - */ - status?: Merge.ticketing.PatchedTicketRequestStatus; - /** The ticket’s description. HTML version of description is mapped if supported by the third-party platform. */ - description?: string; - /** The `Collections` that this `Ticket` is included in. */ - collections?: (string | undefined)[]; - /** The sub category of the ticket within the 3rd party system. Examples include incident, task, subtask or to-do. */ - ticketType?: string; - /** The account associated with the ticket. */ - account?: string; - /** The contact associated with the ticket. */ - contact?: string; - /** The ticket's parent ticket. */ - parentTicket?: string; - /** - * The description of who is able to access a given ticket, or where access is inherited from. - * - * * `COMPANY` - COMPANY - * * `PUBLIC` - PUBLIC - * * `PRIVATE` - PRIVATE - * * `COLLECTION` - COLLECTION - */ - accessLevel?: Merge.ticketing.PatchedTicketRequestAccessLevel; - tags?: (string | undefined)[]; - roles?: (string | undefined)[]; - /** The 3rd party url of the Ticket. */ - ticketUrl?: string; - /** - * The priority or urgency of the Ticket. - * - * * `URGENT` - URGENT - * * `HIGH` - HIGH - * * `NORMAL` - NORMAL - * * `LOW` - LOW - */ - priority?: Merge.ticketing.PatchedTicketRequestPriority; - /** When the ticket was completed. */ - completedAt?: Date; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.ticketing.RemoteFieldRequest[]; -} diff --git a/src/api/resources/ticketing/types/PatchedTicketRequestAccessLevel.ts b/src/api/resources/ticketing/types/PatchedTicketRequestAccessLevel.ts deleted file mode 100644 index 7bc4bb918..000000000 --- a/src/api/resources/ticketing/types/PatchedTicketRequestAccessLevel.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 description of who is able to access a given ticket, or where access is inherited from. - * - * * `COMPANY` - COMPANY - * * `PUBLIC` - PUBLIC - * * `PRIVATE` - PRIVATE - * * `COLLECTION` - COLLECTION - */ -export type PatchedTicketRequestAccessLevel = Merge.ticketing.TicketAccessLevelEnum | string; 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/PatchedTicketRequestStatus.ts b/src/api/resources/ticketing/types/PatchedTicketRequestStatus.ts deleted file mode 100644 index 50e1dcac2..000000000 --- a/src/api/resources/ticketing/types/PatchedTicketRequestStatus.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 current status of the ticket. - * - * * `OPEN` - OPEN - * * `CLOSED` - CLOSED - * * `IN_PROGRESS` - IN_PROGRESS - * * `ON_HOLD` - ON_HOLD - */ -export type PatchedTicketRequestStatus = Merge.ticketing.TicketStatusEnum | string; diff --git a/src/api/resources/ticketing/types/PriorityEnum.ts b/src/api/resources/ticketing/types/PriorityEnum.ts deleted file mode 100644 index 1e18852ed..000000000 --- a/src/api/resources/ticketing/types/PriorityEnum.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `URGENT` - URGENT - * * `HIGH` - HIGH - * * `NORMAL` - NORMAL - * * `LOW` - LOW - */ -export const PriorityEnum = { - Urgent: "URGENT", - High: "HIGH", - Normal: "NORMAL", - Low: "LOW", -} as const; -export type PriorityEnum = (typeof PriorityEnum)[keyof typeof PriorityEnum]; diff --git a/src/api/resources/ticketing/types/Project.ts b/src/api/resources/ticketing/types/Project.ts deleted file mode 100644 index 3d0297181..000000000 --- a/src/api/resources/ticketing/types/Project.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Project Object - * ### Description - * Please use the `Collection` model. This model will be fully deprecated on 3/30/2024. - * - * ### Usage Example - * TODO - */ -export interface Project { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The project's name. */ - name?: string; - /** The project's description. */ - description?: 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/). */ - remoteWasDeleted?: boolean; - fieldMappings?: Record; - remoteData?: Merge.ticketing.RemoteData[]; -} diff --git a/src/api/resources/ticketing/types/RemoteData.ts b/src/api/resources/ticketing/types/RemoteData.ts deleted file mode 100644 index 3fad40786..000000000 --- a/src/api/resources/ticketing/types/RemoteData.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * # The RemoteData Object - * ### Description - * The `RemoteData` object is used to represent the full data pulled from the third-party API for an object. - * - * ### Usage Example - * TODO - */ -export interface RemoteData { - /** The third-party API path that is being called. */ - path: string; - /** The data returned from the third-party for this object in its original, unnormalized format. */ - data?: unknown; -} diff --git a/src/api/resources/ticketing/types/RemoteEndpointInfo.ts b/src/api/resources/ticketing/types/RemoteEndpointInfo.ts deleted file mode 100644 index f28a1667a..000000000 --- a/src/api/resources/ticketing/types/RemoteEndpointInfo.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface RemoteEndpointInfo { - method: string; - urlPath: string; - fieldTraversalPath: unknown[]; -} diff --git a/src/api/resources/ticketing/types/RemoteField.ts b/src/api/resources/ticketing/types/RemoteField.ts deleted file mode 100644 index 506eb5d36..000000000 --- a/src/api/resources/ticketing/types/RemoteField.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface RemoteField { - remoteFieldClass: Merge.ticketing.RemoteFieldRemoteFieldClass; - value?: unknown; -} diff --git a/src/api/resources/ticketing/types/RemoteFieldApi.ts b/src/api/resources/ticketing/types/RemoteFieldApi.ts deleted file mode 100644 index ea0cc2eb3..000000000 --- a/src/api/resources/ticketing/types/RemoteFieldApi.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface RemoteFieldApi { - schema: Record; - remoteKeyName: string; - remoteEndpointInfo: Merge.ticketing.RemoteEndpointInfo; - exampleValues?: unknown[]; - advancedMetadata?: Merge.ticketing.AdvancedMetadata; - coverage?: Merge.ticketing.RemoteFieldApiCoverage; -} diff --git a/src/api/resources/ticketing/types/RemoteFieldApiCoverage.ts b/src/api/resources/ticketing/types/RemoteFieldApiCoverage.ts deleted file mode 100644 index 3691c464e..000000000 --- a/src/api/resources/ticketing/types/RemoteFieldApiCoverage.ts +++ /dev/null @@ -1,3 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export type RemoteFieldApiCoverage = number | number; diff --git a/src/api/resources/ticketing/types/RemoteFieldApiResponse.ts b/src/api/resources/ticketing/types/RemoteFieldApiResponse.ts deleted file mode 100644 index 07aee16b5..000000000 --- a/src/api/resources/ticketing/types/RemoteFieldApiResponse.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface RemoteFieldApiResponse { - ticket?: Merge.ticketing.RemoteFieldApi[]; - comment?: Merge.ticketing.RemoteFieldApi[]; - project?: Merge.ticketing.RemoteFieldApi[]; - collection?: Merge.ticketing.RemoteFieldApi[]; - user?: Merge.ticketing.RemoteFieldApi[]; - role?: Merge.ticketing.RemoteFieldApi[]; - account?: Merge.ticketing.RemoteFieldApi[]; - team?: Merge.ticketing.RemoteFieldApi[]; - attachment?: Merge.ticketing.RemoteFieldApi[]; - tag?: Merge.ticketing.RemoteFieldApi[]; - contact?: Merge.ticketing.RemoteFieldApi[]; -} diff --git a/src/api/resources/ticketing/types/RemoteFieldClass.ts b/src/api/resources/ticketing/types/RemoteFieldClass.ts deleted file mode 100644 index a4d6d5723..000000000 --- a/src/api/resources/ticketing/types/RemoteFieldClass.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface RemoteFieldClass { - id?: string; - displayName?: string; - remoteKeyName?: string; - description?: string; - isCustom?: boolean; - isCommonModelField?: boolean; - isRequired?: boolean; - fieldType?: Merge.ticketing.RemoteFieldClassFieldType; - fieldFormat?: Merge.ticketing.RemoteFieldClassFieldFormat; - fieldChoices?: Merge.ticketing.RemoteFieldClassFieldChoicesItem[]; - itemSchema?: Merge.ticketing.ItemSchema; -} diff --git a/src/api/resources/ticketing/types/RemoteFieldClassFieldChoicesItem.ts b/src/api/resources/ticketing/types/RemoteFieldClassFieldChoicesItem.ts deleted file mode 100644 index b77ab2029..000000000 --- a/src/api/resources/ticketing/types/RemoteFieldClassFieldChoicesItem.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface RemoteFieldClassFieldChoicesItem { - value?: unknown; - displayName?: string; -} diff --git a/src/api/resources/ticketing/types/RemoteFieldClassFieldFormat.ts b/src/api/resources/ticketing/types/RemoteFieldClassFieldFormat.ts deleted file mode 100644 index 0780ee5bb..000000000 --- a/src/api/resources/ticketing/types/RemoteFieldClassFieldFormat.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export type RemoteFieldClassFieldFormat = string | Merge.ticketing.FieldFormatEnum; diff --git a/src/api/resources/ticketing/types/RemoteFieldClassFieldType.ts b/src/api/resources/ticketing/types/RemoteFieldClassFieldType.ts deleted file mode 100644 index 583add1ed..000000000 --- a/src/api/resources/ticketing/types/RemoteFieldClassFieldType.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export type RemoteFieldClassFieldType = string | Merge.ticketing.FieldTypeEnum; diff --git a/src/api/resources/ticketing/types/RemoteFieldRemoteFieldClass.ts b/src/api/resources/ticketing/types/RemoteFieldRemoteFieldClass.ts deleted file mode 100644 index 30bc9887a..000000000 --- a/src/api/resources/ticketing/types/RemoteFieldRemoteFieldClass.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 RemoteFieldRemoteFieldClass = string | Merge.ticketing.RemoteFieldClass; diff --git a/src/api/resources/ticketing/types/RemoteFieldRequest.ts b/src/api/resources/ticketing/types/RemoteFieldRequest.ts deleted file mode 100644 index fbd856d29..000000000 --- a/src/api/resources/ticketing/types/RemoteFieldRequest.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface RemoteFieldRequest { - remoteFieldClass: Merge.ticketing.RemoteFieldRequestRemoteFieldClass; - value?: unknown; -} diff --git a/src/api/resources/ticketing/types/RemoteFieldRequestRemoteFieldClass.ts b/src/api/resources/ticketing/types/RemoteFieldRequestRemoteFieldClass.ts deleted file mode 100644 index dd5245c1b..000000000 --- a/src/api/resources/ticketing/types/RemoteFieldRequestRemoteFieldClass.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 RemoteFieldRequestRemoteFieldClass = string | Merge.ticketing.RemoteFieldClass; diff --git a/src/api/resources/ticketing/types/RemoteKey.ts b/src/api/resources/ticketing/types/RemoteKey.ts deleted file mode 100644 index 04d86d608..000000000 --- a/src/api/resources/ticketing/types/RemoteKey.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * # The RemoteKey Object - * ### Description - * The `RemoteKey` object is used to represent a request for a new remote key. - * - * ### Usage Example - * Post a `GenerateRemoteKey` to receive a new `RemoteKey`. - */ -export interface RemoteKey { - name: string; - key: string; -} diff --git a/src/api/resources/ticketing/types/RemoteResponse.ts b/src/api/resources/ticketing/types/RemoteResponse.ts deleted file mode 100644 index 711189e7f..000000000 --- a/src/api/resources/ticketing/types/RemoteResponse.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The RemoteResponse Object - * ### Description - * The `RemoteResponse` object is used to represent information returned from a third-party endpoint. - * - * ### Usage Example - * View the `RemoteResponse` returned from your `DataPassthrough`. - */ -export interface RemoteResponse { - method: string; - path: string; - status: number; - response?: unknown; - responseHeaders?: Record; - responseType?: Merge.ticketing.ResponseTypeEnum; - headers?: Record; -} diff --git a/src/api/resources/ticketing/types/RequestFormatEnum.ts b/src/api/resources/ticketing/types/RequestFormatEnum.ts deleted file mode 100644 index 2673da47f..000000000 --- a/src/api/resources/ticketing/types/RequestFormatEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `JSON` - JSON - * * `XML` - XML - * * `MULTIPART` - MULTIPART - */ -export const RequestFormatEnum = { - Json: "JSON", - Xml: "XML", - Multipart: "MULTIPART", -} as const; -export type RequestFormatEnum = (typeof RequestFormatEnum)[keyof typeof RequestFormatEnum]; diff --git a/src/api/resources/ticketing/types/ResponseTypeEnum.ts b/src/api/resources/ticketing/types/ResponseTypeEnum.ts deleted file mode 100644 index dfce6bea7..000000000 --- a/src/api/resources/ticketing/types/ResponseTypeEnum.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `JSON` - JSON - * * `BASE64_GZIP` - BASE64_GZIP - */ -export const ResponseTypeEnum = { - Json: "JSON", - Base64Gzip: "BASE64_GZIP", -} as const; -export type ResponseTypeEnum = (typeof ResponseTypeEnum)[keyof typeof ResponseTypeEnum]; diff --git a/src/api/resources/ticketing/types/Role.ts b/src/api/resources/ticketing/types/Role.ts deleted file mode 100644 index 8d6bf33dd..000000000 --- a/src/api/resources/ticketing/types/Role.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Role Object - * ### Description - * The `Role` object is used to represent the set of actions & access that a user with this role is allowed to perform. - * - * ### Usage Example - * TODO - */ -export interface Role { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The name of the Role. */ - name?: string; - /** The set of actions that a User with this Role can perform. Possible enum values include: `VIEW`, `CREATE`, `EDIT`, `DELETE`, `CLOSE`, and `ASSIGN`. */ - ticketActions?: (Merge.ticketing.RoleTicketActionsItem | undefined)[]; - /** - * The level of Ticket access that a User with this Role can perform. - * - * * `ALL` - ALL - * * `ASSIGNED_ONLY` - ASSIGNED_ONLY - * * `TEAM_ONLY` - TEAM_ONLY - */ - ticketAccess?: Merge.ticketing.RoleTicketAccess; - /** 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[]; -} diff --git a/src/api/resources/ticketing/types/RoleEnum.ts b/src/api/resources/ticketing/types/RoleEnum.ts deleted file mode 100644 index 524088eb7..000000000 --- a/src/api/resources/ticketing/types/RoleEnum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `ADMIN` - ADMIN - * * `DEVELOPER` - DEVELOPER - * * `MEMBER` - MEMBER - * * `API` - API - * * `SYSTEM` - SYSTEM - * * `MERGE_TEAM` - MERGE_TEAM - */ -export const RoleEnum = { - Admin: "ADMIN", - Developer: "DEVELOPER", - Member: "MEMBER", - Api: "API", - System: "SYSTEM", - MergeTeam: "MERGE_TEAM", -} 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 deleted file mode 100644 index a60f8f868..000000000 --- a/src/api/resources/ticketing/types/RoleTicketAccess.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 level of Ticket access that a User with this Role can perform. - * - * * `ALL` - ALL - * * `ASSIGNED_ONLY` - ASSIGNED_ONLY - * * `TEAM_ONLY` - TEAM_ONLY - */ -export type RoleTicketAccess = string | Merge.ticketing.TicketAccessEnum; diff --git a/src/api/resources/ticketing/types/RoleTicketActionsItem.ts b/src/api/resources/ticketing/types/RoleTicketActionsItem.ts deleted file mode 100644 index 77341cdbc..000000000 --- a/src/api/resources/ticketing/types/RoleTicketActionsItem.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 RoleTicketActionsItem = string | Merge.ticketing.TicketActionsEnum; diff --git a/src/api/resources/ticketing/types/SelectiveSyncConfigurationsUsageEnum.ts b/src/api/resources/ticketing/types/SelectiveSyncConfigurationsUsageEnum.ts deleted file mode 100644 index 4fce467f7..000000000 --- a/src/api/resources/ticketing/types/SelectiveSyncConfigurationsUsageEnum.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `IN_NEXT_SYNC` - IN_NEXT_SYNC - * * `IN_LAST_SYNC` - IN_LAST_SYNC - */ -export const SelectiveSyncConfigurationsUsageEnum = { - InNextSync: "IN_NEXT_SYNC", - InLastSync: "IN_LAST_SYNC", -} as const; -export type SelectiveSyncConfigurationsUsageEnum = - (typeof SelectiveSyncConfigurationsUsageEnum)[keyof typeof SelectiveSyncConfigurationsUsageEnum]; diff --git a/src/api/resources/ticketing/types/StatusFd5Enum.ts b/src/api/resources/ticketing/types/StatusFd5Enum.ts deleted file mode 100644 index 2ecbb5852..000000000 --- a/src/api/resources/ticketing/types/StatusFd5Enum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `SYNCING` - SYNCING - * * `DONE` - DONE - * * `FAILED` - FAILED - * * `DISABLED` - DISABLED - * * `PAUSED` - PAUSED - * * `PARTIALLY_SYNCED` - PARTIALLY_SYNCED - */ -export const StatusFd5Enum = { - Syncing: "SYNCING", - Done: "DONE", - Failed: "FAILED", - Disabled: "DISABLED", - Paused: "PAUSED", - PartiallySynced: "PARTIALLY_SYNCED", -} as const; -export type StatusFd5Enum = (typeof StatusFd5Enum)[keyof typeof StatusFd5Enum]; diff --git a/src/api/resources/ticketing/types/SyncStatus.ts b/src/api/resources/ticketing/types/SyncStatus.ts deleted file mode 100644 index 14c44cac6..000000000 --- a/src/api/resources/ticketing/types/SyncStatus.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The SyncStatus Object - * ### Description - * The `SyncStatus` object is used to represent the syncing state of an account - * - * ### Usage Example - * View the `SyncStatus` for an account to see how recently its models were synced. - */ -export interface SyncStatus { - modelName: string; - modelId: string; - lastSyncStart?: Date; - nextSyncStart?: Date; - lastSyncResult?: Merge.ticketing.SyncStatusLastSyncResult; - lastSyncFinished?: Date; - status: Merge.ticketing.StatusFd5Enum; - isInitialSync: boolean; - selectiveSyncConfigurationsUsage?: Merge.ticketing.SelectiveSyncConfigurationsUsageEnum; -} diff --git a/src/api/resources/ticketing/types/SyncStatusLastSyncResult.ts b/src/api/resources/ticketing/types/SyncStatusLastSyncResult.ts deleted file mode 100644 index 96b61ef19..000000000 --- a/src/api/resources/ticketing/types/SyncStatusLastSyncResult.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 SyncStatusLastSyncResult = Merge.ticketing.LastSyncResultEnum | string; diff --git a/src/api/resources/ticketing/types/Tag.ts b/src/api/resources/ticketing/types/Tag.ts deleted file mode 100644 index 7dbef483e..000000000 --- a/src/api/resources/ticketing/types/Tag.ts +++ /dev/null @@ -1,27 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Tag Object - * ### Description - * The `Tag` object is used to represent a tag or label for a ticket. - * - * ### Usage Example - * TODO - */ -export interface Tag { - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - id?: string; - /** The tag's name. */ - name?: 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/). */ - remoteWasDeleted?: boolean; - fieldMappings?: Record; - remoteData?: Merge.ticketing.RemoteData[]; -} diff --git a/src/api/resources/ticketing/types/Team.ts b/src/api/resources/ticketing/types/Team.ts deleted file mode 100644 index be762e491..000000000 --- a/src/api/resources/ticketing/types/Team.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Team Object - * ### Description - * The `Team` object is used to represent one or more `Users` within the company receiving the ticket. - * - * ### Usage Example - * TODO - */ -export interface Team { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The team's name. */ - name?: string; - /** The team's description. */ - description?: 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/). */ - remoteWasDeleted?: boolean; - fieldMappings?: Record; - remoteData?: Merge.ticketing.RemoteData[]; -} diff --git a/src/api/resources/ticketing/types/Ticket.ts b/src/api/resources/ticketing/types/Ticket.ts deleted file mode 100644 index 26a49a00c..000000000 --- a/src/api/resources/ticketing/types/Ticket.ts +++ /dev/null @@ -1,85 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Ticket Object - * ### Description - * The `Ticket` object is used to represent a ticket, issue, task or case. - * ### Usage Example - * TODO - */ -export interface Ticket { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The ticket's name. */ - name?: string; - /** The individual `Users` who are assigned to this ticket. This does not include `Users` who just have view access to this ticket. To fetch all `Users` and `Teams` that can access the ticket, use the `GET /tickets/{ticket_id}/viewers` [endpoint](https://docs.merge.dev/ticketing/tickets/#tickets_viewers_list). */ - assignees?: (Merge.ticketing.TicketAssigneesItem | undefined)[]; - /** The `Teams` that are assigned to this ticket. This does not include `Teams` who just have view access to this ticket. To fetch all `Users` and `Teams` that can access this ticket, use the `GET /tickets/{ticket_id}/viewers` [endpoint](https://docs.merge.dev/ticketing/tickets/#tickets_viewers_list). */ - assignedTeams?: (Merge.ticketing.TicketAssignedTeamsItem | undefined)[]; - /** The user who created this ticket. */ - creator?: Merge.ticketing.TicketCreator; - /** The ticket's due date. */ - dueDate?: Date; - /** - * The current status of the ticket. - * - * * `OPEN` - OPEN - * * `CLOSED` - CLOSED - * * `IN_PROGRESS` - IN_PROGRESS - * * `ON_HOLD` - ON_HOLD - */ - status?: Merge.ticketing.TicketStatus; - /** The ticket’s description. HTML version of description is mapped if supported by the third-party platform. */ - description?: string; - /** The `Collections` that this `Ticket` is included in. */ - collections?: (Merge.ticketing.TicketCollectionsItem | undefined)[]; - /** The sub category of the ticket within the 3rd party system. Examples include incident, task, subtask or to-do. */ - ticketType?: string; - /** The account associated with the ticket. */ - account?: Merge.ticketing.TicketAccount; - /** The contact associated with the ticket. */ - contact?: Merge.ticketing.TicketContact; - /** The ticket's parent ticket. */ - parentTicket?: Merge.ticketing.TicketParentTicket; - attachments?: (Merge.ticketing.TicketAttachmentsItem | undefined)[]; - /** - * The description of who is able to access a given ticket, or where access is inherited from. - * - * * `COMPANY` - COMPANY - * * `PUBLIC` - PUBLIC - * * `PRIVATE` - PRIVATE - * * `COLLECTION` - COLLECTION - */ - accessLevel?: Merge.ticketing.TicketAccessLevel; - 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; - /** - * The priority or urgency of the Ticket. - * - * * `URGENT` - URGENT - * * `HIGH` - HIGH - * * `NORMAL` - NORMAL - * * `LOW` - LOW - */ - priority?: Merge.ticketing.TicketPriority; - fieldMappings?: Record; - remoteData?: Merge.ticketing.RemoteData[]; - remoteFields?: Merge.ticketing.RemoteField[]; -} diff --git a/src/api/resources/ticketing/types/TicketAccessEnum.ts b/src/api/resources/ticketing/types/TicketAccessEnum.ts deleted file mode 100644 index 1391ea541..000000000 --- a/src/api/resources/ticketing/types/TicketAccessEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `ALL` - ALL - * * `ASSIGNED_ONLY` - ASSIGNED_ONLY - * * `TEAM_ONLY` - TEAM_ONLY - */ -export const TicketAccessEnum = { - All: "ALL", - AssignedOnly: "ASSIGNED_ONLY", - TeamOnly: "TEAM_ONLY", -} as const; -export type TicketAccessEnum = (typeof TicketAccessEnum)[keyof typeof TicketAccessEnum]; diff --git a/src/api/resources/ticketing/types/TicketAccessLevel.ts b/src/api/resources/ticketing/types/TicketAccessLevel.ts deleted file mode 100644 index ad6640cf6..000000000 --- a/src/api/resources/ticketing/types/TicketAccessLevel.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 description of who is able to access a given ticket, or where access is inherited from. - * - * * `COMPANY` - COMPANY - * * `PUBLIC` - PUBLIC - * * `PRIVATE` - PRIVATE - * * `COLLECTION` - COLLECTION - */ -export type TicketAccessLevel = Merge.ticketing.TicketAccessLevelEnum | string; diff --git a/src/api/resources/ticketing/types/TicketAccessLevelEnum.ts b/src/api/resources/ticketing/types/TicketAccessLevelEnum.ts deleted file mode 100644 index ffac72453..000000000 --- a/src/api/resources/ticketing/types/TicketAccessLevelEnum.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `COMPANY` - COMPANY - * * `PUBLIC` - PUBLIC - * * `PRIVATE` - PRIVATE - * * `COLLECTION` - COLLECTION - */ -export const TicketAccessLevelEnum = { - Company: "COMPANY", - Public: "PUBLIC", - Private: "PRIVATE", - Collection: "COLLECTION", -} as const; -export type TicketAccessLevelEnum = (typeof TicketAccessLevelEnum)[keyof typeof TicketAccessLevelEnum]; diff --git a/src/api/resources/ticketing/types/TicketAccount.ts b/src/api/resources/ticketing/types/TicketAccount.ts deleted file mode 100644 index b0582d5bc..000000000 --- a/src/api/resources/ticketing/types/TicketAccount.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 account associated with the ticket. - */ -export type TicketAccount = string | Merge.ticketing.Account; diff --git a/src/api/resources/ticketing/types/TicketActionsEnum.ts b/src/api/resources/ticketing/types/TicketActionsEnum.ts deleted file mode 100644 index 62a7746b2..000000000 --- a/src/api/resources/ticketing/types/TicketActionsEnum.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `VIEW` - VIEW - * * `CREATE` - CREATE - * * `EDIT` - EDIT - * * `DELETE` - DELETE - * * `CLOSE` - CLOSE - * * `ASSIGN` - ASSIGN - */ -export const TicketActionsEnum = { - View: "VIEW", - Create: "CREATE", - Edit: "EDIT", - Delete: "DELETE", - Close: "CLOSE", - Assign: "ASSIGN", -} as const; -export type TicketActionsEnum = (typeof TicketActionsEnum)[keyof typeof TicketActionsEnum]; diff --git a/src/api/resources/ticketing/types/TicketAssignedTeamsItem.ts b/src/api/resources/ticketing/types/TicketAssignedTeamsItem.ts deleted file mode 100644 index 0e8e6ec63..000000000 --- a/src/api/resources/ticketing/types/TicketAssignedTeamsItem.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 TicketAssignedTeamsItem = string | Merge.ticketing.Team; diff --git a/src/api/resources/ticketing/types/TicketAssigneesItem.ts b/src/api/resources/ticketing/types/TicketAssigneesItem.ts deleted file mode 100644 index ddaae8ab5..000000000 --- a/src/api/resources/ticketing/types/TicketAssigneesItem.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 TicketAssigneesItem = string | Merge.ticketing.User; diff --git a/src/api/resources/ticketing/types/TicketAttachmentsItem.ts b/src/api/resources/ticketing/types/TicketAttachmentsItem.ts deleted file mode 100644 index 503cc73ac..000000000 --- a/src/api/resources/ticketing/types/TicketAttachmentsItem.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 TicketAttachmentsItem = string | Merge.ticketing.Attachment; diff --git a/src/api/resources/ticketing/types/TicketCollectionsItem.ts b/src/api/resources/ticketing/types/TicketCollectionsItem.ts deleted file mode 100644 index 8276d3d63..000000000 --- a/src/api/resources/ticketing/types/TicketCollectionsItem.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 TicketCollectionsItem = string | Merge.ticketing.Collection; diff --git a/src/api/resources/ticketing/types/TicketContact.ts b/src/api/resources/ticketing/types/TicketContact.ts deleted file mode 100644 index 2282219cf..000000000 --- a/src/api/resources/ticketing/types/TicketContact.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 contact associated with the ticket. - */ -export type TicketContact = string | Merge.ticketing.Contact; diff --git a/src/api/resources/ticketing/types/TicketCreator.ts b/src/api/resources/ticketing/types/TicketCreator.ts deleted file mode 100644 index 39b0e1efd..000000000 --- a/src/api/resources/ticketing/types/TicketCreator.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 user who created this ticket. - */ -export type TicketCreator = string | Merge.ticketing.User; diff --git a/src/api/resources/ticketing/types/TicketParentTicket.ts b/src/api/resources/ticketing/types/TicketParentTicket.ts deleted file mode 100644 index fd623f219..000000000 --- a/src/api/resources/ticketing/types/TicketParentTicket.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 ticket's parent ticket. - */ -export type TicketParentTicket = string | Merge.ticketing.Ticket; diff --git a/src/api/resources/ticketing/types/TicketPriority.ts b/src/api/resources/ticketing/types/TicketPriority.ts deleted file mode 100644 index 394e6af99..000000000 --- a/src/api/resources/ticketing/types/TicketPriority.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 TicketPriority = Merge.ticketing.PriorityEnum | string; diff --git a/src/api/resources/ticketing/types/TicketRequest.ts b/src/api/resources/ticketing/types/TicketRequest.ts deleted file mode 100644 index 6949ba939..000000000 --- a/src/api/resources/ticketing/types/TicketRequest.ts +++ /dev/null @@ -1,72 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Ticket Object - * ### Description - * The `Ticket` object is used to represent a ticket, issue, task or case. - * ### Usage Example - * TODO - */ -export interface TicketRequest { - /** The ticket's name. */ - name?: string; - /** The individual `Users` who are assigned to this ticket. This does not include `Users` who just have view access to this ticket. To fetch all `Users` and `Teams` that can access the ticket, use the `GET /tickets/{ticket_id}/viewers` [endpoint](https://docs.merge.dev/ticketing/tickets/#tickets_viewers_list). */ - assignees?: (Merge.ticketing.TicketRequestAssigneesItem | undefined)[]; - /** The `Teams` that are assigned to this ticket. This does not include `Teams` who just have view access to this ticket. To fetch all `Users` and `Teams` that can access this ticket, use the `GET /tickets/{ticket_id}/viewers` [endpoint](https://docs.merge.dev/ticketing/tickets/#tickets_viewers_list). */ - assignedTeams?: (Merge.ticketing.TicketRequestAssignedTeamsItem | undefined)[]; - /** The user who created this ticket. */ - creator?: Merge.ticketing.TicketRequestCreator; - /** The ticket's due date. */ - dueDate?: Date; - /** - * The current status of the ticket. - * - * * `OPEN` - OPEN - * * `CLOSED` - CLOSED - * * `IN_PROGRESS` - IN_PROGRESS - * * `ON_HOLD` - ON_HOLD - */ - status?: Merge.ticketing.TicketRequestStatus; - /** The ticket’s description. HTML version of description is mapped if supported by the third-party platform. */ - description?: string; - /** The `Collections` that this `Ticket` is included in. */ - collections?: (Merge.ticketing.TicketRequestCollectionsItem | undefined)[]; - /** The sub category of the ticket within the 3rd party system. Examples include incident, task, subtask or to-do. */ - ticketType?: string; - /** The account associated with the ticket. */ - account?: Merge.ticketing.TicketRequestAccount; - /** The contact associated with the ticket. */ - contact?: Merge.ticketing.TicketRequestContact; - /** The ticket's parent ticket. */ - parentTicket?: Merge.ticketing.TicketRequestParentTicket; - attachments?: (Merge.ticketing.TicketRequestAttachmentsItem | undefined)[]; - /** - * The description of who is able to access a given ticket, or where access is inherited from. - * - * * `COMPANY` - COMPANY - * * `PUBLIC` - PUBLIC - * * `PRIVATE` - PRIVATE - * * `COLLECTION` - COLLECTION - */ - accessLevel?: Merge.ticketing.TicketRequestAccessLevel; - tags?: (string | undefined)[]; - roles?: (string | undefined)[]; - /** When the ticket was completed. */ - completedAt?: Date; - /** The 3rd party url of the Ticket. */ - ticketUrl?: string; - /** - * The priority or urgency of the Ticket. - * - * * `URGENT` - URGENT - * * `HIGH` - HIGH - * * `NORMAL` - NORMAL - * * `LOW` - LOW - */ - priority?: Merge.ticketing.TicketRequestPriority; - integrationParams?: Record; - linkedAccountParams?: Record; - remoteFields?: Merge.ticketing.RemoteFieldRequest[]; -} diff --git a/src/api/resources/ticketing/types/TicketRequestAccessLevel.ts b/src/api/resources/ticketing/types/TicketRequestAccessLevel.ts deleted file mode 100644 index 51c9c270c..000000000 --- a/src/api/resources/ticketing/types/TicketRequestAccessLevel.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 description of who is able to access a given ticket, or where access is inherited from. - * - * * `COMPANY` - COMPANY - * * `PUBLIC` - PUBLIC - * * `PRIVATE` - PRIVATE - * * `COLLECTION` - COLLECTION - */ -export type TicketRequestAccessLevel = Merge.ticketing.TicketAccessLevelEnum | string; diff --git a/src/api/resources/ticketing/types/TicketRequestAccount.ts b/src/api/resources/ticketing/types/TicketRequestAccount.ts deleted file mode 100644 index 70e3290ce..000000000 --- a/src/api/resources/ticketing/types/TicketRequestAccount.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 account associated with the ticket. - */ -export type TicketRequestAccount = string | Merge.ticketing.Account; diff --git a/src/api/resources/ticketing/types/TicketRequestAssignedTeamsItem.ts b/src/api/resources/ticketing/types/TicketRequestAssignedTeamsItem.ts deleted file mode 100644 index 632035278..000000000 --- a/src/api/resources/ticketing/types/TicketRequestAssignedTeamsItem.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 TicketRequestAssignedTeamsItem = string | Merge.ticketing.Team; diff --git a/src/api/resources/ticketing/types/TicketRequestAssigneesItem.ts b/src/api/resources/ticketing/types/TicketRequestAssigneesItem.ts deleted file mode 100644 index 3e73ac8b3..000000000 --- a/src/api/resources/ticketing/types/TicketRequestAssigneesItem.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 TicketRequestAssigneesItem = string | Merge.ticketing.User; diff --git a/src/api/resources/ticketing/types/TicketRequestAttachmentsItem.ts b/src/api/resources/ticketing/types/TicketRequestAttachmentsItem.ts deleted file mode 100644 index 145756bd5..000000000 --- a/src/api/resources/ticketing/types/TicketRequestAttachmentsItem.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 TicketRequestAttachmentsItem = string | Merge.ticketing.Attachment; diff --git a/src/api/resources/ticketing/types/TicketRequestCollectionsItem.ts b/src/api/resources/ticketing/types/TicketRequestCollectionsItem.ts deleted file mode 100644 index e51330dc7..000000000 --- a/src/api/resources/ticketing/types/TicketRequestCollectionsItem.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 TicketRequestCollectionsItem = string | Merge.ticketing.Collection; diff --git a/src/api/resources/ticketing/types/TicketRequestContact.ts b/src/api/resources/ticketing/types/TicketRequestContact.ts deleted file mode 100644 index 34acf9568..000000000 --- a/src/api/resources/ticketing/types/TicketRequestContact.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 contact associated with the ticket. - */ -export type TicketRequestContact = string | Merge.ticketing.Contact; diff --git a/src/api/resources/ticketing/types/TicketRequestCreator.ts b/src/api/resources/ticketing/types/TicketRequestCreator.ts deleted file mode 100644 index 181ba393b..000000000 --- a/src/api/resources/ticketing/types/TicketRequestCreator.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 user who created this ticket. - */ -export type TicketRequestCreator = string | Merge.ticketing.User; diff --git a/src/api/resources/ticketing/types/TicketRequestParentTicket.ts b/src/api/resources/ticketing/types/TicketRequestParentTicket.ts deleted file mode 100644 index c48fc7309..000000000 --- a/src/api/resources/ticketing/types/TicketRequestParentTicket.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 ticket's parent ticket. - */ -export type TicketRequestParentTicket = string | Merge.ticketing.Ticket; diff --git a/src/api/resources/ticketing/types/TicketRequestPriority.ts b/src/api/resources/ticketing/types/TicketRequestPriority.ts deleted file mode 100644 index aa8bfefb5..000000000 --- a/src/api/resources/ticketing/types/TicketRequestPriority.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 TicketRequestPriority = Merge.ticketing.PriorityEnum | string; diff --git a/src/api/resources/ticketing/types/TicketRequestStatus.ts b/src/api/resources/ticketing/types/TicketRequestStatus.ts deleted file mode 100644 index 222e7ecff..000000000 --- a/src/api/resources/ticketing/types/TicketRequestStatus.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 current status of the ticket. - * - * * `OPEN` - OPEN - * * `CLOSED` - CLOSED - * * `IN_PROGRESS` - IN_PROGRESS - * * `ON_HOLD` - ON_HOLD - */ -export type TicketRequestStatus = Merge.ticketing.TicketStatusEnum | string; diff --git a/src/api/resources/ticketing/types/TicketResponse.ts b/src/api/resources/ticketing/types/TicketResponse.ts deleted file mode 100644 index 3ea9e7ccf..000000000 --- a/src/api/resources/ticketing/types/TicketResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface TicketResponse { - model: Merge.ticketing.Ticket; - warnings: Merge.ticketing.WarningValidationProblem[]; - errors: Merge.ticketing.ErrorValidationProblem[]; - logs?: Merge.ticketing.DebugModeLog[]; -} diff --git a/src/api/resources/ticketing/types/TicketStatus.ts b/src/api/resources/ticketing/types/TicketStatus.ts deleted file mode 100644 index db36b364b..000000000 --- a/src/api/resources/ticketing/types/TicketStatus.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 current status of the ticket. - * - * * `OPEN` - OPEN - * * `CLOSED` - CLOSED - * * `IN_PROGRESS` - IN_PROGRESS - * * `ON_HOLD` - ON_HOLD - */ -export type TicketStatus = Merge.ticketing.TicketStatusEnum | string; diff --git a/src/api/resources/ticketing/types/TicketStatusEnum.ts b/src/api/resources/ticketing/types/TicketStatusEnum.ts deleted file mode 100644 index 0b61f0a15..000000000 --- a/src/api/resources/ticketing/types/TicketStatusEnum.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `OPEN` - OPEN - * * `CLOSED` - CLOSED - * * `IN_PROGRESS` - IN_PROGRESS - * * `ON_HOLD` - ON_HOLD - */ -export const TicketStatusEnum = { - Open: "OPEN", - Closed: "CLOSED", - InProgress: "IN_PROGRESS", - OnHold: "ON_HOLD", -} as const; -export type TicketStatusEnum = (typeof TicketStatusEnum)[keyof typeof TicketStatusEnum]; diff --git a/src/api/resources/ticketing/types/TicketingAttachmentResponse.ts b/src/api/resources/ticketing/types/TicketingAttachmentResponse.ts deleted file mode 100644 index 5f2777d5e..000000000 --- a/src/api/resources/ticketing/types/TicketingAttachmentResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface TicketingAttachmentResponse { - model: Merge.ticketing.Attachment; - warnings: Merge.ticketing.WarningValidationProblem[]; - errors: Merge.ticketing.ErrorValidationProblem[]; - logs?: Merge.ticketing.DebugModeLog[]; -} diff --git a/src/api/resources/ticketing/types/TicketingContactResponse.ts b/src/api/resources/ticketing/types/TicketingContactResponse.ts deleted file mode 100644 index 37aff8dac..000000000 --- a/src/api/resources/ticketing/types/TicketingContactResponse.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface TicketingContactResponse { - model: Merge.ticketing.Contact; - warnings: Merge.ticketing.WarningValidationProblem[]; - errors: Merge.ticketing.ErrorValidationProblem[]; - logs?: Merge.ticketing.DebugModeLog[]; -} diff --git a/src/api/resources/ticketing/types/User.ts b/src/api/resources/ticketing/types/User.ts deleted file mode 100644 index 1c13f7c35..000000000 --- a/src/api/resources/ticketing/types/User.ts +++ /dev/null @@ -1,36 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The User Object - * ### Description - * The `User` object is used to represent a user with a login to the ticketing system. - * Users are either assignees who are directly responsible or a viewer on a `Ticket`/ `Collection`. - * - * ### Usage Example - * TODO - */ -export interface User { - id?: string; - /** The third-party API ID of the matching object. */ - remoteId?: string; - /** The datetime that this object was created by Merge. */ - createdAt?: Date; - /** The datetime that this object was modified by Merge. */ - modifiedAt?: Date; - /** The user's name. */ - name?: string; - /** The user's email address. */ - emailAddress?: string; - /** Whether or not the user is active. */ - isActive?: boolean; - teams?: (Merge.ticketing.UserTeamsItem | undefined)[]; - roles?: (Merge.ticketing.UserRolesItem | undefined)[]; - /** The user's avatar picture. */ - avatar?: 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/). */ - remoteWasDeleted?: boolean; - fieldMappings?: Record; - remoteData?: Merge.ticketing.RemoteData[]; -} diff --git a/src/api/resources/ticketing/types/UserRolesItem.ts b/src/api/resources/ticketing/types/UserRolesItem.ts deleted file mode 100644 index bbdb84db6..000000000 --- a/src/api/resources/ticketing/types/UserRolesItem.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 UserRolesItem = string | Merge.ticketing.Role; diff --git a/src/api/resources/ticketing/types/UserTeamsItem.ts b/src/api/resources/ticketing/types/UserTeamsItem.ts deleted file mode 100644 index 3eb8b1953..000000000 --- a/src/api/resources/ticketing/types/UserTeamsItem.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 UserTeamsItem = string | Merge.ticketing.Team; diff --git a/src/api/resources/ticketing/types/ValidationProblemSource.ts b/src/api/resources/ticketing/types/ValidationProblemSource.ts deleted file mode 100644 index 853332073..000000000 --- a/src/api/resources/ticketing/types/ValidationProblemSource.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface ValidationProblemSource { - pointer: string; -} diff --git a/src/api/resources/ticketing/types/Viewer.ts b/src/api/resources/ticketing/types/Viewer.ts deleted file mode 100644 index 869fdcb0f..000000000 --- a/src/api/resources/ticketing/types/Viewer.ts +++ /dev/null @@ -1,25 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * # The Viewer Object - * ### Description - * The `Viewer` object is used to represent a User or Team within a company. - * - * ### Usage Example - * TODO - */ -export interface Viewer { - 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 Team this Viewer belongs to. */ - team?: Merge.ticketing.ViewerTeam; - /** The User this Viewer belongs to. */ - user?: Merge.ticketing.ViewerUser; -} diff --git a/src/api/resources/ticketing/types/ViewerTeam.ts b/src/api/resources/ticketing/types/ViewerTeam.ts deleted file mode 100644 index 2c38dd5fd..000000000 --- a/src/api/resources/ticketing/types/ViewerTeam.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 Team this Viewer belongs to. - */ -export type ViewerTeam = string | Merge.ticketing.Team; diff --git a/src/api/resources/ticketing/types/ViewerUser.ts b/src/api/resources/ticketing/types/ViewerUser.ts deleted file mode 100644 index 970a9c148..000000000 --- a/src/api/resources/ticketing/types/ViewerUser.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 User this Viewer belongs to. - */ -export type ViewerUser = string | Merge.ticketing.User; diff --git a/src/api/resources/ticketing/types/WarningValidationProblem.ts b/src/api/resources/ticketing/types/WarningValidationProblem.ts deleted file mode 100644 index 3721951da..000000000 --- a/src/api/resources/ticketing/types/WarningValidationProblem.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export interface WarningValidationProblem { - source?: Merge.ticketing.ValidationProblemSource; - title: string; - detail: string; - problemType: string; -} diff --git a/src/api/resources/ticketing/types/WebhookReceiver.ts b/src/api/resources/ticketing/types/WebhookReceiver.ts deleted file mode 100644 index f9c8ebc4b..000000000 --- a/src/api/resources/ticketing/types/WebhookReceiver.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface WebhookReceiver { - event: string; - isActive: boolean; - key?: string; -} diff --git a/src/api/resources/ticketing/types/index.ts b/src/api/resources/ticketing/types/index.ts deleted file mode 100644 index 66f871985..000000000 --- a/src/api/resources/ticketing/types/index.ts +++ /dev/null @@ -1,172 +0,0 @@ -export * from "./Account"; -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"; -export * from "./AsyncPassthroughReciept"; -export * from "./Attachment"; -export * from "./AttachmentRequest"; -export * from "./AttachmentRequestTicket"; -export * from "./AttachmentTicket"; -export * from "./AuditLogEvent"; -export * from "./AuditLogEventEventType"; -export * from "./AuditLogEventRole"; -export * from "./AvailableActions"; -export * from "./CategoriesEnum"; -export * from "./CategoryEnum"; -export * from "./Collection"; -export * from "./CollectionAccessLevel"; -export * from "./CollectionAccessLevelEnum"; -export * from "./CollectionCollectionType"; -export * from "./CollectionParentCollection"; -export * from "./CollectionTypeEnum"; -export * from "./Comment"; -export * from "./CommentContact"; -export * from "./CommentRequest"; -export * from "./CommentRequestContact"; -export * from "./CommentRequestTicket"; -export * from "./CommentRequestUser"; -export * from "./CommentResponse"; -export * from "./CommentTicket"; -export * from "./CommentUser"; -export * from "./CommonModelScopeApi"; -export * from "./CommonModelScopesBodyRequest"; -export * from "./CompletedAccountInitialScreenEnum"; -export * from "./Contact"; -export * from "./ContactAccount"; -export * from "./ContactRequest"; -export * from "./ContactRequestAccount"; -export * from "./DataPassthroughRequest"; -export * from "./DebugModeLog"; -export * from "./DebugModelLogSummary"; -export * from "./EnabledActionsEnum"; -export * from "./EncodingEnum"; -export * from "./ErrorValidationProblem"; -export * from "./EventTypeEnum"; -export * from "./ExternalTargetFieldApi"; -export * from "./ExternalTargetFieldApiResponse"; -export * from "./FieldFormatEnum"; -export * from "./FieldMappingApiInstance"; -export * from "./FieldMappingApiInstanceRemoteField"; -export * from "./FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo"; -export * from "./FieldMappingApiInstanceResponse"; -export * from "./FieldMappingApiInstanceTargetField"; -export * from "./FieldMappingInstanceResponse"; -export * from "./FieldPermissionDeserializer"; -export * from "./FieldPermissionDeserializerRequest"; -export * from "./FieldTypeEnum"; -export * from "./IndividualCommonModelScopeDeserializer"; -export * from "./IndividualCommonModelScopeDeserializerRequest"; -export * from "./Issue"; -export * from "./IssueStatus"; -export * from "./IssueStatusEnum"; -export * from "./ItemFormatEnum"; -export * from "./ItemSchema"; -export * from "./ItemTypeEnum"; -export * from "./LanguageEnum"; -export * from "./LastSyncResultEnum"; -export * from "./LinkedAccountStatus"; -export * from "./LinkToken"; -export * from "./MetaResponse"; -export * from "./MethodEnum"; -export * from "./ModelOperation"; -export * from "./ModelPermissionDeserializer"; -export * from "./ModelPermissionDeserializerRequest"; -export * from "./MultipartFormFieldRequest"; -export * from "./MultipartFormFieldRequestEncoding"; -export * from "./PaginatedAccountDetailsAndActionsList"; -export * from "./PaginatedAccountList"; -export * from "./PaginatedAttachmentList"; -export * from "./PaginatedAuditLogEventList"; -export * from "./PaginatedCollectionList"; -export * from "./PaginatedCommentList"; -export * from "./PaginatedContactList"; -export * from "./PaginatedIssueList"; -export * from "./PaginatedProjectList"; -export * from "./PaginatedRemoteFieldClassList"; -export * from "./PaginatedRoleList"; -export * from "./PaginatedSyncStatusList"; -export * from "./PaginatedTagList"; -export * from "./PaginatedTeamList"; -export * from "./PaginatedTicketList"; -export * from "./PaginatedUserList"; -export * from "./PaginatedViewerList"; -export * from "./PatchedTicketRequest"; -export * from "./PatchedTicketRequestAccessLevel"; -export * from "./PatchedTicketRequestPriority"; -export * from "./PatchedTicketRequestStatus"; -export * from "./PriorityEnum"; -export * from "./Project"; -export * from "./RemoteData"; -export * from "./RemoteEndpointInfo"; -export * from "./RemoteField"; -export * from "./RemoteFieldApi"; -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 "./RequestFormatEnum"; -export * from "./ResponseTypeEnum"; -export * from "./Role"; -export * from "./RoleEnum"; -export * from "./RoleTicketAccess"; -export * from "./RoleTicketActionsItem"; -export * from "./SelectiveSyncConfigurationsUsageEnum"; -export * from "./StatusFd5Enum"; -export * from "./SyncStatus"; -export * from "./SyncStatusLastSyncResult"; -export * from "./Tag"; -export * from "./Team"; -export * from "./Ticket"; -export * from "./TicketAccessEnum"; -export * from "./TicketAccessLevel"; -export * from "./TicketAccessLevelEnum"; -export * from "./TicketAccount"; -export * from "./TicketActionsEnum"; -export * from "./TicketAssignedTeamsItem"; -export * from "./TicketAssigneesItem"; -export * from "./TicketAttachmentsItem"; -export * from "./TicketCollectionsItem"; -export * from "./TicketContact"; -export * from "./TicketCreator"; -export * from "./TicketingAttachmentResponse"; -export * from "./TicketingContactResponse"; -export * from "./TicketParentTicket"; -export * from "./TicketPriority"; -export * from "./TicketRequest"; -export * from "./TicketRequestAccessLevel"; -export * from "./TicketRequestAccount"; -export * from "./TicketRequestAssignedTeamsItem"; -export * from "./TicketRequestAssigneesItem"; -export * from "./TicketRequestAttachmentsItem"; -export * from "./TicketRequestCollectionsItem"; -export * from "./TicketRequestContact"; -export * from "./TicketRequestCreator"; -export * from "./TicketRequestParentTicket"; -export * from "./TicketRequestPriority"; -export * from "./TicketRequestStatus"; -export * from "./TicketResponse"; -export * from "./TicketStatus"; -export * from "./TicketStatusEnum"; -export * from "./User"; -export * from "./UserRolesItem"; -export * from "./UserTeamsItem"; -export * from "./ValidationProblemSource"; -export * from "./Viewer"; -export * from "./ViewerTeam"; -export * from "./ViewerUser"; -export * from "./WarningValidationProblem"; -export * from "./WebhookReceiver"; 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/index.ts b/src/serialization/resources/accounting/index.ts deleted file mode 100644 index 3e15e2907..000000000 --- a/src/serialization/resources/accounting/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./resources"; -export * from "./types"; diff --git a/src/serialization/resources/accounting/resources/accounts/client/index.ts b/src/serialization/resources/accounting/resources/accounts/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/accounting/resources/accounts/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/accounting/resources/accounts/client/requests/AccountEndpointRequest.ts b/src/serialization/resources/accounting/resources/accounts/client/requests/AccountEndpointRequest.ts deleted file mode 100644 index c933d7956..000000000 --- a/src/serialization/resources/accounting/resources/accounts/client/requests/AccountEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { AccountRequest } from "../../../../types/AccountRequest"; - -export const AccountEndpointRequest: core.serialization.Schema< - serializers.accounting.AccountEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: AccountRequest, -}); - -export declare namespace AccountEndpointRequest { - export interface Raw { - model: AccountRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/accounts/client/requests/index.ts b/src/serialization/resources/accounting/resources/accounts/client/requests/index.ts deleted file mode 100644 index 9d9d5d6fe..000000000 --- a/src/serialization/resources/accounting/resources/accounts/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { AccountEndpointRequest } from "./AccountEndpointRequest"; diff --git a/src/serialization/resources/accounting/resources/accounts/index.ts b/src/serialization/resources/accounting/resources/accounts/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/accounting/resources/accounts/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/serialization/resources/accounting/resources/accounts/types/AccountsListRequestClassification.ts b/src/serialization/resources/accounting/resources/accounts/types/AccountsListRequestClassification.ts deleted file mode 100644 index ffe9cdc68..000000000 --- a/src/serialization/resources/accounting/resources/accounts/types/AccountsListRequestClassification.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 AccountsListRequestClassification: core.serialization.Schema< - serializers.accounting.AccountsListRequestClassification.Raw, - Merge.accounting.AccountsListRequestClassification -> = core.serialization.enum_(["", "ASSET", "EQUITY", "EXPENSE", "LIABILITY", "REVENUE"]); - -export declare namespace AccountsListRequestClassification { - export type Raw = "" | "ASSET" | "EQUITY" | "EXPENSE" | "LIABILITY" | "REVENUE"; -} diff --git a/src/serialization/resources/accounting/resources/accounts/types/AccountsListRequestRemoteFields.ts b/src/serialization/resources/accounting/resources/accounts/types/AccountsListRequestRemoteFields.ts deleted file mode 100644 index fbe8812f1..000000000 --- a/src/serialization/resources/accounting/resources/accounts/types/AccountsListRequestRemoteFields.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 AccountsListRequestRemoteFields: core.serialization.Schema< - serializers.accounting.AccountsListRequestRemoteFields.Raw, - Merge.accounting.AccountsListRequestRemoteFields -> = core.serialization.enum_(["classification", "classification,status", "status"]); - -export declare namespace AccountsListRequestRemoteFields { - export type Raw = "classification" | "classification,status" | "status"; -} diff --git a/src/serialization/resources/accounting/resources/accounts/types/AccountsListRequestShowEnumOrigins.ts b/src/serialization/resources/accounting/resources/accounts/types/AccountsListRequestShowEnumOrigins.ts deleted file mode 100644 index aa682048c..000000000 --- a/src/serialization/resources/accounting/resources/accounts/types/AccountsListRequestShowEnumOrigins.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 AccountsListRequestShowEnumOrigins: core.serialization.Schema< - serializers.accounting.AccountsListRequestShowEnumOrigins.Raw, - Merge.accounting.AccountsListRequestShowEnumOrigins -> = core.serialization.enum_(["classification", "classification,status", "status"]); - -export declare namespace AccountsListRequestShowEnumOrigins { - export type Raw = "classification" | "classification,status" | "status"; -} diff --git a/src/serialization/resources/accounting/resources/accounts/types/AccountsListRequestStatus.ts b/src/serialization/resources/accounting/resources/accounts/types/AccountsListRequestStatus.ts deleted file mode 100644 index 52dc676e0..000000000 --- a/src/serialization/resources/accounting/resources/accounts/types/AccountsListRequestStatus.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 AccountsListRequestStatus: core.serialization.Schema< - serializers.accounting.AccountsListRequestStatus.Raw, - Merge.accounting.AccountsListRequestStatus -> = core.serialization.enum_(["", "ACTIVE", "INACTIVE", "PENDING"]); - -export declare namespace AccountsListRequestStatus { - export type Raw = "" | "ACTIVE" | "INACTIVE" | "PENDING"; -} diff --git a/src/serialization/resources/accounting/resources/accounts/types/AccountsRetrieveRequestRemoteFields.ts b/src/serialization/resources/accounting/resources/accounts/types/AccountsRetrieveRequestRemoteFields.ts deleted file mode 100644 index 45a2ae072..000000000 --- a/src/serialization/resources/accounting/resources/accounts/types/AccountsRetrieveRequestRemoteFields.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 AccountsRetrieveRequestRemoteFields: core.serialization.Schema< - serializers.accounting.AccountsRetrieveRequestRemoteFields.Raw, - Merge.accounting.AccountsRetrieveRequestRemoteFields -> = core.serialization.enum_(["classification", "classification,status", "status"]); - -export declare namespace AccountsRetrieveRequestRemoteFields { - export type Raw = "classification" | "classification,status" | "status"; -} diff --git a/src/serialization/resources/accounting/resources/accounts/types/AccountsRetrieveRequestShowEnumOrigins.ts b/src/serialization/resources/accounting/resources/accounts/types/AccountsRetrieveRequestShowEnumOrigins.ts deleted file mode 100644 index 5b672a687..000000000 --- a/src/serialization/resources/accounting/resources/accounts/types/AccountsRetrieveRequestShowEnumOrigins.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 AccountsRetrieveRequestShowEnumOrigins: core.serialization.Schema< - serializers.accounting.AccountsRetrieveRequestShowEnumOrigins.Raw, - Merge.accounting.AccountsRetrieveRequestShowEnumOrigins -> = core.serialization.enum_(["classification", "classification,status", "status"]); - -export declare namespace AccountsRetrieveRequestShowEnumOrigins { - export type Raw = "classification" | "classification,status" | "status"; -} diff --git a/src/serialization/resources/accounting/resources/accounts/types/index.ts b/src/serialization/resources/accounting/resources/accounts/types/index.ts deleted file mode 100644 index 6e355c26c..000000000 --- a/src/serialization/resources/accounting/resources/accounts/types/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -export * from "./AccountsListRequestClassification"; -export * from "./AccountsListRequestRemoteFields"; -export * from "./AccountsListRequestShowEnumOrigins"; -export * from "./AccountsListRequestStatus"; -export * from "./AccountsRetrieveRequestRemoteFields"; -export * from "./AccountsRetrieveRequestShowEnumOrigins"; diff --git a/src/serialization/resources/accounting/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.ts b/src/serialization/resources/accounting/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.ts deleted file mode 100644 index 270d9010f..000000000 --- a/src/serialization/resources/accounting/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.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 { RemoteResponse } from "../../../types/RemoteResponse"; - -export const AsyncPassthroughRetrieveResponse: core.serialization.Schema< - serializers.accounting.AsyncPassthroughRetrieveResponse.Raw, - Merge.accounting.AsyncPassthroughRetrieveResponse -> = core.serialization.undiscriminatedUnion([RemoteResponse, core.serialization.string()]); - -export declare namespace AsyncPassthroughRetrieveResponse { - export type Raw = RemoteResponse.Raw | string; -} diff --git a/src/serialization/resources/accounting/resources/asyncPassthrough/types/index.ts b/src/serialization/resources/accounting/resources/asyncPassthrough/types/index.ts deleted file mode 100644 index f2b2d0e21..000000000 --- a/src/serialization/resources/accounting/resources/asyncPassthrough/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./AsyncPassthroughRetrieveResponse"; diff --git a/src/serialization/resources/accounting/resources/attachments/client/index.ts b/src/serialization/resources/accounting/resources/attachments/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/accounting/resources/attachments/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/accounting/resources/attachments/client/requests/AccountingAttachmentEndpointRequest.ts b/src/serialization/resources/accounting/resources/attachments/client/requests/AccountingAttachmentEndpointRequest.ts deleted file mode 100644 index 3aa8b9ab1..000000000 --- a/src/serialization/resources/accounting/resources/attachments/client/requests/AccountingAttachmentEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { AccountingAttachmentRequest } from "../../../../types/AccountingAttachmentRequest"; - -export const AccountingAttachmentEndpointRequest: core.serialization.Schema< - serializers.accounting.AccountingAttachmentEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: AccountingAttachmentRequest, -}); - -export declare namespace AccountingAttachmentEndpointRequest { - export interface Raw { - model: AccountingAttachmentRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/attachments/client/requests/index.ts b/src/serialization/resources/accounting/resources/attachments/client/requests/index.ts deleted file mode 100644 index 6400efcff..000000000 --- a/src/serialization/resources/accounting/resources/attachments/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { AccountingAttachmentEndpointRequest } from "./AccountingAttachmentEndpointRequest"; diff --git a/src/serialization/resources/accounting/resources/attachments/index.ts b/src/serialization/resources/accounting/resources/attachments/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/accounting/resources/attachments/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/accounting/resources/bankFeedAccounts/client/index.ts b/src/serialization/resources/accounting/resources/bankFeedAccounts/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/accounting/resources/bankFeedAccounts/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountEndpointRequest.ts b/src/serialization/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountEndpointRequest.ts deleted file mode 100644 index 67a0e1bd4..000000000 --- a/src/serialization/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { BankFeedAccountRequest } from "../../../../types/BankFeedAccountRequest"; - -export const BankFeedAccountEndpointRequest: core.serialization.Schema< - serializers.accounting.BankFeedAccountEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: BankFeedAccountRequest, -}); - -export declare namespace BankFeedAccountEndpointRequest { - export interface Raw { - model: BankFeedAccountRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/bankFeedAccounts/client/requests/index.ts b/src/serialization/resources/accounting/resources/bankFeedAccounts/client/requests/index.ts deleted file mode 100644 index 72d1a9b7f..000000000 --- a/src/serialization/resources/accounting/resources/bankFeedAccounts/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { BankFeedAccountEndpointRequest } from "./BankFeedAccountEndpointRequest"; diff --git a/src/serialization/resources/accounting/resources/bankFeedAccounts/index.ts b/src/serialization/resources/accounting/resources/bankFeedAccounts/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/accounting/resources/bankFeedAccounts/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/accounting/resources/bankFeedTransactions/client/index.ts b/src/serialization/resources/accounting/resources/bankFeedTransactions/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/accounting/resources/bankFeedTransactions/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionEndpointRequest.ts b/src/serialization/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionEndpointRequest.ts deleted file mode 100644 index 320796165..000000000 --- a/src/serialization/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { BankFeedTransactionRequestRequest } from "../../../../types/BankFeedTransactionRequestRequest"; - -export const BankFeedTransactionEndpointRequest: core.serialization.Schema< - serializers.accounting.BankFeedTransactionEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: BankFeedTransactionRequestRequest, -}); - -export declare namespace BankFeedTransactionEndpointRequest { - export interface Raw { - model: BankFeedTransactionRequestRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/bankFeedTransactions/client/requests/index.ts b/src/serialization/resources/accounting/resources/bankFeedTransactions/client/requests/index.ts deleted file mode 100644 index 8e407151a..000000000 --- a/src/serialization/resources/accounting/resources/bankFeedTransactions/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { BankFeedTransactionEndpointRequest } from "./BankFeedTransactionEndpointRequest"; diff --git a/src/serialization/resources/accounting/resources/bankFeedTransactions/index.ts b/src/serialization/resources/accounting/resources/bankFeedTransactions/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/accounting/resources/bankFeedTransactions/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/accounting/resources/companyInfo/index.ts b/src/serialization/resources/accounting/resources/companyInfo/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/accounting/resources/companyInfo/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; 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/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/index.ts b/src/serialization/resources/accounting/resources/companyInfo/types/index.ts deleted file mode 100644 index 8f0d30c91..000000000 --- a/src/serialization/resources/accounting/resources/companyInfo/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./CompanyInfoListRequestExpand"; -export * from "./CompanyInfoRetrieveRequestExpand"; diff --git a/src/serialization/resources/accounting/resources/contacts/client/index.ts b/src/serialization/resources/accounting/resources/contacts/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/accounting/resources/contacts/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/accounting/resources/contacts/client/requests/ContactEndpointRequest.ts b/src/serialization/resources/accounting/resources/contacts/client/requests/ContactEndpointRequest.ts deleted file mode 100644 index 76684b634..000000000 --- a/src/serialization/resources/accounting/resources/contacts/client/requests/ContactEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { ContactRequest } from "../../../../types/ContactRequest"; - -export const ContactEndpointRequest: core.serialization.Schema< - serializers.accounting.ContactEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: ContactRequest, -}); - -export declare namespace ContactEndpointRequest { - export interface Raw { - model: ContactRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/contacts/client/requests/PatchedContactEndpointRequest.ts b/src/serialization/resources/accounting/resources/contacts/client/requests/PatchedContactEndpointRequest.ts deleted file mode 100644 index 9d7a75576..000000000 --- a/src/serialization/resources/accounting/resources/contacts/client/requests/PatchedContactEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { PatchedContactRequest } from "../../../../types/PatchedContactRequest"; - -export const PatchedContactEndpointRequest: core.serialization.Schema< - serializers.accounting.PatchedContactEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: PatchedContactRequest, -}); - -export declare namespace PatchedContactEndpointRequest { - export interface Raw { - model: PatchedContactRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/contacts/client/requests/index.ts b/src/serialization/resources/accounting/resources/contacts/client/requests/index.ts deleted file mode 100644 index b5ae8a3b4..000000000 --- a/src/serialization/resources/accounting/resources/contacts/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { ContactEndpointRequest } from "./ContactEndpointRequest"; -export { PatchedContactEndpointRequest } from "./PatchedContactEndpointRequest"; diff --git a/src/serialization/resources/accounting/resources/contacts/index.ts b/src/serialization/resources/accounting/resources/contacts/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/accounting/resources/contacts/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/ContactsListRequestStatus.ts b/src/serialization/resources/accounting/resources/contacts/types/ContactsListRequestStatus.ts deleted file mode 100644 index 4dd7297f7..000000000 --- a/src/serialization/resources/accounting/resources/contacts/types/ContactsListRequestStatus.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 ContactsListRequestStatus: core.serialization.Schema< - serializers.accounting.ContactsListRequestStatus.Raw, - Merge.accounting.ContactsListRequestStatus -> = core.serialization.enum_(["", "ACTIVE", "ARCHIVED"]); - -export declare namespace ContactsListRequestStatus { - export type Raw = "" | "ACTIVE" | "ARCHIVED"; -} 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/index.ts b/src/serialization/resources/accounting/resources/contacts/types/index.ts deleted file mode 100644 index 97a5d68db..000000000 --- a/src/serialization/resources/accounting/resources/contacts/types/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./ContactsListRequestExpand"; -export * from "./ContactsListRequestStatus"; -export * from "./ContactsRetrieveRequestExpand"; diff --git a/src/serialization/resources/accounting/resources/creditNotes/client/index.ts b/src/serialization/resources/accounting/resources/creditNotes/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/accounting/resources/creditNotes/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/accounting/resources/creditNotes/client/requests/CreditNoteEndpointRequest.ts b/src/serialization/resources/accounting/resources/creditNotes/client/requests/CreditNoteEndpointRequest.ts deleted file mode 100644 index f46d90f49..000000000 --- a/src/serialization/resources/accounting/resources/creditNotes/client/requests/CreditNoteEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { CreditNoteRequest } from "../../../../types/CreditNoteRequest"; - -export const CreditNoteEndpointRequest: core.serialization.Schema< - serializers.accounting.CreditNoteEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: CreditNoteRequest, -}); - -export declare namespace CreditNoteEndpointRequest { - export interface Raw { - model: CreditNoteRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/creditNotes/client/requests/index.ts b/src/serialization/resources/accounting/resources/creditNotes/client/requests/index.ts deleted file mode 100644 index fa5837d6a..000000000 --- a/src/serialization/resources/accounting/resources/creditNotes/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { CreditNoteEndpointRequest } from "./CreditNoteEndpointRequest"; diff --git a/src/serialization/resources/accounting/resources/creditNotes/index.ts b/src/serialization/resources/accounting/resources/creditNotes/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/accounting/resources/creditNotes/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/CreditNotesListRequestRemoteFields.ts b/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesListRequestRemoteFields.ts deleted file mode 100644 index d02a8b761..000000000 --- a/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesListRequestRemoteFields.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 CreditNotesListRequestRemoteFields: core.serialization.Schema< - serializers.accounting.CreditNotesListRequestRemoteFields.Raw, - Merge.accounting.CreditNotesListRequestRemoteFields -> = core.serialization.enum_(["status", "status,type", "type"]); - -export declare namespace CreditNotesListRequestRemoteFields { - export type Raw = "status" | "status,type" | "type"; -} diff --git a/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesListRequestShowEnumOrigins.ts b/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesListRequestShowEnumOrigins.ts deleted file mode 100644 index bedef0c22..000000000 --- a/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesListRequestShowEnumOrigins.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 CreditNotesListRequestShowEnumOrigins: core.serialization.Schema< - serializers.accounting.CreditNotesListRequestShowEnumOrigins.Raw, - Merge.accounting.CreditNotesListRequestShowEnumOrigins -> = core.serialization.enum_(["status", "status,type", "type"]); - -export declare namespace CreditNotesListRequestShowEnumOrigins { - export type Raw = "status" | "status,type" | "type"; -} 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/CreditNotesRetrieveRequestRemoteFields.ts b/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesRetrieveRequestRemoteFields.ts deleted file mode 100644 index 8c5e552e2..000000000 --- a/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesRetrieveRequestRemoteFields.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 CreditNotesRetrieveRequestRemoteFields: core.serialization.Schema< - serializers.accounting.CreditNotesRetrieveRequestRemoteFields.Raw, - Merge.accounting.CreditNotesRetrieveRequestRemoteFields -> = core.serialization.enum_(["status", "status,type", "type"]); - -export declare namespace CreditNotesRetrieveRequestRemoteFields { - export type Raw = "status" | "status,type" | "type"; -} diff --git a/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesRetrieveRequestShowEnumOrigins.ts b/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesRetrieveRequestShowEnumOrigins.ts deleted file mode 100644 index 877c70b69..000000000 --- a/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesRetrieveRequestShowEnumOrigins.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 CreditNotesRetrieveRequestShowEnumOrigins: core.serialization.Schema< - serializers.accounting.CreditNotesRetrieveRequestShowEnumOrigins.Raw, - Merge.accounting.CreditNotesRetrieveRequestShowEnumOrigins -> = core.serialization.enum_(["status", "status,type", "type"]); - -export declare namespace CreditNotesRetrieveRequestShowEnumOrigins { - export type Raw = "status" | "status,type" | "type"; -} diff --git a/src/serialization/resources/accounting/resources/creditNotes/types/index.ts b/src/serialization/resources/accounting/resources/creditNotes/types/index.ts deleted file mode 100644 index 87be1efa5..000000000 --- a/src/serialization/resources/accounting/resources/creditNotes/types/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -export * from "./CreditNotesListRequestExpand"; -export * from "./CreditNotesListRequestRemoteFields"; -export * from "./CreditNotesListRequestShowEnumOrigins"; -export * from "./CreditNotesRetrieveRequestExpand"; -export * from "./CreditNotesRetrieveRequestRemoteFields"; -export * from "./CreditNotesRetrieveRequestShowEnumOrigins"; diff --git a/src/serialization/resources/accounting/resources/expenseReports/client/index.ts b/src/serialization/resources/accounting/resources/expenseReports/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/accounting/resources/expenseReports/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/accounting/resources/expenseReports/client/requests/ExpenseReportEndpointRequest.ts b/src/serialization/resources/accounting/resources/expenseReports/client/requests/ExpenseReportEndpointRequest.ts deleted file mode 100644 index faff0160f..000000000 --- a/src/serialization/resources/accounting/resources/expenseReports/client/requests/ExpenseReportEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { ExpenseReportRequest } from "../../../../types/ExpenseReportRequest"; - -export const ExpenseReportEndpointRequest: core.serialization.Schema< - serializers.accounting.ExpenseReportEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: ExpenseReportRequest, -}); - -export declare namespace ExpenseReportEndpointRequest { - export interface Raw { - model: ExpenseReportRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/expenseReports/client/requests/index.ts b/src/serialization/resources/accounting/resources/expenseReports/client/requests/index.ts deleted file mode 100644 index 86f81d85a..000000000 --- a/src/serialization/resources/accounting/resources/expenseReports/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { ExpenseReportEndpointRequest } from "./ExpenseReportEndpointRequest"; diff --git a/src/serialization/resources/accounting/resources/expenseReports/index.ts b/src/serialization/resources/accounting/resources/expenseReports/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/accounting/resources/expenseReports/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/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/index.ts b/src/serialization/resources/accounting/resources/expenseReports/types/index.ts deleted file mode 100644 index 9dd83d9ba..000000000 --- a/src/serialization/resources/accounting/resources/expenseReports/types/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./ExpenseReportsLinesListRequestExpand"; -export * from "./ExpenseReportsListRequestExpand"; -export * from "./ExpenseReportsRetrieveRequestExpand"; diff --git a/src/serialization/resources/accounting/resources/expenses/client/index.ts b/src/serialization/resources/accounting/resources/expenses/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/accounting/resources/expenses/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/accounting/resources/expenses/client/requests/ExpenseEndpointRequest.ts b/src/serialization/resources/accounting/resources/expenses/client/requests/ExpenseEndpointRequest.ts deleted file mode 100644 index e0e651d21..000000000 --- a/src/serialization/resources/accounting/resources/expenses/client/requests/ExpenseEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { ExpenseRequest } from "../../../../types/ExpenseRequest"; - -export const ExpenseEndpointRequest: core.serialization.Schema< - serializers.accounting.ExpenseEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: ExpenseRequest, -}); - -export declare namespace ExpenseEndpointRequest { - export interface Raw { - model: ExpenseRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/expenses/client/requests/index.ts b/src/serialization/resources/accounting/resources/expenses/client/requests/index.ts deleted file mode 100644 index bb1ef9330..000000000 --- a/src/serialization/resources/accounting/resources/expenses/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { ExpenseEndpointRequest } from "./ExpenseEndpointRequest"; diff --git a/src/serialization/resources/accounting/resources/expenses/index.ts b/src/serialization/resources/accounting/resources/expenses/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/accounting/resources/expenses/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/serialization/resources/accounting/resources/expenses/types/index.ts deleted file mode 100644 index 2a53835eb..000000000 --- a/src/serialization/resources/accounting/resources/expenses/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./ExpensesListRequestExpand"; -export * from "./ExpensesRetrieveRequestExpand"; diff --git a/src/serialization/resources/accounting/resources/fieldMapping/client/index.ts b/src/serialization/resources/accounting/resources/fieldMapping/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/accounting/resources/fieldMapping/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/accounting/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/serialization/resources/accounting/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts deleted file mode 100644 index e92cb2afa..000000000 --- a/src/serialization/resources/accounting/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ /dev/null @@ -1,31 +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 CreateFieldMappingRequest: core.serialization.Schema< - serializers.accounting.CreateFieldMappingRequest.Raw, - Omit -> = core.serialization.object({ - targetFieldName: core.serialization.property("target_field_name", core.serialization.string()), - targetFieldDescription: core.serialization.property("target_field_description", core.serialization.string()), - remoteFieldTraversalPath: core.serialization.property( - "remote_field_traversal_path", - core.serialization.list(core.serialization.unknown()), - ), - 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()), -}); - -export declare namespace CreateFieldMappingRequest { - export interface Raw { - target_field_name: string; - target_field_description: string; - remote_field_traversal_path: unknown[]; - remote_method: string; - remote_url_path: string; - common_model_name: string; - } -} diff --git a/src/serialization/resources/accounting/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts b/src/serialization/resources/accounting/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts deleted file mode 100644 index cb2730986..000000000 --- a/src/serialization/resources/accounting/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ /dev/null @@ -1,25 +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 PatchedEditFieldMappingRequest: core.serialization.Schema< - serializers.accounting.PatchedEditFieldMappingRequest.Raw, - Merge.accounting.PatchedEditFieldMappingRequest -> = core.serialization.object({ - remoteFieldTraversalPath: core.serialization.property( - "remote_field_traversal_path", - core.serialization.list(core.serialization.unknown()).optional(), - ), - remoteMethod: core.serialization.property("remote_method", core.serialization.string().optional()), - remoteUrlPath: core.serialization.property("remote_url_path", core.serialization.string().optional()), -}); - -export declare namespace PatchedEditFieldMappingRequest { - export interface Raw { - remote_field_traversal_path?: unknown[] | null; - remote_method?: string | null; - remote_url_path?: string | null; - } -} diff --git a/src/serialization/resources/accounting/resources/fieldMapping/client/requests/index.ts b/src/serialization/resources/accounting/resources/fieldMapping/client/requests/index.ts deleted file mode 100644 index 9bb691d70..000000000 --- a/src/serialization/resources/accounting/resources/fieldMapping/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { CreateFieldMappingRequest } from "./CreateFieldMappingRequest"; -export { PatchedEditFieldMappingRequest } from "./PatchedEditFieldMappingRequest"; diff --git a/src/serialization/resources/accounting/resources/fieldMapping/index.ts b/src/serialization/resources/accounting/resources/fieldMapping/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/accounting/resources/fieldMapping/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/accounting/resources/forceResync/client/index.ts b/src/serialization/resources/accounting/resources/forceResync/client/index.ts deleted file mode 100644 index d5680837c..000000000 --- a/src/serialization/resources/accounting/resources/forceResync/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * as syncStatusResyncCreate from "./syncStatusResyncCreate"; diff --git a/src/serialization/resources/accounting/resources/forceResync/client/syncStatusResyncCreate.ts b/src/serialization/resources/accounting/resources/forceResync/client/syncStatusResyncCreate.ts deleted file mode 100644 index 8da695cf7..000000000 --- a/src/serialization/resources/accounting/resources/forceResync/client/syncStatusResyncCreate.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 { SyncStatus } from "../../../types/SyncStatus"; - -export const Response: core.serialization.Schema< - serializers.accounting.forceResync.syncStatusResyncCreate.Response.Raw, - Merge.accounting.SyncStatus[] -> = core.serialization.list(SyncStatus); - -export declare namespace Response { - export type Raw = SyncStatus.Raw[]; -} diff --git a/src/serialization/resources/accounting/resources/forceResync/index.ts b/src/serialization/resources/accounting/resources/forceResync/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/accounting/resources/forceResync/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/accounting/resources/generalLedgerTransactions/index.ts b/src/serialization/resources/accounting/resources/generalLedgerTransactions/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/accounting/resources/generalLedgerTransactions/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; 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/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/index.ts b/src/serialization/resources/accounting/resources/generalLedgerTransactions/types/index.ts deleted file mode 100644 index e77fb4471..000000000 --- a/src/serialization/resources/accounting/resources/generalLedgerTransactions/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./GeneralLedgerTransactionsListRequestExpand"; -export * from "./GeneralLedgerTransactionsRetrieveRequestExpand"; diff --git a/src/serialization/resources/accounting/resources/generateKey/client/index.ts b/src/serialization/resources/accounting/resources/generateKey/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/accounting/resources/generateKey/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/accounting/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts b/src/serialization/resources/accounting/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts deleted file mode 100644 index 614a15166..000000000 --- a/src/serialization/resources/accounting/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts +++ /dev/null @@ -1,18 +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 GenerateRemoteKeyRequest: core.serialization.Schema< - serializers.accounting.GenerateRemoteKeyRequest.Raw, - Merge.accounting.GenerateRemoteKeyRequest -> = core.serialization.object({ - name: core.serialization.string(), -}); - -export declare namespace GenerateRemoteKeyRequest { - export interface Raw { - name: string; - } -} diff --git a/src/serialization/resources/accounting/resources/generateKey/client/requests/index.ts b/src/serialization/resources/accounting/resources/generateKey/client/requests/index.ts deleted file mode 100644 index 0df6e7c8b..000000000 --- a/src/serialization/resources/accounting/resources/generateKey/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { GenerateRemoteKeyRequest } from "./GenerateRemoteKeyRequest"; diff --git a/src/serialization/resources/accounting/resources/generateKey/index.ts b/src/serialization/resources/accounting/resources/generateKey/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/accounting/resources/generateKey/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/accounting/resources/index.ts b/src/serialization/resources/accounting/resources/index.ts deleted file mode 100644 index 4528f9241..000000000 --- a/src/serialization/resources/accounting/resources/index.ts +++ /dev/null @@ -1,69 +0,0 @@ -export * as accounts from "./accounts"; -export * from "./accounts/client/requests"; -export * from "./accounts/types"; -export * as asyncPassthrough from "./asyncPassthrough"; -export * from "./asyncPassthrough/types"; -export * as attachments from "./attachments"; -export * from "./attachments/client/requests"; -export * as bankFeedAccounts from "./bankFeedAccounts"; -export * from "./bankFeedAccounts/client/requests"; -export * as bankFeedTransactions from "./bankFeedTransactions"; -export * from "./bankFeedTransactions/client/requests"; -export * as companyInfo from "./companyInfo"; -export * from "./companyInfo/types"; -export * as contacts from "./contacts"; -export * from "./contacts/client/requests"; -export * from "./contacts/types"; -export * as creditNotes from "./creditNotes"; -export * from "./creditNotes/client/requests"; -export * from "./creditNotes/types"; -export * as expenseReports from "./expenseReports"; -export * from "./expenseReports/client/requests"; -export * from "./expenseReports/types"; -export * as expenses from "./expenses"; -export * from "./expenses/client/requests"; -export * from "./expenses/types"; -export * as fieldMapping from "./fieldMapping"; -export * from "./fieldMapping/client/requests"; -export * as forceResync from "./forceResync"; -export * as generalLedgerTransactions from "./generalLedgerTransactions"; -export * from "./generalLedgerTransactions/types"; -export * as generateKey from "./generateKey"; -export * from "./generateKey/client/requests"; -export * as invoices from "./invoices"; -export * from "./invoices/client/requests"; -export * from "./invoices/types"; -export * as issues from "./issues"; -export * from "./issues/types"; -export * as items from "./items"; -export * from "./items/client/requests"; -export * from "./items/types"; -export * as journalEntries from "./journalEntries"; -export * from "./journalEntries/client/requests"; -export * from "./journalEntries/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 payments from "./payments"; -export * from "./payments/client/requests"; -export * from "./payments/types"; -export * as projects from "./projects"; -export * from "./projects/types"; -export * as purchaseOrders from "./purchaseOrders"; -export * from "./purchaseOrders/client/requests"; -export * from "./purchaseOrders/types"; -export * as regenerateKey from "./regenerateKey"; -export * from "./regenerateKey/client/requests"; -export * as scopes from "./scopes"; -export * from "./scopes/client/requests"; -export * as trackingCategories from "./trackingCategories"; -export * from "./trackingCategories/types"; -export * as transactions from "./transactions"; -export * from "./transactions/types"; -export * as vendorCredits from "./vendorCredits"; -export * from "./vendorCredits/client/requests"; -export * from "./vendorCredits/types"; -export * as webhookReceivers from "./webhookReceivers"; -export * from "./webhookReceivers/client/requests"; diff --git a/src/serialization/resources/accounting/resources/invoices/client/index.ts b/src/serialization/resources/accounting/resources/invoices/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/accounting/resources/invoices/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/accounting/resources/invoices/client/requests/InvoiceEndpointRequest.ts b/src/serialization/resources/accounting/resources/invoices/client/requests/InvoiceEndpointRequest.ts deleted file mode 100644 index 1308f9676..000000000 --- a/src/serialization/resources/accounting/resources/invoices/client/requests/InvoiceEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { InvoiceRequest } from "../../../../types/InvoiceRequest"; - -export const InvoiceEndpointRequest: core.serialization.Schema< - serializers.accounting.InvoiceEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: InvoiceRequest, -}); - -export declare namespace InvoiceEndpointRequest { - export interface Raw { - model: InvoiceRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/invoices/client/requests/PatchedInvoiceEndpointRequest.ts b/src/serialization/resources/accounting/resources/invoices/client/requests/PatchedInvoiceEndpointRequest.ts deleted file mode 100644 index 878f7419e..000000000 --- a/src/serialization/resources/accounting/resources/invoices/client/requests/PatchedInvoiceEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { InvoiceRequest } from "../../../../types/InvoiceRequest"; - -export const PatchedInvoiceEndpointRequest: core.serialization.Schema< - serializers.accounting.PatchedInvoiceEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: InvoiceRequest, -}); - -export declare namespace PatchedInvoiceEndpointRequest { - export interface Raw { - model: InvoiceRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/invoices/client/requests/index.ts b/src/serialization/resources/accounting/resources/invoices/client/requests/index.ts deleted file mode 100644 index 71b7cdcff..000000000 --- a/src/serialization/resources/accounting/resources/invoices/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { InvoiceEndpointRequest } from "./InvoiceEndpointRequest"; -export { PatchedInvoiceEndpointRequest } from "./PatchedInvoiceEndpointRequest"; diff --git a/src/serialization/resources/accounting/resources/invoices/index.ts b/src/serialization/resources/accounting/resources/invoices/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/accounting/resources/invoices/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/InvoicesListRequestStatus.ts b/src/serialization/resources/accounting/resources/invoices/types/InvoicesListRequestStatus.ts deleted file mode 100644 index bb5588945..000000000 --- a/src/serialization/resources/accounting/resources/invoices/types/InvoicesListRequestStatus.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 InvoicesListRequestStatus: core.serialization.Schema< - serializers.accounting.InvoicesListRequestStatus.Raw, - Merge.accounting.InvoicesListRequestStatus -> = core.serialization.enum_(["DRAFT", "OPEN", "PAID", "PARTIALLY_PAID", "SUBMITTED", "VOID"]); - -export declare namespace InvoicesListRequestStatus { - export type Raw = "DRAFT" | "OPEN" | "PAID" | "PARTIALLY_PAID" | "SUBMITTED" | "VOID"; -} diff --git a/src/serialization/resources/accounting/resources/invoices/types/InvoicesListRequestType.ts b/src/serialization/resources/accounting/resources/invoices/types/InvoicesListRequestType.ts deleted file mode 100644 index 7a363ac17..000000000 --- a/src/serialization/resources/accounting/resources/invoices/types/InvoicesListRequestType.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 InvoicesListRequestType: core.serialization.Schema< - serializers.accounting.InvoicesListRequestType.Raw, - Merge.accounting.InvoicesListRequestType -> = core.serialization.enum_(["ACCOUNTS_PAYABLE", "ACCOUNTS_RECEIVABLE"]); - -export declare namespace InvoicesListRequestType { - export type Raw = "ACCOUNTS_PAYABLE" | "ACCOUNTS_RECEIVABLE"; -} 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/index.ts b/src/serialization/resources/accounting/resources/invoices/types/index.ts deleted file mode 100644 index 6066a0bb6..000000000 --- a/src/serialization/resources/accounting/resources/invoices/types/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./InvoicesListRequestExpand"; -export * from "./InvoicesListRequestStatus"; -export * from "./InvoicesListRequestType"; -export * from "./InvoicesRetrieveRequestExpand"; diff --git a/src/serialization/resources/accounting/resources/issues/index.ts b/src/serialization/resources/accounting/resources/issues/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/accounting/resources/issues/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; diff --git a/src/serialization/resources/accounting/resources/issues/types/IssuesListRequestStatus.ts b/src/serialization/resources/accounting/resources/issues/types/IssuesListRequestStatus.ts deleted file mode 100644 index 39cf4dfa4..000000000 --- a/src/serialization/resources/accounting/resources/issues/types/IssuesListRequestStatus.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 IssuesListRequestStatus: core.serialization.Schema< - serializers.accounting.IssuesListRequestStatus.Raw, - Merge.accounting.IssuesListRequestStatus -> = core.serialization.enum_(["ONGOING", "RESOLVED"]); - -export declare namespace IssuesListRequestStatus { - export type Raw = "ONGOING" | "RESOLVED"; -} diff --git a/src/serialization/resources/accounting/resources/issues/types/index.ts b/src/serialization/resources/accounting/resources/issues/types/index.ts deleted file mode 100644 index 554cdf48c..000000000 --- a/src/serialization/resources/accounting/resources/issues/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./IssuesListRequestStatus"; diff --git a/src/serialization/resources/accounting/resources/items/client/index.ts b/src/serialization/resources/accounting/resources/items/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/accounting/resources/items/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/accounting/resources/items/client/requests/ItemEndpointRequest.ts b/src/serialization/resources/accounting/resources/items/client/requests/ItemEndpointRequest.ts deleted file mode 100644 index 29dac0adf..000000000 --- a/src/serialization/resources/accounting/resources/items/client/requests/ItemEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { ItemRequestRequest } from "../../../../types/ItemRequestRequest"; - -export const ItemEndpointRequest: core.serialization.Schema< - serializers.accounting.ItemEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: ItemRequestRequest, -}); - -export declare namespace ItemEndpointRequest { - export interface Raw { - model: ItemRequestRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/items/client/requests/PatchedItemEndpointRequest.ts b/src/serialization/resources/accounting/resources/items/client/requests/PatchedItemEndpointRequest.ts deleted file mode 100644 index 41a890189..000000000 --- a/src/serialization/resources/accounting/resources/items/client/requests/PatchedItemEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { PatchedItemRequestRequest } from "../../../../types/PatchedItemRequestRequest"; - -export const PatchedItemEndpointRequest: core.serialization.Schema< - serializers.accounting.PatchedItemEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: PatchedItemRequestRequest, -}); - -export declare namespace PatchedItemEndpointRequest { - export interface Raw { - model: PatchedItemRequestRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/items/client/requests/index.ts b/src/serialization/resources/accounting/resources/items/client/requests/index.ts deleted file mode 100644 index f19cc85ed..000000000 --- a/src/serialization/resources/accounting/resources/items/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { ItemEndpointRequest } from "./ItemEndpointRequest"; -export { PatchedItemEndpointRequest } from "./PatchedItemEndpointRequest"; diff --git a/src/serialization/resources/accounting/resources/items/index.ts b/src/serialization/resources/accounting/resources/items/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/accounting/resources/items/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/serialization/resources/accounting/resources/items/types/index.ts deleted file mode 100644 index 2d4c475ae..000000000 --- a/src/serialization/resources/accounting/resources/items/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./ItemsListRequestExpand"; -export * from "./ItemsRetrieveRequestExpand"; diff --git a/src/serialization/resources/accounting/resources/journalEntries/client/index.ts b/src/serialization/resources/accounting/resources/journalEntries/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/accounting/resources/journalEntries/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/accounting/resources/journalEntries/client/requests/JournalEntryEndpointRequest.ts b/src/serialization/resources/accounting/resources/journalEntries/client/requests/JournalEntryEndpointRequest.ts deleted file mode 100644 index b58476923..000000000 --- a/src/serialization/resources/accounting/resources/journalEntries/client/requests/JournalEntryEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { JournalEntryRequest } from "../../../../types/JournalEntryRequest"; - -export const JournalEntryEndpointRequest: core.serialization.Schema< - serializers.accounting.JournalEntryEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: JournalEntryRequest, -}); - -export declare namespace JournalEntryEndpointRequest { - export interface Raw { - model: JournalEntryRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/journalEntries/client/requests/index.ts b/src/serialization/resources/accounting/resources/journalEntries/client/requests/index.ts deleted file mode 100644 index cf2069c3e..000000000 --- a/src/serialization/resources/accounting/resources/journalEntries/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { JournalEntryEndpointRequest } from "./JournalEntryEndpointRequest"; diff --git a/src/serialization/resources/accounting/resources/journalEntries/index.ts b/src/serialization/resources/accounting/resources/journalEntries/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/accounting/resources/journalEntries/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/serialization/resources/accounting/resources/journalEntries/types/index.ts deleted file mode 100644 index d0572d020..000000000 --- a/src/serialization/resources/accounting/resources/journalEntries/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./JournalEntriesListRequestExpand"; -export * from "./JournalEntriesRetrieveRequestExpand"; diff --git a/src/serialization/resources/accounting/resources/linkToken/client/index.ts b/src/serialization/resources/accounting/resources/linkToken/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/accounting/resources/linkToken/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/accounting/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/serialization/resources/accounting/resources/linkToken/client/requests/EndUserDetailsRequest.ts deleted file mode 100644 index e70cf9ec7..000000000 --- a/src/serialization/resources/accounting/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ /dev/null @@ -1,66 +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 { CategoriesEnum } from "../../../../types/CategoriesEnum"; -import { CommonModelScopesBodyRequest } from "../../../../types/CommonModelScopesBodyRequest"; -import { IndividualCommonModelScopeDeserializerRequest } from "../../../../types/IndividualCommonModelScopeDeserializerRequest"; -import { EndUserDetailsRequestLanguage } from "../../types/EndUserDetailsRequestLanguage"; - -export const EndUserDetailsRequest: core.serialization.Schema< - serializers.accounting.EndUserDetailsRequest.Raw, - Merge.accounting.EndUserDetailsRequest -> = core.serialization.object({ - endUserEmailAddress: core.serialization.property("end_user_email_address", core.serialization.string()), - endUserOrganizationName: core.serialization.property("end_user_organization_name", core.serialization.string()), - endUserOriginId: core.serialization.property("end_user_origin_id", core.serialization.string()), - categories: core.serialization.list(CategoriesEnum), - integration: core.serialization.string().optional(), - linkExpiryMins: core.serialization.property("link_expiry_mins", core.serialization.number().optional()), - shouldCreateMagicLinkUrl: core.serialization.property( - "should_create_magic_link_url", - core.serialization.boolean().optional(), - ), - hideAdminMagicLink: core.serialization.property("hide_admin_magic_link", core.serialization.boolean().optional()), - commonModels: core.serialization.property( - "common_models", - core.serialization.list(CommonModelScopesBodyRequest).optional(), - ), - categoryCommonModelScopes: core.serialization.property( - "category_common_model_scopes", - core.serialization - .record( - core.serialization.string(), - core.serialization.list(IndividualCommonModelScopeDeserializerRequest).optional(), - ) - .optional(), - ), - language: EndUserDetailsRequestLanguage.optional(), - areSyncsDisabled: core.serialization.property("are_syncs_disabled", core.serialization.boolean().optional()), - integrationSpecificConfig: core.serialization.property( - "integration_specific_config", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), -}); - -export declare namespace EndUserDetailsRequest { - export interface Raw { - end_user_email_address: string; - end_user_organization_name: string; - end_user_origin_id: string; - categories: CategoriesEnum.Raw[]; - integration?: string | null; - link_expiry_mins?: number | null; - should_create_magic_link_url?: boolean | null; - hide_admin_magic_link?: boolean | null; - common_models?: CommonModelScopesBodyRequest.Raw[] | null; - category_common_model_scopes?: Record< - string, - IndividualCommonModelScopeDeserializerRequest.Raw[] | null | undefined - > | null; - language?: EndUserDetailsRequestLanguage.Raw | null; - are_syncs_disabled?: boolean | null; - integration_specific_config?: Record | null; - } -} diff --git a/src/serialization/resources/accounting/resources/linkToken/client/requests/index.ts b/src/serialization/resources/accounting/resources/linkToken/client/requests/index.ts deleted file mode 100644 index d94b44a3e..000000000 --- a/src/serialization/resources/accounting/resources/linkToken/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { EndUserDetailsRequest } from "./EndUserDetailsRequest"; diff --git a/src/serialization/resources/accounting/resources/linkToken/index.ts b/src/serialization/resources/accounting/resources/linkToken/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/accounting/resources/linkToken/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/serialization/resources/accounting/resources/linkToken/types/EndUserDetailsRequestLanguage.ts b/src/serialization/resources/accounting/resources/linkToken/types/EndUserDetailsRequestLanguage.ts deleted file mode 100644 index 0a196a847..000000000 --- a/src/serialization/resources/accounting/resources/linkToken/types/EndUserDetailsRequestLanguage.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 { LanguageEnum } from "../../../types/LanguageEnum"; - -export const EndUserDetailsRequestLanguage: core.serialization.Schema< - serializers.accounting.EndUserDetailsRequestLanguage.Raw, - Merge.accounting.EndUserDetailsRequestLanguage -> = core.serialization.undiscriminatedUnion([LanguageEnum, core.serialization.string()]); - -export declare namespace EndUserDetailsRequestLanguage { - export type Raw = LanguageEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/resources/linkToken/types/index.ts b/src/serialization/resources/accounting/resources/linkToken/types/index.ts deleted file mode 100644 index c90e13c37..000000000 --- a/src/serialization/resources/accounting/resources/linkToken/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./EndUserDetailsRequestLanguage"; diff --git a/src/serialization/resources/accounting/resources/linkedAccounts/index.ts b/src/serialization/resources/accounting/resources/linkedAccounts/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/accounting/resources/linkedAccounts/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; diff --git a/src/serialization/resources/accounting/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts b/src/serialization/resources/accounting/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts deleted file mode 100644 index eaf531f8b..000000000 --- a/src/serialization/resources/accounting/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.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 LinkedAccountsListRequestCategory: core.serialization.Schema< - serializers.accounting.LinkedAccountsListRequestCategory.Raw, - Merge.accounting.LinkedAccountsListRequestCategory -> = core.serialization.enum_(["accounting", "ats", "crm", "filestorage", "hris", "mktg", "ticketing"]); - -export declare namespace LinkedAccountsListRequestCategory { - export type Raw = "accounting" | "ats" | "crm" | "filestorage" | "hris" | "mktg" | "ticketing"; -} diff --git a/src/serialization/resources/accounting/resources/linkedAccounts/types/index.ts b/src/serialization/resources/accounting/resources/linkedAccounts/types/index.ts deleted file mode 100644 index 91de6010a..000000000 --- a/src/serialization/resources/accounting/resources/linkedAccounts/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./LinkedAccountsListRequestCategory"; diff --git a/src/serialization/resources/accounting/resources/payments/client/index.ts b/src/serialization/resources/accounting/resources/payments/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/accounting/resources/payments/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/accounting/resources/payments/client/requests/PatchedPaymentEndpointRequest.ts b/src/serialization/resources/accounting/resources/payments/client/requests/PatchedPaymentEndpointRequest.ts deleted file mode 100644 index b373e2899..000000000 --- a/src/serialization/resources/accounting/resources/payments/client/requests/PatchedPaymentEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { PatchedPaymentRequest } from "../../../../types/PatchedPaymentRequest"; - -export const PatchedPaymentEndpointRequest: core.serialization.Schema< - serializers.accounting.PatchedPaymentEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: PatchedPaymentRequest, -}); - -export declare namespace PatchedPaymentEndpointRequest { - export interface Raw { - model: PatchedPaymentRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/payments/client/requests/PaymentEndpointRequest.ts b/src/serialization/resources/accounting/resources/payments/client/requests/PaymentEndpointRequest.ts deleted file mode 100644 index b0cafb545..000000000 --- a/src/serialization/resources/accounting/resources/payments/client/requests/PaymentEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { PaymentRequest } from "../../../../types/PaymentRequest"; - -export const PaymentEndpointRequest: core.serialization.Schema< - serializers.accounting.PaymentEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: PaymentRequest, -}); - -export declare namespace PaymentEndpointRequest { - export interface Raw { - model: PaymentRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/payments/client/requests/index.ts b/src/serialization/resources/accounting/resources/payments/client/requests/index.ts deleted file mode 100644 index f17ce1f07..000000000 --- a/src/serialization/resources/accounting/resources/payments/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { PatchedPaymentEndpointRequest } from "./PatchedPaymentEndpointRequest"; -export { PaymentEndpointRequest } from "./PaymentEndpointRequest"; diff --git a/src/serialization/resources/accounting/resources/payments/index.ts b/src/serialization/resources/accounting/resources/payments/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/accounting/resources/payments/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/serialization/resources/accounting/resources/payments/types/index.ts deleted file mode 100644 index 56e4a3693..000000000 --- a/src/serialization/resources/accounting/resources/payments/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./PaymentsListRequestExpand"; -export * from "./PaymentsRetrieveRequestExpand"; diff --git a/src/serialization/resources/accounting/resources/projects/index.ts b/src/serialization/resources/accounting/resources/projects/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/accounting/resources/projects/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; 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/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/index.ts b/src/serialization/resources/accounting/resources/projects/types/index.ts deleted file mode 100644 index 5ecd3d28e..000000000 --- a/src/serialization/resources/accounting/resources/projects/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./ProjectsListRequestExpand"; -export * from "./ProjectsRetrieveRequestExpand"; diff --git a/src/serialization/resources/accounting/resources/purchaseOrders/client/index.ts b/src/serialization/resources/accounting/resources/purchaseOrders/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/accounting/resources/purchaseOrders/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrderEndpointRequest.ts b/src/serialization/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrderEndpointRequest.ts deleted file mode 100644 index 53a9813d4..000000000 --- a/src/serialization/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrderEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { PurchaseOrderRequest } from "../../../../types/PurchaseOrderRequest"; - -export const PurchaseOrderEndpointRequest: core.serialization.Schema< - serializers.accounting.PurchaseOrderEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: PurchaseOrderRequest, -}); - -export declare namespace PurchaseOrderEndpointRequest { - export interface Raw { - model: PurchaseOrderRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/purchaseOrders/client/requests/index.ts b/src/serialization/resources/accounting/resources/purchaseOrders/client/requests/index.ts deleted file mode 100644 index 72830d645..000000000 --- a/src/serialization/resources/accounting/resources/purchaseOrders/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { PurchaseOrderEndpointRequest } from "./PurchaseOrderEndpointRequest"; diff --git a/src/serialization/resources/accounting/resources/purchaseOrders/index.ts b/src/serialization/resources/accounting/resources/purchaseOrders/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/accounting/resources/purchaseOrders/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/serialization/resources/accounting/resources/purchaseOrders/types/index.ts deleted file mode 100644 index fd510edde..000000000 --- a/src/serialization/resources/accounting/resources/purchaseOrders/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./PurchaseOrdersListRequestExpand"; -export * from "./PurchaseOrdersRetrieveRequestExpand"; diff --git a/src/serialization/resources/accounting/resources/regenerateKey/client/index.ts b/src/serialization/resources/accounting/resources/regenerateKey/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/accounting/resources/regenerateKey/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/accounting/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts b/src/serialization/resources/accounting/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts deleted file mode 100644 index bba6db9ed..000000000 --- a/src/serialization/resources/accounting/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts +++ /dev/null @@ -1,18 +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 RemoteKeyForRegenerationRequest: core.serialization.Schema< - serializers.accounting.RemoteKeyForRegenerationRequest.Raw, - Merge.accounting.RemoteKeyForRegenerationRequest -> = core.serialization.object({ - name: core.serialization.string(), -}); - -export declare namespace RemoteKeyForRegenerationRequest { - export interface Raw { - name: string; - } -} diff --git a/src/serialization/resources/accounting/resources/regenerateKey/client/requests/index.ts b/src/serialization/resources/accounting/resources/regenerateKey/client/requests/index.ts deleted file mode 100644 index 2987ef933..000000000 --- a/src/serialization/resources/accounting/resources/regenerateKey/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { RemoteKeyForRegenerationRequest } from "./RemoteKeyForRegenerationRequest"; diff --git a/src/serialization/resources/accounting/resources/regenerateKey/index.ts b/src/serialization/resources/accounting/resources/regenerateKey/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/accounting/resources/regenerateKey/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/accounting/resources/scopes/client/index.ts b/src/serialization/resources/accounting/resources/scopes/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/accounting/resources/scopes/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/accounting/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts b/src/serialization/resources/accounting/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts deleted file mode 100644 index b277b9d34..000000000 --- a/src/serialization/resources/accounting/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts +++ /dev/null @@ -1,22 +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 { IndividualCommonModelScopeDeserializerRequest } from "../../../../types/IndividualCommonModelScopeDeserializerRequest"; - -export const LinkedAccountCommonModelScopeDeserializerRequest: core.serialization.Schema< - serializers.accounting.LinkedAccountCommonModelScopeDeserializerRequest.Raw, - Merge.accounting.LinkedAccountCommonModelScopeDeserializerRequest -> = core.serialization.object({ - commonModels: core.serialization.property( - "common_models", - core.serialization.list(IndividualCommonModelScopeDeserializerRequest), - ), -}); - -export declare namespace LinkedAccountCommonModelScopeDeserializerRequest { - export interface Raw { - common_models: IndividualCommonModelScopeDeserializerRequest.Raw[]; - } -} diff --git a/src/serialization/resources/accounting/resources/scopes/client/requests/index.ts b/src/serialization/resources/accounting/resources/scopes/client/requests/index.ts deleted file mode 100644 index 28d8d7974..000000000 --- a/src/serialization/resources/accounting/resources/scopes/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { LinkedAccountCommonModelScopeDeserializerRequest } from "./LinkedAccountCommonModelScopeDeserializerRequest"; diff --git a/src/serialization/resources/accounting/resources/scopes/index.ts b/src/serialization/resources/accounting/resources/scopes/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/accounting/resources/scopes/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/accounting/resources/trackingCategories/index.ts b/src/serialization/resources/accounting/resources/trackingCategories/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/accounting/resources/trackingCategories/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; diff --git a/src/serialization/resources/accounting/resources/trackingCategories/types/TrackingCategoriesListRequestCategoryType.ts b/src/serialization/resources/accounting/resources/trackingCategories/types/TrackingCategoriesListRequestCategoryType.ts deleted file mode 100644 index 037da2009..000000000 --- a/src/serialization/resources/accounting/resources/trackingCategories/types/TrackingCategoriesListRequestCategoryType.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 TrackingCategoriesListRequestCategoryType: core.serialization.Schema< - serializers.accounting.TrackingCategoriesListRequestCategoryType.Raw, - Merge.accounting.TrackingCategoriesListRequestCategoryType -> = core.serialization.enum_(["", "CLASS", "DEPARTMENT"]); - -export declare namespace TrackingCategoriesListRequestCategoryType { - export type Raw = "" | "CLASS" | "DEPARTMENT"; -} diff --git a/src/serialization/resources/accounting/resources/trackingCategories/types/TrackingCategoriesListRequestStatus.ts b/src/serialization/resources/accounting/resources/trackingCategories/types/TrackingCategoriesListRequestStatus.ts deleted file mode 100644 index be2a0c2ba..000000000 --- a/src/serialization/resources/accounting/resources/trackingCategories/types/TrackingCategoriesListRequestStatus.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 TrackingCategoriesListRequestStatus: core.serialization.Schema< - serializers.accounting.TrackingCategoriesListRequestStatus.Raw, - Merge.accounting.TrackingCategoriesListRequestStatus -> = core.serialization.enum_(["", "ACTIVE", "ARCHIVED"]); - -export declare namespace TrackingCategoriesListRequestStatus { - export type Raw = "" | "ACTIVE" | "ARCHIVED"; -} diff --git a/src/serialization/resources/accounting/resources/trackingCategories/types/index.ts b/src/serialization/resources/accounting/resources/trackingCategories/types/index.ts deleted file mode 100644 index 7a701bc1c..000000000 --- a/src/serialization/resources/accounting/resources/trackingCategories/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./TrackingCategoriesListRequestCategoryType"; -export * from "./TrackingCategoriesListRequestStatus"; diff --git a/src/serialization/resources/accounting/resources/transactions/index.ts b/src/serialization/resources/accounting/resources/transactions/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/accounting/resources/transactions/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; 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/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/index.ts b/src/serialization/resources/accounting/resources/transactions/types/index.ts deleted file mode 100644 index d40b559e9..000000000 --- a/src/serialization/resources/accounting/resources/transactions/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./TransactionsListRequestExpand"; -export * from "./TransactionsRetrieveRequestExpand"; diff --git a/src/serialization/resources/accounting/resources/vendorCredits/client/index.ts b/src/serialization/resources/accounting/resources/vendorCredits/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/accounting/resources/vendorCredits/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/accounting/resources/vendorCredits/client/requests/VendorCreditEndpointRequest.ts b/src/serialization/resources/accounting/resources/vendorCredits/client/requests/VendorCreditEndpointRequest.ts deleted file mode 100644 index 3f72a5ccc..000000000 --- a/src/serialization/resources/accounting/resources/vendorCredits/client/requests/VendorCreditEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { VendorCreditRequest } from "../../../../types/VendorCreditRequest"; - -export const VendorCreditEndpointRequest: core.serialization.Schema< - serializers.accounting.VendorCreditEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: VendorCreditRequest, -}); - -export declare namespace VendorCreditEndpointRequest { - export interface Raw { - model: VendorCreditRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/vendorCredits/client/requests/index.ts b/src/serialization/resources/accounting/resources/vendorCredits/client/requests/index.ts deleted file mode 100644 index be42ee1ac..000000000 --- a/src/serialization/resources/accounting/resources/vendorCredits/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { VendorCreditEndpointRequest } from "./VendorCreditEndpointRequest"; diff --git a/src/serialization/resources/accounting/resources/vendorCredits/index.ts b/src/serialization/resources/accounting/resources/vendorCredits/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/accounting/resources/vendorCredits/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/serialization/resources/accounting/resources/vendorCredits/types/index.ts deleted file mode 100644 index 23d33b551..000000000 --- a/src/serialization/resources/accounting/resources/vendorCredits/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./VendorCreditsListRequestExpand"; -export * from "./VendorCreditsRetrieveRequestExpand"; diff --git a/src/serialization/resources/accounting/resources/webhookReceivers/client/index.ts b/src/serialization/resources/accounting/resources/webhookReceivers/client/index.ts deleted file mode 100644 index 257d03e90..000000000 --- a/src/serialization/resources/accounting/resources/webhookReceivers/client/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * as list from "./list"; -export * from "./requests"; diff --git a/src/serialization/resources/accounting/resources/webhookReceivers/client/list.ts b/src/serialization/resources/accounting/resources/webhookReceivers/client/list.ts deleted file mode 100644 index 561bf0462..000000000 --- a/src/serialization/resources/accounting/resources/webhookReceivers/client/list.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 { WebhookReceiver } from "../../../types/WebhookReceiver"; - -export const Response: core.serialization.Schema< - serializers.accounting.webhookReceivers.list.Response.Raw, - Merge.accounting.WebhookReceiver[] -> = core.serialization.list(WebhookReceiver); - -export declare namespace Response { - export type Raw = WebhookReceiver.Raw[]; -} diff --git a/src/serialization/resources/accounting/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts b/src/serialization/resources/accounting/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts deleted file mode 100644 index 9ae47cf94..000000000 --- a/src/serialization/resources/accounting/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts +++ /dev/null @@ -1,22 +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 WebhookReceiverRequest: core.serialization.Schema< - serializers.accounting.WebhookReceiverRequest.Raw, - Merge.accounting.WebhookReceiverRequest -> = core.serialization.object({ - event: core.serialization.string(), - isActive: core.serialization.property("is_active", core.serialization.boolean()), - key: core.serialization.string().optional(), -}); - -export declare namespace WebhookReceiverRequest { - export interface Raw { - event: string; - is_active: boolean; - key?: string | null; - } -} diff --git a/src/serialization/resources/accounting/resources/webhookReceivers/client/requests/index.ts b/src/serialization/resources/accounting/resources/webhookReceivers/client/requests/index.ts deleted file mode 100644 index 29f534250..000000000 --- a/src/serialization/resources/accounting/resources/webhookReceivers/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { WebhookReceiverRequest } from "./WebhookReceiverRequest"; diff --git a/src/serialization/resources/accounting/resources/webhookReceivers/index.ts b/src/serialization/resources/accounting/resources/webhookReceivers/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/accounting/resources/webhookReceivers/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/accounting/types/Account.ts b/src/serialization/resources/accounting/types/Account.ts deleted file mode 100644 index 774c8223b..000000000 --- a/src/serialization/resources/accounting/types/Account.ts +++ /dev/null @@ -1,58 +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 { AccountAccountType } from "./AccountAccountType"; -import { AccountClassification } from "./AccountClassification"; -import { AccountCurrency } from "./AccountCurrency"; -import { AccountStatus } from "./AccountStatus"; -import { RemoteData } from "./RemoteData"; - -export const Account: core.serialization.ObjectSchema = - 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()), - name: core.serialization.string().optional(), - description: core.serialization.string().optional(), - classification: AccountClassification.optional(), - type: core.serialization.string().optional(), - accountType: core.serialization.property("account_type", AccountAccountType.optional()), - status: AccountStatus.optional(), - currentBalance: core.serialization.property("current_balance", core.serialization.number().optional()), - currency: AccountCurrency.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(), - 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()), - }); - -export declare namespace Account { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - description?: string | null; - classification?: AccountClassification.Raw | null; - type?: string | null; - account_type?: AccountAccountType.Raw | null; - status?: AccountStatus.Raw | null; - current_balance?: number | null; - currency?: AccountCurrency.Raw | null; - account_number?: string | null; - parent_account?: string | null; - company?: string | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/AccountAccountType.ts b/src/serialization/resources/accounting/types/AccountAccountType.ts deleted file mode 100644 index 2af033ecb..000000000 --- a/src/serialization/resources/accounting/types/AccountAccountType.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 { AccountAccountTypeEnum } from "./AccountAccountTypeEnum"; - -export const AccountAccountType: core.serialization.Schema< - serializers.accounting.AccountAccountType.Raw, - Merge.accounting.AccountAccountType -> = core.serialization.undiscriminatedUnion([AccountAccountTypeEnum, core.serialization.string()]); - -export declare namespace AccountAccountType { - export type Raw = AccountAccountTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/AccountAccountTypeEnum.ts b/src/serialization/resources/accounting/types/AccountAccountTypeEnum.ts deleted file mode 100644 index 61141e478..000000000 --- a/src/serialization/resources/accounting/types/AccountAccountTypeEnum.ts +++ /dev/null @@ -1,41 +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 AccountAccountTypeEnum: core.serialization.Schema< - serializers.accounting.AccountAccountTypeEnum.Raw, - Merge.accounting.AccountAccountTypeEnum -> = core.serialization.enum_([ - "BANK", - "CREDIT_CARD", - "ACCOUNTS_PAYABLE", - "ACCOUNTS_RECEIVABLE", - "FIXED_ASSET", - "OTHER_ASSET", - "OTHER_CURRENT_ASSET", - "OTHER_EXPENSE", - "OTHER_INCOME", - "COST_OF_GOODS_SOLD", - "OTHER_CURRENT_LIABILITY", - "LONG_TERM_LIABILITY", - "NON_POSTING", -]); - -export declare namespace AccountAccountTypeEnum { - export type Raw = - | "BANK" - | "CREDIT_CARD" - | "ACCOUNTS_PAYABLE" - | "ACCOUNTS_RECEIVABLE" - | "FIXED_ASSET" - | "OTHER_ASSET" - | "OTHER_CURRENT_ASSET" - | "OTHER_EXPENSE" - | "OTHER_INCOME" - | "COST_OF_GOODS_SOLD" - | "OTHER_CURRENT_LIABILITY" - | "LONG_TERM_LIABILITY" - | "NON_POSTING"; -} diff --git a/src/serialization/resources/accounting/types/AccountClassification.ts b/src/serialization/resources/accounting/types/AccountClassification.ts deleted file mode 100644 index 1600bc1f3..000000000 --- a/src/serialization/resources/accounting/types/AccountClassification.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 { ClassificationEnum } from "./ClassificationEnum"; - -export const AccountClassification: core.serialization.Schema< - serializers.accounting.AccountClassification.Raw, - Merge.accounting.AccountClassification -> = core.serialization.undiscriminatedUnion([ClassificationEnum, core.serialization.string()]); - -export declare namespace AccountClassification { - export type Raw = ClassificationEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/AccountCurrency.ts b/src/serialization/resources/accounting/types/AccountCurrency.ts deleted file mode 100644 index dd9ddecea..000000000 --- a/src/serialization/resources/accounting/types/AccountCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const AccountCurrency: core.serialization.Schema< - serializers.accounting.AccountCurrency.Raw, - Merge.accounting.AccountCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace AccountCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/AccountDetails.ts b/src/serialization/resources/accounting/types/AccountDetails.ts deleted file mode 100644 index e28389812..000000000 --- a/src/serialization/resources/accounting/types/AccountDetails.ts +++ /dev/null @@ -1,44 +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 { AccountDetailsCategory } from "./AccountDetailsCategory"; - -export const AccountDetails: core.serialization.ObjectSchema< - serializers.accounting.AccountDetails.Raw, - Merge.accounting.AccountDetails -> = core.serialization.object({ - id: core.serialization.string().optional(), - integration: core.serialization.string().optional(), - integrationSlug: core.serialization.property("integration_slug", core.serialization.string().optional()), - category: AccountDetailsCategory.optional(), - endUserOriginId: core.serialization.property("end_user_origin_id", core.serialization.string().optional()), - endUserOrganizationName: core.serialization.property( - "end_user_organization_name", - core.serialization.string().optional(), - ), - endUserEmailAddress: core.serialization.property("end_user_email_address", core.serialization.string().optional()), - status: core.serialization.string().optional(), - webhookListenerUrl: core.serialization.property("webhook_listener_url", core.serialization.string().optional()), - isDuplicate: core.serialization.property("is_duplicate", core.serialization.boolean().optional()), - accountType: core.serialization.property("account_type", core.serialization.string().optional()), - completedAt: core.serialization.property("completed_at", core.serialization.date().optional()), -}); - -export declare namespace AccountDetails { - export interface Raw { - id?: string | null; - integration?: string | null; - integration_slug?: string | null; - category?: AccountDetailsCategory.Raw | null; - end_user_origin_id?: string | null; - end_user_organization_name?: string | null; - end_user_email_address?: string | null; - status?: string | null; - webhook_listener_url?: string | null; - is_duplicate?: boolean | null; - account_type?: string | null; - completed_at?: string | null; - } -} diff --git a/src/serialization/resources/accounting/types/AccountDetailsAndActions.ts b/src/serialization/resources/accounting/types/AccountDetailsAndActions.ts deleted file mode 100644 index f43b93a54..000000000 --- a/src/serialization/resources/accounting/types/AccountDetailsAndActions.ts +++ /dev/null @@ -1,50 +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 { AccountDetailsAndActionsCategory } from "./AccountDetailsAndActionsCategory"; -import { AccountDetailsAndActionsIntegration } from "./AccountDetailsAndActionsIntegration"; -import { AccountDetailsAndActionsStatus } from "./AccountDetailsAndActionsStatus"; - -export const AccountDetailsAndActions: core.serialization.ObjectSchema< - serializers.accounting.AccountDetailsAndActions.Raw, - Merge.accounting.AccountDetailsAndActions -> = core.serialization.object({ - id: core.serialization.string(), - 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()), - endUserEmailAddress: core.serialization.property("end_user_email_address", core.serialization.string()), - subdomain: core.serialization.string().optional(), - webhookListenerUrl: core.serialization.property("webhook_listener_url", core.serialization.string()), - isDuplicate: core.serialization.property("is_duplicate", core.serialization.boolean().optional()), - 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 { - export interface Raw { - id: string; - category?: AccountDetailsAndActionsCategory.Raw | null; - status: AccountDetailsAndActionsStatus.Raw; - status_detail?: string | null; - end_user_origin_id?: string | null; - end_user_organization_name: string; - end_user_email_address: string; - subdomain?: string | null; - webhook_listener_url: string; - is_duplicate?: boolean | null; - integration?: AccountDetailsAndActionsIntegration.Raw | null; - account_type: string; - completed_at: string; - integration_specific_fields?: Record | null; - } -} diff --git a/src/serialization/resources/accounting/types/AccountDetailsAndActionsCategory.ts b/src/serialization/resources/accounting/types/AccountDetailsAndActionsCategory.ts deleted file mode 100644 index 5624a0dd9..000000000 --- a/src/serialization/resources/accounting/types/AccountDetailsAndActionsCategory.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { CategoryEnum } from "./CategoryEnum"; - -export const AccountDetailsAndActionsCategory: core.serialization.Schema< - serializers.accounting.AccountDetailsAndActionsCategory.Raw, - Merge.accounting.AccountDetailsAndActionsCategory -> = core.serialization.undiscriminatedUnion([CategoryEnum, core.serialization.string()]); - -export declare namespace AccountDetailsAndActionsCategory { - export type Raw = CategoryEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/AccountDetailsAndActionsIntegration.ts b/src/serialization/resources/accounting/types/AccountDetailsAndActionsIntegration.ts deleted file mode 100644 index 62aa746c9..000000000 --- a/src/serialization/resources/accounting/types/AccountDetailsAndActionsIntegration.ts +++ /dev/null @@ -1,37 +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 { CategoriesEnum } from "./CategoriesEnum"; -import { ModelOperation } from "./ModelOperation"; - -export const AccountDetailsAndActionsIntegration: core.serialization.ObjectSchema< - serializers.accounting.AccountDetailsAndActionsIntegration.Raw, - Merge.accounting.AccountDetailsAndActionsIntegration -> = core.serialization.object({ - name: core.serialization.string(), - categories: core.serialization.list(CategoriesEnum), - image: core.serialization.string().optional(), - squareImage: core.serialization.property("square_image", core.serialization.string().optional()), - color: core.serialization.string(), - slug: core.serialization.string(), - passthroughAvailable: core.serialization.property("passthrough_available", core.serialization.boolean()), - availableModelOperations: core.serialization.property( - "available_model_operations", - core.serialization.list(ModelOperation).optional(), - ), -}); - -export declare namespace AccountDetailsAndActionsIntegration { - export interface Raw { - name: string; - categories: CategoriesEnum.Raw[]; - image?: string | null; - square_image?: string | null; - color: string; - slug: string; - passthrough_available: boolean; - available_model_operations?: ModelOperation.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/AccountDetailsAndActionsStatus.ts b/src/serialization/resources/accounting/types/AccountDetailsAndActionsStatus.ts deleted file mode 100644 index 20ddc5bf9..000000000 --- a/src/serialization/resources/accounting/types/AccountDetailsAndActionsStatus.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 { AccountDetailsAndActionsStatusEnum } from "./AccountDetailsAndActionsStatusEnum"; - -export const AccountDetailsAndActionsStatus: core.serialization.Schema< - serializers.accounting.AccountDetailsAndActionsStatus.Raw, - Merge.accounting.AccountDetailsAndActionsStatus -> = core.serialization.undiscriminatedUnion([AccountDetailsAndActionsStatusEnum, core.serialization.string()]); - -export declare namespace AccountDetailsAndActionsStatus { - export type Raw = AccountDetailsAndActionsStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/AccountDetailsAndActionsStatusEnum.ts b/src/serialization/resources/accounting/types/AccountDetailsAndActionsStatusEnum.ts deleted file mode 100644 index bccaffc22..000000000 --- a/src/serialization/resources/accounting/types/AccountDetailsAndActionsStatusEnum.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 AccountDetailsAndActionsStatusEnum: core.serialization.Schema< - serializers.accounting.AccountDetailsAndActionsStatusEnum.Raw, - Merge.accounting.AccountDetailsAndActionsStatusEnum -> = core.serialization.enum_(["COMPLETE", "INCOMPLETE", "RELINK_NEEDED", "IDLE"]); - -export declare namespace AccountDetailsAndActionsStatusEnum { - export type Raw = "COMPLETE" | "INCOMPLETE" | "RELINK_NEEDED" | "IDLE"; -} diff --git a/src/serialization/resources/accounting/types/AccountDetailsCategory.ts b/src/serialization/resources/accounting/types/AccountDetailsCategory.ts deleted file mode 100644 index a811f2f0a..000000000 --- a/src/serialization/resources/accounting/types/AccountDetailsCategory.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { CategoryEnum } from "./CategoryEnum"; - -export const AccountDetailsCategory: core.serialization.Schema< - serializers.accounting.AccountDetailsCategory.Raw, - Merge.accounting.AccountDetailsCategory -> = core.serialization.undiscriminatedUnion([CategoryEnum, core.serialization.string()]); - -export declare namespace AccountDetailsCategory { - export type Raw = CategoryEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/AccountIntegration.ts b/src/serialization/resources/accounting/types/AccountIntegration.ts deleted file mode 100644 index 6cc560b57..000000000 --- a/src/serialization/resources/accounting/types/AccountIntegration.ts +++ /dev/null @@ -1,46 +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 { CategoriesEnum } from "./CategoriesEnum"; - -export const AccountIntegration: core.serialization.ObjectSchema< - serializers.accounting.AccountIntegration.Raw, - Merge.accounting.AccountIntegration -> = core.serialization.object({ - name: core.serialization.string(), - abbreviatedName: core.serialization.property("abbreviated_name", core.serialization.string().optional()), - categories: core.serialization.list(CategoriesEnum).optional(), - image: core.serialization.string().optional(), - squareImage: core.serialization.property("square_image", core.serialization.string().optional()), - color: core.serialization.string().optional(), - slug: core.serialization.string().optional(), - apiEndpointsToDocumentationUrls: core.serialization.property( - "api_endpoints_to_documentation_urls", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - webhookSetupGuideUrl: core.serialization.property( - "webhook_setup_guide_url", - core.serialization.string().optional(), - ), - categoryBetaStatus: core.serialization.property( - "category_beta_status", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), -}); - -export declare namespace AccountIntegration { - export interface Raw { - name: string; - abbreviated_name?: string | null; - categories?: CategoriesEnum.Raw[] | null; - image?: string | null; - square_image?: string | null; - color?: string | null; - slug?: string | null; - api_endpoints_to_documentation_urls?: Record | null; - webhook_setup_guide_url?: string | null; - category_beta_status?: Record | null; - } -} diff --git a/src/serialization/resources/accounting/types/AccountRequest.ts b/src/serialization/resources/accounting/types/AccountRequest.ts deleted file mode 100644 index 04cca9176..000000000 --- a/src/serialization/resources/accounting/types/AccountRequest.ts +++ /dev/null @@ -1,52 +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 { AccountRequestAccountType } from "./AccountRequestAccountType"; -import { AccountRequestClassification } from "./AccountRequestClassification"; -import { AccountRequestCurrency } from "./AccountRequestCurrency"; -import { AccountRequestStatus } from "./AccountRequestStatus"; - -export const AccountRequest: core.serialization.ObjectSchema< - serializers.accounting.AccountRequest.Raw, - Merge.accounting.AccountRequest -> = core.serialization.object({ - name: core.serialization.string().optional(), - description: core.serialization.string().optional(), - classification: AccountRequestClassification.optional(), - type: core.serialization.string().optional(), - accountType: core.serialization.property("account_type", AccountRequestAccountType.optional()), - status: AccountRequestStatus.optional(), - currentBalance: core.serialization.property("current_balance", core.serialization.number().optional()), - 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(), - 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 AccountRequest { - export interface Raw { - name?: string | null; - description?: string | null; - classification?: AccountRequestClassification.Raw | null; - type?: string | null; - account_type?: AccountRequestAccountType.Raw | null; - status?: AccountRequestStatus.Raw | null; - current_balance?: number | null; - currency?: AccountRequestCurrency.Raw | null; - account_number?: string | null; - parent_account?: string | null; - company?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/accounting/types/AccountRequestAccountType.ts b/src/serialization/resources/accounting/types/AccountRequestAccountType.ts deleted file mode 100644 index f12d43d43..000000000 --- a/src/serialization/resources/accounting/types/AccountRequestAccountType.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 { AccountAccountTypeEnum } from "./AccountAccountTypeEnum"; - -export const AccountRequestAccountType: core.serialization.Schema< - serializers.accounting.AccountRequestAccountType.Raw, - Merge.accounting.AccountRequestAccountType -> = core.serialization.undiscriminatedUnion([AccountAccountTypeEnum, core.serialization.string()]); - -export declare namespace AccountRequestAccountType { - export type Raw = AccountAccountTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/AccountRequestClassification.ts b/src/serialization/resources/accounting/types/AccountRequestClassification.ts deleted file mode 100644 index a9e08aaf1..000000000 --- a/src/serialization/resources/accounting/types/AccountRequestClassification.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 { ClassificationEnum } from "./ClassificationEnum"; - -export const AccountRequestClassification: core.serialization.Schema< - serializers.accounting.AccountRequestClassification.Raw, - Merge.accounting.AccountRequestClassification -> = core.serialization.undiscriminatedUnion([ClassificationEnum, core.serialization.string()]); - -export declare namespace AccountRequestClassification { - export type Raw = ClassificationEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/AccountRequestCurrency.ts b/src/serialization/resources/accounting/types/AccountRequestCurrency.ts deleted file mode 100644 index caeffb978..000000000 --- a/src/serialization/resources/accounting/types/AccountRequestCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const AccountRequestCurrency: core.serialization.Schema< - serializers.accounting.AccountRequestCurrency.Raw, - Merge.accounting.AccountRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace AccountRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/AccountRequestStatus.ts b/src/serialization/resources/accounting/types/AccountRequestStatus.ts deleted file mode 100644 index 2f21a7eff..000000000 --- a/src/serialization/resources/accounting/types/AccountRequestStatus.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 { AccountStatusEnum } from "./AccountStatusEnum"; - -export const AccountRequestStatus: core.serialization.Schema< - serializers.accounting.AccountRequestStatus.Raw, - Merge.accounting.AccountRequestStatus -> = core.serialization.undiscriminatedUnion([AccountStatusEnum, core.serialization.string()]); - -export declare namespace AccountRequestStatus { - export type Raw = AccountStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/AccountResponse.ts b/src/serialization/resources/accounting/types/AccountResponse.ts deleted file mode 100644 index 8e1e99673..000000000 --- a/src/serialization/resources/accounting/types/AccountResponse.ts +++ /dev/null @@ -1,28 +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"; -import { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const AccountResponse: core.serialization.ObjectSchema< - serializers.accounting.AccountResponse.Raw, - Merge.accounting.AccountResponse -> = core.serialization.object({ - model: Account, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace AccountResponse { - export interface Raw { - model: Account.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/AccountStatus.ts b/src/serialization/resources/accounting/types/AccountStatus.ts deleted file mode 100644 index f192f5c82..000000000 --- a/src/serialization/resources/accounting/types/AccountStatus.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 { AccountStatusEnum } from "./AccountStatusEnum"; - -export const AccountStatus: core.serialization.Schema< - serializers.accounting.AccountStatus.Raw, - Merge.accounting.AccountStatus -> = core.serialization.undiscriminatedUnion([AccountStatusEnum, core.serialization.string()]); - -export declare namespace AccountStatus { - export type Raw = AccountStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/AccountStatusEnum.ts b/src/serialization/resources/accounting/types/AccountStatusEnum.ts deleted file mode 100644 index 6b646b5a4..000000000 --- a/src/serialization/resources/accounting/types/AccountStatusEnum.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 AccountStatusEnum: core.serialization.Schema< - serializers.accounting.AccountStatusEnum.Raw, - Merge.accounting.AccountStatusEnum -> = core.serialization.enum_(["ACTIVE", "PENDING", "INACTIVE"]); - -export declare namespace AccountStatusEnum { - export type Raw = "ACTIVE" | "PENDING" | "INACTIVE"; -} diff --git a/src/serialization/resources/accounting/types/AccountToken.ts b/src/serialization/resources/accounting/types/AccountToken.ts deleted file mode 100644 index f144d2a03..000000000 --- a/src/serialization/resources/accounting/types/AccountToken.ts +++ /dev/null @@ -1,23 +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 { AccountIntegration } from "./AccountIntegration"; - -export const AccountToken: core.serialization.ObjectSchema< - serializers.accounting.AccountToken.Raw, - Merge.accounting.AccountToken -> = core.serialization.object({ - accountToken: core.serialization.property("account_token", core.serialization.string()), - integration: AccountIntegration, - id: core.serialization.string(), -}); - -export declare namespace AccountToken { - export interface Raw { - account_token: string; - integration: AccountIntegration.Raw; - id: string; - } -} diff --git a/src/serialization/resources/accounting/types/AccountingAttachment.ts b/src/serialization/resources/accounting/types/AccountingAttachment.ts deleted file mode 100644 index 127150af4..000000000 --- a/src/serialization/resources/accounting/types/AccountingAttachment.ts +++ /dev/null @@ -1,40 +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 { RemoteData } from "./RemoteData"; - -export const AccountingAttachment: core.serialization.ObjectSchema< - serializers.accounting.AccountingAttachment.Raw, - Merge.accounting.AccountingAttachment -> = 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()), - fileName: core.serialization.property("file_name", core.serialization.string().optional()), - fileUrl: core.serialization.property("file_url", core.serialization.string().optional()), - company: core.serialization.string().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()), -}); - -export declare namespace AccountingAttachment { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - file_name?: string | null; - file_url?: string | null; - company?: string | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/AccountingAttachmentRequest.ts b/src/serialization/resources/accounting/types/AccountingAttachmentRequest.ts deleted file mode 100644 index 4817ed787..000000000 --- a/src/serialization/resources/accounting/types/AccountingAttachmentRequest.ts +++ /dev/null @@ -1,32 +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 AccountingAttachmentRequest: core.serialization.ObjectSchema< - serializers.accounting.AccountingAttachmentRequest.Raw, - Merge.accounting.AccountingAttachmentRequest -> = core.serialization.object({ - fileName: core.serialization.property("file_name", core.serialization.string().optional()), - fileUrl: core.serialization.property("file_url", core.serialization.string().optional()), - company: core.serialization.string().optional(), - integrationParams: core.serialization.property( - "integration_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - linkedAccountParams: core.serialization.property( - "linked_account_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), -}); - -export declare namespace AccountingAttachmentRequest { - export interface Raw { - file_name?: string | null; - file_url?: string | null; - company?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/accounting/types/AccountingAttachmentResponse.ts b/src/serialization/resources/accounting/types/AccountingAttachmentResponse.ts deleted file mode 100644 index a4963b60b..000000000 --- a/src/serialization/resources/accounting/types/AccountingAttachmentResponse.ts +++ /dev/null @@ -1,28 +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 { AccountingAttachment } from "./AccountingAttachment"; -import { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const AccountingAttachmentResponse: core.serialization.ObjectSchema< - serializers.accounting.AccountingAttachmentResponse.Raw, - Merge.accounting.AccountingAttachmentResponse -> = core.serialization.object({ - model: AccountingAttachment, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace AccountingAttachmentResponse { - export interface Raw { - model: AccountingAttachment.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/AccountingPeriod.ts b/src/serialization/resources/accounting/types/AccountingPeriod.ts deleted file mode 100644 index acd1e9b95..000000000 --- a/src/serialization/resources/accounting/types/AccountingPeriod.ts +++ /dev/null @@ -1,41 +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 { AccountingPeriodStatus } from "./AccountingPeriodStatus"; -import { RemoteData } from "./RemoteData"; - -export const AccountingPeriod: core.serialization.ObjectSchema< - serializers.accounting.AccountingPeriod.Raw, - Merge.accounting.AccountingPeriod -> = 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()), - name: core.serialization.string().optional(), - status: AccountingPeriodStatus.optional(), - startDate: core.serialization.property("start_date", core.serialization.date().optional()), - endDate: core.serialization.property("end_date", core.serialization.date().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()), -}); - -export declare namespace AccountingPeriod { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - status?: AccountingPeriodStatus.Raw | null; - start_date?: string | null; - end_date?: string | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/AccountingPeriodStatus.ts b/src/serialization/resources/accounting/types/AccountingPeriodStatus.ts deleted file mode 100644 index 61074a1fe..000000000 --- a/src/serialization/resources/accounting/types/AccountingPeriodStatus.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 { Status895Enum } from "./Status895Enum"; - -export const AccountingPeriodStatus: core.serialization.Schema< - serializers.accounting.AccountingPeriodStatus.Raw, - Merge.accounting.AccountingPeriodStatus -> = core.serialization.undiscriminatedUnion([Status895Enum, core.serialization.string()]); - -export declare namespace AccountingPeriodStatus { - export type Raw = Status895Enum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/AccountingPhoneNumber.ts b/src/serialization/resources/accounting/types/AccountingPhoneNumber.ts deleted file mode 100644 index 77d1416bd..000000000 --- a/src/serialization/resources/accounting/types/AccountingPhoneNumber.ts +++ /dev/null @@ -1,24 +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 AccountingPhoneNumber: core.serialization.ObjectSchema< - serializers.accounting.AccountingPhoneNumber.Raw, - Merge.accounting.AccountingPhoneNumber -> = core.serialization.object({ - createdAt: core.serialization.property("created_at", core.serialization.date().optional()), - modifiedAt: core.serialization.property("modified_at", core.serialization.date().optional()), - number: core.serialization.string().optional(), - type: core.serialization.string().optional(), -}); - -export declare namespace AccountingPhoneNumber { - export interface Raw { - created_at?: string | null; - modified_at?: string | null; - number?: string | null; - type?: string | null; - } -} diff --git a/src/serialization/resources/accounting/types/AccountingPhoneNumberRequest.ts b/src/serialization/resources/accounting/types/AccountingPhoneNumberRequest.ts deleted file mode 100644 index 0866b0d17..000000000 --- a/src/serialization/resources/accounting/types/AccountingPhoneNumberRequest.ts +++ /dev/null @@ -1,30 +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 AccountingPhoneNumberRequest: core.serialization.ObjectSchema< - serializers.accounting.AccountingPhoneNumberRequest.Raw, - Merge.accounting.AccountingPhoneNumberRequest -> = core.serialization.object({ - number: core.serialization.string().optional(), - type: core.serialization.string().optional(), - integrationParams: core.serialization.property( - "integration_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - linkedAccountParams: core.serialization.property( - "linked_account_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), -}); - -export declare namespace AccountingPhoneNumberRequest { - export interface Raw { - number?: string | null; - type?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/accounting/types/Address.ts b/src/serialization/resources/accounting/types/Address.ts deleted file mode 100644 index 8d78bf681..000000000 --- a/src/serialization/resources/accounting/types/Address.ts +++ /dev/null @@ -1,36 +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 { AddressCountry } from "./AddressCountry"; -import { AddressType } from "./AddressType"; - -export const Address: core.serialization.ObjectSchema = - core.serialization.object({ - createdAt: core.serialization.property("created_at", core.serialization.date().optional()), - modifiedAt: core.serialization.property("modified_at", core.serialization.date().optional()), - type: AddressType.optional(), - street1: core.serialization.property("street_1", core.serialization.string().optional()), - street2: core.serialization.property("street_2", core.serialization.string().optional()), - city: core.serialization.string().optional(), - state: core.serialization.unknown().optional(), - countrySubdivision: core.serialization.property("country_subdivision", core.serialization.string().optional()), - country: AddressCountry.optional(), - zipCode: core.serialization.property("zip_code", core.serialization.string().optional()), - }); - -export declare namespace Address { - export interface Raw { - created_at?: string | null; - modified_at?: string | null; - type?: AddressType.Raw | null; - street_1?: string | null; - street_2?: string | null; - city?: string | null; - state?: unknown | null; - country_subdivision?: string | null; - country?: AddressCountry.Raw | null; - zip_code?: string | null; - } -} diff --git a/src/serialization/resources/accounting/types/AddressCountry.ts b/src/serialization/resources/accounting/types/AddressCountry.ts deleted file mode 100644 index d2a97ccca..000000000 --- a/src/serialization/resources/accounting/types/AddressCountry.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 { CountryEnum } from "./CountryEnum"; - -export const AddressCountry: core.serialization.Schema< - serializers.accounting.AddressCountry.Raw, - Merge.accounting.AddressCountry -> = core.serialization.undiscriminatedUnion([CountryEnum, core.serialization.string()]); - -export declare namespace AddressCountry { - export type Raw = CountryEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/AddressRequest.ts b/src/serialization/resources/accounting/types/AddressRequest.ts deleted file mode 100644 index 4d043c244..000000000 --- a/src/serialization/resources/accounting/types/AddressRequest.ts +++ /dev/null @@ -1,42 +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 { AddressRequestCountry } from "./AddressRequestCountry"; -import { AddressRequestType } from "./AddressRequestType"; - -export const AddressRequest: core.serialization.ObjectSchema< - serializers.accounting.AddressRequest.Raw, - Merge.accounting.AddressRequest -> = core.serialization.object({ - type: AddressRequestType.optional(), - street1: core.serialization.property("street_1", core.serialization.string().optional()), - street2: core.serialization.property("street_2", core.serialization.string().optional()), - city: core.serialization.string().optional(), - countrySubdivision: core.serialization.property("country_subdivision", core.serialization.string().optional()), - country: AddressRequestCountry.optional(), - zipCode: core.serialization.property("zip_code", core.serialization.string().optional()), - integrationParams: core.serialization.property( - "integration_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - linkedAccountParams: core.serialization.property( - "linked_account_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), -}); - -export declare namespace AddressRequest { - export interface Raw { - type?: AddressRequestType.Raw | null; - street_1?: string | null; - street_2?: string | null; - city?: string | null; - country_subdivision?: string | null; - country?: AddressRequestCountry.Raw | null; - zip_code?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/accounting/types/AddressRequestCountry.ts b/src/serialization/resources/accounting/types/AddressRequestCountry.ts deleted file mode 100644 index f56c5e9bc..000000000 --- a/src/serialization/resources/accounting/types/AddressRequestCountry.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 { CountryEnum } from "./CountryEnum"; - -export const AddressRequestCountry: core.serialization.Schema< - serializers.accounting.AddressRequestCountry.Raw, - Merge.accounting.AddressRequestCountry -> = core.serialization.undiscriminatedUnion([CountryEnum, core.serialization.string()]); - -export declare namespace AddressRequestCountry { - export type Raw = CountryEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/AddressRequestType.ts b/src/serialization/resources/accounting/types/AddressRequestType.ts deleted file mode 100644 index 37235b7ae..000000000 --- a/src/serialization/resources/accounting/types/AddressRequestType.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 { AddressTypeEnum } from "./AddressTypeEnum"; - -export const AddressRequestType: core.serialization.Schema< - serializers.accounting.AddressRequestType.Raw, - Merge.accounting.AddressRequestType -> = core.serialization.undiscriminatedUnion([AddressTypeEnum, core.serialization.string()]); - -export declare namespace AddressRequestType { - export type Raw = AddressTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/AddressType.ts b/src/serialization/resources/accounting/types/AddressType.ts deleted file mode 100644 index 92346aaf2..000000000 --- a/src/serialization/resources/accounting/types/AddressType.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 { AddressTypeEnum } from "./AddressTypeEnum"; - -export const AddressType: core.serialization.Schema< - serializers.accounting.AddressType.Raw, - Merge.accounting.AddressType -> = core.serialization.undiscriminatedUnion([AddressTypeEnum, core.serialization.string()]); - -export declare namespace AddressType { - export type Raw = AddressTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/AddressTypeEnum.ts b/src/serialization/resources/accounting/types/AddressTypeEnum.ts deleted file mode 100644 index df9e64401..000000000 --- a/src/serialization/resources/accounting/types/AddressTypeEnum.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 AddressTypeEnum: core.serialization.Schema< - serializers.accounting.AddressTypeEnum.Raw, - Merge.accounting.AddressTypeEnum -> = core.serialization.enum_(["BILLING", "SHIPPING"]); - -export declare namespace AddressTypeEnum { - export type Raw = "BILLING" | "SHIPPING"; -} diff --git a/src/serialization/resources/accounting/types/AdvancedMetadata.ts b/src/serialization/resources/accounting/types/AdvancedMetadata.ts deleted file mode 100644 index c180df594..000000000 --- a/src/serialization/resources/accounting/types/AdvancedMetadata.ts +++ /dev/null @@ -1,31 +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 AdvancedMetadata: core.serialization.ObjectSchema< - serializers.accounting.AdvancedMetadata.Raw, - Merge.accounting.AdvancedMetadata -> = core.serialization.object({ - id: core.serialization.string(), - displayName: core.serialization.property("display_name", core.serialization.string().optional()), - description: core.serialization.string().optional(), - isRequired: core.serialization.property("is_required", core.serialization.boolean().optional()), - isCustom: core.serialization.property("is_custom", core.serialization.boolean().optional()), - fieldChoices: core.serialization.property( - "field_choices", - core.serialization.list(core.serialization.unknown()).optional(), - ), -}); - -export declare namespace AdvancedMetadata { - export interface Raw { - id: string; - display_name?: string | null; - description?: string | null; - is_required?: boolean | null; - is_custom?: boolean | null; - field_choices?: unknown[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/AsyncPassthroughReciept.ts b/src/serialization/resources/accounting/types/AsyncPassthroughReciept.ts deleted file mode 100644 index 979a44b69..000000000 --- a/src/serialization/resources/accounting/types/AsyncPassthroughReciept.ts +++ /dev/null @@ -1,18 +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 AsyncPassthroughReciept: core.serialization.ObjectSchema< - serializers.accounting.AsyncPassthroughReciept.Raw, - Merge.accounting.AsyncPassthroughReciept -> = core.serialization.object({ - asyncPassthroughReceiptId: core.serialization.property("async_passthrough_receipt_id", core.serialization.string()), -}); - -export declare namespace AsyncPassthroughReciept { - export interface Raw { - async_passthrough_receipt_id: string; - } -} diff --git a/src/serialization/resources/accounting/types/AsyncPostTask.ts b/src/serialization/resources/accounting/types/AsyncPostTask.ts deleted file mode 100644 index 8528e1621..000000000 --- a/src/serialization/resources/accounting/types/AsyncPostTask.ts +++ /dev/null @@ -1,22 +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 { AsyncPostTaskResult } from "./AsyncPostTaskResult"; -import { AsyncPostTaskStatus } from "./AsyncPostTaskStatus"; - -export const AsyncPostTask: core.serialization.ObjectSchema< - serializers.accounting.AsyncPostTask.Raw, - Merge.accounting.AsyncPostTask -> = core.serialization.object({ - status: AsyncPostTaskStatus, - result: AsyncPostTaskResult, -}); - -export declare namespace AsyncPostTask { - export interface Raw { - status: AsyncPostTaskStatus.Raw; - result: AsyncPostTaskResult.Raw; - } -} diff --git a/src/serialization/resources/accounting/types/AsyncPostTaskResult.ts b/src/serialization/resources/accounting/types/AsyncPostTaskResult.ts deleted file mode 100644 index 0e04a5d2f..000000000 --- a/src/serialization/resources/accounting/types/AsyncPostTaskResult.ts +++ /dev/null @@ -1,20 +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 AsyncPostTaskResult: core.serialization.ObjectSchema< - serializers.accounting.AsyncPostTaskResult.Raw, - Merge.accounting.AsyncPostTaskResult -> = core.serialization.object({ - statusCode: core.serialization.property("status_code", core.serialization.number().optional()), - response: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), -}); - -export declare namespace AsyncPostTaskResult { - export interface Raw { - status_code?: number | null; - response?: Record | null; - } -} diff --git a/src/serialization/resources/accounting/types/AsyncPostTaskStatus.ts b/src/serialization/resources/accounting/types/AsyncPostTaskStatus.ts deleted file mode 100644 index 8bd64e437..000000000 --- a/src/serialization/resources/accounting/types/AsyncPostTaskStatus.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 { AsyncPostTaskStatusEnum } from "./AsyncPostTaskStatusEnum"; - -export const AsyncPostTaskStatus: core.serialization.Schema< - serializers.accounting.AsyncPostTaskStatus.Raw, - Merge.accounting.AsyncPostTaskStatus -> = core.serialization.undiscriminatedUnion([AsyncPostTaskStatusEnum, core.serialization.string()]); - -export declare namespace AsyncPostTaskStatus { - export type Raw = AsyncPostTaskStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/AsyncPostTaskStatusEnum.ts b/src/serialization/resources/accounting/types/AsyncPostTaskStatusEnum.ts deleted file mode 100644 index 70d23bdd7..000000000 --- a/src/serialization/resources/accounting/types/AsyncPostTaskStatusEnum.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 AsyncPostTaskStatusEnum: core.serialization.Schema< - serializers.accounting.AsyncPostTaskStatusEnum.Raw, - Merge.accounting.AsyncPostTaskStatusEnum -> = core.serialization.enum_(["QUEUED", "IN_PROGRESS", "COMPLETED", "FAILURE"]); - -export declare namespace AsyncPostTaskStatusEnum { - export type Raw = "QUEUED" | "IN_PROGRESS" | "COMPLETED" | "FAILURE"; -} diff --git a/src/serialization/resources/accounting/types/AuditLogEvent.ts b/src/serialization/resources/accounting/types/AuditLogEvent.ts deleted file mode 100644 index b455abf44..000000000 --- a/src/serialization/resources/accounting/types/AuditLogEvent.ts +++ /dev/null @@ -1,34 +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 { AuditLogEventEventType } from "./AuditLogEventEventType"; -import { AuditLogEventRole } from "./AuditLogEventRole"; - -export const AuditLogEvent: core.serialization.ObjectSchema< - serializers.accounting.AuditLogEvent.Raw, - Merge.accounting.AuditLogEvent -> = core.serialization.object({ - id: core.serialization.string().optional(), - userName: core.serialization.property("user_name", core.serialization.string().optional()), - userEmail: core.serialization.property("user_email", core.serialization.string().optional()), - role: AuditLogEventRole, - ipAddress: core.serialization.property("ip_address", core.serialization.string()), - eventType: core.serialization.property("event_type", AuditLogEventEventType), - eventDescription: core.serialization.property("event_description", core.serialization.string()), - createdAt: core.serialization.property("created_at", core.serialization.date().optional()), -}); - -export declare namespace AuditLogEvent { - export interface Raw { - id?: string | null; - user_name?: string | null; - user_email?: string | null; - role: AuditLogEventRole.Raw; - ip_address: string; - event_type: AuditLogEventEventType.Raw; - event_description: string; - created_at?: string | null; - } -} diff --git a/src/serialization/resources/accounting/types/AuditLogEventEventType.ts b/src/serialization/resources/accounting/types/AuditLogEventEventType.ts deleted file mode 100644 index 7d90c49b0..000000000 --- a/src/serialization/resources/accounting/types/AuditLogEventEventType.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 { EventTypeEnum } from "./EventTypeEnum"; - -export const AuditLogEventEventType: core.serialization.Schema< - serializers.accounting.AuditLogEventEventType.Raw, - Merge.accounting.AuditLogEventEventType -> = core.serialization.undiscriminatedUnion([EventTypeEnum, core.serialization.string()]); - -export declare namespace AuditLogEventEventType { - export type Raw = EventTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/AuditLogEventRole.ts b/src/serialization/resources/accounting/types/AuditLogEventRole.ts deleted file mode 100644 index 8feb188ca..000000000 --- a/src/serialization/resources/accounting/types/AuditLogEventRole.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 { RoleEnum } from "./RoleEnum"; - -export const AuditLogEventRole: core.serialization.Schema< - serializers.accounting.AuditLogEventRole.Raw, - Merge.accounting.AuditLogEventRole -> = core.serialization.undiscriminatedUnion([RoleEnum, core.serialization.string()]); - -export declare namespace AuditLogEventRole { - export type Raw = RoleEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/AvailableActions.ts b/src/serialization/resources/accounting/types/AvailableActions.ts deleted file mode 100644 index 423e26078..000000000 --- a/src/serialization/resources/accounting/types/AvailableActions.ts +++ /dev/null @@ -1,27 +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 { AccountIntegration } from "./AccountIntegration"; -import { ModelOperation } from "./ModelOperation"; - -export const AvailableActions: core.serialization.ObjectSchema< - serializers.accounting.AvailableActions.Raw, - Merge.accounting.AvailableActions -> = core.serialization.object({ - integration: AccountIntegration, - passthroughAvailable: core.serialization.property("passthrough_available", core.serialization.boolean()), - availableModelOperations: core.serialization.property( - "available_model_operations", - core.serialization.list(ModelOperation).optional(), - ), -}); - -export declare namespace AvailableActions { - export interface Raw { - integration: AccountIntegration.Raw; - passthrough_available: boolean; - available_model_operations?: ModelOperation.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/BalanceSheet.ts b/src/serialization/resources/accounting/types/BalanceSheet.ts deleted file mode 100644 index bcb6781f9..000000000 --- a/src/serialization/resources/accounting/types/BalanceSheet.ts +++ /dev/null @@ -1,55 +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 { BalanceSheetCompany } from "./BalanceSheetCompany"; -import { BalanceSheetCurrency } from "./BalanceSheetCurrency"; -import { RemoteData } from "./RemoteData"; -import { ReportItem } from "./ReportItem"; - -export const BalanceSheet: core.serialization.ObjectSchema< - serializers.accounting.BalanceSheet.Raw, - Merge.accounting.BalanceSheet -> = 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()), - name: core.serialization.string().optional(), - currency: BalanceSheetCurrency.optional(), - company: BalanceSheetCompany.optional(), - date: core.serialization.date().optional(), - netAssets: core.serialization.property("net_assets", core.serialization.number().optional()), - assets: core.serialization.list(ReportItem).optional(), - liabilities: core.serialization.list(ReportItem).optional(), - equity: core.serialization.list(ReportItem).optional(), - remoteGeneratedAt: core.serialization.property("remote_generated_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()), -}); - -export declare namespace BalanceSheet { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - currency?: BalanceSheetCurrency.Raw | null; - company?: BalanceSheetCompany.Raw | null; - date?: string | null; - net_assets?: number | null; - assets?: ReportItem.Raw[] | null; - liabilities?: ReportItem.Raw[] | null; - equity?: ReportItem.Raw[] | null; - remote_generated_at?: string | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/BalanceSheetCompany.ts b/src/serialization/resources/accounting/types/BalanceSheetCompany.ts deleted file mode 100644 index cc46336c0..000000000 --- a/src/serialization/resources/accounting/types/BalanceSheetCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const BalanceSheetCompany: core.serialization.Schema< - serializers.accounting.BalanceSheetCompany.Raw, - Merge.accounting.BalanceSheetCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace BalanceSheetCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/BalanceSheetCurrency.ts b/src/serialization/resources/accounting/types/BalanceSheetCurrency.ts deleted file mode 100644 index a86f772c4..000000000 --- a/src/serialization/resources/accounting/types/BalanceSheetCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const BalanceSheetCurrency: core.serialization.Schema< - serializers.accounting.BalanceSheetCurrency.Raw, - Merge.accounting.BalanceSheetCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace BalanceSheetCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/BankFeedAccount.ts b/src/serialization/resources/accounting/types/BankFeedAccount.ts deleted file mode 100644 index 1225f3068..000000000 --- a/src/serialization/resources/accounting/types/BankFeedAccount.ts +++ /dev/null @@ -1,61 +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 { BankFeedAccountAccountType } from "./BankFeedAccountAccountType"; -import { BankFeedAccountCurrency } from "./BankFeedAccountCurrency"; -import { BankFeedAccountFeedStatus } from "./BankFeedAccountFeedStatus"; - -export const BankFeedAccount: core.serialization.ObjectSchema< - serializers.accounting.BankFeedAccount.Raw, - Merge.accounting.BankFeedAccount -> = 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()), - sourceAccountId: core.serialization.property("source_account_id", core.serialization.string().optional()), - targetAccountId: core.serialization.property("target_account_id", core.serialization.string().optional()), - sourceAccountName: core.serialization.property("source_account_name", core.serialization.string().optional()), - sourceAccountNumber: core.serialization.property("source_account_number", core.serialization.string().optional()), - targetAccountName: core.serialization.property("target_account_name", core.serialization.string().optional()), - currency: BankFeedAccountCurrency.optional(), - feedStatus: core.serialization.property("feed_status", BankFeedAccountFeedStatus.optional()), - feedStartDate: core.serialization.property("feed_start_date", core.serialization.date().optional()), - sourceAccountBalance: core.serialization.property("source_account_balance", core.serialization.number().optional()), - accountType: core.serialization.property("account_type", BankFeedAccountAccountType.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(core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()) - .optional(), - ), -}); - -export declare namespace BankFeedAccount { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - source_account_id?: string | null; - target_account_id?: string | null; - source_account_name?: string | null; - source_account_number?: string | null; - target_account_name?: string | null; - currency?: BankFeedAccountCurrency.Raw | null; - feed_status?: BankFeedAccountFeedStatus.Raw | null; - feed_start_date?: string | null; - source_account_balance?: number | null; - account_type?: BankFeedAccountAccountType.Raw | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: (Record | null | undefined)[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/BankFeedAccountAccountType.ts b/src/serialization/resources/accounting/types/BankFeedAccountAccountType.ts deleted file mode 100644 index 17349491f..000000000 --- a/src/serialization/resources/accounting/types/BankFeedAccountAccountType.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 { BankFeedAccountAccountTypeEnum } from "./BankFeedAccountAccountTypeEnum"; - -export const BankFeedAccountAccountType: core.serialization.Schema< - serializers.accounting.BankFeedAccountAccountType.Raw, - Merge.accounting.BankFeedAccountAccountType -> = core.serialization.undiscriminatedUnion([BankFeedAccountAccountTypeEnum, core.serialization.string()]); - -export declare namespace BankFeedAccountAccountType { - export type Raw = BankFeedAccountAccountTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/BankFeedAccountAccountTypeEnum.ts b/src/serialization/resources/accounting/types/BankFeedAccountAccountTypeEnum.ts deleted file mode 100644 index f32ba0a8d..000000000 --- a/src/serialization/resources/accounting/types/BankFeedAccountAccountTypeEnum.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 BankFeedAccountAccountTypeEnum: core.serialization.Schema< - serializers.accounting.BankFeedAccountAccountTypeEnum.Raw, - Merge.accounting.BankFeedAccountAccountTypeEnum -> = core.serialization.enum_(["BANK", "CREDIT_CARD"]); - -export declare namespace BankFeedAccountAccountTypeEnum { - export type Raw = "BANK" | "CREDIT_CARD"; -} diff --git a/src/serialization/resources/accounting/types/BankFeedAccountCurrency.ts b/src/serialization/resources/accounting/types/BankFeedAccountCurrency.ts deleted file mode 100644 index 106ef7a33..000000000 --- a/src/serialization/resources/accounting/types/BankFeedAccountCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const BankFeedAccountCurrency: core.serialization.Schema< - serializers.accounting.BankFeedAccountCurrency.Raw, - Merge.accounting.BankFeedAccountCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace BankFeedAccountCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/BankFeedAccountFeedStatus.ts b/src/serialization/resources/accounting/types/BankFeedAccountFeedStatus.ts deleted file mode 100644 index 09ca937b3..000000000 --- a/src/serialization/resources/accounting/types/BankFeedAccountFeedStatus.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 { FeedStatusEnum } from "./FeedStatusEnum"; - -export const BankFeedAccountFeedStatus: core.serialization.Schema< - serializers.accounting.BankFeedAccountFeedStatus.Raw, - Merge.accounting.BankFeedAccountFeedStatus -> = core.serialization.undiscriminatedUnion([FeedStatusEnum, core.serialization.string()]); - -export declare namespace BankFeedAccountFeedStatus { - export type Raw = FeedStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/BankFeedAccountRequest.ts b/src/serialization/resources/accounting/types/BankFeedAccountRequest.ts deleted file mode 100644 index b3d238575..000000000 --- a/src/serialization/resources/accounting/types/BankFeedAccountRequest.ts +++ /dev/null @@ -1,49 +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 { BankFeedAccountRequestAccountType } from "./BankFeedAccountRequestAccountType"; -import { BankFeedAccountRequestCurrency } from "./BankFeedAccountRequestCurrency"; -import { BankFeedAccountRequestFeedStatus } from "./BankFeedAccountRequestFeedStatus"; - -export const BankFeedAccountRequest: core.serialization.ObjectSchema< - serializers.accounting.BankFeedAccountRequest.Raw, - Merge.accounting.BankFeedAccountRequest -> = core.serialization.object({ - sourceAccountId: core.serialization.property("source_account_id", core.serialization.string().optional()), - targetAccountId: core.serialization.property("target_account_id", core.serialization.string().optional()), - sourceAccountName: core.serialization.property("source_account_name", core.serialization.string().optional()), - sourceAccountNumber: core.serialization.property("source_account_number", core.serialization.string().optional()), - targetAccountName: core.serialization.property("target_account_name", core.serialization.string().optional()), - currency: BankFeedAccountRequestCurrency.optional(), - feedStatus: core.serialization.property("feed_status", BankFeedAccountRequestFeedStatus.optional()), - feedStartDate: core.serialization.property("feed_start_date", core.serialization.date().optional()), - sourceAccountBalance: core.serialization.property("source_account_balance", core.serialization.number().optional()), - accountType: core.serialization.property("account_type", BankFeedAccountRequestAccountType.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 BankFeedAccountRequest { - export interface Raw { - source_account_id?: string | null; - target_account_id?: string | null; - source_account_name?: string | null; - source_account_number?: string | null; - target_account_name?: string | null; - currency?: BankFeedAccountRequestCurrency.Raw | null; - feed_status?: BankFeedAccountRequestFeedStatus.Raw | null; - feed_start_date?: string | null; - source_account_balance?: number | null; - account_type?: BankFeedAccountRequestAccountType.Raw | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/accounting/types/BankFeedAccountRequestAccountType.ts b/src/serialization/resources/accounting/types/BankFeedAccountRequestAccountType.ts deleted file mode 100644 index fe0e09cce..000000000 --- a/src/serialization/resources/accounting/types/BankFeedAccountRequestAccountType.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 { BankFeedAccountAccountTypeEnum } from "./BankFeedAccountAccountTypeEnum"; - -export const BankFeedAccountRequestAccountType: core.serialization.Schema< - serializers.accounting.BankFeedAccountRequestAccountType.Raw, - Merge.accounting.BankFeedAccountRequestAccountType -> = core.serialization.undiscriminatedUnion([BankFeedAccountAccountTypeEnum, core.serialization.string()]); - -export declare namespace BankFeedAccountRequestAccountType { - export type Raw = BankFeedAccountAccountTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/BankFeedAccountRequestCurrency.ts b/src/serialization/resources/accounting/types/BankFeedAccountRequestCurrency.ts deleted file mode 100644 index eb3320275..000000000 --- a/src/serialization/resources/accounting/types/BankFeedAccountRequestCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const BankFeedAccountRequestCurrency: core.serialization.Schema< - serializers.accounting.BankFeedAccountRequestCurrency.Raw, - Merge.accounting.BankFeedAccountRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace BankFeedAccountRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/BankFeedAccountRequestFeedStatus.ts b/src/serialization/resources/accounting/types/BankFeedAccountRequestFeedStatus.ts deleted file mode 100644 index d95579047..000000000 --- a/src/serialization/resources/accounting/types/BankFeedAccountRequestFeedStatus.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 { FeedStatusEnum } from "./FeedStatusEnum"; - -export const BankFeedAccountRequestFeedStatus: core.serialization.Schema< - serializers.accounting.BankFeedAccountRequestFeedStatus.Raw, - Merge.accounting.BankFeedAccountRequestFeedStatus -> = core.serialization.undiscriminatedUnion([FeedStatusEnum, core.serialization.string()]); - -export declare namespace BankFeedAccountRequestFeedStatus { - export type Raw = FeedStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/BankFeedAccountResponse.ts b/src/serialization/resources/accounting/types/BankFeedAccountResponse.ts deleted file mode 100644 index f8dbaac2d..000000000 --- a/src/serialization/resources/accounting/types/BankFeedAccountResponse.ts +++ /dev/null @@ -1,28 +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 { BankFeedAccount } from "./BankFeedAccount"; -import { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const BankFeedAccountResponse: core.serialization.ObjectSchema< - serializers.accounting.BankFeedAccountResponse.Raw, - Merge.accounting.BankFeedAccountResponse -> = core.serialization.object({ - model: BankFeedAccount, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace BankFeedAccountResponse { - export interface Raw { - model: BankFeedAccount.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/BankFeedTransaction.ts b/src/serialization/resources/accounting/types/BankFeedTransaction.ts deleted file mode 100644 index c627c1248..000000000 --- a/src/serialization/resources/accounting/types/BankFeedTransaction.ts +++ /dev/null @@ -1,48 +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 { BankFeedTransactionBankFeedAccount } from "./BankFeedTransactionBankFeedAccount"; -import { BankFeedTransactionCreditOrDebit } from "./BankFeedTransactionCreditOrDebit"; - -export const BankFeedTransaction: core.serialization.ObjectSchema< - serializers.accounting.BankFeedTransaction.Raw, - Merge.accounting.BankFeedTransaction -> = 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()), - bankFeedAccount: core.serialization.property("bank_feed_account", BankFeedTransactionBankFeedAccount.optional()), - transactionDate: core.serialization.property("transaction_date", core.serialization.date().optional()), - postedDate: core.serialization.property("posted_date", core.serialization.date().optional()), - amount: core.serialization.number().optional(), - description: core.serialization.string().optional(), - transactionType: core.serialization.property("transaction_type", core.serialization.string().optional()), - payee: core.serialization.string().optional(), - creditOrDebit: core.serialization.property("credit_or_debit", BankFeedTransactionCreditOrDebit.optional()), - sourceTransactionId: core.serialization.property("source_transaction_id", core.serialization.string().optional()), - remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), - isProcessed: core.serialization.property("is_processed", core.serialization.boolean().optional()), -}); - -export declare namespace BankFeedTransaction { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - bank_feed_account?: BankFeedTransactionBankFeedAccount.Raw | null; - transaction_date?: string | null; - posted_date?: string | null; - amount?: number | null; - description?: string | null; - transaction_type?: string | null; - payee?: string | null; - credit_or_debit?: BankFeedTransactionCreditOrDebit.Raw | null; - source_transaction_id?: string | null; - remote_was_deleted?: boolean | null; - is_processed?: boolean | null; - } -} diff --git a/src/serialization/resources/accounting/types/BankFeedTransactionBankFeedAccount.ts b/src/serialization/resources/accounting/types/BankFeedTransactionBankFeedAccount.ts deleted file mode 100644 index b929463a2..000000000 --- a/src/serialization/resources/accounting/types/BankFeedTransactionBankFeedAccount.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 { BankFeedAccount } from "./BankFeedAccount"; - -export const BankFeedTransactionBankFeedAccount: core.serialization.Schema< - serializers.accounting.BankFeedTransactionBankFeedAccount.Raw, - Merge.accounting.BankFeedTransactionBankFeedAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), BankFeedAccount]); - -export declare namespace BankFeedTransactionBankFeedAccount { - export type Raw = string | BankFeedAccount.Raw; -} diff --git a/src/serialization/resources/accounting/types/BankFeedTransactionCreditOrDebit.ts b/src/serialization/resources/accounting/types/BankFeedTransactionCreditOrDebit.ts deleted file mode 100644 index cadbe88e4..000000000 --- a/src/serialization/resources/accounting/types/BankFeedTransactionCreditOrDebit.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 { CreditOrDebitEnum } from "./CreditOrDebitEnum"; - -export const BankFeedTransactionCreditOrDebit: core.serialization.Schema< - serializers.accounting.BankFeedTransactionCreditOrDebit.Raw, - Merge.accounting.BankFeedTransactionCreditOrDebit -> = core.serialization.undiscriminatedUnion([CreditOrDebitEnum, core.serialization.string()]); - -export declare namespace BankFeedTransactionCreditOrDebit { - export type Raw = CreditOrDebitEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/BankFeedTransactionRequestRequest.ts b/src/serialization/resources/accounting/types/BankFeedTransactionRequestRequest.ts deleted file mode 100644 index 167c28733..000000000 --- a/src/serialization/resources/accounting/types/BankFeedTransactionRequestRequest.ts +++ /dev/null @@ -1,52 +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 { BankFeedTransactionRequestRequestBankFeedAccount } from "./BankFeedTransactionRequestRequestBankFeedAccount"; -import { BankFeedTransactionRequestRequestCreditOrDebit } from "./BankFeedTransactionRequestRequestCreditOrDebit"; - -export const BankFeedTransactionRequestRequest: core.serialization.ObjectSchema< - serializers.accounting.BankFeedTransactionRequestRequest.Raw, - Merge.accounting.BankFeedTransactionRequestRequest -> = core.serialization.object({ - bankFeedAccount: core.serialization.property( - "bank_feed_account", - BankFeedTransactionRequestRequestBankFeedAccount.optional(), - ), - transactionDate: core.serialization.property("transaction_date", core.serialization.date().optional()), - postedDate: core.serialization.property("posted_date", core.serialization.date().optional()), - amount: core.serialization.number().optional(), - description: core.serialization.string().optional(), - transactionType: core.serialization.property("transaction_type", core.serialization.string().optional()), - payee: core.serialization.string().optional(), - creditOrDebit: core.serialization.property( - "credit_or_debit", - BankFeedTransactionRequestRequestCreditOrDebit.optional(), - ), - sourceTransactionId: core.serialization.property("source_transaction_id", core.serialization.string().optional()), - integrationParams: core.serialization.property( - "integration_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - linkedAccountParams: core.serialization.property( - "linked_account_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), -}); - -export declare namespace BankFeedTransactionRequestRequest { - export interface Raw { - bank_feed_account?: BankFeedTransactionRequestRequestBankFeedAccount.Raw | null; - transaction_date?: string | null; - posted_date?: string | null; - amount?: number | null; - description?: string | null; - transaction_type?: string | null; - payee?: string | null; - credit_or_debit?: BankFeedTransactionRequestRequestCreditOrDebit.Raw | null; - source_transaction_id?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/accounting/types/BankFeedTransactionRequestRequestBankFeedAccount.ts b/src/serialization/resources/accounting/types/BankFeedTransactionRequestRequestBankFeedAccount.ts deleted file mode 100644 index 768ca2037..000000000 --- a/src/serialization/resources/accounting/types/BankFeedTransactionRequestRequestBankFeedAccount.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 { BankFeedAccount } from "./BankFeedAccount"; - -export const BankFeedTransactionRequestRequestBankFeedAccount: core.serialization.Schema< - serializers.accounting.BankFeedTransactionRequestRequestBankFeedAccount.Raw, - Merge.accounting.BankFeedTransactionRequestRequestBankFeedAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), BankFeedAccount]); - -export declare namespace BankFeedTransactionRequestRequestBankFeedAccount { - export type Raw = string | BankFeedAccount.Raw; -} diff --git a/src/serialization/resources/accounting/types/BankFeedTransactionRequestRequestCreditOrDebit.ts b/src/serialization/resources/accounting/types/BankFeedTransactionRequestRequestCreditOrDebit.ts deleted file mode 100644 index 1ebedbdde..000000000 --- a/src/serialization/resources/accounting/types/BankFeedTransactionRequestRequestCreditOrDebit.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 { CreditOrDebitEnum } from "./CreditOrDebitEnum"; - -export const BankFeedTransactionRequestRequestCreditOrDebit: core.serialization.Schema< - serializers.accounting.BankFeedTransactionRequestRequestCreditOrDebit.Raw, - Merge.accounting.BankFeedTransactionRequestRequestCreditOrDebit -> = core.serialization.undiscriminatedUnion([CreditOrDebitEnum, core.serialization.string()]); - -export declare namespace BankFeedTransactionRequestRequestCreditOrDebit { - export type Raw = CreditOrDebitEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/BankFeedTransactionResponse.ts b/src/serialization/resources/accounting/types/BankFeedTransactionResponse.ts deleted file mode 100644 index 075c197f5..000000000 --- a/src/serialization/resources/accounting/types/BankFeedTransactionResponse.ts +++ /dev/null @@ -1,28 +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 { BankFeedTransaction } from "./BankFeedTransaction"; -import { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const BankFeedTransactionResponse: core.serialization.ObjectSchema< - serializers.accounting.BankFeedTransactionResponse.Raw, - Merge.accounting.BankFeedTransactionResponse -> = core.serialization.object({ - model: BankFeedTransaction, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace BankFeedTransactionResponse { - export interface Raw { - model: BankFeedTransaction.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/CashFlowStatement.ts b/src/serialization/resources/accounting/types/CashFlowStatement.ts deleted file mode 100644 index c233f543c..000000000 --- a/src/serialization/resources/accounting/types/CashFlowStatement.ts +++ /dev/null @@ -1,71 +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 { CashFlowStatementCompany } from "./CashFlowStatementCompany"; -import { CashFlowStatementCurrency } from "./CashFlowStatementCurrency"; -import { RemoteData } from "./RemoteData"; -import { ReportItem } from "./ReportItem"; - -export const CashFlowStatement: core.serialization.ObjectSchema< - serializers.accounting.CashFlowStatement.Raw, - Merge.accounting.CashFlowStatement -> = 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()), - name: core.serialization.string().optional(), - currency: CashFlowStatementCurrency.optional(), - company: CashFlowStatementCompany.optional(), - startPeriod: core.serialization.property("start_period", core.serialization.date().optional()), - endPeriod: core.serialization.property("end_period", core.serialization.date().optional()), - cashAtBeginningOfPeriod: core.serialization.property( - "cash_at_beginning_of_period", - core.serialization.number().optional(), - ), - cashAtEndOfPeriod: core.serialization.property("cash_at_end_of_period", core.serialization.number().optional()), - operatingActivities: core.serialization.property( - "operating_activities", - core.serialization.list(ReportItem).optional(), - ), - investingActivities: core.serialization.property( - "investing_activities", - core.serialization.list(ReportItem).optional(), - ), - financingActivities: core.serialization.property( - "financing_activities", - core.serialization.list(ReportItem).optional(), - ), - remoteGeneratedAt: core.serialization.property("remote_generated_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()), -}); - -export declare namespace CashFlowStatement { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - currency?: CashFlowStatementCurrency.Raw | null; - company?: CashFlowStatementCompany.Raw | null; - start_period?: string | null; - end_period?: string | null; - cash_at_beginning_of_period?: number | null; - cash_at_end_of_period?: number | null; - operating_activities?: ReportItem.Raw[] | null; - investing_activities?: ReportItem.Raw[] | null; - financing_activities?: ReportItem.Raw[] | null; - remote_generated_at?: string | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/CashFlowStatementCompany.ts b/src/serialization/resources/accounting/types/CashFlowStatementCompany.ts deleted file mode 100644 index d77a24044..000000000 --- a/src/serialization/resources/accounting/types/CashFlowStatementCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const CashFlowStatementCompany: core.serialization.Schema< - serializers.accounting.CashFlowStatementCompany.Raw, - Merge.accounting.CashFlowStatementCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace CashFlowStatementCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/CashFlowStatementCurrency.ts b/src/serialization/resources/accounting/types/CashFlowStatementCurrency.ts deleted file mode 100644 index 380490ead..000000000 --- a/src/serialization/resources/accounting/types/CashFlowStatementCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const CashFlowStatementCurrency: core.serialization.Schema< - serializers.accounting.CashFlowStatementCurrency.Raw, - Merge.accounting.CashFlowStatementCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace CashFlowStatementCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/CategoriesEnum.ts b/src/serialization/resources/accounting/types/CategoriesEnum.ts deleted file mode 100644 index c41907a72..000000000 --- a/src/serialization/resources/accounting/types/CategoriesEnum.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 CategoriesEnum: core.serialization.Schema< - serializers.accounting.CategoriesEnum.Raw, - Merge.accounting.CategoriesEnum -> = core.serialization.enum_(["hris", "ats", "accounting", "ticketing", "crm", "mktg", "filestorage"]); - -export declare namespace CategoriesEnum { - export type Raw = "hris" | "ats" | "accounting" | "ticketing" | "crm" | "mktg" | "filestorage"; -} diff --git a/src/serialization/resources/accounting/types/CategoryEnum.ts b/src/serialization/resources/accounting/types/CategoryEnum.ts deleted file mode 100644 index ef053bdc9..000000000 --- a/src/serialization/resources/accounting/types/CategoryEnum.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 CategoryEnum: core.serialization.Schema< - serializers.accounting.CategoryEnum.Raw, - Merge.accounting.CategoryEnum -> = core.serialization.enum_(["hris", "ats", "accounting", "ticketing", "crm", "mktg", "filestorage"]); - -export declare namespace CategoryEnum { - export type Raw = "hris" | "ats" | "accounting" | "ticketing" | "crm" | "mktg" | "filestorage"; -} diff --git a/src/serialization/resources/accounting/types/CategoryTypeEnum.ts b/src/serialization/resources/accounting/types/CategoryTypeEnum.ts deleted file mode 100644 index 2ee17657b..000000000 --- a/src/serialization/resources/accounting/types/CategoryTypeEnum.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 CategoryTypeEnum: core.serialization.Schema< - serializers.accounting.CategoryTypeEnum.Raw, - Merge.accounting.CategoryTypeEnum -> = core.serialization.enum_(["CLASS", "DEPARTMENT"]); - -export declare namespace CategoryTypeEnum { - export type Raw = "CLASS" | "DEPARTMENT"; -} diff --git a/src/serialization/resources/accounting/types/ClassificationEnum.ts b/src/serialization/resources/accounting/types/ClassificationEnum.ts deleted file mode 100644 index 0297ff293..000000000 --- a/src/serialization/resources/accounting/types/ClassificationEnum.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 ClassificationEnum: core.serialization.Schema< - serializers.accounting.ClassificationEnum.Raw, - Merge.accounting.ClassificationEnum -> = core.serialization.enum_(["ASSET", "EQUITY", "EXPENSE", "LIABILITY", "REVENUE"]); - -export declare namespace ClassificationEnum { - export type Raw = "ASSET" | "EQUITY" | "EXPENSE" | "LIABILITY" | "REVENUE"; -} diff --git a/src/serialization/resources/accounting/types/CommonModelScopeApi.ts b/src/serialization/resources/accounting/types/CommonModelScopeApi.ts deleted file mode 100644 index 7db5089e7..000000000 --- a/src/serialization/resources/accounting/types/CommonModelScopeApi.ts +++ /dev/null @@ -1,22 +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 { IndividualCommonModelScopeDeserializer } from "./IndividualCommonModelScopeDeserializer"; - -export const CommonModelScopeApi: core.serialization.ObjectSchema< - serializers.accounting.CommonModelScopeApi.Raw, - Merge.accounting.CommonModelScopeApi -> = core.serialization.object({ - commonModels: core.serialization.property( - "common_models", - core.serialization.list(IndividualCommonModelScopeDeserializer), - ), -}); - -export declare namespace CommonModelScopeApi { - export interface Raw { - common_models: IndividualCommonModelScopeDeserializer.Raw[]; - } -} diff --git a/src/serialization/resources/accounting/types/CommonModelScopesBodyRequest.ts b/src/serialization/resources/accounting/types/CommonModelScopesBodyRequest.ts deleted file mode 100644 index 09775c3c3..000000000 --- a/src/serialization/resources/accounting/types/CommonModelScopesBodyRequest.ts +++ /dev/null @@ -1,26 +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 { EnabledActionsEnum } from "./EnabledActionsEnum"; - -export const CommonModelScopesBodyRequest: core.serialization.ObjectSchema< - serializers.accounting.CommonModelScopesBodyRequest.Raw, - Merge.accounting.CommonModelScopesBodyRequest -> = core.serialization.object({ - modelId: core.serialization.property("model_id", core.serialization.string()), - enabledActions: core.serialization.property("enabled_actions", core.serialization.list(EnabledActionsEnum)), - disabledFields: core.serialization.property( - "disabled_fields", - core.serialization.list(core.serialization.string()), - ), -}); - -export declare namespace CommonModelScopesBodyRequest { - export interface Raw { - model_id: string; - enabled_actions: EnabledActionsEnum.Raw[]; - disabled_fields: string[]; - } -} diff --git a/src/serialization/resources/accounting/types/CompanyInfo.ts b/src/serialization/resources/accounting/types/CompanyInfo.ts deleted file mode 100644 index 113d175b9..000000000 --- a/src/serialization/resources/accounting/types/CompanyInfo.ts +++ /dev/null @@ -1,60 +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 { AccountingPhoneNumber } from "./AccountingPhoneNumber"; -import { Address } from "./Address"; -import { CompanyInfoCurrency } from "./CompanyInfoCurrency"; -import { RemoteData } from "./RemoteData"; - -export const CompanyInfo: core.serialization.ObjectSchema< - serializers.accounting.CompanyInfo.Raw, - Merge.accounting.CompanyInfo -> = 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()), - name: core.serialization.string().optional(), - legalName: core.serialization.property("legal_name", core.serialization.string().optional()), - taxNumber: core.serialization.property("tax_number", core.serialization.string().optional()), - fiscalYearEndMonth: core.serialization.property("fiscal_year_end_month", core.serialization.number().optional()), - fiscalYearEndDay: core.serialization.property("fiscal_year_end_day", core.serialization.number().optional()), - 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(), - phoneNumbers: core.serialization.property( - "phone_numbers", - core.serialization.list(AccountingPhoneNumber).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()), -}); - -export declare namespace CompanyInfo { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - legal_name?: string | null; - tax_number?: string | null; - fiscal_year_end_month?: number | null; - fiscal_year_end_day?: number | null; - currency?: CompanyInfoCurrency.Raw | null; - remote_created_at?: string | null; - urls?: (string | null | undefined)[] | null; - addresses?: Address.Raw[] | null; - phone_numbers?: AccountingPhoneNumber.Raw[] | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/CompanyInfoCurrency.ts b/src/serialization/resources/accounting/types/CompanyInfoCurrency.ts deleted file mode 100644 index 12c907017..000000000 --- a/src/serialization/resources/accounting/types/CompanyInfoCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const CompanyInfoCurrency: core.serialization.Schema< - serializers.accounting.CompanyInfoCurrency.Raw, - Merge.accounting.CompanyInfoCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace CompanyInfoCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/ComponentTypeEnum.ts b/src/serialization/resources/accounting/types/ComponentTypeEnum.ts deleted file mode 100644 index a1d62ac3b..000000000 --- a/src/serialization/resources/accounting/types/ComponentTypeEnum.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 ComponentTypeEnum: core.serialization.Schema< - serializers.accounting.ComponentTypeEnum.Raw, - Merge.accounting.ComponentTypeEnum -> = core.serialization.enum_(["SALES", "PURCHASE"]); - -export declare namespace ComponentTypeEnum { - export type Raw = "SALES" | "PURCHASE"; -} diff --git a/src/serialization/resources/accounting/types/Contact.ts b/src/serialization/resources/accounting/types/Contact.ts deleted file mode 100644 index a877e7ef0..000000000 --- a/src/serialization/resources/accounting/types/Contact.ts +++ /dev/null @@ -1,63 +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 { AccountingPhoneNumber } from "./AccountingPhoneNumber"; -import { ContactAddressesItem } from "./ContactAddressesItem"; -import { ContactStatus } from "./ContactStatus"; -import { RemoteData } from "./RemoteData"; -import { RemoteField } from "./RemoteField"; - -export const Contact: core.serialization.ObjectSchema = - 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()), - name: core.serialization.string().optional(), - isSupplier: core.serialization.property("is_supplier", core.serialization.boolean().optional()), - 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: ContactStatus.optional(), - currency: core.serialization.string().optional(), - remoteUpdatedAt: core.serialization.property("remote_updated_at", core.serialization.date().optional()), - company: core.serialization.string().optional(), - addresses: core.serialization.list(ContactAddressesItem.optional()).optional(), - phoneNumbers: core.serialization.property( - "phone_numbers", - core.serialization.list(AccountingPhoneNumber).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 Contact { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - is_supplier?: boolean | null; - is_customer?: boolean | null; - email_address?: string | null; - tax_number?: string | null; - status?: ContactStatus.Raw | null; - currency?: string | null; - remote_updated_at?: string | null; - company?: string | null; - addresses?: (ContactAddressesItem.Raw | null | undefined)[] | null; - phone_numbers?: AccountingPhoneNumber.Raw[] | 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/ContactAddressesItem.ts b/src/serialization/resources/accounting/types/ContactAddressesItem.ts deleted file mode 100644 index 3176312f7..000000000 --- a/src/serialization/resources/accounting/types/ContactAddressesItem.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { Address } from "./Address"; - -export const ContactAddressesItem: core.serialization.Schema< - serializers.accounting.ContactAddressesItem.Raw, - Merge.accounting.ContactAddressesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Address]); - -export declare namespace ContactAddressesItem { - export type Raw = string | Address.Raw; -} diff --git a/src/serialization/resources/accounting/types/ContactRequest.ts b/src/serialization/resources/accounting/types/ContactRequest.ts deleted file mode 100644 index c907d3c9a..000000000 --- a/src/serialization/resources/accounting/types/ContactRequest.ts +++ /dev/null @@ -1,55 +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 { AccountingPhoneNumberRequest } from "./AccountingPhoneNumberRequest"; -import { ContactRequestAddressesItem } from "./ContactRequestAddressesItem"; -import { ContactRequestStatus } from "./ContactRequestStatus"; -import { RemoteFieldRequest } from "./RemoteFieldRequest"; - -export const ContactRequest: core.serialization.ObjectSchema< - serializers.accounting.ContactRequest.Raw, - Merge.accounting.ContactRequest -> = core.serialization.object({ - name: core.serialization.string().optional(), - isSupplier: core.serialization.property("is_supplier", core.serialization.boolean().optional()), - 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: ContactRequestStatus.optional(), - currency: core.serialization.string().optional(), - company: core.serialization.string().optional(), - addresses: core.serialization.list(ContactRequestAddressesItem.optional()).optional(), - phoneNumbers: core.serialization.property( - "phone_numbers", - core.serialization.list(AccountingPhoneNumberRequest).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 ContactRequest { - export interface Raw { - name?: string | null; - is_supplier?: boolean | null; - is_customer?: boolean | null; - email_address?: string | null; - 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; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/ContactRequestAddressesItem.ts b/src/serialization/resources/accounting/types/ContactRequestAddressesItem.ts deleted file mode 100644 index 111ed8199..000000000 --- a/src/serialization/resources/accounting/types/ContactRequestAddressesItem.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { Address } from "./Address"; - -export const ContactRequestAddressesItem: core.serialization.Schema< - serializers.accounting.ContactRequestAddressesItem.Raw, - Merge.accounting.ContactRequestAddressesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Address]); - -export declare namespace ContactRequestAddressesItem { - export type Raw = string | Address.Raw; -} diff --git a/src/serialization/resources/accounting/types/ContactRequestStatus.ts b/src/serialization/resources/accounting/types/ContactRequestStatus.ts deleted file mode 100644 index 8bce7e785..000000000 --- a/src/serialization/resources/accounting/types/ContactRequestStatus.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 { Status7D1Enum } from "./Status7D1Enum"; - -export const ContactRequestStatus: core.serialization.Schema< - serializers.accounting.ContactRequestStatus.Raw, - Merge.accounting.ContactRequestStatus -> = core.serialization.undiscriminatedUnion([Status7D1Enum, core.serialization.string()]); - -export declare namespace ContactRequestStatus { - export type Raw = Status7D1Enum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/ContactResponse.ts b/src/serialization/resources/accounting/types/ContactResponse.ts deleted file mode 100644 index 2ff031b19..000000000 --- a/src/serialization/resources/accounting/types/ContactResponse.ts +++ /dev/null @@ -1,28 +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 { Contact } from "./Contact"; -import { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const ContactResponse: core.serialization.ObjectSchema< - serializers.accounting.ContactResponse.Raw, - Merge.accounting.ContactResponse -> = core.serialization.object({ - model: Contact, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace ContactResponse { - export interface Raw { - model: Contact.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/ContactStatus.ts b/src/serialization/resources/accounting/types/ContactStatus.ts deleted file mode 100644 index 559206d62..000000000 --- a/src/serialization/resources/accounting/types/ContactStatus.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 { Status7D1Enum } from "./Status7D1Enum"; - -export const ContactStatus: core.serialization.Schema< - serializers.accounting.ContactStatus.Raw, - Merge.accounting.ContactStatus -> = core.serialization.undiscriminatedUnion([Status7D1Enum, core.serialization.string()]); - -export declare namespace ContactStatus { - export type Raw = Status7D1Enum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/CountryEnum.ts b/src/serialization/resources/accounting/types/CountryEnum.ts deleted file mode 100644 index f2ee6a497..000000000 --- a/src/serialization/resources/accounting/types/CountryEnum.ts +++ /dev/null @@ -1,513 +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 CountryEnum: core.serialization.Schema< - serializers.accounting.CountryEnum.Raw, - Merge.accounting.CountryEnum -> = core.serialization.enum_([ - "AF", - "AX", - "AL", - "DZ", - "AS", - "AD", - "AO", - "AI", - "AQ", - "AG", - "AR", - "AM", - "AW", - "AU", - "AT", - "AZ", - "BS", - "BH", - "BD", - "BB", - "BY", - "BE", - "BZ", - "BJ", - "BM", - "BT", - "BO", - "BQ", - "BA", - "BW", - "BV", - "BR", - "IO", - "BN", - "BG", - "BF", - "BI", - "CV", - "KH", - "CM", - "CA", - "KY", - "CF", - "TD", - "CL", - "CN", - "CX", - "CC", - "CO", - "KM", - "CG", - "CD", - "CK", - "CR", - "CI", - "HR", - "CU", - "CW", - "CY", - "CZ", - "DK", - "DJ", - "DM", - "DO", - "EC", - "EG", - "SV", - "GQ", - "ER", - "EE", - "SZ", - "ET", - "FK", - "FO", - "FJ", - "FI", - "FR", - "GF", - "PF", - "TF", - "GA", - "GM", - "GE", - "DE", - "GH", - "GI", - "GR", - "GL", - "GD", - "GP", - "GU", - "GT", - "GG", - "GN", - "GW", - "GY", - "HT", - "HM", - "VA", - "HN", - "HK", - "HU", - "IS", - "IN", - "ID", - "IR", - "IQ", - "IE", - "IM", - "IL", - "IT", - "JM", - "JP", - "JE", - "JO", - "KZ", - "KE", - "KI", - "KW", - "KG", - "LA", - "LV", - "LB", - "LS", - "LR", - "LY", - "LI", - "LT", - "LU", - "MO", - "MG", - "MW", - "MY", - "MV", - "ML", - "MT", - "MH", - "MQ", - "MR", - "MU", - "YT", - "MX", - "FM", - "MD", - "MC", - "MN", - "ME", - "MS", - "MA", - "MZ", - "MM", - "NA", - "NR", - "NP", - "NL", - "NC", - "NZ", - "NI", - "NE", - "NG", - "NU", - "NF", - "KP", - "MK", - "MP", - "NO", - "OM", - "PK", - "PW", - "PS", - "PA", - "PG", - "PY", - "PE", - "PH", - "PN", - "PL", - "PT", - "PR", - "QA", - "RE", - "RO", - "RU", - "RW", - "BL", - "SH", - "KN", - "LC", - "MF", - "PM", - "VC", - "WS", - "SM", - "ST", - "SA", - "SN", - "RS", - "SC", - "SL", - "SG", - "SX", - "SK", - "SI", - "SB", - "SO", - "ZA", - "GS", - "KR", - "SS", - "ES", - "LK", - "SD", - "SR", - "SJ", - "SE", - "CH", - "SY", - "TW", - "TJ", - "TZ", - "TH", - "TL", - "TG", - "TK", - "TO", - "TT", - "TN", - "TR", - "TM", - "TC", - "TV", - "UG", - "UA", - "AE", - "GB", - "UM", - "US", - "UY", - "UZ", - "VU", - "VE", - "VN", - "VG", - "VI", - "WF", - "EH", - "YE", - "ZM", - "ZW", -]); - -export declare namespace CountryEnum { - export type Raw = - | "AF" - | "AX" - | "AL" - | "DZ" - | "AS" - | "AD" - | "AO" - | "AI" - | "AQ" - | "AG" - | "AR" - | "AM" - | "AW" - | "AU" - | "AT" - | "AZ" - | "BS" - | "BH" - | "BD" - | "BB" - | "BY" - | "BE" - | "BZ" - | "BJ" - | "BM" - | "BT" - | "BO" - | "BQ" - | "BA" - | "BW" - | "BV" - | "BR" - | "IO" - | "BN" - | "BG" - | "BF" - | "BI" - | "CV" - | "KH" - | "CM" - | "CA" - | "KY" - | "CF" - | "TD" - | "CL" - | "CN" - | "CX" - | "CC" - | "CO" - | "KM" - | "CG" - | "CD" - | "CK" - | "CR" - | "CI" - | "HR" - | "CU" - | "CW" - | "CY" - | "CZ" - | "DK" - | "DJ" - | "DM" - | "DO" - | "EC" - | "EG" - | "SV" - | "GQ" - | "ER" - | "EE" - | "SZ" - | "ET" - | "FK" - | "FO" - | "FJ" - | "FI" - | "FR" - | "GF" - | "PF" - | "TF" - | "GA" - | "GM" - | "GE" - | "DE" - | "GH" - | "GI" - | "GR" - | "GL" - | "GD" - | "GP" - | "GU" - | "GT" - | "GG" - | "GN" - | "GW" - | "GY" - | "HT" - | "HM" - | "VA" - | "HN" - | "HK" - | "HU" - | "IS" - | "IN" - | "ID" - | "IR" - | "IQ" - | "IE" - | "IM" - | "IL" - | "IT" - | "JM" - | "JP" - | "JE" - | "JO" - | "KZ" - | "KE" - | "KI" - | "KW" - | "KG" - | "LA" - | "LV" - | "LB" - | "LS" - | "LR" - | "LY" - | "LI" - | "LT" - | "LU" - | "MO" - | "MG" - | "MW" - | "MY" - | "MV" - | "ML" - | "MT" - | "MH" - | "MQ" - | "MR" - | "MU" - | "YT" - | "MX" - | "FM" - | "MD" - | "MC" - | "MN" - | "ME" - | "MS" - | "MA" - | "MZ" - | "MM" - | "NA" - | "NR" - | "NP" - | "NL" - | "NC" - | "NZ" - | "NI" - | "NE" - | "NG" - | "NU" - | "NF" - | "KP" - | "MK" - | "MP" - | "NO" - | "OM" - | "PK" - | "PW" - | "PS" - | "PA" - | "PG" - | "PY" - | "PE" - | "PH" - | "PN" - | "PL" - | "PT" - | "PR" - | "QA" - | "RE" - | "RO" - | "RU" - | "RW" - | "BL" - | "SH" - | "KN" - | "LC" - | "MF" - | "PM" - | "VC" - | "WS" - | "SM" - | "ST" - | "SA" - | "SN" - | "RS" - | "SC" - | "SL" - | "SG" - | "SX" - | "SK" - | "SI" - | "SB" - | "SO" - | "ZA" - | "GS" - | "KR" - | "SS" - | "ES" - | "LK" - | "SD" - | "SR" - | "SJ" - | "SE" - | "CH" - | "SY" - | "TW" - | "TJ" - | "TZ" - | "TH" - | "TL" - | "TG" - | "TK" - | "TO" - | "TT" - | "TN" - | "TR" - | "TM" - | "TC" - | "TV" - | "UG" - | "UA" - | "AE" - | "GB" - | "UM" - | "US" - | "UY" - | "UZ" - | "VU" - | "VE" - | "VN" - | "VG" - | "VI" - | "WF" - | "EH" - | "YE" - | "ZM" - | "ZW"; -} diff --git a/src/serialization/resources/accounting/types/CreditNote.ts b/src/serialization/resources/accounting/types/CreditNote.ts deleted file mode 100644 index d0d7c699f..000000000 --- a/src/serialization/resources/accounting/types/CreditNote.ts +++ /dev/null @@ -1,90 +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 * as serializers from "../../../index"; -import { CreditNoteAccountingPeriod } from "./CreditNoteAccountingPeriod"; -import { CreditNoteAppliedPaymentsItem } from "./CreditNoteAppliedPaymentsItem"; -import { CreditNoteCompany } from "./CreditNoteCompany"; -import { CreditNoteContact } from "./CreditNoteContact"; -import { CreditNoteCurrency } from "./CreditNoteCurrency"; -import { CreditNoteLineItem } from "./CreditNoteLineItem"; -import { CreditNotePaymentsItem } from "./CreditNotePaymentsItem"; -import { CreditNoteStatus } from "./CreditNoteStatus"; -import { CreditNoteTrackingCategoriesItem } from "./CreditNoteTrackingCategoriesItem"; -import { RemoteData } from "./RemoteData"; - -export const CreditNote: core.serialization.ObjectSchema< - serializers.accounting.CreditNote.Raw, - Merge.accounting.CreditNote -> = 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()), - transactionDate: core.serialization.property("transaction_date", core.serialization.date().optional()), - status: CreditNoteStatus.optional(), - number: core.serialization.string().optional(), - contact: CreditNoteContact.optional(), - company: CreditNoteCompany.optional(), - exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), - 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()), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(CreditNoteTrackingCategoriesItem.optional()).optional(), - ), - currency: CreditNoteCurrency.optional(), - remoteCreatedAt: core.serialization.property("remote_created_at", core.serialization.date().optional()), - remoteUpdatedAt: core.serialization.property("remote_updated_at", core.serialization.date().optional()), - payments: core.serialization.list(CreditNotePaymentsItem.optional()).optional(), - appliedPayments: core.serialization.property( - "applied_payments", - core.serialization.list(CreditNoteAppliedPaymentsItem.optional()).optional(), - ), - accountingPeriod: core.serialization.property("accounting_period", CreditNoteAccountingPeriod.optional()), - appliedToLines: core.serialization.property( - "applied_to_lines", - core.serialization - .list(core.serialization.lazyObject(() => serializers.accounting.CreditNoteApplyLineForCreditNote)) - .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()), -}); - -export declare namespace CreditNote { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - transaction_date?: string | null; - status?: CreditNoteStatus.Raw | null; - number?: string | null; - contact?: CreditNoteContact.Raw | null; - company?: CreditNoteCompany.Raw | null; - exchange_rate?: string | null; - total_amount?: number | null; - remaining_credit?: number | null; - inclusive_of_tax?: boolean | null; - line_items?: CreditNoteLineItem.Raw[] | null; - tracking_categories?: (CreditNoteTrackingCategoriesItem.Raw | null | undefined)[] | null; - currency?: CreditNoteCurrency.Raw | null; - remote_created_at?: string | null; - remote_updated_at?: string | null; - payments?: (CreditNotePaymentsItem.Raw | null | undefined)[] | null; - applied_payments?: (CreditNoteAppliedPaymentsItem.Raw | null | undefined)[] | null; - accounting_period?: CreditNoteAccountingPeriod.Raw | null; - applied_to_lines?: serializers.accounting.CreditNoteApplyLineForCreditNote.Raw[] | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/CreditNoteAccountingPeriod.ts b/src/serialization/resources/accounting/types/CreditNoteAccountingPeriod.ts deleted file mode 100644 index 3e92138d6..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteAccountingPeriod.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 { AccountingPeriod } from "./AccountingPeriod"; - -export const CreditNoteAccountingPeriod: core.serialization.Schema< - serializers.accounting.CreditNoteAccountingPeriod.Raw, - Merge.accounting.CreditNoteAccountingPeriod -> = core.serialization.undiscriminatedUnion([core.serialization.string(), AccountingPeriod]); - -export declare namespace CreditNoteAccountingPeriod { - export type Raw = string | AccountingPeriod.Raw; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteAppliedPaymentsItem.ts b/src/serialization/resources/accounting/types/CreditNoteAppliedPaymentsItem.ts deleted file mode 100644 index 6b545d4a0..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteAppliedPaymentsItem.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 { PaymentLineItem } from "./PaymentLineItem"; - -export const CreditNoteAppliedPaymentsItem: core.serialization.Schema< - serializers.accounting.CreditNoteAppliedPaymentsItem.Raw, - Merge.accounting.CreditNoteAppliedPaymentsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), PaymentLineItem]); - -export declare namespace CreditNoteAppliedPaymentsItem { - export type Raw = string | PaymentLineItem.Raw; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteApplyLineForCreditNote.ts b/src/serialization/resources/accounting/types/CreditNoteApplyLineForCreditNote.ts deleted file mode 100644 index 96d6dc0b4..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteApplyLineForCreditNote.ts +++ /dev/null @@ -1,30 +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 * as serializers from "../../../index"; - -export const CreditNoteApplyLineForCreditNote: core.serialization.ObjectSchema< - serializers.accounting.CreditNoteApplyLineForCreditNote.Raw, - Merge.accounting.CreditNoteApplyLineForCreditNote -> = core.serialization.object({ - 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()), - invoice: core.serialization.lazy(() => serializers.accounting.CreditNoteApplyLineForCreditNoteInvoice).optional(), - appliedDate: core.serialization.property("applied_date", core.serialization.date().optional()), - appliedAmount: core.serialization.property("applied_amount", core.serialization.string().optional()), - remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), -}); - -export declare namespace CreditNoteApplyLineForCreditNote { - export interface Raw { - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - invoice?: serializers.accounting.CreditNoteApplyLineForCreditNoteInvoice.Raw | null; - applied_date?: string | null; - applied_amount?: string | null; - remote_was_deleted?: boolean | null; - } -} diff --git a/src/serialization/resources/accounting/types/CreditNoteApplyLineForCreditNoteInvoice.ts b/src/serialization/resources/accounting/types/CreditNoteApplyLineForCreditNoteInvoice.ts deleted file mode 100644 index ed43cd05b..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteApplyLineForCreditNoteInvoice.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const CreditNoteApplyLineForCreditNoteInvoice: core.serialization.Schema< - serializers.accounting.CreditNoteApplyLineForCreditNoteInvoice.Raw, - Merge.accounting.CreditNoteApplyLineForCreditNoteInvoice -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.accounting.Invoice), -]); - -export declare namespace CreditNoteApplyLineForCreditNoteInvoice { - export type Raw = string | serializers.accounting.Invoice.Raw; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteApplyLineForCreditNoteRequest.ts b/src/serialization/resources/accounting/types/CreditNoteApplyLineForCreditNoteRequest.ts deleted file mode 100644 index 93a9fda30..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteApplyLineForCreditNoteRequest.ts +++ /dev/null @@ -1,35 +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 { CreditNoteApplyLineForCreditNoteRequestInvoice } from "./CreditNoteApplyLineForCreditNoteRequestInvoice"; - -export const CreditNoteApplyLineForCreditNoteRequest: core.serialization.ObjectSchema< - serializers.accounting.CreditNoteApplyLineForCreditNoteRequest.Raw, - Merge.accounting.CreditNoteApplyLineForCreditNoteRequest -> = core.serialization.object({ - remoteId: core.serialization.property("remote_id", core.serialization.string().optional()), - invoice: CreditNoteApplyLineForCreditNoteRequestInvoice.optional(), - appliedDate: core.serialization.property("applied_date", core.serialization.date().optional()), - appliedAmount: core.serialization.property("applied_amount", core.serialization.string().optional()), - integrationParams: core.serialization.property( - "integration_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - linkedAccountParams: core.serialization.property( - "linked_account_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), -}); - -export declare namespace CreditNoteApplyLineForCreditNoteRequest { - export interface Raw { - remote_id?: string | null; - invoice?: CreditNoteApplyLineForCreditNoteRequestInvoice.Raw | null; - applied_date?: string | null; - applied_amount?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/accounting/types/CreditNoteApplyLineForCreditNoteRequestInvoice.ts b/src/serialization/resources/accounting/types/CreditNoteApplyLineForCreditNoteRequestInvoice.ts deleted file mode 100644 index c05ab3515..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteApplyLineForCreditNoteRequestInvoice.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const CreditNoteApplyLineForCreditNoteRequestInvoice: core.serialization.Schema< - serializers.accounting.CreditNoteApplyLineForCreditNoteRequestInvoice.Raw, - Merge.accounting.CreditNoteApplyLineForCreditNoteRequestInvoice -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.accounting.Invoice), -]); - -export declare namespace CreditNoteApplyLineForCreditNoteRequestInvoice { - export type Raw = string | serializers.accounting.Invoice.Raw; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteApplyLineForInvoice.ts b/src/serialization/resources/accounting/types/CreditNoteApplyLineForInvoice.ts deleted file mode 100644 index 407c4c990..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteApplyLineForInvoice.ts +++ /dev/null @@ -1,33 +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 * as serializers from "../../../index"; - -export const CreditNoteApplyLineForInvoice: core.serialization.ObjectSchema< - serializers.accounting.CreditNoteApplyLineForInvoice.Raw, - Merge.accounting.CreditNoteApplyLineForInvoice -> = core.serialization.object({ - 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()), - creditNote: core.serialization.property( - "credit_note", - core.serialization.lazy(() => serializers.accounting.CreditNoteApplyLineForInvoiceCreditNote).optional(), - ), - appliedDate: core.serialization.property("applied_date", core.serialization.date().optional()), - appliedAmount: core.serialization.property("applied_amount", core.serialization.string().optional()), - remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), -}); - -export declare namespace CreditNoteApplyLineForInvoice { - export interface Raw { - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - credit_note?: serializers.accounting.CreditNoteApplyLineForInvoiceCreditNote.Raw | null; - applied_date?: string | null; - applied_amount?: string | null; - remote_was_deleted?: boolean | null; - } -} diff --git a/src/serialization/resources/accounting/types/CreditNoteApplyLineForInvoiceCreditNote.ts b/src/serialization/resources/accounting/types/CreditNoteApplyLineForInvoiceCreditNote.ts deleted file mode 100644 index 324388cb7..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteApplyLineForInvoiceCreditNote.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const CreditNoteApplyLineForInvoiceCreditNote: core.serialization.Schema< - serializers.accounting.CreditNoteApplyLineForInvoiceCreditNote.Raw, - Merge.accounting.CreditNoteApplyLineForInvoiceCreditNote -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.accounting.CreditNote), -]); - -export declare namespace CreditNoteApplyLineForInvoiceCreditNote { - export type Raw = string | serializers.accounting.CreditNote.Raw; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteCompany.ts b/src/serialization/resources/accounting/types/CreditNoteCompany.ts deleted file mode 100644 index f1c2beb16..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const CreditNoteCompany: core.serialization.Schema< - serializers.accounting.CreditNoteCompany.Raw, - Merge.accounting.CreditNoteCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace CreditNoteCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteContact.ts b/src/serialization/resources/accounting/types/CreditNoteContact.ts deleted file mode 100644 index 8e0a6ef01..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteContact.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 { Contact } from "./Contact"; - -export const CreditNoteContact: core.serialization.Schema< - serializers.accounting.CreditNoteContact.Raw, - Merge.accounting.CreditNoteContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace CreditNoteContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteCurrency.ts b/src/serialization/resources/accounting/types/CreditNoteCurrency.ts deleted file mode 100644 index 68bf27901..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const CreditNoteCurrency: core.serialization.Schema< - serializers.accounting.CreditNoteCurrency.Raw, - Merge.accounting.CreditNoteCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace CreditNoteCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteLineItem.ts b/src/serialization/resources/accounting/types/CreditNoteLineItem.ts deleted file mode 100644 index 6901461cc..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteLineItem.ts +++ /dev/null @@ -1,61 +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 { CreditNoteLineItemCompany } from "./CreditNoteLineItemCompany"; -import { CreditNoteLineItemContact } from "./CreditNoteLineItemContact"; -import { CreditNoteLineItemItem } from "./CreditNoteLineItemItem"; -import { CreditNoteLineItemProject } from "./CreditNoteLineItemProject"; - -export const CreditNoteLineItem: core.serialization.ObjectSchema< - serializers.accounting.CreditNoteLineItem.Raw, - Merge.accounting.CreditNoteLineItem -> = 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: CreditNoteLineItemItem.optional(), - name: core.serialization.string().optional(), - description: core.serialization.string().optional(), - quantity: core.serialization.string().optional(), - memo: core.serialization.string().optional(), - unitPrice: core.serialization.property("unit_price", core.serialization.string().optional()), - taxRate: core.serialization.property("tax_rate", core.serialization.string().optional()), - totalLineAmount: core.serialization.property("total_line_amount", core.serialization.string().optional()), - trackingCategory: core.serialization.property("tracking_category", core.serialization.string().optional()), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(core.serialization.string().optional()).optional(), - ), - account: core.serialization.string().optional(), - company: CreditNoteLineItemCompany.optional(), - contact: CreditNoteLineItemContact.optional(), - project: CreditNoteLineItemProject.optional(), - remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), -}); - -export declare namespace CreditNoteLineItem { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - item?: CreditNoteLineItemItem.Raw | null; - name?: string | null; - description?: string | null; - quantity?: string | null; - memo?: string | null; - unit_price?: string | null; - tax_rate?: string | null; - total_line_amount?: string | null; - tracking_category?: string | null; - tracking_categories?: (string | null | undefined)[] | null; - account?: string | null; - company?: CreditNoteLineItemCompany.Raw | null; - contact?: CreditNoteLineItemContact.Raw | null; - project?: CreditNoteLineItemProject.Raw | null; - remote_was_deleted?: boolean | null; - } -} diff --git a/src/serialization/resources/accounting/types/CreditNoteLineItemCompany.ts b/src/serialization/resources/accounting/types/CreditNoteLineItemCompany.ts deleted file mode 100644 index 3de6dda6b..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteLineItemCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const CreditNoteLineItemCompany: core.serialization.Schema< - serializers.accounting.CreditNoteLineItemCompany.Raw, - Merge.accounting.CreditNoteLineItemCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace CreditNoteLineItemCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteLineItemContact.ts b/src/serialization/resources/accounting/types/CreditNoteLineItemContact.ts deleted file mode 100644 index cd675136e..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteLineItemContact.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 { Contact } from "./Contact"; - -export const CreditNoteLineItemContact: core.serialization.Schema< - serializers.accounting.CreditNoteLineItemContact.Raw, - Merge.accounting.CreditNoteLineItemContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace CreditNoteLineItemContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteLineItemItem.ts b/src/serialization/resources/accounting/types/CreditNoteLineItemItem.ts deleted file mode 100644 index 8655457cf..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteLineItemItem.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 { Item } from "./Item"; - -export const CreditNoteLineItemItem: core.serialization.Schema< - serializers.accounting.CreditNoteLineItemItem.Raw, - Merge.accounting.CreditNoteLineItemItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Item]); - -export declare namespace CreditNoteLineItemItem { - export type Raw = string | Item.Raw; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteLineItemProject.ts b/src/serialization/resources/accounting/types/CreditNoteLineItemProject.ts deleted file mode 100644 index 5d7b622ff..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteLineItemProject.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 { Project } from "./Project"; - -export const CreditNoteLineItemProject: core.serialization.Schema< - serializers.accounting.CreditNoteLineItemProject.Raw, - Merge.accounting.CreditNoteLineItemProject -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Project]); - -export declare namespace CreditNoteLineItemProject { - export type Raw = string | Project.Raw; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteLineItemRequest.ts b/src/serialization/resources/accounting/types/CreditNoteLineItemRequest.ts deleted file mode 100644 index f907b8e7d..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteLineItemRequest.ts +++ /dev/null @@ -1,63 +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 { CreditNoteLineItemRequestCompany } from "./CreditNoteLineItemRequestCompany"; -import { CreditNoteLineItemRequestContact } from "./CreditNoteLineItemRequestContact"; -import { CreditNoteLineItemRequestItem } from "./CreditNoteLineItemRequestItem"; -import { CreditNoteLineItemRequestProject } from "./CreditNoteLineItemRequestProject"; - -export const CreditNoteLineItemRequest: core.serialization.ObjectSchema< - serializers.accounting.CreditNoteLineItemRequest.Raw, - Merge.accounting.CreditNoteLineItemRequest -> = core.serialization.object({ - remoteId: core.serialization.property("remote_id", core.serialization.string().optional()), - item: CreditNoteLineItemRequestItem.optional(), - name: core.serialization.string().optional(), - description: core.serialization.string().optional(), - quantity: core.serialization.string().optional(), - memo: core.serialization.string().optional(), - unitPrice: core.serialization.property("unit_price", core.serialization.string().optional()), - taxRate: core.serialization.property("tax_rate", core.serialization.string().optional()), - totalLineAmount: core.serialization.property("total_line_amount", core.serialization.string().optional()), - trackingCategory: core.serialization.property("tracking_category", core.serialization.string().optional()), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(core.serialization.string().optional()).optional(), - ), - account: core.serialization.string().optional(), - company: CreditNoteLineItemRequestCompany.optional(), - contact: CreditNoteLineItemRequestContact.optional(), - project: CreditNoteLineItemRequestProject.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 CreditNoteLineItemRequest { - export interface Raw { - remote_id?: string | null; - item?: CreditNoteLineItemRequestItem.Raw | null; - name?: string | null; - description?: string | null; - quantity?: string | null; - memo?: string | null; - unit_price?: string | null; - tax_rate?: string | null; - total_line_amount?: string | null; - tracking_category?: string | null; - tracking_categories?: (string | null | undefined)[] | null; - account?: string | null; - company?: CreditNoteLineItemRequestCompany.Raw | null; - contact?: CreditNoteLineItemRequestContact.Raw | null; - project?: CreditNoteLineItemRequestProject.Raw | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/accounting/types/CreditNoteLineItemRequestCompany.ts b/src/serialization/resources/accounting/types/CreditNoteLineItemRequestCompany.ts deleted file mode 100644 index 109f403b6..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteLineItemRequestCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const CreditNoteLineItemRequestCompany: core.serialization.Schema< - serializers.accounting.CreditNoteLineItemRequestCompany.Raw, - Merge.accounting.CreditNoteLineItemRequestCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace CreditNoteLineItemRequestCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteLineItemRequestContact.ts b/src/serialization/resources/accounting/types/CreditNoteLineItemRequestContact.ts deleted file mode 100644 index 5c16007cb..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteLineItemRequestContact.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 { Contact } from "./Contact"; - -export const CreditNoteLineItemRequestContact: core.serialization.Schema< - serializers.accounting.CreditNoteLineItemRequestContact.Raw, - Merge.accounting.CreditNoteLineItemRequestContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace CreditNoteLineItemRequestContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteLineItemRequestItem.ts b/src/serialization/resources/accounting/types/CreditNoteLineItemRequestItem.ts deleted file mode 100644 index 895be1251..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteLineItemRequestItem.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 { Item } from "./Item"; - -export const CreditNoteLineItemRequestItem: core.serialization.Schema< - serializers.accounting.CreditNoteLineItemRequestItem.Raw, - Merge.accounting.CreditNoteLineItemRequestItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Item]); - -export declare namespace CreditNoteLineItemRequestItem { - export type Raw = string | Item.Raw; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteLineItemRequestProject.ts b/src/serialization/resources/accounting/types/CreditNoteLineItemRequestProject.ts deleted file mode 100644 index 29458087a..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteLineItemRequestProject.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 { Contact } from "./Contact"; - -export const CreditNoteLineItemRequestProject: core.serialization.Schema< - serializers.accounting.CreditNoteLineItemRequestProject.Raw, - Merge.accounting.CreditNoteLineItemRequestProject -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace CreditNoteLineItemRequestProject { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/CreditNotePaymentsItem.ts b/src/serialization/resources/accounting/types/CreditNotePaymentsItem.ts deleted file mode 100644 index 53449e427..000000000 --- a/src/serialization/resources/accounting/types/CreditNotePaymentsItem.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 { Payment } from "./Payment"; - -export const CreditNotePaymentsItem: core.serialization.Schema< - serializers.accounting.CreditNotePaymentsItem.Raw, - Merge.accounting.CreditNotePaymentsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Payment]); - -export declare namespace CreditNotePaymentsItem { - export type Raw = string | Payment.Raw; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteRequest.ts b/src/serialization/resources/accounting/types/CreditNoteRequest.ts deleted file mode 100644 index 228df7186..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteRequest.ts +++ /dev/null @@ -1,80 +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 { CreditNoteApplyLineForCreditNoteRequest } from "./CreditNoteApplyLineForCreditNoteRequest"; -import { CreditNoteRequestAccountingPeriod } from "./CreditNoteRequestAccountingPeriod"; -import { CreditNoteRequestAppliedPaymentsItem } from "./CreditNoteRequestAppliedPaymentsItem"; -import { CreditNoteRequestCompany } from "./CreditNoteRequestCompany"; -import { CreditNoteRequestContact } from "./CreditNoteRequestContact"; -import { CreditNoteRequestCurrency } from "./CreditNoteRequestCurrency"; -import { CreditNoteRequestLineItemsItem } from "./CreditNoteRequestLineItemsItem"; -import { CreditNoteRequestPaymentsItem } from "./CreditNoteRequestPaymentsItem"; -import { CreditNoteRequestStatus } from "./CreditNoteRequestStatus"; -import { CreditNoteRequestTrackingCategoriesItem } from "./CreditNoteRequestTrackingCategoriesItem"; - -export const CreditNoteRequest: core.serialization.ObjectSchema< - serializers.accounting.CreditNoteRequest.Raw, - Merge.accounting.CreditNoteRequest -> = core.serialization.object({ - transactionDate: core.serialization.property("transaction_date", core.serialization.date().optional()), - status: CreditNoteRequestStatus.optional(), - number: core.serialization.string().optional(), - contact: CreditNoteRequestContact.optional(), - company: CreditNoteRequestCompany.optional(), - exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), - 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(CreditNoteRequestLineItemsItem).optional(), - ), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(CreditNoteRequestTrackingCategoriesItem.optional()).optional(), - ), - currency: CreditNoteRequestCurrency.optional(), - payments: core.serialization.list(CreditNoteRequestPaymentsItem.optional()).optional(), - appliedPayments: core.serialization.property( - "applied_payments", - core.serialization.list(CreditNoteRequestAppliedPaymentsItem.optional()).optional(), - ), - accountingPeriod: core.serialization.property("accounting_period", CreditNoteRequestAccountingPeriod.optional()), - appliedToLines: core.serialization.property( - "applied_to_lines", - core.serialization.list(CreditNoteApplyLineForCreditNoteRequest).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 CreditNoteRequest { - export interface Raw { - transaction_date?: string | null; - status?: CreditNoteRequestStatus.Raw | null; - number?: string | null; - contact?: CreditNoteRequestContact.Raw | null; - company?: CreditNoteRequestCompany.Raw | null; - exchange_rate?: string | null; - total_amount?: number | null; - remaining_credit?: number | null; - inclusive_of_tax?: boolean | null; - line_items?: CreditNoteRequestLineItemsItem.Raw[] | null; - tracking_categories?: (CreditNoteRequestTrackingCategoriesItem.Raw | null | undefined)[] | null; - currency?: CreditNoteRequestCurrency.Raw | null; - payments?: (CreditNoteRequestPaymentsItem.Raw | null | undefined)[] | null; - applied_payments?: (CreditNoteRequestAppliedPaymentsItem.Raw | null | undefined)[] | null; - accounting_period?: CreditNoteRequestAccountingPeriod.Raw | null; - applied_to_lines?: CreditNoteApplyLineForCreditNoteRequest.Raw[] | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/accounting/types/CreditNoteRequestAccountingPeriod.ts b/src/serialization/resources/accounting/types/CreditNoteRequestAccountingPeriod.ts deleted file mode 100644 index 9c5004cfe..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteRequestAccountingPeriod.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 { AccountingPeriod } from "./AccountingPeriod"; - -export const CreditNoteRequestAccountingPeriod: core.serialization.Schema< - serializers.accounting.CreditNoteRequestAccountingPeriod.Raw, - Merge.accounting.CreditNoteRequestAccountingPeriod -> = core.serialization.undiscriminatedUnion([core.serialization.string(), AccountingPeriod]); - -export declare namespace CreditNoteRequestAccountingPeriod { - export type Raw = string | AccountingPeriod.Raw; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteRequestAppliedPaymentsItem.ts b/src/serialization/resources/accounting/types/CreditNoteRequestAppliedPaymentsItem.ts deleted file mode 100644 index 37aaea371..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteRequestAppliedPaymentsItem.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 { PaymentLineItem } from "./PaymentLineItem"; - -export const CreditNoteRequestAppliedPaymentsItem: core.serialization.Schema< - serializers.accounting.CreditNoteRequestAppliedPaymentsItem.Raw, - Merge.accounting.CreditNoteRequestAppliedPaymentsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), PaymentLineItem]); - -export declare namespace CreditNoteRequestAppliedPaymentsItem { - export type Raw = string | PaymentLineItem.Raw; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteRequestCompany.ts b/src/serialization/resources/accounting/types/CreditNoteRequestCompany.ts deleted file mode 100644 index 233208de2..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteRequestCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const CreditNoteRequestCompany: core.serialization.Schema< - serializers.accounting.CreditNoteRequestCompany.Raw, - Merge.accounting.CreditNoteRequestCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace CreditNoteRequestCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteRequestContact.ts b/src/serialization/resources/accounting/types/CreditNoteRequestContact.ts deleted file mode 100644 index 54b98b94b..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteRequestContact.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 { Contact } from "./Contact"; - -export const CreditNoteRequestContact: core.serialization.Schema< - serializers.accounting.CreditNoteRequestContact.Raw, - Merge.accounting.CreditNoteRequestContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace CreditNoteRequestContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteRequestCurrency.ts b/src/serialization/resources/accounting/types/CreditNoteRequestCurrency.ts deleted file mode 100644 index 6d4b3b3eb..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteRequestCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const CreditNoteRequestCurrency: core.serialization.Schema< - serializers.accounting.CreditNoteRequestCurrency.Raw, - Merge.accounting.CreditNoteRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace CreditNoteRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteRequestLineItemsItem.ts b/src/serialization/resources/accounting/types/CreditNoteRequestLineItemsItem.ts deleted file mode 100644 index 384b163d5..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteRequestLineItemsItem.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 { CreditNoteLineItemRequest } from "./CreditNoteLineItemRequest"; - -export const CreditNoteRequestLineItemsItem: core.serialization.Schema< - serializers.accounting.CreditNoteRequestLineItemsItem.Raw, - Merge.accounting.CreditNoteRequestLineItemsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CreditNoteLineItemRequest]); - -export declare namespace CreditNoteRequestLineItemsItem { - export type Raw = string | CreditNoteLineItemRequest.Raw; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteRequestPaymentsItem.ts b/src/serialization/resources/accounting/types/CreditNoteRequestPaymentsItem.ts deleted file mode 100644 index 2fa6f78c0..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteRequestPaymentsItem.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 { Payment } from "./Payment"; - -export const CreditNoteRequestPaymentsItem: core.serialization.Schema< - serializers.accounting.CreditNoteRequestPaymentsItem.Raw, - Merge.accounting.CreditNoteRequestPaymentsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Payment]); - -export declare namespace CreditNoteRequestPaymentsItem { - export type Raw = string | Payment.Raw; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteRequestStatus.ts b/src/serialization/resources/accounting/types/CreditNoteRequestStatus.ts deleted file mode 100644 index f5556249b..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteRequestStatus.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 { CreditNoteStatusEnum } from "./CreditNoteStatusEnum"; - -export const CreditNoteRequestStatus: core.serialization.Schema< - serializers.accounting.CreditNoteRequestStatus.Raw, - Merge.accounting.CreditNoteRequestStatus -> = core.serialization.undiscriminatedUnion([CreditNoteStatusEnum, core.serialization.string()]); - -export declare namespace CreditNoteRequestStatus { - export type Raw = CreditNoteStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteRequestTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/CreditNoteRequestTrackingCategoriesItem.ts deleted file mode 100644 index b939d4100..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteRequestTrackingCategoriesItem.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 { TrackingCategory } from "./TrackingCategory"; - -export const CreditNoteRequestTrackingCategoriesItem: core.serialization.Schema< - serializers.accounting.CreditNoteRequestTrackingCategoriesItem.Raw, - Merge.accounting.CreditNoteRequestTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace CreditNoteRequestTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteResponse.ts b/src/serialization/resources/accounting/types/CreditNoteResponse.ts deleted file mode 100644 index dd208747c..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteResponse.ts +++ /dev/null @@ -1,27 +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 * as serializers from "../../../index"; -import { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const CreditNoteResponse: core.serialization.ObjectSchema< - serializers.accounting.CreditNoteResponse.Raw, - Merge.accounting.CreditNoteResponse -> = core.serialization.object({ - model: core.serialization.lazyObject(() => serializers.accounting.CreditNote), - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace CreditNoteResponse { - export interface Raw { - model: serializers.accounting.CreditNote.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/CreditNoteStatus.ts b/src/serialization/resources/accounting/types/CreditNoteStatus.ts deleted file mode 100644 index d26df6ddd..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteStatus.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 { CreditNoteStatusEnum } from "./CreditNoteStatusEnum"; - -export const CreditNoteStatus: core.serialization.Schema< - serializers.accounting.CreditNoteStatus.Raw, - Merge.accounting.CreditNoteStatus -> = core.serialization.undiscriminatedUnion([CreditNoteStatusEnum, core.serialization.string()]); - -export declare namespace CreditNoteStatus { - export type Raw = CreditNoteStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteStatusEnum.ts b/src/serialization/resources/accounting/types/CreditNoteStatusEnum.ts deleted file mode 100644 index 7e7e2dc4a..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteStatusEnum.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 CreditNoteStatusEnum: core.serialization.Schema< - serializers.accounting.CreditNoteStatusEnum.Raw, - Merge.accounting.CreditNoteStatusEnum -> = core.serialization.enum_(["SUBMITTED", "AUTHORIZED", "PAID"]); - -export declare namespace CreditNoteStatusEnum { - export type Raw = "SUBMITTED" | "AUTHORIZED" | "PAID"; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/CreditNoteTrackingCategoriesItem.ts deleted file mode 100644 index 901f1d3dd..000000000 --- a/src/serialization/resources/accounting/types/CreditNoteTrackingCategoriesItem.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 { TrackingCategory } from "./TrackingCategory"; - -export const CreditNoteTrackingCategoriesItem: core.serialization.Schema< - serializers.accounting.CreditNoteTrackingCategoriesItem.Raw, - Merge.accounting.CreditNoteTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace CreditNoteTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/CreditOrDebitEnum.ts b/src/serialization/resources/accounting/types/CreditOrDebitEnum.ts deleted file mode 100644 index 28550c245..000000000 --- a/src/serialization/resources/accounting/types/CreditOrDebitEnum.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 CreditOrDebitEnum: core.serialization.Schema< - serializers.accounting.CreditOrDebitEnum.Raw, - Merge.accounting.CreditOrDebitEnum -> = core.serialization.enum_(["CREDIT", "DEBIT"]); - -export declare namespace CreditOrDebitEnum { - export type Raw = "CREDIT" | "DEBIT"; -} diff --git a/src/serialization/resources/accounting/types/DataPassthroughRequest.ts b/src/serialization/resources/accounting/types/DataPassthroughRequest.ts deleted file mode 100644 index f7b6734c9..000000000 --- a/src/serialization/resources/accounting/types/DataPassthroughRequest.ts +++ /dev/null @@ -1,38 +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 { DataPassthroughRequestMethod } from "./DataPassthroughRequestMethod"; -import { MultipartFormFieldRequest } from "./MultipartFormFieldRequest"; -import { RequestFormatEnum } from "./RequestFormatEnum"; - -export const DataPassthroughRequest: core.serialization.ObjectSchema< - serializers.accounting.DataPassthroughRequest.Raw, - Merge.accounting.DataPassthroughRequest -> = core.serialization.object({ - method: DataPassthroughRequestMethod, - path: core.serialization.string(), - baseUrlOverride: core.serialization.property("base_url_override", core.serialization.string().optional()), - data: core.serialization.string().optional(), - multipartFormData: core.serialization.property( - "multipart_form_data", - core.serialization.list(MultipartFormFieldRequest).optional(), - ), - headers: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - requestFormat: core.serialization.property("request_format", RequestFormatEnum.optional()), - normalizeResponse: core.serialization.property("normalize_response", core.serialization.boolean().optional()), -}); - -export declare namespace DataPassthroughRequest { - export interface Raw { - method: DataPassthroughRequestMethod.Raw; - path: string; - base_url_override?: string | null; - data?: string | null; - multipart_form_data?: MultipartFormFieldRequest.Raw[] | null; - headers?: Record | null; - request_format?: RequestFormatEnum.Raw | null; - normalize_response?: boolean | null; - } -} diff --git a/src/serialization/resources/accounting/types/DataPassthroughRequestMethod.ts b/src/serialization/resources/accounting/types/DataPassthroughRequestMethod.ts deleted file mode 100644 index 137a96e09..000000000 --- a/src/serialization/resources/accounting/types/DataPassthroughRequestMethod.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { MethodEnum } from "./MethodEnum"; - -export const DataPassthroughRequestMethod: core.serialization.Schema< - serializers.accounting.DataPassthroughRequestMethod.Raw, - Merge.accounting.DataPassthroughRequestMethod -> = core.serialization.undiscriminatedUnion([MethodEnum, core.serialization.string()]); - -export declare namespace DataPassthroughRequestMethod { - export type Raw = MethodEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/DebugModeLog.ts b/src/serialization/resources/accounting/types/DebugModeLog.ts deleted file mode 100644 index f342006d6..000000000 --- a/src/serialization/resources/accounting/types/DebugModeLog.ts +++ /dev/null @@ -1,23 +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 { DebugModelLogSummary } from "./DebugModelLogSummary"; - -export const DebugModeLog: core.serialization.ObjectSchema< - serializers.accounting.DebugModeLog.Raw, - Merge.accounting.DebugModeLog -> = core.serialization.object({ - logId: core.serialization.property("log_id", core.serialization.string()), - dashboardView: core.serialization.property("dashboard_view", core.serialization.string()), - logSummary: core.serialization.property("log_summary", DebugModelLogSummary), -}); - -export declare namespace DebugModeLog { - export interface Raw { - log_id: string; - dashboard_view: string; - log_summary: DebugModelLogSummary.Raw; - } -} diff --git a/src/serialization/resources/accounting/types/DebugModelLogSummary.ts b/src/serialization/resources/accounting/types/DebugModelLogSummary.ts deleted file mode 100644 index e65899bfa..000000000 --- a/src/serialization/resources/accounting/types/DebugModelLogSummary.ts +++ /dev/null @@ -1,22 +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 DebugModelLogSummary: core.serialization.ObjectSchema< - serializers.accounting.DebugModelLogSummary.Raw, - Merge.accounting.DebugModelLogSummary -> = core.serialization.object({ - url: core.serialization.string(), - method: core.serialization.string(), - statusCode: core.serialization.property("status_code", core.serialization.number()), -}); - -export declare namespace DebugModelLogSummary { - export interface Raw { - url: string; - method: string; - status_code: number; - } -} diff --git a/src/serialization/resources/accounting/types/Employee.ts b/src/serialization/resources/accounting/types/Employee.ts deleted file mode 100644 index b61e9c48a..000000000 --- a/src/serialization/resources/accounting/types/Employee.ts +++ /dev/null @@ -1,48 +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 { EmployeeCompany } from "./EmployeeCompany"; -import { EmployeeStatus } from "./EmployeeStatus"; -import { RemoteData } from "./RemoteData"; - -export const Employee: core.serialization.ObjectSchema = - 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()), - firstName: core.serialization.property("first_name", core.serialization.string().optional()), - lastName: core.serialization.property("last_name", core.serialization.string().optional()), - isContractor: core.serialization.property("is_contractor", core.serialization.boolean().optional()), - employeeNumber: core.serialization.property("employee_number", core.serialization.string().optional()), - emailAddress: core.serialization.property("email_address", core.serialization.string().optional()), - company: EmployeeCompany.optional(), - status: EmployeeStatus, - 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()), - }); - -export declare namespace Employee { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - first_name?: string | null; - last_name?: string | null; - is_contractor?: boolean | null; - employee_number?: string | null; - email_address?: string | null; - company?: EmployeeCompany.Raw | null; - status: EmployeeStatus.Raw; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/EmployeeCompany.ts b/src/serialization/resources/accounting/types/EmployeeCompany.ts deleted file mode 100644 index 0df10217d..000000000 --- a/src/serialization/resources/accounting/types/EmployeeCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const EmployeeCompany: core.serialization.Schema< - serializers.accounting.EmployeeCompany.Raw, - Merge.accounting.EmployeeCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace EmployeeCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/EmployeeStatus.ts b/src/serialization/resources/accounting/types/EmployeeStatus.ts deleted file mode 100644 index e7041057d..000000000 --- a/src/serialization/resources/accounting/types/EmployeeStatus.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 { Status895Enum } from "./Status895Enum"; - -export const EmployeeStatus: core.serialization.Schema< - serializers.accounting.EmployeeStatus.Raw, - Merge.accounting.EmployeeStatus -> = core.serialization.undiscriminatedUnion([Status895Enum, core.serialization.string()]); - -export declare namespace EmployeeStatus { - export type Raw = Status895Enum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/EnabledActionsEnum.ts b/src/serialization/resources/accounting/types/EnabledActionsEnum.ts deleted file mode 100644 index 2dde38841..000000000 --- a/src/serialization/resources/accounting/types/EnabledActionsEnum.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 EnabledActionsEnum: core.serialization.Schema< - serializers.accounting.EnabledActionsEnum.Raw, - Merge.accounting.EnabledActionsEnum -> = core.serialization.enum_(["READ", "WRITE"]); - -export declare namespace EnabledActionsEnum { - export type Raw = "READ" | "WRITE"; -} diff --git a/src/serialization/resources/accounting/types/EncodingEnum.ts b/src/serialization/resources/accounting/types/EncodingEnum.ts deleted file mode 100644 index b99335d36..000000000 --- a/src/serialization/resources/accounting/types/EncodingEnum.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 EncodingEnum: core.serialization.Schema< - serializers.accounting.EncodingEnum.Raw, - Merge.accounting.EncodingEnum -> = core.serialization.enum_(["RAW", "BASE64", "GZIP_BASE64"]); - -export declare namespace EncodingEnum { - export type Raw = "RAW" | "BASE64" | "GZIP_BASE64"; -} diff --git a/src/serialization/resources/accounting/types/ErrorValidationProblem.ts b/src/serialization/resources/accounting/types/ErrorValidationProblem.ts deleted file mode 100644 index bfaef8d71..000000000 --- a/src/serialization/resources/accounting/types/ErrorValidationProblem.ts +++ /dev/null @@ -1,25 +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 { ValidationProblemSource } from "./ValidationProblemSource"; - -export const ErrorValidationProblem: core.serialization.ObjectSchema< - serializers.accounting.ErrorValidationProblem.Raw, - Merge.accounting.ErrorValidationProblem -> = core.serialization.object({ - source: ValidationProblemSource.optional(), - title: core.serialization.string(), - detail: core.serialization.string(), - problemType: core.serialization.property("problem_type", core.serialization.string()), -}); - -export declare namespace ErrorValidationProblem { - export interface Raw { - source?: ValidationProblemSource.Raw | null; - title: string; - detail: string; - problem_type: string; - } -} diff --git a/src/serialization/resources/accounting/types/EventTypeEnum.ts b/src/serialization/resources/accounting/types/EventTypeEnum.ts deleted file mode 100644 index 711ce4321..000000000 --- a/src/serialization/resources/accounting/types/EventTypeEnum.ts +++ /dev/null @@ -1,101 +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 EventTypeEnum: core.serialization.Schema< - serializers.accounting.EventTypeEnum.Raw, - Merge.accounting.EventTypeEnum -> = core.serialization.enum_([ - "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", -]); - -export declare namespace EventTypeEnum { - export type Raw = - | "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"; -} diff --git a/src/serialization/resources/accounting/types/Expense.ts b/src/serialization/resources/accounting/types/Expense.ts deleted file mode 100644 index f5cb61a45..000000000 --- a/src/serialization/resources/accounting/types/Expense.ts +++ /dev/null @@ -1,78 +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 { ExpenseAccount } from "./ExpenseAccount"; -import { ExpenseAccountingPeriod } from "./ExpenseAccountingPeriod"; -import { ExpenseCompany } from "./ExpenseCompany"; -import { ExpenseContact } from "./ExpenseContact"; -import { ExpenseCurrency } from "./ExpenseCurrency"; -import { ExpenseEmployee } from "./ExpenseEmployee"; -import { ExpenseLine } from "./ExpenseLine"; -import { ExpenseTrackingCategoriesItem } from "./ExpenseTrackingCategoriesItem"; -import { RemoteData } from "./RemoteData"; -import { RemoteField } from "./RemoteField"; - -export const Expense: core.serialization.ObjectSchema = - 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()), - transactionDate: core.serialization.property("transaction_date", core.serialization.date().optional()), - remoteCreatedAt: core.serialization.property("remote_created_at", core.serialization.date().optional()), - account: ExpenseAccount.optional(), - contact: ExpenseContact.optional(), - totalAmount: core.serialization.property("total_amount", core.serialization.number().optional()), - subTotal: core.serialization.property("sub_total", core.serialization.number().optional()), - totalTaxAmount: core.serialization.property("total_tax_amount", core.serialization.number().optional()), - currency: ExpenseCurrency.optional(), - exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), - inclusiveOfTax: core.serialization.property("inclusive_of_tax", core.serialization.boolean().optional()), - company: ExpenseCompany.optional(), - employee: ExpenseEmployee.optional(), - memo: core.serialization.string().optional(), - lines: core.serialization.list(ExpenseLine).optional(), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(ExpenseTrackingCategoriesItem.optional()).optional(), - ), - remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), - accountingPeriod: core.serialization.property("accounting_period", ExpenseAccountingPeriod.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 Expense { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - transaction_date?: string | null; - remote_created_at?: string | null; - account?: ExpenseAccount.Raw | null; - contact?: ExpenseContact.Raw | null; - total_amount?: number | null; - sub_total?: number | null; - total_tax_amount?: number | null; - currency?: ExpenseCurrency.Raw | null; - exchange_rate?: string | null; - inclusive_of_tax?: boolean | null; - company?: ExpenseCompany.Raw | null; - employee?: ExpenseEmployee.Raw | null; - memo?: string | null; - lines?: ExpenseLine.Raw[] | null; - tracking_categories?: (ExpenseTrackingCategoriesItem.Raw | null | undefined)[] | null; - remote_was_deleted?: boolean | null; - accounting_period?: ExpenseAccountingPeriod.Raw | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - remote_fields?: RemoteField.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/ExpenseAccount.ts b/src/serialization/resources/accounting/types/ExpenseAccount.ts deleted file mode 100644 index 939308b28..000000000 --- a/src/serialization/resources/accounting/types/ExpenseAccount.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 ExpenseAccount: core.serialization.Schema< - serializers.accounting.ExpenseAccount.Raw, - Merge.accounting.ExpenseAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace ExpenseAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseAccountingPeriod.ts b/src/serialization/resources/accounting/types/ExpenseAccountingPeriod.ts deleted file mode 100644 index 941950839..000000000 --- a/src/serialization/resources/accounting/types/ExpenseAccountingPeriod.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 { AccountingPeriod } from "./AccountingPeriod"; - -export const ExpenseAccountingPeriod: core.serialization.Schema< - serializers.accounting.ExpenseAccountingPeriod.Raw, - Merge.accounting.ExpenseAccountingPeriod -> = core.serialization.undiscriminatedUnion([core.serialization.string(), AccountingPeriod]); - -export declare namespace ExpenseAccountingPeriod { - export type Raw = string | AccountingPeriod.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseCompany.ts b/src/serialization/resources/accounting/types/ExpenseCompany.ts deleted file mode 100644 index 1a6636e5a..000000000 --- a/src/serialization/resources/accounting/types/ExpenseCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const ExpenseCompany: core.serialization.Schema< - serializers.accounting.ExpenseCompany.Raw, - Merge.accounting.ExpenseCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace ExpenseCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseContact.ts b/src/serialization/resources/accounting/types/ExpenseContact.ts deleted file mode 100644 index 938971d5b..000000000 --- a/src/serialization/resources/accounting/types/ExpenseContact.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 { Contact } from "./Contact"; - -export const ExpenseContact: core.serialization.Schema< - serializers.accounting.ExpenseContact.Raw, - Merge.accounting.ExpenseContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace ExpenseContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseCurrency.ts b/src/serialization/resources/accounting/types/ExpenseCurrency.ts deleted file mode 100644 index 493019af5..000000000 --- a/src/serialization/resources/accounting/types/ExpenseCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const ExpenseCurrency: core.serialization.Schema< - serializers.accounting.ExpenseCurrency.Raw, - Merge.accounting.ExpenseCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace ExpenseCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/ExpenseEmployee.ts b/src/serialization/resources/accounting/types/ExpenseEmployee.ts deleted file mode 100644 index 10fbfb253..000000000 --- a/src/serialization/resources/accounting/types/ExpenseEmployee.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 ExpenseEmployee: core.serialization.Schema< - serializers.accounting.ExpenseEmployee.Raw, - Merge.accounting.ExpenseEmployee -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Employee]); - -export declare namespace ExpenseEmployee { - export type Raw = string | Employee.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseLine.ts b/src/serialization/resources/accounting/types/ExpenseLine.ts deleted file mode 100644 index 880be54cd..000000000 --- a/src/serialization/resources/accounting/types/ExpenseLine.ts +++ /dev/null @@ -1,67 +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 { ExpenseLineAccount } from "./ExpenseLineAccount"; -import { ExpenseLineContact } from "./ExpenseLineContact"; -import { ExpenseLineCurrency } from "./ExpenseLineCurrency"; -import { ExpenseLineEmployee } from "./ExpenseLineEmployee"; -import { ExpenseLineItem } from "./ExpenseLineItem"; -import { ExpenseLineProject } from "./ExpenseLineProject"; -import { ExpenseLineTrackingCategoriesItem } from "./ExpenseLineTrackingCategoriesItem"; -import { ExpenseLineTrackingCategory } from "./ExpenseLineTrackingCategory"; - -export const ExpenseLine: core.serialization.ObjectSchema< - serializers.accounting.ExpenseLine.Raw, - Merge.accounting.ExpenseLine -> = 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: ExpenseLineItem.optional(), - netAmount: core.serialization.property("net_amount", core.serialization.number().optional()), - trackingCategory: core.serialization.property("tracking_category", ExpenseLineTrackingCategory.optional()), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(ExpenseLineTrackingCategoriesItem.optional()).optional(), - ), - company: core.serialization.string().optional(), - employee: ExpenseLineEmployee.optional(), - currency: ExpenseLineCurrency.optional(), - account: ExpenseLineAccount.optional(), - contact: ExpenseLineContact.optional(), - project: ExpenseLineProject.optional(), - description: core.serialization.string().optional(), - exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), - taxRate: core.serialization.property("tax_rate", core.serialization.string().optional()), - quantity: core.serialization.string().optional(), - unitPrice: core.serialization.property("unit_price", core.serialization.string().optional()), - remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), -}); - -export declare namespace ExpenseLine { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - item?: ExpenseLineItem.Raw | null; - net_amount?: number | null; - tracking_category?: ExpenseLineTrackingCategory.Raw | null; - tracking_categories?: (ExpenseLineTrackingCategoriesItem.Raw | null | undefined)[] | null; - company?: string | null; - employee?: ExpenseLineEmployee.Raw | null; - currency?: ExpenseLineCurrency.Raw | null; - account?: ExpenseLineAccount.Raw | null; - contact?: ExpenseLineContact.Raw | null; - project?: ExpenseLineProject.Raw | null; - description?: string | null; - exchange_rate?: string | null; - tax_rate?: string | null; - quantity?: string | null; - unit_price?: string | null; - remote_was_deleted?: boolean | null; - } -} diff --git a/src/serialization/resources/accounting/types/ExpenseLineAccount.ts b/src/serialization/resources/accounting/types/ExpenseLineAccount.ts deleted file mode 100644 index fa5656072..000000000 --- a/src/serialization/resources/accounting/types/ExpenseLineAccount.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 ExpenseLineAccount: core.serialization.Schema< - serializers.accounting.ExpenseLineAccount.Raw, - Merge.accounting.ExpenseLineAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace ExpenseLineAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseLineContact.ts b/src/serialization/resources/accounting/types/ExpenseLineContact.ts deleted file mode 100644 index cf6be225d..000000000 --- a/src/serialization/resources/accounting/types/ExpenseLineContact.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 { Contact } from "./Contact"; - -export const ExpenseLineContact: core.serialization.Schema< - serializers.accounting.ExpenseLineContact.Raw, - Merge.accounting.ExpenseLineContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace ExpenseLineContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseLineCurrency.ts b/src/serialization/resources/accounting/types/ExpenseLineCurrency.ts deleted file mode 100644 index cd7161afa..000000000 --- a/src/serialization/resources/accounting/types/ExpenseLineCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const ExpenseLineCurrency: core.serialization.Schema< - serializers.accounting.ExpenseLineCurrency.Raw, - Merge.accounting.ExpenseLineCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace ExpenseLineCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/ExpenseLineEmployee.ts b/src/serialization/resources/accounting/types/ExpenseLineEmployee.ts deleted file mode 100644 index f45285451..000000000 --- a/src/serialization/resources/accounting/types/ExpenseLineEmployee.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 ExpenseLineEmployee: core.serialization.Schema< - serializers.accounting.ExpenseLineEmployee.Raw, - Merge.accounting.ExpenseLineEmployee -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Employee]); - -export declare namespace ExpenseLineEmployee { - export type Raw = string | Employee.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseLineItem.ts b/src/serialization/resources/accounting/types/ExpenseLineItem.ts deleted file mode 100644 index d8c858786..000000000 --- a/src/serialization/resources/accounting/types/ExpenseLineItem.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 { Item } from "./Item"; - -export const ExpenseLineItem: core.serialization.Schema< - serializers.accounting.ExpenseLineItem.Raw, - Merge.accounting.ExpenseLineItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Item]); - -export declare namespace ExpenseLineItem { - export type Raw = string | Item.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseLineProject.ts b/src/serialization/resources/accounting/types/ExpenseLineProject.ts deleted file mode 100644 index 1bab4ef4a..000000000 --- a/src/serialization/resources/accounting/types/ExpenseLineProject.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 { Project } from "./Project"; - -export const ExpenseLineProject: core.serialization.Schema< - serializers.accounting.ExpenseLineProject.Raw, - Merge.accounting.ExpenseLineProject -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Project]); - -export declare namespace ExpenseLineProject { - export type Raw = string | Project.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseLineRequest.ts b/src/serialization/resources/accounting/types/ExpenseLineRequest.ts deleted file mode 100644 index f1f857947..000000000 --- a/src/serialization/resources/accounting/types/ExpenseLineRequest.ts +++ /dev/null @@ -1,72 +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 { ExpenseLineRequestAccount } from "./ExpenseLineRequestAccount"; -import { ExpenseLineRequestContact } from "./ExpenseLineRequestContact"; -import { ExpenseLineRequestCurrency } from "./ExpenseLineRequestCurrency"; -import { ExpenseLineRequestEmployee } from "./ExpenseLineRequestEmployee"; -import { ExpenseLineRequestItem } from "./ExpenseLineRequestItem"; -import { ExpenseLineRequestProject } from "./ExpenseLineRequestProject"; -import { ExpenseLineRequestTrackingCategoriesItem } from "./ExpenseLineRequestTrackingCategoriesItem"; -import { ExpenseLineRequestTrackingCategory } from "./ExpenseLineRequestTrackingCategory"; -import { RemoteFieldRequest } from "./RemoteFieldRequest"; - -export const ExpenseLineRequest: core.serialization.ObjectSchema< - serializers.accounting.ExpenseLineRequest.Raw, - Merge.accounting.ExpenseLineRequest -> = core.serialization.object({ - remoteId: core.serialization.property("remote_id", core.serialization.string().optional()), - item: ExpenseLineRequestItem.optional(), - netAmount: core.serialization.property("net_amount", core.serialization.number().optional()), - trackingCategory: core.serialization.property("tracking_category", ExpenseLineRequestTrackingCategory.optional()), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(ExpenseLineRequestTrackingCategoriesItem.optional()).optional(), - ), - company: core.serialization.string().optional(), - employee: ExpenseLineRequestEmployee.optional(), - currency: ExpenseLineRequestCurrency.optional(), - account: ExpenseLineRequestAccount.optional(), - contact: ExpenseLineRequestContact.optional(), - project: ExpenseLineRequestProject.optional(), - description: core.serialization.string().optional(), - exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), - taxRate: core.serialization.property("tax_rate", core.serialization.string().optional()), - quantity: core.serialization.string().optional(), - unitPrice: core.serialization.property("unit_price", core.serialization.string().optional()), - integrationParams: core.serialization.property( - "integration_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - linkedAccountParams: core.serialization.property( - "linked_account_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - remoteFields: core.serialization.property("remote_fields", core.serialization.list(RemoteFieldRequest).optional()), -}); - -export declare namespace ExpenseLineRequest { - export interface Raw { - remote_id?: string | null; - item?: ExpenseLineRequestItem.Raw | null; - net_amount?: number | null; - tracking_category?: ExpenseLineRequestTrackingCategory.Raw | null; - tracking_categories?: (ExpenseLineRequestTrackingCategoriesItem.Raw | null | undefined)[] | null; - company?: string | null; - employee?: ExpenseLineRequestEmployee.Raw | null; - currency?: ExpenseLineRequestCurrency.Raw | null; - account?: ExpenseLineRequestAccount.Raw | null; - contact?: ExpenseLineRequestContact.Raw | null; - project?: ExpenseLineRequestProject.Raw | null; - description?: string | null; - exchange_rate?: string | null; - tax_rate?: string | null; - quantity?: string | null; - unit_price?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/ExpenseLineRequestAccount.ts b/src/serialization/resources/accounting/types/ExpenseLineRequestAccount.ts deleted file mode 100644 index f8b5a75dd..000000000 --- a/src/serialization/resources/accounting/types/ExpenseLineRequestAccount.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 ExpenseLineRequestAccount: core.serialization.Schema< - serializers.accounting.ExpenseLineRequestAccount.Raw, - Merge.accounting.ExpenseLineRequestAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace ExpenseLineRequestAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseLineRequestContact.ts b/src/serialization/resources/accounting/types/ExpenseLineRequestContact.ts deleted file mode 100644 index fcde8338c..000000000 --- a/src/serialization/resources/accounting/types/ExpenseLineRequestContact.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 { Contact } from "./Contact"; - -export const ExpenseLineRequestContact: core.serialization.Schema< - serializers.accounting.ExpenseLineRequestContact.Raw, - Merge.accounting.ExpenseLineRequestContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace ExpenseLineRequestContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseLineRequestCurrency.ts b/src/serialization/resources/accounting/types/ExpenseLineRequestCurrency.ts deleted file mode 100644 index bb65cbe3b..000000000 --- a/src/serialization/resources/accounting/types/ExpenseLineRequestCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const ExpenseLineRequestCurrency: core.serialization.Schema< - serializers.accounting.ExpenseLineRequestCurrency.Raw, - Merge.accounting.ExpenseLineRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace ExpenseLineRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/ExpenseLineRequestEmployee.ts b/src/serialization/resources/accounting/types/ExpenseLineRequestEmployee.ts deleted file mode 100644 index a7f5920d7..000000000 --- a/src/serialization/resources/accounting/types/ExpenseLineRequestEmployee.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 ExpenseLineRequestEmployee: core.serialization.Schema< - serializers.accounting.ExpenseLineRequestEmployee.Raw, - Merge.accounting.ExpenseLineRequestEmployee -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Employee]); - -export declare namespace ExpenseLineRequestEmployee { - export type Raw = string | Employee.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseLineRequestItem.ts b/src/serialization/resources/accounting/types/ExpenseLineRequestItem.ts deleted file mode 100644 index 65d7d0923..000000000 --- a/src/serialization/resources/accounting/types/ExpenseLineRequestItem.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 { Item } from "./Item"; - -export const ExpenseLineRequestItem: core.serialization.Schema< - serializers.accounting.ExpenseLineRequestItem.Raw, - Merge.accounting.ExpenseLineRequestItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Item]); - -export declare namespace ExpenseLineRequestItem { - export type Raw = string | Item.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseLineRequestProject.ts b/src/serialization/resources/accounting/types/ExpenseLineRequestProject.ts deleted file mode 100644 index 10a989f23..000000000 --- a/src/serialization/resources/accounting/types/ExpenseLineRequestProject.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 { Contact } from "./Contact"; - -export const ExpenseLineRequestProject: core.serialization.Schema< - serializers.accounting.ExpenseLineRequestProject.Raw, - Merge.accounting.ExpenseLineRequestProject -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace ExpenseLineRequestProject { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseLineRequestTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/ExpenseLineRequestTrackingCategoriesItem.ts deleted file mode 100644 index 4db783559..000000000 --- a/src/serialization/resources/accounting/types/ExpenseLineRequestTrackingCategoriesItem.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 { TrackingCategory } from "./TrackingCategory"; - -export const ExpenseLineRequestTrackingCategoriesItem: core.serialization.Schema< - serializers.accounting.ExpenseLineRequestTrackingCategoriesItem.Raw, - Merge.accounting.ExpenseLineRequestTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace ExpenseLineRequestTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseLineRequestTrackingCategory.ts b/src/serialization/resources/accounting/types/ExpenseLineRequestTrackingCategory.ts deleted file mode 100644 index 964687be9..000000000 --- a/src/serialization/resources/accounting/types/ExpenseLineRequestTrackingCategory.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 { TrackingCategory } from "./TrackingCategory"; - -export const ExpenseLineRequestTrackingCategory: core.serialization.Schema< - serializers.accounting.ExpenseLineRequestTrackingCategory.Raw, - Merge.accounting.ExpenseLineRequestTrackingCategory -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace ExpenseLineRequestTrackingCategory { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseLineTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/ExpenseLineTrackingCategoriesItem.ts deleted file mode 100644 index 89afc4508..000000000 --- a/src/serialization/resources/accounting/types/ExpenseLineTrackingCategoriesItem.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 { TrackingCategory } from "./TrackingCategory"; - -export const ExpenseLineTrackingCategoriesItem: core.serialization.Schema< - serializers.accounting.ExpenseLineTrackingCategoriesItem.Raw, - Merge.accounting.ExpenseLineTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace ExpenseLineTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseLineTrackingCategory.ts b/src/serialization/resources/accounting/types/ExpenseLineTrackingCategory.ts deleted file mode 100644 index f4b122858..000000000 --- a/src/serialization/resources/accounting/types/ExpenseLineTrackingCategory.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 { TrackingCategory } from "./TrackingCategory"; - -export const ExpenseLineTrackingCategory: core.serialization.Schema< - serializers.accounting.ExpenseLineTrackingCategory.Raw, - Merge.accounting.ExpenseLineTrackingCategory -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace ExpenseLineTrackingCategory { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseReport.ts b/src/serialization/resources/accounting/types/ExpenseReport.ts deleted file mode 100644 index 6c1899c0a..000000000 --- a/src/serialization/resources/accounting/types/ExpenseReport.ts +++ /dev/null @@ -1,66 +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 { ExpenseReportCompany } from "./ExpenseReportCompany"; -import { ExpenseReportLine } from "./ExpenseReportLine"; -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, - Merge.accounting.ExpenseReport -> = 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()), - 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(), - status: ExpenseReportStatus.optional(), - totalAmount: core.serialization.property("total_amount", core.serialization.number().optional()), - lines: core.serialization.list(ExpenseReportLine).optional(), - currency: TransactionCurrencyEnum.optional(), - description: core.serialization.string().optional(), - accountingPeriod: core.serialization.property("accounting_period", core.serialization.string().optional()), - company: ExpenseReportCompany.optional(), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(core.serialization.string()), - ), - 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 ExpenseReport { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - report_date?: string | null; - report_identifier?: string | null; - employee?: string | null; - status?: ExpenseReportStatus.Raw | null; - total_amount?: number | null; - lines?: ExpenseReportLine.Raw[] | null; - currency?: TransactionCurrencyEnum.Raw | null; - description?: string | null; - accounting_period?: string | null; - company?: ExpenseReportCompany.Raw | null; - tracking_categories: string[]; - 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/ExpenseReportCompany.ts b/src/serialization/resources/accounting/types/ExpenseReportCompany.ts deleted file mode 100644 index 30a0c5efb..000000000 --- a/src/serialization/resources/accounting/types/ExpenseReportCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const ExpenseReportCompany: core.serialization.Schema< - serializers.accounting.ExpenseReportCompany.Raw, - Merge.accounting.ExpenseReportCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace ExpenseReportCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseReportLine.ts b/src/serialization/resources/accounting/types/ExpenseReportLine.ts deleted file mode 100644 index 13c09c188..000000000 --- a/src/serialization/resources/accounting/types/ExpenseReportLine.ts +++ /dev/null @@ -1,75 +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 { ExpenseReportLineAccount } from "./ExpenseReportLineAccount"; -import { ExpenseReportLineCompany } from "./ExpenseReportLineCompany"; -import { ExpenseReportLineContact } from "./ExpenseReportLineContact"; -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, - Merge.accounting.ExpenseReportLine -> = 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()), - account: ExpenseReportLineAccount.optional(), - description: core.serialization.string().optional(), - expenseDate: core.serialization.property("expense_date", core.serialization.date().optional()), - amount: core.serialization.number().optional(), - currency: TransactionCurrencyEnum.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( - "tracking_categories", - core.serialization.list(core.serialization.string()), - ), - employee: ExpenseReportLineEmployee.optional(), - project: ExpenseReportLineProject.optional(), - company: ExpenseReportLineCompany.optional(), - contact: ExpenseReportLineContact.optional(), - quantity: core.serialization.number().optional(), - unitPrice: core.serialization.property("unit_price", core.serialization.number().optional()), - nonReimbursable: core.serialization.property("non_reimbursable", core.serialization.boolean().optional()), - taxAmount: core.serialization.property("tax_amount", core.serialization.number().optional()), - inclusiveOfTax: core.serialization.property("inclusive_of_tax", core.serialization.boolean().optional()), - taxRate: core.serialization.property("tax_rate", ExpenseReportLineTaxRate.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 ExpenseReportLine { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - account?: ExpenseReportLineAccount.Raw | null; - description?: string | null; - expense_date?: string | null; - amount?: number | null; - currency?: TransactionCurrencyEnum.Raw | null; - exchange_rate?: string | null; - is_billable?: boolean | null; - tracking_categories: string[]; - employee?: ExpenseReportLineEmployee.Raw | null; - project?: ExpenseReportLineProject.Raw | null; - company?: ExpenseReportLineCompany.Raw | null; - contact?: ExpenseReportLineContact.Raw | null; - quantity?: number | null; - unit_price?: number | null; - non_reimbursable?: boolean | null; - tax_amount?: number | null; - inclusive_of_tax?: boolean | null; - tax_rate?: ExpenseReportLineTaxRate.Raw | null; - remote_was_deleted?: boolean | null; - remote_fields?: RemoteField.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/ExpenseReportLineAccount.ts b/src/serialization/resources/accounting/types/ExpenseReportLineAccount.ts deleted file mode 100644 index 9e665812d..000000000 --- a/src/serialization/resources/accounting/types/ExpenseReportLineAccount.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 ExpenseReportLineAccount: core.serialization.Schema< - serializers.accounting.ExpenseReportLineAccount.Raw, - Merge.accounting.ExpenseReportLineAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace ExpenseReportLineAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseReportLineCompany.ts b/src/serialization/resources/accounting/types/ExpenseReportLineCompany.ts deleted file mode 100644 index 8fdd9568a..000000000 --- a/src/serialization/resources/accounting/types/ExpenseReportLineCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const ExpenseReportLineCompany: core.serialization.Schema< - serializers.accounting.ExpenseReportLineCompany.Raw, - Merge.accounting.ExpenseReportLineCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace ExpenseReportLineCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseReportLineContact.ts b/src/serialization/resources/accounting/types/ExpenseReportLineContact.ts deleted file mode 100644 index 886eca626..000000000 --- a/src/serialization/resources/accounting/types/ExpenseReportLineContact.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 { Contact } from "./Contact"; - -export const ExpenseReportLineContact: core.serialization.Schema< - serializers.accounting.ExpenseReportLineContact.Raw, - Merge.accounting.ExpenseReportLineContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace ExpenseReportLineContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseReportLineEmployee.ts b/src/serialization/resources/accounting/types/ExpenseReportLineEmployee.ts deleted file mode 100644 index cc4f33a83..000000000 --- a/src/serialization/resources/accounting/types/ExpenseReportLineEmployee.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 ExpenseReportLineEmployee: core.serialization.Schema< - serializers.accounting.ExpenseReportLineEmployee.Raw, - Merge.accounting.ExpenseReportLineEmployee -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Employee]); - -export declare namespace ExpenseReportLineEmployee { - export type Raw = string | Employee.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseReportLineProject.ts b/src/serialization/resources/accounting/types/ExpenseReportLineProject.ts deleted file mode 100644 index 0612d5873..000000000 --- a/src/serialization/resources/accounting/types/ExpenseReportLineProject.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 { Project } from "./Project"; - -export const ExpenseReportLineProject: core.serialization.Schema< - serializers.accounting.ExpenseReportLineProject.Raw, - Merge.accounting.ExpenseReportLineProject -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Project]); - -export declare namespace ExpenseReportLineProject { - export type Raw = string | Project.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseReportLineRequest.ts b/src/serialization/resources/accounting/types/ExpenseReportLineRequest.ts deleted file mode 100644 index b7b4d0696..000000000 --- a/src/serialization/resources/accounting/types/ExpenseReportLineRequest.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"; -import { ExpenseReportLineRequestAccount } from "./ExpenseReportLineRequestAccount"; -import { ExpenseReportLineRequestCompany } from "./ExpenseReportLineRequestCompany"; -import { ExpenseReportLineRequestContact } from "./ExpenseReportLineRequestContact"; -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, - Merge.accounting.ExpenseReportLineRequest -> = core.serialization.object({ - remoteId: core.serialization.property("remote_id", core.serialization.string().optional()), - account: ExpenseReportLineRequestAccount.optional(), - description: core.serialization.string().optional(), - expenseDate: core.serialization.property("expense_date", core.serialization.date().optional()), - amount: core.serialization.number().optional(), - currency: TransactionCurrencyEnum.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( - "tracking_categories", - core.serialization.list(core.serialization.string()), - ), - employee: ExpenseReportLineRequestEmployee.optional(), - project: ExpenseReportLineRequestProject.optional(), - company: ExpenseReportLineRequestCompany.optional(), - contact: ExpenseReportLineRequestContact.optional(), - quantity: core.serialization.number().optional(), - unitPrice: core.serialization.property("unit_price", core.serialization.number().optional()), - nonReimbursable: core.serialization.property("non_reimbursable", core.serialization.boolean().optional()), - taxAmount: core.serialization.property("tax_amount", core.serialization.number().optional()), - inclusiveOfTax: core.serialization.property("inclusive_of_tax", core.serialization.boolean().optional()), - taxRate: core.serialization.property("tax_rate", ExpenseReportLineRequestTaxRate.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 ExpenseReportLineRequest { - export interface Raw { - remote_id?: string | null; - account?: ExpenseReportLineRequestAccount.Raw | null; - description?: string | null; - expense_date?: string | null; - amount?: number | null; - currency?: TransactionCurrencyEnum.Raw | null; - exchange_rate?: string | null; - is_billable?: boolean | null; - tracking_categories: string[]; - employee?: ExpenseReportLineRequestEmployee.Raw | null; - project?: ExpenseReportLineRequestProject.Raw | null; - company?: ExpenseReportLineRequestCompany.Raw | null; - contact?: ExpenseReportLineRequestContact.Raw | null; - quantity?: number | null; - unit_price?: number | null; - non_reimbursable?: boolean | null; - tax_amount?: number | null; - inclusive_of_tax?: boolean | null; - tax_rate?: ExpenseReportLineRequestTaxRate.Raw | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/ExpenseReportLineRequestAccount.ts b/src/serialization/resources/accounting/types/ExpenseReportLineRequestAccount.ts deleted file mode 100644 index ffbd60667..000000000 --- a/src/serialization/resources/accounting/types/ExpenseReportLineRequestAccount.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 ExpenseReportLineRequestAccount: core.serialization.Schema< - serializers.accounting.ExpenseReportLineRequestAccount.Raw, - Merge.accounting.ExpenseReportLineRequestAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace ExpenseReportLineRequestAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseReportLineRequestCompany.ts b/src/serialization/resources/accounting/types/ExpenseReportLineRequestCompany.ts deleted file mode 100644 index 3b4546924..000000000 --- a/src/serialization/resources/accounting/types/ExpenseReportLineRequestCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const ExpenseReportLineRequestCompany: core.serialization.Schema< - serializers.accounting.ExpenseReportLineRequestCompany.Raw, - Merge.accounting.ExpenseReportLineRequestCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace ExpenseReportLineRequestCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseReportLineRequestContact.ts b/src/serialization/resources/accounting/types/ExpenseReportLineRequestContact.ts deleted file mode 100644 index 6a773b555..000000000 --- a/src/serialization/resources/accounting/types/ExpenseReportLineRequestContact.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 { Contact } from "./Contact"; - -export const ExpenseReportLineRequestContact: core.serialization.Schema< - serializers.accounting.ExpenseReportLineRequestContact.Raw, - Merge.accounting.ExpenseReportLineRequestContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace ExpenseReportLineRequestContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseReportLineRequestEmployee.ts b/src/serialization/resources/accounting/types/ExpenseReportLineRequestEmployee.ts deleted file mode 100644 index 06e1adb99..000000000 --- a/src/serialization/resources/accounting/types/ExpenseReportLineRequestEmployee.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 ExpenseReportLineRequestEmployee: core.serialization.Schema< - serializers.accounting.ExpenseReportLineRequestEmployee.Raw, - Merge.accounting.ExpenseReportLineRequestEmployee -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Employee]); - -export declare namespace ExpenseReportLineRequestEmployee { - export type Raw = string | Employee.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseReportLineRequestProject.ts b/src/serialization/resources/accounting/types/ExpenseReportLineRequestProject.ts deleted file mode 100644 index ae422d749..000000000 --- a/src/serialization/resources/accounting/types/ExpenseReportLineRequestProject.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 { Project } from "./Project"; - -export const ExpenseReportLineRequestProject: core.serialization.Schema< - serializers.accounting.ExpenseReportLineRequestProject.Raw, - Merge.accounting.ExpenseReportLineRequestProject -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Project]); - -export declare namespace ExpenseReportLineRequestProject { - export type Raw = string | Project.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseReportLineRequestTaxRate.ts b/src/serialization/resources/accounting/types/ExpenseReportLineRequestTaxRate.ts deleted file mode 100644 index e2b530c07..000000000 --- a/src/serialization/resources/accounting/types/ExpenseReportLineRequestTaxRate.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 { TaxRate } from "./TaxRate"; - -export const ExpenseReportLineRequestTaxRate: core.serialization.Schema< - serializers.accounting.ExpenseReportLineRequestTaxRate.Raw, - Merge.accounting.ExpenseReportLineRequestTaxRate -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TaxRate]); - -export declare namespace ExpenseReportLineRequestTaxRate { - export type Raw = string | TaxRate.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseReportLineTaxRate.ts b/src/serialization/resources/accounting/types/ExpenseReportLineTaxRate.ts deleted file mode 100644 index cb556c9b2..000000000 --- a/src/serialization/resources/accounting/types/ExpenseReportLineTaxRate.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 { TaxRate } from "./TaxRate"; - -export const ExpenseReportLineTaxRate: core.serialization.Schema< - serializers.accounting.ExpenseReportLineTaxRate.Raw, - Merge.accounting.ExpenseReportLineTaxRate -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TaxRate]); - -export declare namespace ExpenseReportLineTaxRate { - export type Raw = string | TaxRate.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseReportRequest.ts b/src/serialization/resources/accounting/types/ExpenseReportRequest.ts deleted file mode 100644 index 1bda9470d..000000000 --- a/src/serialization/resources/accounting/types/ExpenseReportRequest.ts +++ /dev/null @@ -1,57 +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 { ExpenseReportRequestAccountingPeriod } from "./ExpenseReportRequestAccountingPeriod"; -import { ExpenseReportRequestCompany } from "./ExpenseReportRequestCompany"; -import { ExpenseReportRequestEmployee } from "./ExpenseReportRequestEmployee"; -import { ExpenseReportStatusEnum } from "./ExpenseReportStatusEnum"; -import { RemoteFieldRequest } from "./RemoteFieldRequest"; -import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const ExpenseReportRequest: core.serialization.ObjectSchema< - serializers.accounting.ExpenseReportRequest.Raw, - Merge.accounting.ExpenseReportRequest -> = core.serialization.object({ - 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(), - totalAmount: core.serialization.property("total_amount", core.serialization.number().optional()), - currency: TransactionCurrencyEnum.optional(), - description: core.serialization.string().optional(), - accountingPeriod: core.serialization.property("accounting_period", ExpenseReportRequestAccountingPeriod.optional()), - company: ExpenseReportRequestCompany.optional(), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(core.serialization.string()), - ), - 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 ExpenseReportRequest { - export interface Raw { - report_date?: string | null; - report_identifier?: string | null; - employee?: ExpenseReportRequestEmployee.Raw | null; - status?: ExpenseReportStatusEnum.Raw | null; - total_amount?: number | null; - currency?: TransactionCurrencyEnum.Raw | null; - description?: string | null; - accounting_period?: ExpenseReportRequestAccountingPeriod.Raw | null; - company?: ExpenseReportRequestCompany.Raw | null; - tracking_categories: string[]; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/ExpenseReportRequestAccountingPeriod.ts b/src/serialization/resources/accounting/types/ExpenseReportRequestAccountingPeriod.ts deleted file mode 100644 index 90f32df38..000000000 --- a/src/serialization/resources/accounting/types/ExpenseReportRequestAccountingPeriod.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 { AccountingPeriod } from "./AccountingPeriod"; - -export const ExpenseReportRequestAccountingPeriod: core.serialization.Schema< - serializers.accounting.ExpenseReportRequestAccountingPeriod.Raw, - Merge.accounting.ExpenseReportRequestAccountingPeriod -> = core.serialization.undiscriminatedUnion([core.serialization.string(), AccountingPeriod]); - -export declare namespace ExpenseReportRequestAccountingPeriod { - export type Raw = string | AccountingPeriod.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseReportRequestCompany.ts b/src/serialization/resources/accounting/types/ExpenseReportRequestCompany.ts deleted file mode 100644 index faaa74e14..000000000 --- a/src/serialization/resources/accounting/types/ExpenseReportRequestCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const ExpenseReportRequestCompany: core.serialization.Schema< - serializers.accounting.ExpenseReportRequestCompany.Raw, - Merge.accounting.ExpenseReportRequestCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace ExpenseReportRequestCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseReportRequestEmployee.ts b/src/serialization/resources/accounting/types/ExpenseReportRequestEmployee.ts deleted file mode 100644 index 2841465fb..000000000 --- a/src/serialization/resources/accounting/types/ExpenseReportRequestEmployee.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 ExpenseReportRequestEmployee: core.serialization.Schema< - serializers.accounting.ExpenseReportRequestEmployee.Raw, - Merge.accounting.ExpenseReportRequestEmployee -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Employee]); - -export declare namespace ExpenseReportRequestEmployee { - export type Raw = string | Employee.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseReportResponse.ts b/src/serialization/resources/accounting/types/ExpenseReportResponse.ts deleted file mode 100644 index 7be0c3b91..000000000 --- a/src/serialization/resources/accounting/types/ExpenseReportResponse.ts +++ /dev/null @@ -1,28 +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 { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { ExpenseReport } from "./ExpenseReport"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const ExpenseReportResponse: core.serialization.ObjectSchema< - serializers.accounting.ExpenseReportResponse.Raw, - Merge.accounting.ExpenseReportResponse -> = core.serialization.object({ - model: ExpenseReport, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace ExpenseReportResponse { - export interface Raw { - model: ExpenseReport.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/ExpenseReportStatus.ts b/src/serialization/resources/accounting/types/ExpenseReportStatus.ts deleted file mode 100644 index 5be71dee5..000000000 --- a/src/serialization/resources/accounting/types/ExpenseReportStatus.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 { ExpenseReportStatusEnum } from "./ExpenseReportStatusEnum"; - -export const ExpenseReportStatus: core.serialization.Schema< - serializers.accounting.ExpenseReportStatus.Raw, - Merge.accounting.ExpenseReportStatus -> = core.serialization.undiscriminatedUnion([ExpenseReportStatusEnum, core.serialization.string()]); - -export declare namespace ExpenseReportStatus { - export type Raw = ExpenseReportStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/ExpenseReportStatusEnum.ts b/src/serialization/resources/accounting/types/ExpenseReportStatusEnum.ts deleted file mode 100644 index 7f18ed599..000000000 --- a/src/serialization/resources/accounting/types/ExpenseReportStatusEnum.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 ExpenseReportStatusEnum: core.serialization.Schema< - serializers.accounting.ExpenseReportStatusEnum.Raw, - Merge.accounting.ExpenseReportStatusEnum -> = core.serialization.enum_(["DRAFT", "SUBMITTED", "APPROVED", "REJECTED"]); - -export declare namespace ExpenseReportStatusEnum { - export type Raw = "DRAFT" | "SUBMITTED" | "APPROVED" | "REJECTED"; -} diff --git a/src/serialization/resources/accounting/types/ExpenseRequest.ts b/src/serialization/resources/accounting/types/ExpenseRequest.ts deleted file mode 100644 index be5577043..000000000 --- a/src/serialization/resources/accounting/types/ExpenseRequest.ts +++ /dev/null @@ -1,70 +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 { ExpenseLineRequest } from "./ExpenseLineRequest"; -import { ExpenseRequestAccount } from "./ExpenseRequestAccount"; -import { ExpenseRequestAccountingPeriod } from "./ExpenseRequestAccountingPeriod"; -import { ExpenseRequestCompany } from "./ExpenseRequestCompany"; -import { ExpenseRequestContact } from "./ExpenseRequestContact"; -import { ExpenseRequestCurrency } from "./ExpenseRequestCurrency"; -import { ExpenseRequestEmployee } from "./ExpenseRequestEmployee"; -import { ExpenseRequestTrackingCategoriesItem } from "./ExpenseRequestTrackingCategoriesItem"; -import { RemoteFieldRequest } from "./RemoteFieldRequest"; - -export const ExpenseRequest: core.serialization.ObjectSchema< - serializers.accounting.ExpenseRequest.Raw, - Merge.accounting.ExpenseRequest -> = core.serialization.object({ - transactionDate: core.serialization.property("transaction_date", core.serialization.date().optional()), - account: ExpenseRequestAccount.optional(), - contact: ExpenseRequestContact.optional(), - totalAmount: core.serialization.property("total_amount", core.serialization.number().optional()), - subTotal: core.serialization.property("sub_total", core.serialization.number().optional()), - totalTaxAmount: core.serialization.property("total_tax_amount", core.serialization.number().optional()), - currency: ExpenseRequestCurrency.optional(), - exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), - inclusiveOfTax: core.serialization.property("inclusive_of_tax", core.serialization.boolean().optional()), - company: ExpenseRequestCompany.optional(), - employee: ExpenseRequestEmployee.optional(), - memo: core.serialization.string().optional(), - lines: core.serialization.list(ExpenseLineRequest).optional(), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(ExpenseRequestTrackingCategoriesItem.optional()).optional(), - ), - accountingPeriod: core.serialization.property("accounting_period", ExpenseRequestAccountingPeriod.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 ExpenseRequest { - export interface Raw { - transaction_date?: string | null; - account?: ExpenseRequestAccount.Raw | null; - contact?: ExpenseRequestContact.Raw | null; - total_amount?: number | null; - sub_total?: number | null; - total_tax_amount?: number | null; - currency?: ExpenseRequestCurrency.Raw | null; - exchange_rate?: string | null; - inclusive_of_tax?: boolean | null; - company?: ExpenseRequestCompany.Raw | null; - employee?: ExpenseRequestEmployee.Raw | null; - memo?: string | null; - lines?: ExpenseLineRequest.Raw[] | null; - tracking_categories?: (ExpenseRequestTrackingCategoriesItem.Raw | null | undefined)[] | null; - accounting_period?: ExpenseRequestAccountingPeriod.Raw | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/ExpenseRequestAccount.ts b/src/serialization/resources/accounting/types/ExpenseRequestAccount.ts deleted file mode 100644 index a439907cf..000000000 --- a/src/serialization/resources/accounting/types/ExpenseRequestAccount.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 ExpenseRequestAccount: core.serialization.Schema< - serializers.accounting.ExpenseRequestAccount.Raw, - Merge.accounting.ExpenseRequestAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace ExpenseRequestAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseRequestAccountingPeriod.ts b/src/serialization/resources/accounting/types/ExpenseRequestAccountingPeriod.ts deleted file mode 100644 index 8d37295a1..000000000 --- a/src/serialization/resources/accounting/types/ExpenseRequestAccountingPeriod.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 { AccountingPeriod } from "./AccountingPeriod"; - -export const ExpenseRequestAccountingPeriod: core.serialization.Schema< - serializers.accounting.ExpenseRequestAccountingPeriod.Raw, - Merge.accounting.ExpenseRequestAccountingPeriod -> = core.serialization.undiscriminatedUnion([core.serialization.string(), AccountingPeriod]); - -export declare namespace ExpenseRequestAccountingPeriod { - export type Raw = string | AccountingPeriod.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseRequestCompany.ts b/src/serialization/resources/accounting/types/ExpenseRequestCompany.ts deleted file mode 100644 index 826ef443e..000000000 --- a/src/serialization/resources/accounting/types/ExpenseRequestCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const ExpenseRequestCompany: core.serialization.Schema< - serializers.accounting.ExpenseRequestCompany.Raw, - Merge.accounting.ExpenseRequestCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace ExpenseRequestCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseRequestContact.ts b/src/serialization/resources/accounting/types/ExpenseRequestContact.ts deleted file mode 100644 index 188b3355b..000000000 --- a/src/serialization/resources/accounting/types/ExpenseRequestContact.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 { Contact } from "./Contact"; - -export const ExpenseRequestContact: core.serialization.Schema< - serializers.accounting.ExpenseRequestContact.Raw, - Merge.accounting.ExpenseRequestContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace ExpenseRequestContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseRequestCurrency.ts b/src/serialization/resources/accounting/types/ExpenseRequestCurrency.ts deleted file mode 100644 index 43412bbd3..000000000 --- a/src/serialization/resources/accounting/types/ExpenseRequestCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const ExpenseRequestCurrency: core.serialization.Schema< - serializers.accounting.ExpenseRequestCurrency.Raw, - Merge.accounting.ExpenseRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace ExpenseRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/ExpenseRequestEmployee.ts b/src/serialization/resources/accounting/types/ExpenseRequestEmployee.ts deleted file mode 100644 index ea3532fa1..000000000 --- a/src/serialization/resources/accounting/types/ExpenseRequestEmployee.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 ExpenseRequestEmployee: core.serialization.Schema< - serializers.accounting.ExpenseRequestEmployee.Raw, - Merge.accounting.ExpenseRequestEmployee -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Employee]); - -export declare namespace ExpenseRequestEmployee { - export type Raw = string | Employee.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseRequestTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/ExpenseRequestTrackingCategoriesItem.ts deleted file mode 100644 index 760753d7f..000000000 --- a/src/serialization/resources/accounting/types/ExpenseRequestTrackingCategoriesItem.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 { TrackingCategory } from "./TrackingCategory"; - -export const ExpenseRequestTrackingCategoriesItem: core.serialization.Schema< - serializers.accounting.ExpenseRequestTrackingCategoriesItem.Raw, - Merge.accounting.ExpenseRequestTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace ExpenseRequestTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExpenseResponse.ts b/src/serialization/resources/accounting/types/ExpenseResponse.ts deleted file mode 100644 index 952d54b8c..000000000 --- a/src/serialization/resources/accounting/types/ExpenseResponse.ts +++ /dev/null @@ -1,28 +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 { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { Expense } from "./Expense"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const ExpenseResponse: core.serialization.ObjectSchema< - serializers.accounting.ExpenseResponse.Raw, - Merge.accounting.ExpenseResponse -> = core.serialization.object({ - model: Expense, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace ExpenseResponse { - export interface Raw { - model: Expense.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/ExpenseTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/ExpenseTrackingCategoriesItem.ts deleted file mode 100644 index fb861d8c8..000000000 --- a/src/serialization/resources/accounting/types/ExpenseTrackingCategoriesItem.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 { TrackingCategory } from "./TrackingCategory"; - -export const ExpenseTrackingCategoriesItem: core.serialization.Schema< - serializers.accounting.ExpenseTrackingCategoriesItem.Raw, - Merge.accounting.ExpenseTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace ExpenseTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/ExternalTargetFieldApi.ts b/src/serialization/resources/accounting/types/ExternalTargetFieldApi.ts deleted file mode 100644 index f1845d080..000000000 --- a/src/serialization/resources/accounting/types/ExternalTargetFieldApi.ts +++ /dev/null @@ -1,22 +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 ExternalTargetFieldApi: core.serialization.ObjectSchema< - serializers.accounting.ExternalTargetFieldApi.Raw, - Merge.accounting.ExternalTargetFieldApi -> = core.serialization.object({ - name: core.serialization.string().optional(), - description: core.serialization.string().optional(), - isMapped: core.serialization.property("is_mapped", core.serialization.string().optional()), -}); - -export declare namespace ExternalTargetFieldApi { - export interface Raw { - name?: string | null; - description?: string | null; - is_mapped?: string | null; - } -} diff --git a/src/serialization/resources/accounting/types/ExternalTargetFieldApiResponse.ts b/src/serialization/resources/accounting/types/ExternalTargetFieldApiResponse.ts deleted file mode 100644 index 7a5a88cf3..000000000 --- a/src/serialization/resources/accounting/types/ExternalTargetFieldApiResponse.ts +++ /dev/null @@ -1,108 +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 { ExternalTargetFieldApi } from "./ExternalTargetFieldApi"; - -export const ExternalTargetFieldApiResponse: core.serialization.ObjectSchema< - serializers.accounting.ExternalTargetFieldApiResponse.Raw, - Merge.accounting.ExternalTargetFieldApiResponse -> = core.serialization.object({ - account: core.serialization.property("Account", core.serialization.list(ExternalTargetFieldApi).optional()), - accountingAttachment: core.serialization.property( - "AccountingAttachment", - core.serialization.list(ExternalTargetFieldApi).optional(), - ), - balanceSheet: core.serialization.property( - "BalanceSheet", - core.serialization.list(ExternalTargetFieldApi).optional(), - ), - cashFlowStatement: core.serialization.property( - "CashFlowStatement", - core.serialization.list(ExternalTargetFieldApi).optional(), - ), - companyInfo: core.serialization.property("CompanyInfo", core.serialization.list(ExternalTargetFieldApi).optional()), - contact: core.serialization.property("Contact", core.serialization.list(ExternalTargetFieldApi).optional()), - incomeStatement: core.serialization.property( - "IncomeStatement", - core.serialization.list(ExternalTargetFieldApi).optional(), - ), - creditNote: core.serialization.property("CreditNote", core.serialization.list(ExternalTargetFieldApi).optional()), - item: core.serialization.property("Item", core.serialization.list(ExternalTargetFieldApi).optional()), - purchaseOrder: core.serialization.property( - "PurchaseOrder", - core.serialization.list(ExternalTargetFieldApi).optional(), - ), - expenseReport: core.serialization.property( - "ExpenseReport", - core.serialization.list(ExternalTargetFieldApi).optional(), - ), - trackingCategory: core.serialization.property( - "TrackingCategory", - core.serialization.list(ExternalTargetFieldApi).optional(), - ), - journalEntry: core.serialization.property( - "JournalEntry", - core.serialization.list(ExternalTargetFieldApi).optional(), - ), - taxRate: core.serialization.property("TaxRate", core.serialization.list(ExternalTargetFieldApi).optional()), - invoice: core.serialization.property("Invoice", core.serialization.list(ExternalTargetFieldApi).optional()), - payment: core.serialization.property("Payment", core.serialization.list(ExternalTargetFieldApi).optional()), - expense: core.serialization.property("Expense", core.serialization.list(ExternalTargetFieldApi).optional()), - vendorCredit: core.serialization.property( - "VendorCredit", - core.serialization.list(ExternalTargetFieldApi).optional(), - ), - transaction: core.serialization.property("Transaction", core.serialization.list(ExternalTargetFieldApi).optional()), - accountingPeriod: core.serialization.property( - "AccountingPeriod", - core.serialization.list(ExternalTargetFieldApi).optional(), - ), - generalLedgerTransaction: core.serialization.property( - "GeneralLedgerTransaction", - core.serialization.list(ExternalTargetFieldApi).optional(), - ), - bankFeedAccount: core.serialization.property( - "BankFeedAccount", - core.serialization.list(ExternalTargetFieldApi).optional(), - ), - employee: core.serialization.property("Employee", core.serialization.list(ExternalTargetFieldApi).optional()), - paymentMethod: core.serialization.property( - "PaymentMethod", - core.serialization.list(ExternalTargetFieldApi).optional(), - ), - project: core.serialization.property("Project", core.serialization.list(ExternalTargetFieldApi).optional()), - paymentTerm: core.serialization.property("PaymentTerm", core.serialization.list(ExternalTargetFieldApi).optional()), -}); - -export declare namespace ExternalTargetFieldApiResponse { - export interface Raw { - Account?: ExternalTargetFieldApi.Raw[] | null; - AccountingAttachment?: ExternalTargetFieldApi.Raw[] | null; - BalanceSheet?: ExternalTargetFieldApi.Raw[] | null; - CashFlowStatement?: ExternalTargetFieldApi.Raw[] | null; - CompanyInfo?: ExternalTargetFieldApi.Raw[] | null; - Contact?: ExternalTargetFieldApi.Raw[] | null; - IncomeStatement?: ExternalTargetFieldApi.Raw[] | null; - CreditNote?: ExternalTargetFieldApi.Raw[] | null; - Item?: ExternalTargetFieldApi.Raw[] | null; - PurchaseOrder?: ExternalTargetFieldApi.Raw[] | null; - ExpenseReport?: ExternalTargetFieldApi.Raw[] | null; - TrackingCategory?: ExternalTargetFieldApi.Raw[] | null; - JournalEntry?: ExternalTargetFieldApi.Raw[] | null; - TaxRate?: ExternalTargetFieldApi.Raw[] | null; - Invoice?: ExternalTargetFieldApi.Raw[] | null; - Payment?: ExternalTargetFieldApi.Raw[] | null; - Expense?: ExternalTargetFieldApi.Raw[] | null; - VendorCredit?: ExternalTargetFieldApi.Raw[] | null; - Transaction?: ExternalTargetFieldApi.Raw[] | null; - AccountingPeriod?: ExternalTargetFieldApi.Raw[] | null; - GeneralLedgerTransaction?: ExternalTargetFieldApi.Raw[] | null; - BankFeedAccount?: ExternalTargetFieldApi.Raw[] | null; - Employee?: ExternalTargetFieldApi.Raw[] | null; - PaymentMethod?: ExternalTargetFieldApi.Raw[] | null; - Project?: ExternalTargetFieldApi.Raw[] | null; - PaymentTerm?: ExternalTargetFieldApi.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/FeedStatusEnum.ts b/src/serialization/resources/accounting/types/FeedStatusEnum.ts deleted file mode 100644 index 21f93de3d..000000000 --- a/src/serialization/resources/accounting/types/FeedStatusEnum.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 FeedStatusEnum: core.serialization.Schema< - serializers.accounting.FeedStatusEnum.Raw, - Merge.accounting.FeedStatusEnum -> = core.serialization.enum_(["ACTIVE", "INACTIVE"]); - -export declare namespace FeedStatusEnum { - export type Raw = "ACTIVE" | "INACTIVE"; -} diff --git a/src/serialization/resources/accounting/types/FieldFormatEnum.ts b/src/serialization/resources/accounting/types/FieldFormatEnum.ts deleted file mode 100644 index eb5b33671..000000000 --- a/src/serialization/resources/accounting/types/FieldFormatEnum.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 FieldFormatEnum: core.serialization.Schema< - serializers.accounting.FieldFormatEnum.Raw, - Merge.accounting.FieldFormatEnum -> = core.serialization.enum_(["string", "number", "date", "datetime", "bool", "list"]); - -export declare namespace FieldFormatEnum { - export type Raw = "string" | "number" | "date" | "datetime" | "bool" | "list"; -} diff --git a/src/serialization/resources/accounting/types/FieldMappingApiInstance.ts b/src/serialization/resources/accounting/types/FieldMappingApiInstance.ts deleted file mode 100644 index 15eb7e9dd..000000000 --- a/src/serialization/resources/accounting/types/FieldMappingApiInstance.ts +++ /dev/null @@ -1,26 +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 { FieldMappingApiInstanceRemoteField } from "./FieldMappingApiInstanceRemoteField"; -import { FieldMappingApiInstanceTargetField } from "./FieldMappingApiInstanceTargetField"; - -export const FieldMappingApiInstance: core.serialization.ObjectSchema< - serializers.accounting.FieldMappingApiInstance.Raw, - Merge.accounting.FieldMappingApiInstance -> = core.serialization.object({ - id: core.serialization.string().optional(), - 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()), -}); - -export declare namespace FieldMappingApiInstance { - export interface Raw { - id?: string | null; - is_integration_wide?: boolean | null; - target_field?: FieldMappingApiInstanceTargetField.Raw | null; - remote_field?: FieldMappingApiInstanceRemoteField.Raw | null; - } -} diff --git a/src/serialization/resources/accounting/types/FieldMappingApiInstanceRemoteField.ts b/src/serialization/resources/accounting/types/FieldMappingApiInstanceRemoteField.ts deleted file mode 100644 index 0d827614d..000000000 --- a/src/serialization/resources/accounting/types/FieldMappingApiInstanceRemoteField.ts +++ /dev/null @@ -1,26 +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 { FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo } from "./FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo"; - -export const FieldMappingApiInstanceRemoteField: core.serialization.ObjectSchema< - serializers.accounting.FieldMappingApiInstanceRemoteField.Raw, - Merge.accounting.FieldMappingApiInstanceRemoteField -> = core.serialization.object({ - remoteKeyName: core.serialization.property("remote_key_name", core.serialization.string().optional()), - schema: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - remoteEndpointInfo: core.serialization.property( - "remote_endpoint_info", - FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo, - ), -}); - -export declare namespace FieldMappingApiInstanceRemoteField { - export interface Raw { - remote_key_name?: string | null; - schema?: Record | null; - remote_endpoint_info: FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.Raw; - } -} diff --git a/src/serialization/resources/accounting/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts b/src/serialization/resources/accounting/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts deleted file mode 100644 index f06c585d5..000000000 --- a/src/serialization/resources/accounting/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts +++ /dev/null @@ -1,25 +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 FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo: core.serialization.ObjectSchema< - serializers.accounting.FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.Raw, - Merge.accounting.FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo -> = core.serialization.object({ - method: core.serialization.string().optional(), - urlPath: core.serialization.property("url_path", core.serialization.string().optional()), - fieldTraversalPath: core.serialization.property( - "field_traversal_path", - core.serialization.list(core.serialization.string()).optional(), - ), -}); - -export declare namespace FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo { - export interface Raw { - method?: string | null; - url_path?: string | null; - field_traversal_path?: string[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/FieldMappingApiInstanceResponse.ts b/src/serialization/resources/accounting/types/FieldMappingApiInstanceResponse.ts deleted file mode 100644 index 736070bd8..000000000 --- a/src/serialization/resources/accounting/types/FieldMappingApiInstanceResponse.ts +++ /dev/null @@ -1,117 +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 { FieldMappingApiInstance } from "./FieldMappingApiInstance"; - -export const FieldMappingApiInstanceResponse: core.serialization.ObjectSchema< - serializers.accounting.FieldMappingApiInstanceResponse.Raw, - Merge.accounting.FieldMappingApiInstanceResponse -> = core.serialization.object({ - account: core.serialization.property("Account", core.serialization.list(FieldMappingApiInstance).optional()), - accountingAttachment: core.serialization.property( - "AccountingAttachment", - core.serialization.list(FieldMappingApiInstance).optional(), - ), - balanceSheet: core.serialization.property( - "BalanceSheet", - core.serialization.list(FieldMappingApiInstance).optional(), - ), - cashFlowStatement: core.serialization.property( - "CashFlowStatement", - core.serialization.list(FieldMappingApiInstance).optional(), - ), - companyInfo: core.serialization.property( - "CompanyInfo", - core.serialization.list(FieldMappingApiInstance).optional(), - ), - contact: core.serialization.property("Contact", core.serialization.list(FieldMappingApiInstance).optional()), - incomeStatement: core.serialization.property( - "IncomeStatement", - core.serialization.list(FieldMappingApiInstance).optional(), - ), - creditNote: core.serialization.property("CreditNote", core.serialization.list(FieldMappingApiInstance).optional()), - item: core.serialization.property("Item", core.serialization.list(FieldMappingApiInstance).optional()), - purchaseOrder: core.serialization.property( - "PurchaseOrder", - core.serialization.list(FieldMappingApiInstance).optional(), - ), - expenseReport: core.serialization.property( - "ExpenseReport", - core.serialization.list(FieldMappingApiInstance).optional(), - ), - trackingCategory: core.serialization.property( - "TrackingCategory", - core.serialization.list(FieldMappingApiInstance).optional(), - ), - journalEntry: core.serialization.property( - "JournalEntry", - core.serialization.list(FieldMappingApiInstance).optional(), - ), - taxRate: core.serialization.property("TaxRate", core.serialization.list(FieldMappingApiInstance).optional()), - invoice: core.serialization.property("Invoice", core.serialization.list(FieldMappingApiInstance).optional()), - payment: core.serialization.property("Payment", core.serialization.list(FieldMappingApiInstance).optional()), - expense: core.serialization.property("Expense", core.serialization.list(FieldMappingApiInstance).optional()), - vendorCredit: core.serialization.property( - "VendorCredit", - core.serialization.list(FieldMappingApiInstance).optional(), - ), - transaction: core.serialization.property( - "Transaction", - core.serialization.list(FieldMappingApiInstance).optional(), - ), - accountingPeriod: core.serialization.property( - "AccountingPeriod", - core.serialization.list(FieldMappingApiInstance).optional(), - ), - generalLedgerTransaction: core.serialization.property( - "GeneralLedgerTransaction", - core.serialization.list(FieldMappingApiInstance).optional(), - ), - bankFeedAccount: core.serialization.property( - "BankFeedAccount", - core.serialization.list(FieldMappingApiInstance).optional(), - ), - employee: core.serialization.property("Employee", core.serialization.list(FieldMappingApiInstance).optional()), - paymentMethod: core.serialization.property( - "PaymentMethod", - core.serialization.list(FieldMappingApiInstance).optional(), - ), - project: core.serialization.property("Project", core.serialization.list(FieldMappingApiInstance).optional()), - paymentTerm: core.serialization.property( - "PaymentTerm", - core.serialization.list(FieldMappingApiInstance).optional(), - ), -}); - -export declare namespace FieldMappingApiInstanceResponse { - export interface Raw { - Account?: FieldMappingApiInstance.Raw[] | null; - AccountingAttachment?: FieldMappingApiInstance.Raw[] | null; - BalanceSheet?: FieldMappingApiInstance.Raw[] | null; - CashFlowStatement?: FieldMappingApiInstance.Raw[] | null; - CompanyInfo?: FieldMappingApiInstance.Raw[] | null; - Contact?: FieldMappingApiInstance.Raw[] | null; - IncomeStatement?: FieldMappingApiInstance.Raw[] | null; - CreditNote?: FieldMappingApiInstance.Raw[] | null; - Item?: FieldMappingApiInstance.Raw[] | null; - PurchaseOrder?: FieldMappingApiInstance.Raw[] | null; - ExpenseReport?: FieldMappingApiInstance.Raw[] | null; - TrackingCategory?: FieldMappingApiInstance.Raw[] | null; - JournalEntry?: FieldMappingApiInstance.Raw[] | null; - TaxRate?: FieldMappingApiInstance.Raw[] | null; - Invoice?: FieldMappingApiInstance.Raw[] | null; - Payment?: FieldMappingApiInstance.Raw[] | null; - Expense?: FieldMappingApiInstance.Raw[] | null; - VendorCredit?: FieldMappingApiInstance.Raw[] | null; - Transaction?: FieldMappingApiInstance.Raw[] | null; - AccountingPeriod?: FieldMappingApiInstance.Raw[] | null; - GeneralLedgerTransaction?: FieldMappingApiInstance.Raw[] | null; - BankFeedAccount?: FieldMappingApiInstance.Raw[] | null; - Employee?: FieldMappingApiInstance.Raw[] | null; - PaymentMethod?: FieldMappingApiInstance.Raw[] | null; - Project?: FieldMappingApiInstance.Raw[] | null; - PaymentTerm?: FieldMappingApiInstance.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/FieldMappingApiInstanceTargetField.ts b/src/serialization/resources/accounting/types/FieldMappingApiInstanceTargetField.ts deleted file mode 100644 index 1ffdccbae..000000000 --- a/src/serialization/resources/accounting/types/FieldMappingApiInstanceTargetField.ts +++ /dev/null @@ -1,22 +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 FieldMappingApiInstanceTargetField: core.serialization.ObjectSchema< - serializers.accounting.FieldMappingApiInstanceTargetField.Raw, - Merge.accounting.FieldMappingApiInstanceTargetField -> = core.serialization.object({ - name: core.serialization.string(), - description: core.serialization.string(), - isOrganizationWide: core.serialization.property("is_organization_wide", core.serialization.boolean()), -}); - -export declare namespace FieldMappingApiInstanceTargetField { - export interface Raw { - name: string; - description: string; - is_organization_wide: boolean; - } -} diff --git a/src/serialization/resources/accounting/types/FieldMappingInstanceResponse.ts b/src/serialization/resources/accounting/types/FieldMappingInstanceResponse.ts deleted file mode 100644 index 511ed7f66..000000000 --- a/src/serialization/resources/accounting/types/FieldMappingInstanceResponse.ts +++ /dev/null @@ -1,28 +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 { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { FieldMappingApiInstance } from "./FieldMappingApiInstance"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const FieldMappingInstanceResponse: core.serialization.ObjectSchema< - serializers.accounting.FieldMappingInstanceResponse.Raw, - Merge.accounting.FieldMappingInstanceResponse -> = core.serialization.object({ - model: FieldMappingApiInstance, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace FieldMappingInstanceResponse { - export interface Raw { - model: FieldMappingApiInstance.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/FieldPermissionDeserializer.ts b/src/serialization/resources/accounting/types/FieldPermissionDeserializer.ts deleted file mode 100644 index 46cf7073e..000000000 --- a/src/serialization/resources/accounting/types/FieldPermissionDeserializer.ts +++ /dev/null @@ -1,26 +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 FieldPermissionDeserializer: core.serialization.ObjectSchema< - serializers.accounting.FieldPermissionDeserializer.Raw, - Merge.accounting.FieldPermissionDeserializer -> = core.serialization.object({ - enabledFields: core.serialization.property( - "enabled_fields", - core.serialization.list(core.serialization.unknown()).optional(), - ), - disabledFields: core.serialization.property( - "disabled_fields", - core.serialization.list(core.serialization.unknown()).optional(), - ), -}); - -export declare namespace FieldPermissionDeserializer { - export interface Raw { - enabled_fields?: unknown[] | null; - disabled_fields?: unknown[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/FieldPermissionDeserializerRequest.ts b/src/serialization/resources/accounting/types/FieldPermissionDeserializerRequest.ts deleted file mode 100644 index a33ced7b0..000000000 --- a/src/serialization/resources/accounting/types/FieldPermissionDeserializerRequest.ts +++ /dev/null @@ -1,26 +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 FieldPermissionDeserializerRequest: core.serialization.ObjectSchema< - serializers.accounting.FieldPermissionDeserializerRequest.Raw, - Merge.accounting.FieldPermissionDeserializerRequest -> = core.serialization.object({ - enabledFields: core.serialization.property( - "enabled_fields", - core.serialization.list(core.serialization.unknown()).optional(), - ), - disabledFields: core.serialization.property( - "disabled_fields", - core.serialization.list(core.serialization.unknown()).optional(), - ), -}); - -export declare namespace FieldPermissionDeserializerRequest { - export interface Raw { - enabled_fields?: unknown[] | null; - disabled_fields?: unknown[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/FieldTypeEnum.ts b/src/serialization/resources/accounting/types/FieldTypeEnum.ts deleted file mode 100644 index 389b82791..000000000 --- a/src/serialization/resources/accounting/types/FieldTypeEnum.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 FieldTypeEnum: core.serialization.Schema< - serializers.accounting.FieldTypeEnum.Raw, - Merge.accounting.FieldTypeEnum -> = core.serialization.enum_(["string", "number", "date", "datetime", "bool", "list"]); - -export declare namespace FieldTypeEnum { - export type Raw = "string" | "number" | "date" | "datetime" | "bool" | "list"; -} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransaction.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransaction.ts deleted file mode 100644 index 8881295c0..000000000 --- a/src/serialization/resources/accounting/types/GeneralLedgerTransaction.ts +++ /dev/null @@ -1,72 +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 { GeneralLedgerTransactionAccountingPeriod } from "./GeneralLedgerTransactionAccountingPeriod"; -import { GeneralLedgerTransactionCompany } from "./GeneralLedgerTransactionCompany"; -import { GeneralLedgerTransactionGeneralLedgerTransactionLinesItem } from "./GeneralLedgerTransactionGeneralLedgerTransactionLinesItem"; -import { GeneralLedgerTransactionTrackingCategoriesItem } from "./GeneralLedgerTransactionTrackingCategoriesItem"; -import { GeneralLedgerTransactionUnderlyingTransactionType } from "./GeneralLedgerTransactionUnderlyingTransactionType"; -import { RemoteData } from "./RemoteData"; - -export const GeneralLedgerTransaction: core.serialization.ObjectSchema< - serializers.accounting.GeneralLedgerTransaction.Raw, - Merge.accounting.GeneralLedgerTransaction -> = 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()), - underlyingTransactionRemoteId: core.serialization.property( - "underlying_transaction_remote_id", - core.serialization.string().optional(), - ), - underlyingTransactionType: core.serialization.property( - "underlying_transaction_type", - GeneralLedgerTransactionUnderlyingTransactionType.optional(), - ), - accountingPeriod: core.serialization.property( - "accounting_period", - GeneralLedgerTransactionAccountingPeriod.optional(), - ), - company: GeneralLedgerTransactionCompany.optional(), - remoteUpdatedAt: core.serialization.property("remote_updated_at", core.serialization.date().optional()), - remoteCreatedAt: core.serialization.property("remote_created_at", core.serialization.date().optional()), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(GeneralLedgerTransactionTrackingCategoriesItem.optional()).optional(), - ), - postingDate: core.serialization.property("posting_date", core.serialization.date().optional()), - generalLedgerTransactionLines: core.serialization.property( - "general_ledger_transaction_lines", - core.serialization.list(GeneralLedgerTransactionGeneralLedgerTransactionLinesItem).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()), -}); - -export declare namespace GeneralLedgerTransaction { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - underlying_transaction_remote_id?: string | null; - underlying_transaction_type?: GeneralLedgerTransactionUnderlyingTransactionType.Raw | null; - accounting_period?: GeneralLedgerTransactionAccountingPeriod.Raw | null; - company?: GeneralLedgerTransactionCompany.Raw | null; - remote_updated_at?: string | null; - remote_created_at?: string | null; - tracking_categories?: (GeneralLedgerTransactionTrackingCategoriesItem.Raw | null | undefined)[] | null; - posting_date?: string | null; - general_ledger_transaction_lines?: GeneralLedgerTransactionGeneralLedgerTransactionLinesItem.Raw[] | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionAccountingPeriod.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionAccountingPeriod.ts deleted file mode 100644 index e7fbc3b96..000000000 --- a/src/serialization/resources/accounting/types/GeneralLedgerTransactionAccountingPeriod.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 { AccountingPeriod } from "./AccountingPeriod"; - -export const GeneralLedgerTransactionAccountingPeriod: core.serialization.Schema< - serializers.accounting.GeneralLedgerTransactionAccountingPeriod.Raw, - Merge.accounting.GeneralLedgerTransactionAccountingPeriod -> = core.serialization.undiscriminatedUnion([core.serialization.string(), AccountingPeriod]); - -export declare namespace GeneralLedgerTransactionAccountingPeriod { - export type Raw = string | AccountingPeriod.Raw; -} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionCompany.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionCompany.ts deleted file mode 100644 index d18f8aa13..000000000 --- a/src/serialization/resources/accounting/types/GeneralLedgerTransactionCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const GeneralLedgerTransactionCompany: core.serialization.Schema< - serializers.accounting.GeneralLedgerTransactionCompany.Raw, - Merge.accounting.GeneralLedgerTransactionCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace GeneralLedgerTransactionCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionGeneralLedgerTransactionLinesItem.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionGeneralLedgerTransactionLinesItem.ts deleted file mode 100644 index 7e5c54e97..000000000 --- a/src/serialization/resources/accounting/types/GeneralLedgerTransactionGeneralLedgerTransactionLinesItem.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 { GeneralLedgerTransactionLine } from "./GeneralLedgerTransactionLine"; - -export const GeneralLedgerTransactionGeneralLedgerTransactionLinesItem: core.serialization.Schema< - serializers.accounting.GeneralLedgerTransactionGeneralLedgerTransactionLinesItem.Raw, - Merge.accounting.GeneralLedgerTransactionGeneralLedgerTransactionLinesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), GeneralLedgerTransactionLine]); - -export declare namespace GeneralLedgerTransactionGeneralLedgerTransactionLinesItem { - export type Raw = string | GeneralLedgerTransactionLine.Raw; -} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLine.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLine.ts deleted file mode 100644 index e9c9eedc6..000000000 --- a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLine.ts +++ /dev/null @@ -1,76 +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 { GeneralLedgerTransactionLineAccount } from "./GeneralLedgerTransactionLineAccount"; -import { GeneralLedgerTransactionLineBaseCurrency } from "./GeneralLedgerTransactionLineBaseCurrency"; -import { GeneralLedgerTransactionLineCompany } from "./GeneralLedgerTransactionLineCompany"; -import { GeneralLedgerTransactionLineContact } from "./GeneralLedgerTransactionLineContact"; -import { GeneralLedgerTransactionLineEmployee } from "./GeneralLedgerTransactionLineEmployee"; -import { GeneralLedgerTransactionLineItem } from "./GeneralLedgerTransactionLineItem"; -import { GeneralLedgerTransactionLineProject } from "./GeneralLedgerTransactionLineProject"; -import { GeneralLedgerTransactionLineTrackingCategoriesItem } from "./GeneralLedgerTransactionLineTrackingCategoriesItem"; -import { GeneralLedgerTransactionLineTransactionCurrency } from "./GeneralLedgerTransactionLineTransactionCurrency"; - -export const GeneralLedgerTransactionLine: core.serialization.ObjectSchema< - serializers.accounting.GeneralLedgerTransactionLine.Raw, - Merge.accounting.GeneralLedgerTransactionLine -> = 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()), - account: GeneralLedgerTransactionLineAccount.optional(), - company: GeneralLedgerTransactionLineCompany.optional(), - employee: GeneralLedgerTransactionLineEmployee.optional(), - contact: GeneralLedgerTransactionLineContact.optional(), - project: GeneralLedgerTransactionLineProject.optional(), - baseCurrency: core.serialization.property("base_currency", GeneralLedgerTransactionLineBaseCurrency.optional()), - transactionCurrency: core.serialization.property( - "transaction_currency", - GeneralLedgerTransactionLineTransactionCurrency.optional(), - ), - exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), - description: core.serialization.string().optional(), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(GeneralLedgerTransactionLineTrackingCategoriesItem).optional(), - ), - debitAmount: core.serialization.property("debit_amount", core.serialization.string()), - creditAmount: core.serialization.property("credit_amount", core.serialization.string()), - item: GeneralLedgerTransactionLineItem.optional(), - foreignDebitAmount: core.serialization.property("foreign_debit_amount", core.serialization.string()), - foreignCreditAmount: core.serialization.property("foreign_credit_amount", core.serialization.string()), - 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 GeneralLedgerTransactionLine { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - account?: GeneralLedgerTransactionLineAccount.Raw | null; - company?: GeneralLedgerTransactionLineCompany.Raw | null; - employee?: GeneralLedgerTransactionLineEmployee.Raw | null; - contact?: GeneralLedgerTransactionLineContact.Raw | null; - project?: GeneralLedgerTransactionLineProject.Raw | null; - base_currency?: GeneralLedgerTransactionLineBaseCurrency.Raw | null; - transaction_currency?: GeneralLedgerTransactionLineTransactionCurrency.Raw | null; - exchange_rate?: string | null; - description?: string | null; - tracking_categories?: GeneralLedgerTransactionLineTrackingCategoriesItem.Raw[] | null; - debit_amount: string; - credit_amount: string; - item?: GeneralLedgerTransactionLineItem.Raw | null; - foreign_debit_amount: string; - foreign_credit_amount: string; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - } -} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineAccount.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineAccount.ts deleted file mode 100644 index cdfe2a438..000000000 --- a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineAccount.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 GeneralLedgerTransactionLineAccount: core.serialization.Schema< - serializers.accounting.GeneralLedgerTransactionLineAccount.Raw, - Merge.accounting.GeneralLedgerTransactionLineAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace GeneralLedgerTransactionLineAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineBaseCurrency.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineBaseCurrency.ts deleted file mode 100644 index baa902498..000000000 --- a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineBaseCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const GeneralLedgerTransactionLineBaseCurrency: core.serialization.Schema< - serializers.accounting.GeneralLedgerTransactionLineBaseCurrency.Raw, - Merge.accounting.GeneralLedgerTransactionLineBaseCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace GeneralLedgerTransactionLineBaseCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineCompany.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineCompany.ts deleted file mode 100644 index 75b46d146..000000000 --- a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const GeneralLedgerTransactionLineCompany: core.serialization.Schema< - serializers.accounting.GeneralLedgerTransactionLineCompany.Raw, - Merge.accounting.GeneralLedgerTransactionLineCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace GeneralLedgerTransactionLineCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineContact.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineContact.ts deleted file mode 100644 index ce5ca8e2d..000000000 --- a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineContact.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 { Contact } from "./Contact"; - -export const GeneralLedgerTransactionLineContact: core.serialization.Schema< - serializers.accounting.GeneralLedgerTransactionLineContact.Raw, - Merge.accounting.GeneralLedgerTransactionLineContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace GeneralLedgerTransactionLineContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineEmployee.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineEmployee.ts deleted file mode 100644 index 7aa4a3a31..000000000 --- a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineEmployee.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 GeneralLedgerTransactionLineEmployee: core.serialization.Schema< - serializers.accounting.GeneralLedgerTransactionLineEmployee.Raw, - Merge.accounting.GeneralLedgerTransactionLineEmployee -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Employee]); - -export declare namespace GeneralLedgerTransactionLineEmployee { - export type Raw = string | Employee.Raw; -} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineItem.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineItem.ts deleted file mode 100644 index 3e17b5e4f..000000000 --- a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineItem.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 { Item } from "./Item"; - -export const GeneralLedgerTransactionLineItem: core.serialization.Schema< - serializers.accounting.GeneralLedgerTransactionLineItem.Raw, - Merge.accounting.GeneralLedgerTransactionLineItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Item]); - -export declare namespace GeneralLedgerTransactionLineItem { - export type Raw = string | Item.Raw; -} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineProject.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineProject.ts deleted file mode 100644 index 208fc41bb..000000000 --- a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineProject.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 { Project } from "./Project"; - -export const GeneralLedgerTransactionLineProject: core.serialization.Schema< - serializers.accounting.GeneralLedgerTransactionLineProject.Raw, - Merge.accounting.GeneralLedgerTransactionLineProject -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Project]); - -export declare namespace GeneralLedgerTransactionLineProject { - export type Raw = string | Project.Raw; -} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineTrackingCategoriesItem.ts deleted file mode 100644 index 7a512c649..000000000 --- a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineTrackingCategoriesItem.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 { TrackingCategory } from "./TrackingCategory"; - -export const GeneralLedgerTransactionLineTrackingCategoriesItem: core.serialization.Schema< - serializers.accounting.GeneralLedgerTransactionLineTrackingCategoriesItem.Raw, - Merge.accounting.GeneralLedgerTransactionLineTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace GeneralLedgerTransactionLineTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineTransactionCurrency.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineTransactionCurrency.ts deleted file mode 100644 index 9223e9a6a..000000000 --- a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineTransactionCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const GeneralLedgerTransactionLineTransactionCurrency: core.serialization.Schema< - serializers.accounting.GeneralLedgerTransactionLineTransactionCurrency.Raw, - Merge.accounting.GeneralLedgerTransactionLineTransactionCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace GeneralLedgerTransactionLineTransactionCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionTrackingCategoriesItem.ts deleted file mode 100644 index ffddb8d8a..000000000 --- a/src/serialization/resources/accounting/types/GeneralLedgerTransactionTrackingCategoriesItem.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 { TrackingCategory } from "./TrackingCategory"; - -export const GeneralLedgerTransactionTrackingCategoriesItem: core.serialization.Schema< - serializers.accounting.GeneralLedgerTransactionTrackingCategoriesItem.Raw, - Merge.accounting.GeneralLedgerTransactionTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace GeneralLedgerTransactionTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionUnderlyingTransactionType.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionUnderlyingTransactionType.ts deleted file mode 100644 index 550428a7d..000000000 --- a/src/serialization/resources/accounting/types/GeneralLedgerTransactionUnderlyingTransactionType.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 { UnderlyingTransactionTypeEnum } from "./UnderlyingTransactionTypeEnum"; - -export const GeneralLedgerTransactionUnderlyingTransactionType: core.serialization.Schema< - serializers.accounting.GeneralLedgerTransactionUnderlyingTransactionType.Raw, - Merge.accounting.GeneralLedgerTransactionUnderlyingTransactionType -> = core.serialization.undiscriminatedUnion([UnderlyingTransactionTypeEnum, core.serialization.string()]); - -export declare namespace GeneralLedgerTransactionUnderlyingTransactionType { - export type Raw = UnderlyingTransactionTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/IncomeStatement.ts b/src/serialization/resources/accounting/types/IncomeStatement.ts deleted file mode 100644 index 73e9e127b..000000000 --- a/src/serialization/resources/accounting/types/IncomeStatement.ts +++ /dev/null @@ -1,67 +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 { IncomeStatementCompany } from "./IncomeStatementCompany"; -import { IncomeStatementCurrency } from "./IncomeStatementCurrency"; -import { RemoteData } from "./RemoteData"; -import { ReportItem } from "./ReportItem"; - -export const IncomeStatement: core.serialization.ObjectSchema< - serializers.accounting.IncomeStatement.Raw, - Merge.accounting.IncomeStatement -> = 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()), - name: core.serialization.string().optional(), - currency: IncomeStatementCurrency.optional(), - company: IncomeStatementCompany.optional(), - startPeriod: core.serialization.property("start_period", core.serialization.date().optional()), - endPeriod: core.serialization.property("end_period", core.serialization.date().optional()), - income: core.serialization.list(ReportItem).optional(), - costOfSales: core.serialization.property("cost_of_sales", core.serialization.list(ReportItem).optional()), - grossProfit: core.serialization.property("gross_profit", core.serialization.number().optional()), - operatingExpenses: core.serialization.property( - "operating_expenses", - core.serialization.list(ReportItem).optional(), - ), - netOperatingIncome: core.serialization.property("net_operating_income", core.serialization.number().optional()), - nonOperatingExpenses: core.serialization.property( - "non_operating_expenses", - core.serialization.list(ReportItem).optional(), - ), - netIncome: core.serialization.property("net_income", core.serialization.number().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()), -}); - -export declare namespace IncomeStatement { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - currency?: IncomeStatementCurrency.Raw | null; - company?: IncomeStatementCompany.Raw | null; - start_period?: string | null; - end_period?: string | null; - income?: ReportItem.Raw[] | null; - cost_of_sales?: ReportItem.Raw[] | null; - gross_profit?: number | null; - operating_expenses?: ReportItem.Raw[] | null; - net_operating_income?: number | null; - non_operating_expenses?: ReportItem.Raw[] | null; - net_income?: number | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/IncomeStatementCompany.ts b/src/serialization/resources/accounting/types/IncomeStatementCompany.ts deleted file mode 100644 index 309be4100..000000000 --- a/src/serialization/resources/accounting/types/IncomeStatementCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const IncomeStatementCompany: core.serialization.Schema< - serializers.accounting.IncomeStatementCompany.Raw, - Merge.accounting.IncomeStatementCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace IncomeStatementCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/IncomeStatementCurrency.ts b/src/serialization/resources/accounting/types/IncomeStatementCurrency.ts deleted file mode 100644 index f86af63ed..000000000 --- a/src/serialization/resources/accounting/types/IncomeStatementCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const IncomeStatementCurrency: core.serialization.Schema< - serializers.accounting.IncomeStatementCurrency.Raw, - Merge.accounting.IncomeStatementCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace IncomeStatementCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/IndividualCommonModelScopeDeserializer.ts b/src/serialization/resources/accounting/types/IndividualCommonModelScopeDeserializer.ts deleted file mode 100644 index 063824368..000000000 --- a/src/serialization/resources/accounting/types/IndividualCommonModelScopeDeserializer.ts +++ /dev/null @@ -1,27 +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 { FieldPermissionDeserializer } from "./FieldPermissionDeserializer"; -import { ModelPermissionDeserializer } from "./ModelPermissionDeserializer"; - -export const IndividualCommonModelScopeDeserializer: core.serialization.ObjectSchema< - serializers.accounting.IndividualCommonModelScopeDeserializer.Raw, - Merge.accounting.IndividualCommonModelScopeDeserializer -> = core.serialization.object({ - modelName: core.serialization.property("model_name", core.serialization.string()), - modelPermissions: core.serialization.property( - "model_permissions", - core.serialization.record(core.serialization.string(), ModelPermissionDeserializer).optional(), - ), - fieldPermissions: core.serialization.property("field_permissions", FieldPermissionDeserializer.optional()), -}); - -export declare namespace IndividualCommonModelScopeDeserializer { - export interface Raw { - model_name: string; - model_permissions?: Record | null; - field_permissions?: FieldPermissionDeserializer.Raw | null; - } -} diff --git a/src/serialization/resources/accounting/types/IndividualCommonModelScopeDeserializerRequest.ts b/src/serialization/resources/accounting/types/IndividualCommonModelScopeDeserializerRequest.ts deleted file mode 100644 index 8feda9987..000000000 --- a/src/serialization/resources/accounting/types/IndividualCommonModelScopeDeserializerRequest.ts +++ /dev/null @@ -1,27 +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 { FieldPermissionDeserializerRequest } from "./FieldPermissionDeserializerRequest"; -import { ModelPermissionDeserializerRequest } from "./ModelPermissionDeserializerRequest"; - -export const IndividualCommonModelScopeDeserializerRequest: core.serialization.ObjectSchema< - serializers.accounting.IndividualCommonModelScopeDeserializerRequest.Raw, - Merge.accounting.IndividualCommonModelScopeDeserializerRequest -> = core.serialization.object({ - modelName: core.serialization.property("model_name", core.serialization.string()), - modelPermissions: core.serialization.property( - "model_permissions", - core.serialization.record(core.serialization.string(), ModelPermissionDeserializerRequest).optional(), - ), - fieldPermissions: core.serialization.property("field_permissions", FieldPermissionDeserializerRequest.optional()), -}); - -export declare namespace IndividualCommonModelScopeDeserializerRequest { - export interface Raw { - model_name: string; - model_permissions?: Record | null; - field_permissions?: FieldPermissionDeserializerRequest.Raw | null; - } -} diff --git a/src/serialization/resources/accounting/types/Invoice.ts b/src/serialization/resources/accounting/types/Invoice.ts deleted file mode 100644 index 9a9405c23..000000000 --- a/src/serialization/resources/accounting/types/Invoice.ts +++ /dev/null @@ -1,123 +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 * as serializers from "../../../index"; -import { InvoiceAccountingPeriod } from "./InvoiceAccountingPeriod"; -import { InvoiceAppliedPaymentsItem } from "./InvoiceAppliedPaymentsItem"; -import { InvoiceCompany } from "./InvoiceCompany"; -import { InvoiceContact } from "./InvoiceContact"; -import { InvoiceCurrency } from "./InvoiceCurrency"; -import { InvoiceEmployee } from "./InvoiceEmployee"; -import { InvoiceLineItem } from "./InvoiceLineItem"; -import { InvoicePaymentsItem } from "./InvoicePaymentsItem"; -import { InvoicePaymentTerm } from "./InvoicePaymentTerm"; -import { InvoicePurchaseOrdersItem } from "./InvoicePurchaseOrdersItem"; -import { InvoiceStatus } from "./InvoiceStatus"; -import { InvoiceTrackingCategoriesItem } from "./InvoiceTrackingCategoriesItem"; -import { InvoiceType } from "./InvoiceType"; -import { RemoteData } from "./RemoteData"; -import { RemoteField } from "./RemoteField"; - -export const Invoice: core.serialization.ObjectSchema = - 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()), - type: InvoiceType.optional(), - contact: InvoiceContact.optional(), - number: core.serialization.string().optional(), - issueDate: core.serialization.property("issue_date", core.serialization.date().optional()), - dueDate: core.serialization.property("due_date", core.serialization.date().optional()), - paidOnDate: core.serialization.property("paid_on_date", core.serialization.date().optional()), - memo: core.serialization.string().optional(), - company: InvoiceCompany.optional(), - employee: InvoiceEmployee.optional(), - currency: InvoiceCurrency.optional(), - exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), - paymentTerm: core.serialization.property("payment_term", InvoicePaymentTerm.optional()), - totalDiscount: core.serialization.property("total_discount", core.serialization.number().optional()), - subTotal: core.serialization.property("sub_total", core.serialization.number().optional()), - status: InvoiceStatus.optional(), - totalTaxAmount: core.serialization.property("total_tax_amount", core.serialization.number().optional()), - totalAmount: core.serialization.property("total_amount", core.serialization.number().optional()), - balance: core.serialization.number().optional(), - remoteUpdatedAt: core.serialization.property("remote_updated_at", core.serialization.date().optional()), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(InvoiceTrackingCategoriesItem.optional()).optional(), - ), - accountingPeriod: core.serialization.property("accounting_period", InvoiceAccountingPeriod.optional()), - purchaseOrders: core.serialization.property( - "purchase_orders", - core.serialization.list(InvoicePurchaseOrdersItem.optional()).optional(), - ), - payments: core.serialization.list(InvoicePaymentsItem.optional()).optional(), - appliedPayments: core.serialization.property( - "applied_payments", - core.serialization.list(InvoiceAppliedPaymentsItem.optional()).optional(), - ), - lineItems: core.serialization.property("line_items", core.serialization.list(InvoiceLineItem).optional()), - appliedCreditNotes: core.serialization.property( - "applied_credit_notes", - core.serialization - .list(core.serialization.lazy(() => serializers.accounting.InvoiceAppliedCreditNotesItem)) - .optional(), - ), - appliedVendorCredits: core.serialization.property( - "applied_vendor_credits", - core.serialization - .list(core.serialization.lazy(() => serializers.accounting.InvoiceAppliedVendorCreditsItem)) - .optional(), - ), - inclusiveOfTax: core.serialization.property("inclusive_of_tax", core.serialization.boolean().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 Invoice { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - type?: InvoiceType.Raw | null; - contact?: InvoiceContact.Raw | null; - number?: string | null; - issue_date?: string | null; - due_date?: string | null; - paid_on_date?: string | null; - memo?: string | null; - company?: InvoiceCompany.Raw | null; - employee?: InvoiceEmployee.Raw | null; - currency?: InvoiceCurrency.Raw | null; - exchange_rate?: string | null; - payment_term?: InvoicePaymentTerm.Raw | null; - total_discount?: number | null; - sub_total?: number | null; - status?: InvoiceStatus.Raw | null; - total_tax_amount?: number | null; - total_amount?: number | null; - balance?: number | null; - remote_updated_at?: string | null; - tracking_categories?: (InvoiceTrackingCategoriesItem.Raw | null | undefined)[] | null; - accounting_period?: InvoiceAccountingPeriod.Raw | null; - purchase_orders?: (InvoicePurchaseOrdersItem.Raw | null | undefined)[] | null; - payments?: (InvoicePaymentsItem.Raw | null | undefined)[] | null; - applied_payments?: (InvoiceAppliedPaymentsItem.Raw | null | undefined)[] | null; - line_items?: InvoiceLineItem.Raw[] | null; - applied_credit_notes?: serializers.accounting.InvoiceAppliedCreditNotesItem.Raw[] | null; - applied_vendor_credits?: serializers.accounting.InvoiceAppliedVendorCreditsItem.Raw[] | null; - inclusive_of_tax?: boolean | 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/InvoiceAccountingPeriod.ts b/src/serialization/resources/accounting/types/InvoiceAccountingPeriod.ts deleted file mode 100644 index f36def7c6..000000000 --- a/src/serialization/resources/accounting/types/InvoiceAccountingPeriod.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 { AccountingPeriod } from "./AccountingPeriod"; - -export const InvoiceAccountingPeriod: core.serialization.Schema< - serializers.accounting.InvoiceAccountingPeriod.Raw, - Merge.accounting.InvoiceAccountingPeriod -> = core.serialization.undiscriminatedUnion([core.serialization.string(), AccountingPeriod]); - -export declare namespace InvoiceAccountingPeriod { - export type Raw = string | AccountingPeriod.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceAppliedCreditNotesItem.ts b/src/serialization/resources/accounting/types/InvoiceAppliedCreditNotesItem.ts deleted file mode 100644 index dc195457c..000000000 --- a/src/serialization/resources/accounting/types/InvoiceAppliedCreditNotesItem.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const InvoiceAppliedCreditNotesItem: core.serialization.Schema< - serializers.accounting.InvoiceAppliedCreditNotesItem.Raw, - Merge.accounting.InvoiceAppliedCreditNotesItem -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.accounting.CreditNoteApplyLineForInvoice), -]); - -export declare namespace InvoiceAppliedCreditNotesItem { - export type Raw = string | serializers.accounting.CreditNoteApplyLineForInvoice.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceAppliedPaymentsItem.ts b/src/serialization/resources/accounting/types/InvoiceAppliedPaymentsItem.ts deleted file mode 100644 index c4de06c43..000000000 --- a/src/serialization/resources/accounting/types/InvoiceAppliedPaymentsItem.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 { PaymentLineItem } from "./PaymentLineItem"; - -export const InvoiceAppliedPaymentsItem: core.serialization.Schema< - serializers.accounting.InvoiceAppliedPaymentsItem.Raw, - Merge.accounting.InvoiceAppliedPaymentsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), PaymentLineItem]); - -export declare namespace InvoiceAppliedPaymentsItem { - export type Raw = string | PaymentLineItem.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceAppliedVendorCreditsItem.ts b/src/serialization/resources/accounting/types/InvoiceAppliedVendorCreditsItem.ts deleted file mode 100644 index 51ce77fa6..000000000 --- a/src/serialization/resources/accounting/types/InvoiceAppliedVendorCreditsItem.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const InvoiceAppliedVendorCreditsItem: core.serialization.Schema< - serializers.accounting.InvoiceAppliedVendorCreditsItem.Raw, - Merge.accounting.InvoiceAppliedVendorCreditsItem -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.accounting.VendorCreditApplyLineForInvoice), -]); - -export declare namespace InvoiceAppliedVendorCreditsItem { - export type Raw = string | serializers.accounting.VendorCreditApplyLineForInvoice.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceCompany.ts b/src/serialization/resources/accounting/types/InvoiceCompany.ts deleted file mode 100644 index a2371a8a0..000000000 --- a/src/serialization/resources/accounting/types/InvoiceCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const InvoiceCompany: core.serialization.Schema< - serializers.accounting.InvoiceCompany.Raw, - Merge.accounting.InvoiceCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace InvoiceCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceContact.ts b/src/serialization/resources/accounting/types/InvoiceContact.ts deleted file mode 100644 index 20e911901..000000000 --- a/src/serialization/resources/accounting/types/InvoiceContact.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 { Contact } from "./Contact"; - -export const InvoiceContact: core.serialization.Schema< - serializers.accounting.InvoiceContact.Raw, - Merge.accounting.InvoiceContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace InvoiceContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceCurrency.ts b/src/serialization/resources/accounting/types/InvoiceCurrency.ts deleted file mode 100644 index 3ce8bb09e..000000000 --- a/src/serialization/resources/accounting/types/InvoiceCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const InvoiceCurrency: core.serialization.Schema< - serializers.accounting.InvoiceCurrency.Raw, - Merge.accounting.InvoiceCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace InvoiceCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/InvoiceEmployee.ts b/src/serialization/resources/accounting/types/InvoiceEmployee.ts deleted file mode 100644 index f9eef8f43..000000000 --- a/src/serialization/resources/accounting/types/InvoiceEmployee.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 InvoiceEmployee: core.serialization.Schema< - serializers.accounting.InvoiceEmployee.Raw, - Merge.accounting.InvoiceEmployee -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Employee]); - -export declare namespace InvoiceEmployee { - export type Raw = string | Employee.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceLineItem.ts b/src/serialization/resources/accounting/types/InvoiceLineItem.ts deleted file mode 100644 index 884b7f3da..000000000 --- a/src/serialization/resources/accounting/types/InvoiceLineItem.ts +++ /dev/null @@ -1,75 +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 { 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"; -import { InvoiceLineItemTrackingCategory } from "./InvoiceLineItemTrackingCategory"; -import { RemoteField } from "./RemoteField"; - -export const InvoiceLineItem: core.serialization.ObjectSchema< - serializers.accounting.InvoiceLineItem.Raw, - Merge.accounting.InvoiceLineItem -> = 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.number().optional()), - quantity: core.serialization.number().optional(), - totalAmount: core.serialization.property("total_amount", core.serialization.number().optional()), - employee: InvoiceLineItemEmployee.optional(), - project: InvoiceLineItemProject.optional(), - contact: InvoiceLineItemContact.optional(), - currency: InvoiceLineItemCurrency.optional(), - exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), - item: InvoiceLineItemItem.optional(), - account: InvoiceLineItemAccount.optional(), - taxRate: core.serialization.property("tax_rate", core.serialization.string().optional()), - trackingCategory: core.serialization.property("tracking_category", InvoiceLineItemTrackingCategory.optional()), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(InvoiceLineItemTrackingCategoriesItem.optional()).optional(), - ), - company: core.serialization.string().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(), - ), - remoteFields: core.serialization.property("remote_fields", core.serialization.list(RemoteField).optional()), -}); - -export declare namespace InvoiceLineItem { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - description?: string | null; - unit_price?: number | null; - quantity?: number | null; - total_amount?: number | null; - employee?: InvoiceLineItemEmployee.Raw | null; - project?: InvoiceLineItemProject.Raw | null; - contact?: InvoiceLineItemContact.Raw | null; - currency?: InvoiceLineItemCurrency.Raw | null; - exchange_rate?: string | null; - item?: InvoiceLineItemItem.Raw | null; - account?: InvoiceLineItemAccount.Raw | null; - tax_rate?: string | null; - tracking_category?: InvoiceLineItemTrackingCategory.Raw | null; - tracking_categories?: (InvoiceLineItemTrackingCategoriesItem.Raw | null | undefined)[] | null; - company?: string | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_fields?: RemoteField.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/InvoiceLineItemAccount.ts b/src/serialization/resources/accounting/types/InvoiceLineItemAccount.ts deleted file mode 100644 index 5ddea3201..000000000 --- a/src/serialization/resources/accounting/types/InvoiceLineItemAccount.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 InvoiceLineItemAccount: core.serialization.Schema< - serializers.accounting.InvoiceLineItemAccount.Raw, - Merge.accounting.InvoiceLineItemAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace InvoiceLineItemAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceLineItemContact.ts b/src/serialization/resources/accounting/types/InvoiceLineItemContact.ts deleted file mode 100644 index d5cc744f9..000000000 --- a/src/serialization/resources/accounting/types/InvoiceLineItemContact.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 { Contact } from "./Contact"; - -export const InvoiceLineItemContact: core.serialization.Schema< - serializers.accounting.InvoiceLineItemContact.Raw, - Merge.accounting.InvoiceLineItemContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace InvoiceLineItemContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceLineItemCurrency.ts b/src/serialization/resources/accounting/types/InvoiceLineItemCurrency.ts deleted file mode 100644 index db8e59d26..000000000 --- a/src/serialization/resources/accounting/types/InvoiceLineItemCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const InvoiceLineItemCurrency: core.serialization.Schema< - serializers.accounting.InvoiceLineItemCurrency.Raw, - Merge.accounting.InvoiceLineItemCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace InvoiceLineItemCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/InvoiceLineItemEmployee.ts b/src/serialization/resources/accounting/types/InvoiceLineItemEmployee.ts deleted file mode 100644 index 26c5f91ad..000000000 --- a/src/serialization/resources/accounting/types/InvoiceLineItemEmployee.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 InvoiceLineItemEmployee: core.serialization.Schema< - serializers.accounting.InvoiceLineItemEmployee.Raw, - Merge.accounting.InvoiceLineItemEmployee -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Employee]); - -export declare namespace InvoiceLineItemEmployee { - export type Raw = string | Employee.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceLineItemItem.ts b/src/serialization/resources/accounting/types/InvoiceLineItemItem.ts deleted file mode 100644 index c7aaef7e6..000000000 --- a/src/serialization/resources/accounting/types/InvoiceLineItemItem.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 { Item } from "./Item"; - -export const InvoiceLineItemItem: core.serialization.Schema< - serializers.accounting.InvoiceLineItemItem.Raw, - Merge.accounting.InvoiceLineItemItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Item]); - -export declare namespace InvoiceLineItemItem { - export type Raw = string | Item.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceLineItemProject.ts b/src/serialization/resources/accounting/types/InvoiceLineItemProject.ts deleted file mode 100644 index dcb2036ac..000000000 --- a/src/serialization/resources/accounting/types/InvoiceLineItemProject.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 { Project } from "./Project"; - -export const InvoiceLineItemProject: core.serialization.Schema< - serializers.accounting.InvoiceLineItemProject.Raw, - Merge.accounting.InvoiceLineItemProject -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Project]); - -export declare namespace InvoiceLineItemProject { - export type Raw = string | Project.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceLineItemRequest.ts b/src/serialization/resources/accounting/types/InvoiceLineItemRequest.ts deleted file mode 100644 index 86006d8e5..000000000 --- a/src/serialization/resources/accounting/types/InvoiceLineItemRequest.ts +++ /dev/null @@ -1,75 +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 { 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"; -import { InvoiceLineItemRequestTrackingCategory } from "./InvoiceLineItemRequestTrackingCategory"; -import { RemoteFieldRequest } from "./RemoteFieldRequest"; - -export const InvoiceLineItemRequest: core.serialization.ObjectSchema< - serializers.accounting.InvoiceLineItemRequest.Raw, - Merge.accounting.InvoiceLineItemRequest -> = 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.number().optional()), - quantity: core.serialization.number().optional(), - totalAmount: core.serialization.property("total_amount", core.serialization.number().optional()), - employee: InvoiceLineItemRequestEmployee.optional(), - project: InvoiceLineItemRequestProject.optional(), - contact: InvoiceLineItemRequestContact.optional(), - currency: InvoiceLineItemRequestCurrency.optional(), - exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), - item: InvoiceLineItemRequestItem.optional(), - account: InvoiceLineItemRequestAccount.optional(), - taxRate: core.serialization.property("tax_rate", core.serialization.string().optional()), - trackingCategory: core.serialization.property( - "tracking_category", - InvoiceLineItemRequestTrackingCategory.optional(), - ), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(InvoiceLineItemRequestTrackingCategoriesItem.optional()).optional(), - ), - company: core.serialization.string().optional(), - integrationParams: core.serialization.property( - "integration_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - linkedAccountParams: core.serialization.property( - "linked_account_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - remoteFields: core.serialization.property("remote_fields", core.serialization.list(RemoteFieldRequest).optional()), -}); - -export declare namespace InvoiceLineItemRequest { - export interface Raw { - remote_id?: string | null; - description?: string | null; - unit_price?: number | null; - quantity?: number | null; - total_amount?: number | null; - employee?: InvoiceLineItemRequestEmployee.Raw | null; - project?: InvoiceLineItemRequestProject.Raw | null; - contact?: InvoiceLineItemRequestContact.Raw | null; - currency?: InvoiceLineItemRequestCurrency.Raw | null; - exchange_rate?: string | null; - item?: InvoiceLineItemRequestItem.Raw | null; - account?: InvoiceLineItemRequestAccount.Raw | null; - tax_rate?: string | null; - tracking_category?: InvoiceLineItemRequestTrackingCategory.Raw | null; - tracking_categories?: (InvoiceLineItemRequestTrackingCategoriesItem.Raw | null | undefined)[] | null; - company?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/InvoiceLineItemRequestAccount.ts b/src/serialization/resources/accounting/types/InvoiceLineItemRequestAccount.ts deleted file mode 100644 index c8a45cdc1..000000000 --- a/src/serialization/resources/accounting/types/InvoiceLineItemRequestAccount.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 InvoiceLineItemRequestAccount: core.serialization.Schema< - serializers.accounting.InvoiceLineItemRequestAccount.Raw, - Merge.accounting.InvoiceLineItemRequestAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace InvoiceLineItemRequestAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceLineItemRequestContact.ts b/src/serialization/resources/accounting/types/InvoiceLineItemRequestContact.ts deleted file mode 100644 index 34706b30e..000000000 --- a/src/serialization/resources/accounting/types/InvoiceLineItemRequestContact.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 { Contact } from "./Contact"; - -export const InvoiceLineItemRequestContact: core.serialization.Schema< - serializers.accounting.InvoiceLineItemRequestContact.Raw, - Merge.accounting.InvoiceLineItemRequestContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace InvoiceLineItemRequestContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceLineItemRequestCurrency.ts b/src/serialization/resources/accounting/types/InvoiceLineItemRequestCurrency.ts deleted file mode 100644 index 72d8fb583..000000000 --- a/src/serialization/resources/accounting/types/InvoiceLineItemRequestCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const InvoiceLineItemRequestCurrency: core.serialization.Schema< - serializers.accounting.InvoiceLineItemRequestCurrency.Raw, - Merge.accounting.InvoiceLineItemRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace InvoiceLineItemRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} 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/InvoiceLineItemRequestItem.ts b/src/serialization/resources/accounting/types/InvoiceLineItemRequestItem.ts deleted file mode 100644 index 61058e508..000000000 --- a/src/serialization/resources/accounting/types/InvoiceLineItemRequestItem.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 { Item } from "./Item"; - -export const InvoiceLineItemRequestItem: core.serialization.Schema< - serializers.accounting.InvoiceLineItemRequestItem.Raw, - Merge.accounting.InvoiceLineItemRequestItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Item]); - -export declare namespace InvoiceLineItemRequestItem { - export type Raw = string | Item.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceLineItemRequestProject.ts b/src/serialization/resources/accounting/types/InvoiceLineItemRequestProject.ts deleted file mode 100644 index 4d2b629c0..000000000 --- a/src/serialization/resources/accounting/types/InvoiceLineItemRequestProject.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 { Project } from "./Project"; - -export const InvoiceLineItemRequestProject: core.serialization.Schema< - serializers.accounting.InvoiceLineItemRequestProject.Raw, - Merge.accounting.InvoiceLineItemRequestProject -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Project]); - -export declare namespace InvoiceLineItemRequestProject { - export type Raw = string | Project.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceLineItemRequestTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/InvoiceLineItemRequestTrackingCategoriesItem.ts deleted file mode 100644 index 953d6e8c7..000000000 --- a/src/serialization/resources/accounting/types/InvoiceLineItemRequestTrackingCategoriesItem.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 { TrackingCategory } from "./TrackingCategory"; - -export const InvoiceLineItemRequestTrackingCategoriesItem: core.serialization.Schema< - serializers.accounting.InvoiceLineItemRequestTrackingCategoriesItem.Raw, - Merge.accounting.InvoiceLineItemRequestTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace InvoiceLineItemRequestTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceLineItemRequestTrackingCategory.ts b/src/serialization/resources/accounting/types/InvoiceLineItemRequestTrackingCategory.ts deleted file mode 100644 index 837139257..000000000 --- a/src/serialization/resources/accounting/types/InvoiceLineItemRequestTrackingCategory.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 { TrackingCategory } from "./TrackingCategory"; - -export const InvoiceLineItemRequestTrackingCategory: core.serialization.Schema< - serializers.accounting.InvoiceLineItemRequestTrackingCategory.Raw, - Merge.accounting.InvoiceLineItemRequestTrackingCategory -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace InvoiceLineItemRequestTrackingCategory { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceLineItemTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/InvoiceLineItemTrackingCategoriesItem.ts deleted file mode 100644 index ed3a8bae5..000000000 --- a/src/serialization/resources/accounting/types/InvoiceLineItemTrackingCategoriesItem.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 { TrackingCategory } from "./TrackingCategory"; - -export const InvoiceLineItemTrackingCategoriesItem: core.serialization.Schema< - serializers.accounting.InvoiceLineItemTrackingCategoriesItem.Raw, - Merge.accounting.InvoiceLineItemTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace InvoiceLineItemTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceLineItemTrackingCategory.ts b/src/serialization/resources/accounting/types/InvoiceLineItemTrackingCategory.ts deleted file mode 100644 index d48f75cc4..000000000 --- a/src/serialization/resources/accounting/types/InvoiceLineItemTrackingCategory.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 { TrackingCategory } from "./TrackingCategory"; - -export const InvoiceLineItemTrackingCategory: core.serialization.Schema< - serializers.accounting.InvoiceLineItemTrackingCategory.Raw, - Merge.accounting.InvoiceLineItemTrackingCategory -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace InvoiceLineItemTrackingCategory { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoicePaymentTerm.ts b/src/serialization/resources/accounting/types/InvoicePaymentTerm.ts deleted file mode 100644 index eaf3ecdef..000000000 --- a/src/serialization/resources/accounting/types/InvoicePaymentTerm.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 { PaymentTerm } from "./PaymentTerm"; - -export const InvoicePaymentTerm: core.serialization.Schema< - serializers.accounting.InvoicePaymentTerm.Raw, - Merge.accounting.InvoicePaymentTerm -> = core.serialization.undiscriminatedUnion([core.serialization.string(), PaymentTerm]); - -export declare namespace InvoicePaymentTerm { - export type Raw = string | PaymentTerm.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoicePaymentsItem.ts b/src/serialization/resources/accounting/types/InvoicePaymentsItem.ts deleted file mode 100644 index 0fcbace1e..000000000 --- a/src/serialization/resources/accounting/types/InvoicePaymentsItem.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 { Payment } from "./Payment"; - -export const InvoicePaymentsItem: core.serialization.Schema< - serializers.accounting.InvoicePaymentsItem.Raw, - Merge.accounting.InvoicePaymentsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Payment]); - -export declare namespace InvoicePaymentsItem { - export type Raw = string | Payment.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoicePurchaseOrdersItem.ts b/src/serialization/resources/accounting/types/InvoicePurchaseOrdersItem.ts deleted file mode 100644 index 529836d85..000000000 --- a/src/serialization/resources/accounting/types/InvoicePurchaseOrdersItem.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 { PurchaseOrder } from "./PurchaseOrder"; - -export const InvoicePurchaseOrdersItem: core.serialization.Schema< - serializers.accounting.InvoicePurchaseOrdersItem.Raw, - Merge.accounting.InvoicePurchaseOrdersItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), PurchaseOrder]); - -export declare namespace InvoicePurchaseOrdersItem { - export type Raw = string | PurchaseOrder.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceRequest.ts b/src/serialization/resources/accounting/types/InvoiceRequest.ts deleted file mode 100644 index d15e2cd32..000000000 --- a/src/serialization/resources/accounting/types/InvoiceRequest.ts +++ /dev/null @@ -1,92 +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 { InvoiceLineItemRequest } from "./InvoiceLineItemRequest"; -import { InvoiceRequestCompany } from "./InvoiceRequestCompany"; -import { InvoiceRequestContact } from "./InvoiceRequestContact"; -import { InvoiceRequestCurrency } from "./InvoiceRequestCurrency"; -import { InvoiceRequestEmployee } from "./InvoiceRequestEmployee"; -import { InvoiceRequestPaymentsItem } from "./InvoiceRequestPaymentsItem"; -import { InvoiceRequestPaymentTerm } from "./InvoiceRequestPaymentTerm"; -import { InvoiceRequestPurchaseOrdersItem } from "./InvoiceRequestPurchaseOrdersItem"; -import { InvoiceRequestStatus } from "./InvoiceRequestStatus"; -import { InvoiceRequestTrackingCategoriesItem } from "./InvoiceRequestTrackingCategoriesItem"; -import { InvoiceRequestType } from "./InvoiceRequestType"; -import { RemoteFieldRequest } from "./RemoteFieldRequest"; - -export const InvoiceRequest: core.serialization.ObjectSchema< - serializers.accounting.InvoiceRequest.Raw, - Merge.accounting.InvoiceRequest -> = core.serialization.object({ - type: InvoiceRequestType.optional(), - contact: InvoiceRequestContact.optional(), - number: core.serialization.string().optional(), - issueDate: core.serialization.property("issue_date", core.serialization.date().optional()), - dueDate: core.serialization.property("due_date", core.serialization.date().optional()), - paidOnDate: core.serialization.property("paid_on_date", core.serialization.date().optional()), - employee: InvoiceRequestEmployee.optional(), - memo: core.serialization.string().optional(), - status: InvoiceRequestStatus.optional(), - company: InvoiceRequestCompany.optional(), - currency: InvoiceRequestCurrency.optional(), - exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), - totalDiscount: core.serialization.property("total_discount", core.serialization.number().optional()), - subTotal: core.serialization.property("sub_total", core.serialization.number().optional()), - paymentTerm: core.serialization.property("payment_term", InvoiceRequestPaymentTerm.optional()), - totalTaxAmount: core.serialization.property("total_tax_amount", core.serialization.number().optional()), - inclusiveOfTax: core.serialization.property("inclusive_of_tax", core.serialization.boolean().optional()), - totalAmount: core.serialization.property("total_amount", core.serialization.number().optional()), - balance: core.serialization.number().optional(), - payments: core.serialization.list(InvoiceRequestPaymentsItem.optional()).optional(), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(InvoiceRequestTrackingCategoriesItem.optional()).optional(), - ), - lineItems: core.serialization.property("line_items", core.serialization.list(InvoiceLineItemRequest).optional()), - purchaseOrders: core.serialization.property( - "purchase_orders", - core.serialization.list(InvoiceRequestPurchaseOrdersItem.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(), - ), - remoteFields: core.serialization.property("remote_fields", core.serialization.list(RemoteFieldRequest).optional()), -}); - -export declare namespace InvoiceRequest { - export interface Raw { - type?: InvoiceRequestType.Raw | null; - contact?: InvoiceRequestContact.Raw | null; - number?: string | null; - issue_date?: string | null; - due_date?: string | null; - paid_on_date?: string | null; - employee?: InvoiceRequestEmployee.Raw | null; - memo?: string | null; - status?: InvoiceRequestStatus.Raw | null; - company?: InvoiceRequestCompany.Raw | null; - currency?: InvoiceRequestCurrency.Raw | null; - exchange_rate?: string | null; - total_discount?: number | null; - sub_total?: number | null; - payment_term?: InvoiceRequestPaymentTerm.Raw | null; - total_tax_amount?: number | null; - inclusive_of_tax?: boolean | null; - total_amount?: number | null; - balance?: number | null; - payments?: (InvoiceRequestPaymentsItem.Raw | null | undefined)[] | null; - tracking_categories?: (InvoiceRequestTrackingCategoriesItem.Raw | null | undefined)[] | null; - line_items?: InvoiceLineItemRequest.Raw[] | null; - purchase_orders?: (InvoiceRequestPurchaseOrdersItem.Raw | null | undefined)[] | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/InvoiceRequestCompany.ts b/src/serialization/resources/accounting/types/InvoiceRequestCompany.ts deleted file mode 100644 index c0ef7a927..000000000 --- a/src/serialization/resources/accounting/types/InvoiceRequestCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const InvoiceRequestCompany: core.serialization.Schema< - serializers.accounting.InvoiceRequestCompany.Raw, - Merge.accounting.InvoiceRequestCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace InvoiceRequestCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceRequestContact.ts b/src/serialization/resources/accounting/types/InvoiceRequestContact.ts deleted file mode 100644 index 217a03e92..000000000 --- a/src/serialization/resources/accounting/types/InvoiceRequestContact.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 { Contact } from "./Contact"; - -export const InvoiceRequestContact: core.serialization.Schema< - serializers.accounting.InvoiceRequestContact.Raw, - Merge.accounting.InvoiceRequestContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace InvoiceRequestContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceRequestCurrency.ts b/src/serialization/resources/accounting/types/InvoiceRequestCurrency.ts deleted file mode 100644 index 7807a9d44..000000000 --- a/src/serialization/resources/accounting/types/InvoiceRequestCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const InvoiceRequestCurrency: core.serialization.Schema< - serializers.accounting.InvoiceRequestCurrency.Raw, - Merge.accounting.InvoiceRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace InvoiceRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/InvoiceRequestEmployee.ts b/src/serialization/resources/accounting/types/InvoiceRequestEmployee.ts deleted file mode 100644 index cf77c78e3..000000000 --- a/src/serialization/resources/accounting/types/InvoiceRequestEmployee.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 InvoiceRequestEmployee: core.serialization.Schema< - serializers.accounting.InvoiceRequestEmployee.Raw, - Merge.accounting.InvoiceRequestEmployee -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Employee]); - -export declare namespace InvoiceRequestEmployee { - export type Raw = string | Employee.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceRequestPaymentTerm.ts b/src/serialization/resources/accounting/types/InvoiceRequestPaymentTerm.ts deleted file mode 100644 index 03ecca28f..000000000 --- a/src/serialization/resources/accounting/types/InvoiceRequestPaymentTerm.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 { PaymentTerm } from "./PaymentTerm"; - -export const InvoiceRequestPaymentTerm: core.serialization.Schema< - serializers.accounting.InvoiceRequestPaymentTerm.Raw, - Merge.accounting.InvoiceRequestPaymentTerm -> = core.serialization.undiscriminatedUnion([core.serialization.string(), PaymentTerm]); - -export declare namespace InvoiceRequestPaymentTerm { - export type Raw = string | PaymentTerm.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceRequestPaymentsItem.ts b/src/serialization/resources/accounting/types/InvoiceRequestPaymentsItem.ts deleted file mode 100644 index f23b7978d..000000000 --- a/src/serialization/resources/accounting/types/InvoiceRequestPaymentsItem.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 { Payment } from "./Payment"; - -export const InvoiceRequestPaymentsItem: core.serialization.Schema< - serializers.accounting.InvoiceRequestPaymentsItem.Raw, - Merge.accounting.InvoiceRequestPaymentsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Payment]); - -export declare namespace InvoiceRequestPaymentsItem { - export type Raw = string | Payment.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceRequestPurchaseOrdersItem.ts b/src/serialization/resources/accounting/types/InvoiceRequestPurchaseOrdersItem.ts deleted file mode 100644 index 747b45e9c..000000000 --- a/src/serialization/resources/accounting/types/InvoiceRequestPurchaseOrdersItem.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 { PurchaseOrder } from "./PurchaseOrder"; - -export const InvoiceRequestPurchaseOrdersItem: core.serialization.Schema< - serializers.accounting.InvoiceRequestPurchaseOrdersItem.Raw, - Merge.accounting.InvoiceRequestPurchaseOrdersItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), PurchaseOrder]); - -export declare namespace InvoiceRequestPurchaseOrdersItem { - export type Raw = string | PurchaseOrder.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceRequestStatus.ts b/src/serialization/resources/accounting/types/InvoiceRequestStatus.ts deleted file mode 100644 index 7eeefc6ab..000000000 --- a/src/serialization/resources/accounting/types/InvoiceRequestStatus.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 { InvoiceStatusEnum } from "./InvoiceStatusEnum"; - -export const InvoiceRequestStatus: core.serialization.Schema< - serializers.accounting.InvoiceRequestStatus.Raw, - Merge.accounting.InvoiceRequestStatus -> = core.serialization.undiscriminatedUnion([InvoiceStatusEnum, core.serialization.string()]); - -export declare namespace InvoiceRequestStatus { - export type Raw = InvoiceStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/InvoiceRequestTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/InvoiceRequestTrackingCategoriesItem.ts deleted file mode 100644 index 87ad52054..000000000 --- a/src/serialization/resources/accounting/types/InvoiceRequestTrackingCategoriesItem.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 { TrackingCategory } from "./TrackingCategory"; - -export const InvoiceRequestTrackingCategoriesItem: core.serialization.Schema< - serializers.accounting.InvoiceRequestTrackingCategoriesItem.Raw, - Merge.accounting.InvoiceRequestTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace InvoiceRequestTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceRequestType.ts b/src/serialization/resources/accounting/types/InvoiceRequestType.ts deleted file mode 100644 index 3cee48120..000000000 --- a/src/serialization/resources/accounting/types/InvoiceRequestType.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 { InvoiceTypeEnum } from "./InvoiceTypeEnum"; - -export const InvoiceRequestType: core.serialization.Schema< - serializers.accounting.InvoiceRequestType.Raw, - Merge.accounting.InvoiceRequestType -> = core.serialization.undiscriminatedUnion([InvoiceTypeEnum, core.serialization.string()]); - -export declare namespace InvoiceRequestType { - export type Raw = InvoiceTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/InvoiceResponse.ts b/src/serialization/resources/accounting/types/InvoiceResponse.ts deleted file mode 100644 index 565ee9063..000000000 --- a/src/serialization/resources/accounting/types/InvoiceResponse.ts +++ /dev/null @@ -1,27 +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 * as serializers from "../../../index"; -import { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const InvoiceResponse: core.serialization.ObjectSchema< - serializers.accounting.InvoiceResponse.Raw, - Merge.accounting.InvoiceResponse -> = core.serialization.object({ - model: core.serialization.lazyObject(() => serializers.accounting.Invoice), - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace InvoiceResponse { - export interface Raw { - model: serializers.accounting.Invoice.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/InvoiceStatus.ts b/src/serialization/resources/accounting/types/InvoiceStatus.ts deleted file mode 100644 index b8ddd9dfa..000000000 --- a/src/serialization/resources/accounting/types/InvoiceStatus.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 { InvoiceStatusEnum } from "./InvoiceStatusEnum"; - -export const InvoiceStatus: core.serialization.Schema< - serializers.accounting.InvoiceStatus.Raw, - Merge.accounting.InvoiceStatus -> = core.serialization.undiscriminatedUnion([InvoiceStatusEnum, core.serialization.string()]); - -export declare namespace InvoiceStatus { - export type Raw = InvoiceStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/InvoiceStatusEnum.ts b/src/serialization/resources/accounting/types/InvoiceStatusEnum.ts deleted file mode 100644 index 5ec5031eb..000000000 --- a/src/serialization/resources/accounting/types/InvoiceStatusEnum.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 InvoiceStatusEnum: core.serialization.Schema< - serializers.accounting.InvoiceStatusEnum.Raw, - Merge.accounting.InvoiceStatusEnum -> = core.serialization.enum_(["PAID", "DRAFT", "SUBMITTED", "PARTIALLY_PAID", "OPEN", "VOID"]); - -export declare namespace InvoiceStatusEnum { - export type Raw = "PAID" | "DRAFT" | "SUBMITTED" | "PARTIALLY_PAID" | "OPEN" | "VOID"; -} diff --git a/src/serialization/resources/accounting/types/InvoiceTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/InvoiceTrackingCategoriesItem.ts deleted file mode 100644 index 3a9091574..000000000 --- a/src/serialization/resources/accounting/types/InvoiceTrackingCategoriesItem.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 { TrackingCategory } from "./TrackingCategory"; - -export const InvoiceTrackingCategoriesItem: core.serialization.Schema< - serializers.accounting.InvoiceTrackingCategoriesItem.Raw, - Merge.accounting.InvoiceTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace InvoiceTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/InvoiceType.ts b/src/serialization/resources/accounting/types/InvoiceType.ts deleted file mode 100644 index afcd0cd37..000000000 --- a/src/serialization/resources/accounting/types/InvoiceType.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 { InvoiceTypeEnum } from "./InvoiceTypeEnum"; - -export const InvoiceType: core.serialization.Schema< - serializers.accounting.InvoiceType.Raw, - Merge.accounting.InvoiceType -> = core.serialization.undiscriminatedUnion([InvoiceTypeEnum, core.serialization.string()]); - -export declare namespace InvoiceType { - export type Raw = InvoiceTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/InvoiceTypeEnum.ts b/src/serialization/resources/accounting/types/InvoiceTypeEnum.ts deleted file mode 100644 index b155b1ecc..000000000 --- a/src/serialization/resources/accounting/types/InvoiceTypeEnum.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 InvoiceTypeEnum: core.serialization.Schema< - serializers.accounting.InvoiceTypeEnum.Raw, - Merge.accounting.InvoiceTypeEnum -> = core.serialization.enum_(["ACCOUNTS_RECEIVABLE", "ACCOUNTS_PAYABLE"]); - -export declare namespace InvoiceTypeEnum { - export type Raw = "ACCOUNTS_RECEIVABLE" | "ACCOUNTS_PAYABLE"; -} diff --git a/src/serialization/resources/accounting/types/Issue.ts b/src/serialization/resources/accounting/types/Issue.ts deleted file mode 100644 index 5c2ebb15c..000000000 --- a/src/serialization/resources/accounting/types/Issue.ts +++ /dev/null @@ -1,37 +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 { IssueStatus } from "./IssueStatus"; - -export const Issue: core.serialization.ObjectSchema = - core.serialization.object({ - id: core.serialization.string().optional(), - status: IssueStatus.optional(), - errorDescription: core.serialization.property("error_description", core.serialization.string()), - endUser: core.serialization.property( - "end_user", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - firstIncidentTime: core.serialization.property("first_incident_time", core.serialization.date().optional()), - lastIncidentTime: core.serialization.property("last_incident_time", core.serialization.date().optional()), - isMuted: core.serialization.property("is_muted", core.serialization.boolean().optional()), - errorDetails: core.serialization.property( - "error_details", - core.serialization.list(core.serialization.string()).optional(), - ), - }); - -export declare namespace Issue { - export interface Raw { - id?: string | null; - status?: IssueStatus.Raw | null; - error_description: string; - end_user?: Record | null; - first_incident_time?: string | null; - last_incident_time?: string | null; - is_muted?: boolean | null; - error_details?: string[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/IssueStatus.ts b/src/serialization/resources/accounting/types/IssueStatus.ts deleted file mode 100644 index c3af9828f..000000000 --- a/src/serialization/resources/accounting/types/IssueStatus.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 { IssueStatusEnum } from "./IssueStatusEnum"; - -export const IssueStatus: core.serialization.Schema< - serializers.accounting.IssueStatus.Raw, - Merge.accounting.IssueStatus -> = core.serialization.undiscriminatedUnion([IssueStatusEnum, core.serialization.string()]); - -export declare namespace IssueStatus { - export type Raw = IssueStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/IssueStatusEnum.ts b/src/serialization/resources/accounting/types/IssueStatusEnum.ts deleted file mode 100644 index c5f5b2f8c..000000000 --- a/src/serialization/resources/accounting/types/IssueStatusEnum.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 IssueStatusEnum: core.serialization.Schema< - serializers.accounting.IssueStatusEnum.Raw, - Merge.accounting.IssueStatusEnum -> = core.serialization.enum_(["ONGOING", "RESOLVED"]); - -export declare namespace IssueStatusEnum { - export type Raw = "ONGOING" | "RESOLVED"; -} diff --git a/src/serialization/resources/accounting/types/Item.ts b/src/serialization/resources/accounting/types/Item.ts deleted file mode 100644 index 1b8e14c52..000000000 --- a/src/serialization/resources/accounting/types/Item.ts +++ /dev/null @@ -1,61 +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 { ItemCompany } from "./ItemCompany"; -import { ItemPurchaseAccount } from "./ItemPurchaseAccount"; -import { ItemPurchaseTaxRate } from "./ItemPurchaseTaxRate"; -import { ItemSalesAccount } from "./ItemSalesAccount"; -import { ItemSalesTaxRate } from "./ItemSalesTaxRate"; -import { ItemStatus } from "./ItemStatus"; -import { ItemType } from "./ItemType"; -import { RemoteData } from "./RemoteData"; - -export const Item: core.serialization.ObjectSchema = - 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()), - name: core.serialization.string().optional(), - status: ItemStatus.optional(), - type: ItemType.optional(), - unitPrice: core.serialization.property("unit_price", core.serialization.number().optional()), - purchasePrice: core.serialization.property("purchase_price", core.serialization.number().optional()), - purchaseAccount: core.serialization.property("purchase_account", ItemPurchaseAccount.optional()), - salesAccount: core.serialization.property("sales_account", ItemSalesAccount.optional()), - company: ItemCompany.optional(), - purchaseTaxRate: core.serialization.property("purchase_tax_rate", ItemPurchaseTaxRate.optional()), - salesTaxRate: core.serialization.property("sales_tax_rate", ItemSalesTaxRate.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()), - }); - -export declare namespace Item { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - status?: ItemStatus.Raw | null; - type?: ItemType.Raw | null; - unit_price?: number | null; - purchase_price?: number | null; - purchase_account?: ItemPurchaseAccount.Raw | null; - sales_account?: ItemSalesAccount.Raw | null; - company?: ItemCompany.Raw | null; - purchase_tax_rate?: ItemPurchaseTaxRate.Raw | null; - sales_tax_rate?: ItemSalesTaxRate.Raw | null; - remote_updated_at?: string | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/ItemCompany.ts b/src/serialization/resources/accounting/types/ItemCompany.ts deleted file mode 100644 index fed7b2c85..000000000 --- a/src/serialization/resources/accounting/types/ItemCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const ItemCompany: core.serialization.Schema< - serializers.accounting.ItemCompany.Raw, - Merge.accounting.ItemCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace ItemCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/ItemFormatEnum.ts b/src/serialization/resources/accounting/types/ItemFormatEnum.ts deleted file mode 100644 index d5bf47c6d..000000000 --- a/src/serialization/resources/accounting/types/ItemFormatEnum.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 ItemFormatEnum: core.serialization.Schema< - serializers.accounting.ItemFormatEnum.Raw, - Merge.accounting.ItemFormatEnum -> = core.serialization.enum_(["string", "number", "date", "datetime", "bool", "list"]); - -export declare namespace ItemFormatEnum { - export type Raw = "string" | "number" | "date" | "datetime" | "bool" | "list"; -} diff --git a/src/serialization/resources/accounting/types/ItemPurchaseAccount.ts b/src/serialization/resources/accounting/types/ItemPurchaseAccount.ts deleted file mode 100644 index 18c96cb2b..000000000 --- a/src/serialization/resources/accounting/types/ItemPurchaseAccount.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 ItemPurchaseAccount: core.serialization.Schema< - serializers.accounting.ItemPurchaseAccount.Raw, - Merge.accounting.ItemPurchaseAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace ItemPurchaseAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/accounting/types/ItemPurchaseTaxRate.ts b/src/serialization/resources/accounting/types/ItemPurchaseTaxRate.ts deleted file mode 100644 index de3e6c43e..000000000 --- a/src/serialization/resources/accounting/types/ItemPurchaseTaxRate.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 { TaxRate } from "./TaxRate"; - -export const ItemPurchaseTaxRate: core.serialization.Schema< - serializers.accounting.ItemPurchaseTaxRate.Raw, - Merge.accounting.ItemPurchaseTaxRate -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TaxRate]); - -export declare namespace ItemPurchaseTaxRate { - export type Raw = string | TaxRate.Raw; -} diff --git a/src/serialization/resources/accounting/types/ItemRequestRequest.ts b/src/serialization/resources/accounting/types/ItemRequestRequest.ts deleted file mode 100644 index 41c545b23..000000000 --- a/src/serialization/resources/accounting/types/ItemRequestRequest.ts +++ /dev/null @@ -1,53 +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 { ItemRequestRequestCompany } from "./ItemRequestRequestCompany"; -import { ItemRequestRequestPurchaseAccount } from "./ItemRequestRequestPurchaseAccount"; -import { ItemRequestRequestPurchaseTaxRate } from "./ItemRequestRequestPurchaseTaxRate"; -import { ItemRequestRequestSalesAccount } from "./ItemRequestRequestSalesAccount"; -import { ItemRequestRequestSalesTaxRate } from "./ItemRequestRequestSalesTaxRate"; -import { ItemRequestRequestStatus } from "./ItemRequestRequestStatus"; -import { ItemRequestRequestType } from "./ItemRequestRequestType"; - -export const ItemRequestRequest: core.serialization.ObjectSchema< - serializers.accounting.ItemRequestRequest.Raw, - Merge.accounting.ItemRequestRequest -> = core.serialization.object({ - name: core.serialization.string().optional(), - status: ItemRequestRequestStatus.optional(), - type: ItemRequestRequestType.optional(), - unitPrice: core.serialization.property("unit_price", core.serialization.number().optional()), - purchasePrice: core.serialization.property("purchase_price", core.serialization.number().optional()), - purchaseAccount: core.serialization.property("purchase_account", ItemRequestRequestPurchaseAccount.optional()), - salesAccount: core.serialization.property("sales_account", ItemRequestRequestSalesAccount.optional()), - company: ItemRequestRequestCompany.optional(), - purchaseTaxRate: core.serialization.property("purchase_tax_rate", ItemRequestRequestPurchaseTaxRate.optional()), - salesTaxRate: core.serialization.property("sales_tax_rate", ItemRequestRequestSalesTaxRate.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 ItemRequestRequest { - export interface Raw { - name?: string | null; - status?: ItemRequestRequestStatus.Raw | null; - type?: ItemRequestRequestType.Raw | null; - unit_price?: number | null; - purchase_price?: number | null; - purchase_account?: ItemRequestRequestPurchaseAccount.Raw | null; - sales_account?: ItemRequestRequestSalesAccount.Raw | null; - company?: ItemRequestRequestCompany.Raw | null; - purchase_tax_rate?: ItemRequestRequestPurchaseTaxRate.Raw | null; - sales_tax_rate?: ItemRequestRequestSalesTaxRate.Raw | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/accounting/types/ItemRequestRequestCompany.ts b/src/serialization/resources/accounting/types/ItemRequestRequestCompany.ts deleted file mode 100644 index de69132f1..000000000 --- a/src/serialization/resources/accounting/types/ItemRequestRequestCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const ItemRequestRequestCompany: core.serialization.Schema< - serializers.accounting.ItemRequestRequestCompany.Raw, - Merge.accounting.ItemRequestRequestCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace ItemRequestRequestCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/ItemRequestRequestPurchaseAccount.ts b/src/serialization/resources/accounting/types/ItemRequestRequestPurchaseAccount.ts deleted file mode 100644 index ccbdc43ab..000000000 --- a/src/serialization/resources/accounting/types/ItemRequestRequestPurchaseAccount.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 ItemRequestRequestPurchaseAccount: core.serialization.Schema< - serializers.accounting.ItemRequestRequestPurchaseAccount.Raw, - Merge.accounting.ItemRequestRequestPurchaseAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace ItemRequestRequestPurchaseAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/accounting/types/ItemRequestRequestPurchaseTaxRate.ts b/src/serialization/resources/accounting/types/ItemRequestRequestPurchaseTaxRate.ts deleted file mode 100644 index f534d6464..000000000 --- a/src/serialization/resources/accounting/types/ItemRequestRequestPurchaseTaxRate.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 { TaxRate } from "./TaxRate"; - -export const ItemRequestRequestPurchaseTaxRate: core.serialization.Schema< - serializers.accounting.ItemRequestRequestPurchaseTaxRate.Raw, - Merge.accounting.ItemRequestRequestPurchaseTaxRate -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TaxRate]); - -export declare namespace ItemRequestRequestPurchaseTaxRate { - export type Raw = string | TaxRate.Raw; -} diff --git a/src/serialization/resources/accounting/types/ItemRequestRequestSalesAccount.ts b/src/serialization/resources/accounting/types/ItemRequestRequestSalesAccount.ts deleted file mode 100644 index b86b32446..000000000 --- a/src/serialization/resources/accounting/types/ItemRequestRequestSalesAccount.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 ItemRequestRequestSalesAccount: core.serialization.Schema< - serializers.accounting.ItemRequestRequestSalesAccount.Raw, - Merge.accounting.ItemRequestRequestSalesAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace ItemRequestRequestSalesAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/accounting/types/ItemRequestRequestSalesTaxRate.ts b/src/serialization/resources/accounting/types/ItemRequestRequestSalesTaxRate.ts deleted file mode 100644 index 8a30133e1..000000000 --- a/src/serialization/resources/accounting/types/ItemRequestRequestSalesTaxRate.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 { TaxRate } from "./TaxRate"; - -export const ItemRequestRequestSalesTaxRate: core.serialization.Schema< - serializers.accounting.ItemRequestRequestSalesTaxRate.Raw, - Merge.accounting.ItemRequestRequestSalesTaxRate -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TaxRate]); - -export declare namespace ItemRequestRequestSalesTaxRate { - export type Raw = string | TaxRate.Raw; -} diff --git a/src/serialization/resources/accounting/types/ItemRequestRequestStatus.ts b/src/serialization/resources/accounting/types/ItemRequestRequestStatus.ts deleted file mode 100644 index 865620eb2..000000000 --- a/src/serialization/resources/accounting/types/ItemRequestRequestStatus.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 { Status7D1Enum } from "./Status7D1Enum"; - -export const ItemRequestRequestStatus: core.serialization.Schema< - serializers.accounting.ItemRequestRequestStatus.Raw, - Merge.accounting.ItemRequestRequestStatus -> = core.serialization.undiscriminatedUnion([Status7D1Enum, core.serialization.string()]); - -export declare namespace ItemRequestRequestStatus { - export type Raw = Status7D1Enum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/ItemRequestRequestType.ts b/src/serialization/resources/accounting/types/ItemRequestRequestType.ts deleted file mode 100644 index adeea465b..000000000 --- a/src/serialization/resources/accounting/types/ItemRequestRequestType.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 { Type2BbEnum } from "./Type2BbEnum"; - -export const ItemRequestRequestType: core.serialization.Schema< - serializers.accounting.ItemRequestRequestType.Raw, - Merge.accounting.ItemRequestRequestType -> = core.serialization.undiscriminatedUnion([Type2BbEnum, core.serialization.string()]); - -export declare namespace ItemRequestRequestType { - export type Raw = Type2BbEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/ItemResponse.ts b/src/serialization/resources/accounting/types/ItemResponse.ts deleted file mode 100644 index 78f741c6b..000000000 --- a/src/serialization/resources/accounting/types/ItemResponse.ts +++ /dev/null @@ -1,28 +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 { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { Item } from "./Item"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const ItemResponse: core.serialization.ObjectSchema< - serializers.accounting.ItemResponse.Raw, - Merge.accounting.ItemResponse -> = core.serialization.object({ - model: Item, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace ItemResponse { - export interface Raw { - model: Item.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/ItemSalesAccount.ts b/src/serialization/resources/accounting/types/ItemSalesAccount.ts deleted file mode 100644 index 49d8ca050..000000000 --- a/src/serialization/resources/accounting/types/ItemSalesAccount.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 ItemSalesAccount: core.serialization.Schema< - serializers.accounting.ItemSalesAccount.Raw, - Merge.accounting.ItemSalesAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace ItemSalesAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/accounting/types/ItemSalesTaxRate.ts b/src/serialization/resources/accounting/types/ItemSalesTaxRate.ts deleted file mode 100644 index 7ab07c87b..000000000 --- a/src/serialization/resources/accounting/types/ItemSalesTaxRate.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 { TaxRate } from "./TaxRate"; - -export const ItemSalesTaxRate: core.serialization.Schema< - serializers.accounting.ItemSalesTaxRate.Raw, - Merge.accounting.ItemSalesTaxRate -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TaxRate]); - -export declare namespace ItemSalesTaxRate { - export type Raw = string | TaxRate.Raw; -} diff --git a/src/serialization/resources/accounting/types/ItemSchema.ts b/src/serialization/resources/accounting/types/ItemSchema.ts deleted file mode 100644 index c86977314..000000000 --- a/src/serialization/resources/accounting/types/ItemSchema.ts +++ /dev/null @@ -1,27 +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 { ItemFormatEnum } from "./ItemFormatEnum"; -import { ItemTypeEnum } from "./ItemTypeEnum"; - -export const ItemSchema: core.serialization.ObjectSchema< - serializers.accounting.ItemSchema.Raw, - Merge.accounting.ItemSchema -> = core.serialization.object({ - itemType: core.serialization.property("item_type", ItemTypeEnum.optional()), - itemFormat: core.serialization.property("item_format", ItemFormatEnum.optional()), - itemChoices: core.serialization.property( - "item_choices", - core.serialization.list(core.serialization.string()).optional(), - ), -}); - -export declare namespace ItemSchema { - export interface Raw { - item_type?: ItemTypeEnum.Raw | null; - item_format?: ItemFormatEnum.Raw | null; - item_choices?: string[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/ItemStatus.ts b/src/serialization/resources/accounting/types/ItemStatus.ts deleted file mode 100644 index d22664d04..000000000 --- a/src/serialization/resources/accounting/types/ItemStatus.ts +++ /dev/null @@ -1,13 +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 { Status7D1Enum } from "./Status7D1Enum"; - -export const ItemStatus: core.serialization.Schema = - core.serialization.undiscriminatedUnion([Status7D1Enum, core.serialization.string()]); - -export declare namespace ItemStatus { - export type Raw = Status7D1Enum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/ItemType.ts b/src/serialization/resources/accounting/types/ItemType.ts deleted file mode 100644 index 074fbe7bc..000000000 --- a/src/serialization/resources/accounting/types/ItemType.ts +++ /dev/null @@ -1,13 +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 { Type2BbEnum } from "./Type2BbEnum"; - -export const ItemType: core.serialization.Schema = - core.serialization.undiscriminatedUnion([Type2BbEnum, core.serialization.string()]); - -export declare namespace ItemType { - export type Raw = Type2BbEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/ItemTypeEnum.ts b/src/serialization/resources/accounting/types/ItemTypeEnum.ts deleted file mode 100644 index c8c5e5733..000000000 --- a/src/serialization/resources/accounting/types/ItemTypeEnum.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 ItemTypeEnum: core.serialization.Schema< - serializers.accounting.ItemTypeEnum.Raw, - Merge.accounting.ItemTypeEnum -> = core.serialization.enum_(["string", "number", "date", "datetime", "bool", "list"]); - -export declare namespace ItemTypeEnum { - export type Raw = "string" | "number" | "date" | "datetime" | "bool" | "list"; -} diff --git a/src/serialization/resources/accounting/types/JournalEntry.ts b/src/serialization/resources/accounting/types/JournalEntry.ts deleted file mode 100644 index 920ee5893..000000000 --- a/src/serialization/resources/accounting/types/JournalEntry.ts +++ /dev/null @@ -1,81 +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 { JournalEntryAccountingPeriod } from "./JournalEntryAccountingPeriod"; -import { JournalEntryAppliedPaymentsItem } from "./JournalEntryAppliedPaymentsItem"; -import { JournalEntryCompany } from "./JournalEntryCompany"; -import { JournalEntryCurrency } from "./JournalEntryCurrency"; -import { JournalEntryPaymentsItem } from "./JournalEntryPaymentsItem"; -import { JournalEntryPostingStatus } from "./JournalEntryPostingStatus"; -import { JournalEntryTrackingCategoriesItem } from "./JournalEntryTrackingCategoriesItem"; -import { JournalLine } from "./JournalLine"; -import { RemoteData } from "./RemoteData"; -import { RemoteField } from "./RemoteField"; - -export const JournalEntry: core.serialization.ObjectSchema< - serializers.accounting.JournalEntry.Raw, - Merge.accounting.JournalEntry -> = 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()), - transactionDate: core.serialization.property("transaction_date", core.serialization.date().optional()), - payments: core.serialization.list(JournalEntryPaymentsItem.optional()).optional(), - appliedPayments: core.serialization.property( - "applied_payments", - core.serialization.list(JournalEntryAppliedPaymentsItem.optional()).optional(), - ), - memo: core.serialization.string().optional(), - currency: JournalEntryCurrency.optional(), - 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(), - journalNumber: core.serialization.property("journal_number", core.serialization.string().optional()), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(JournalEntryTrackingCategoriesItem.optional()).optional(), - ), - remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), - postingStatus: core.serialization.property("posting_status", JournalEntryPostingStatus.optional()), - accountingPeriod: core.serialization.property("accounting_period", JournalEntryAccountingPeriod.optional()), - remoteCreatedAt: core.serialization.property("remote_created_at", core.serialization.date().optional()), - remoteUpdatedAt: core.serialization.property("remote_updated_at", core.serialization.date().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 JournalEntry { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - transaction_date?: string | null; - payments?: (JournalEntryPaymentsItem.Raw | null | undefined)[] | null; - applied_payments?: (JournalEntryAppliedPaymentsItem.Raw | null | undefined)[] | null; - memo?: string | null; - currency?: JournalEntryCurrency.Raw | null; - exchange_rate?: string | null; - company?: JournalEntryCompany.Raw | null; - inclusive_of_tax?: boolean | null; - lines?: JournalLine.Raw[] | null; - journal_number?: string | null; - tracking_categories?: (JournalEntryTrackingCategoriesItem.Raw | null | undefined)[] | null; - remote_was_deleted?: boolean | null; - posting_status?: JournalEntryPostingStatus.Raw | null; - accounting_period?: JournalEntryAccountingPeriod.Raw | null; - remote_created_at?: string | null; - remote_updated_at?: string | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - remote_fields?: RemoteField.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/JournalEntryAccountingPeriod.ts b/src/serialization/resources/accounting/types/JournalEntryAccountingPeriod.ts deleted file mode 100644 index e1d78cc95..000000000 --- a/src/serialization/resources/accounting/types/JournalEntryAccountingPeriod.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 { AccountingPeriod } from "./AccountingPeriod"; - -export const JournalEntryAccountingPeriod: core.serialization.Schema< - serializers.accounting.JournalEntryAccountingPeriod.Raw, - Merge.accounting.JournalEntryAccountingPeriod -> = core.serialization.undiscriminatedUnion([core.serialization.string(), AccountingPeriod]); - -export declare namespace JournalEntryAccountingPeriod { - export type Raw = string | AccountingPeriod.Raw; -} diff --git a/src/serialization/resources/accounting/types/JournalEntryAppliedPaymentsItem.ts b/src/serialization/resources/accounting/types/JournalEntryAppliedPaymentsItem.ts deleted file mode 100644 index 240a54866..000000000 --- a/src/serialization/resources/accounting/types/JournalEntryAppliedPaymentsItem.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 { PaymentLineItem } from "./PaymentLineItem"; - -export const JournalEntryAppliedPaymentsItem: core.serialization.Schema< - serializers.accounting.JournalEntryAppliedPaymentsItem.Raw, - Merge.accounting.JournalEntryAppliedPaymentsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), PaymentLineItem]); - -export declare namespace JournalEntryAppliedPaymentsItem { - export type Raw = string | PaymentLineItem.Raw; -} diff --git a/src/serialization/resources/accounting/types/JournalEntryCompany.ts b/src/serialization/resources/accounting/types/JournalEntryCompany.ts deleted file mode 100644 index d045194f4..000000000 --- a/src/serialization/resources/accounting/types/JournalEntryCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const JournalEntryCompany: core.serialization.Schema< - serializers.accounting.JournalEntryCompany.Raw, - Merge.accounting.JournalEntryCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace JournalEntryCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/JournalEntryCurrency.ts b/src/serialization/resources/accounting/types/JournalEntryCurrency.ts deleted file mode 100644 index 26981c4d6..000000000 --- a/src/serialization/resources/accounting/types/JournalEntryCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const JournalEntryCurrency: core.serialization.Schema< - serializers.accounting.JournalEntryCurrency.Raw, - Merge.accounting.JournalEntryCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace JournalEntryCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/JournalEntryPaymentsItem.ts b/src/serialization/resources/accounting/types/JournalEntryPaymentsItem.ts deleted file mode 100644 index 7ee61506a..000000000 --- a/src/serialization/resources/accounting/types/JournalEntryPaymentsItem.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 { Payment } from "./Payment"; - -export const JournalEntryPaymentsItem: core.serialization.Schema< - serializers.accounting.JournalEntryPaymentsItem.Raw, - Merge.accounting.JournalEntryPaymentsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Payment]); - -export declare namespace JournalEntryPaymentsItem { - export type Raw = string | Payment.Raw; -} diff --git a/src/serialization/resources/accounting/types/JournalEntryPostingStatus.ts b/src/serialization/resources/accounting/types/JournalEntryPostingStatus.ts deleted file mode 100644 index 1a3243462..000000000 --- a/src/serialization/resources/accounting/types/JournalEntryPostingStatus.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 { PostingStatusEnum } from "./PostingStatusEnum"; - -export const JournalEntryPostingStatus: core.serialization.Schema< - serializers.accounting.JournalEntryPostingStatus.Raw, - Merge.accounting.JournalEntryPostingStatus -> = core.serialization.undiscriminatedUnion([PostingStatusEnum, core.serialization.string()]); - -export declare namespace JournalEntryPostingStatus { - export type Raw = PostingStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/JournalEntryRequest.ts b/src/serialization/resources/accounting/types/JournalEntryRequest.ts deleted file mode 100644 index e2ca2c6a4..000000000 --- a/src/serialization/resources/accounting/types/JournalEntryRequest.ts +++ /dev/null @@ -1,60 +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 { JournalEntryRequestCompany } from "./JournalEntryRequestCompany"; -import { JournalEntryRequestCurrency } from "./JournalEntryRequestCurrency"; -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< - serializers.accounting.JournalEntryRequest.Raw, - Merge.accounting.JournalEntryRequest -> = core.serialization.object({ - transactionDate: core.serialization.property("transaction_date", core.serialization.date().optional()), - payments: core.serialization.list(JournalEntryRequestPaymentsItem.optional()).optional(), - memo: core.serialization.string().optional(), - currency: JournalEntryRequestCurrency.optional(), - exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), - company: JournalEntryRequestCompany.optional(), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(JournalEntryRequestTrackingCategoriesItem.optional()).optional(), - ), - inclusiveOfTax: core.serialization.property("inclusive_of_tax", core.serialization.boolean().optional()), - lines: core.serialization.list(JournalLineRequest).optional(), - journalNumber: core.serialization.property("journal_number", core.serialization.string().optional()), - postingStatus: core.serialization.property("posting_status", JournalEntryRequestPostingStatus.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 JournalEntryRequest { - export interface Raw { - transaction_date?: string | null; - payments?: (JournalEntryRequestPaymentsItem.Raw | null | undefined)[] | null; - memo?: string | null; - currency?: JournalEntryRequestCurrency.Raw | null; - exchange_rate?: string | null; - company?: JournalEntryRequestCompany.Raw | null; - tracking_categories?: (JournalEntryRequestTrackingCategoriesItem.Raw | null | undefined)[] | null; - inclusive_of_tax?: boolean | null; - lines?: JournalLineRequest.Raw[] | null; - journal_number?: string | null; - posting_status?: JournalEntryRequestPostingStatus.Raw | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/JournalEntryRequestCompany.ts b/src/serialization/resources/accounting/types/JournalEntryRequestCompany.ts deleted file mode 100644 index cbc96609a..000000000 --- a/src/serialization/resources/accounting/types/JournalEntryRequestCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const JournalEntryRequestCompany: core.serialization.Schema< - serializers.accounting.JournalEntryRequestCompany.Raw, - Merge.accounting.JournalEntryRequestCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace JournalEntryRequestCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/JournalEntryRequestCurrency.ts b/src/serialization/resources/accounting/types/JournalEntryRequestCurrency.ts deleted file mode 100644 index a89655b50..000000000 --- a/src/serialization/resources/accounting/types/JournalEntryRequestCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const JournalEntryRequestCurrency: core.serialization.Schema< - serializers.accounting.JournalEntryRequestCurrency.Raw, - Merge.accounting.JournalEntryRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace JournalEntryRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/JournalEntryRequestPaymentsItem.ts b/src/serialization/resources/accounting/types/JournalEntryRequestPaymentsItem.ts deleted file mode 100644 index fcd672112..000000000 --- a/src/serialization/resources/accounting/types/JournalEntryRequestPaymentsItem.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 { Payment } from "./Payment"; - -export const JournalEntryRequestPaymentsItem: core.serialization.Schema< - serializers.accounting.JournalEntryRequestPaymentsItem.Raw, - Merge.accounting.JournalEntryRequestPaymentsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Payment]); - -export declare namespace JournalEntryRequestPaymentsItem { - export type Raw = string | Payment.Raw; -} diff --git a/src/serialization/resources/accounting/types/JournalEntryRequestPostingStatus.ts b/src/serialization/resources/accounting/types/JournalEntryRequestPostingStatus.ts deleted file mode 100644 index 140aa4b50..000000000 --- a/src/serialization/resources/accounting/types/JournalEntryRequestPostingStatus.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 { PostingStatusEnum } from "./PostingStatusEnum"; - -export const JournalEntryRequestPostingStatus: core.serialization.Schema< - serializers.accounting.JournalEntryRequestPostingStatus.Raw, - Merge.accounting.JournalEntryRequestPostingStatus -> = core.serialization.undiscriminatedUnion([PostingStatusEnum, core.serialization.string()]); - -export declare namespace JournalEntryRequestPostingStatus { - export type Raw = PostingStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/JournalEntryRequestTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/JournalEntryRequestTrackingCategoriesItem.ts deleted file mode 100644 index bc9ca9045..000000000 --- a/src/serialization/resources/accounting/types/JournalEntryRequestTrackingCategoriesItem.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 { TrackingCategory } from "./TrackingCategory"; - -export const JournalEntryRequestTrackingCategoriesItem: core.serialization.Schema< - serializers.accounting.JournalEntryRequestTrackingCategoriesItem.Raw, - Merge.accounting.JournalEntryRequestTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace JournalEntryRequestTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/JournalEntryResponse.ts b/src/serialization/resources/accounting/types/JournalEntryResponse.ts deleted file mode 100644 index 361a63124..000000000 --- a/src/serialization/resources/accounting/types/JournalEntryResponse.ts +++ /dev/null @@ -1,28 +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 { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { JournalEntry } from "./JournalEntry"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const JournalEntryResponse: core.serialization.ObjectSchema< - serializers.accounting.JournalEntryResponse.Raw, - Merge.accounting.JournalEntryResponse -> = core.serialization.object({ - model: JournalEntry, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace JournalEntryResponse { - export interface Raw { - model: JournalEntry.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/JournalEntryTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/JournalEntryTrackingCategoriesItem.ts deleted file mode 100644 index 2c6aad815..000000000 --- a/src/serialization/resources/accounting/types/JournalEntryTrackingCategoriesItem.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 { TrackingCategory } from "./TrackingCategory"; - -export const JournalEntryTrackingCategoriesItem: core.serialization.Schema< - serializers.accounting.JournalEntryTrackingCategoriesItem.Raw, - Merge.accounting.JournalEntryTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace JournalEntryTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/JournalLine.ts b/src/serialization/resources/accounting/types/JournalLine.ts deleted file mode 100644 index 170c72f1b..000000000 --- a/src/serialization/resources/accounting/types/JournalLine.ts +++ /dev/null @@ -1,61 +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 { JournalLineAccount } from "./JournalLineAccount"; -import { JournalLineCurrency } from "./JournalLineCurrency"; -import { JournalLineProject } from "./JournalLineProject"; -import { JournalLineTrackingCategoriesItem } from "./JournalLineTrackingCategoriesItem"; -import { JournalLineTrackingCategory } from "./JournalLineTrackingCategory"; -import { RemoteField } from "./RemoteField"; - -export const JournalLine: core.serialization.ObjectSchema< - serializers.accounting.JournalLine.Raw, - Merge.accounting.JournalLine -> = 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()), - account: JournalLineAccount.optional(), - netAmount: core.serialization.property("net_amount", core.serialization.number().optional()), - trackingCategory: core.serialization.property("tracking_category", JournalLineTrackingCategory.optional()), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(JournalLineTrackingCategoriesItem.optional()).optional(), - ), - currency: JournalLineCurrency.optional(), - company: core.serialization.string().optional(), - employee: core.serialization.string().optional(), - project: JournalLineProject.optional(), - contact: core.serialization.string().optional(), - taxRate: core.serialization.property("tax_rate", core.serialization.string().optional()), - description: core.serialization.string().optional(), - exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().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 JournalLine { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - account?: JournalLineAccount.Raw | null; - net_amount?: number | null; - tracking_category?: JournalLineTrackingCategory.Raw | null; - tracking_categories?: (JournalLineTrackingCategoriesItem.Raw | null | undefined)[] | null; - currency?: JournalLineCurrency.Raw | null; - company?: string | null; - employee?: string | null; - project?: JournalLineProject.Raw | null; - contact?: string | null; - tax_rate?: string | null; - description?: string | null; - exchange_rate?: string | null; - remote_was_deleted?: boolean | null; - remote_fields?: RemoteField.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/JournalLineAccount.ts b/src/serialization/resources/accounting/types/JournalLineAccount.ts deleted file mode 100644 index 9c2098d9c..000000000 --- a/src/serialization/resources/accounting/types/JournalLineAccount.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 JournalLineAccount: core.serialization.Schema< - serializers.accounting.JournalLineAccount.Raw, - Merge.accounting.JournalLineAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace JournalLineAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/accounting/types/JournalLineCurrency.ts b/src/serialization/resources/accounting/types/JournalLineCurrency.ts deleted file mode 100644 index b426b5c36..000000000 --- a/src/serialization/resources/accounting/types/JournalLineCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const JournalLineCurrency: core.serialization.Schema< - serializers.accounting.JournalLineCurrency.Raw, - Merge.accounting.JournalLineCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace JournalLineCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/JournalLineProject.ts b/src/serialization/resources/accounting/types/JournalLineProject.ts deleted file mode 100644 index b9f28b3d5..000000000 --- a/src/serialization/resources/accounting/types/JournalLineProject.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 { Project } from "./Project"; - -export const JournalLineProject: core.serialization.Schema< - serializers.accounting.JournalLineProject.Raw, - Merge.accounting.JournalLineProject -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Project]); - -export declare namespace JournalLineProject { - export type Raw = string | Project.Raw; -} diff --git a/src/serialization/resources/accounting/types/JournalLineRequest.ts b/src/serialization/resources/accounting/types/JournalLineRequest.ts deleted file mode 100644 index b6b656feb..000000000 --- a/src/serialization/resources/accounting/types/JournalLineRequest.ts +++ /dev/null @@ -1,63 +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 { JournalLineRequestAccount } from "./JournalLineRequestAccount"; -import { JournalLineRequestCurrency } from "./JournalLineRequestCurrency"; -import { JournalLineRequestProject } from "./JournalLineRequestProject"; -import { JournalLineRequestTrackingCategoriesItem } from "./JournalLineRequestTrackingCategoriesItem"; -import { JournalLineRequestTrackingCategory } from "./JournalLineRequestTrackingCategory"; -import { RemoteFieldRequest } from "./RemoteFieldRequest"; - -export const JournalLineRequest: core.serialization.ObjectSchema< - serializers.accounting.JournalLineRequest.Raw, - Merge.accounting.JournalLineRequest -> = core.serialization.object({ - remoteId: core.serialization.property("remote_id", core.serialization.string().optional()), - account: JournalLineRequestAccount.optional(), - netAmount: core.serialization.property("net_amount", core.serialization.number().optional()), - trackingCategory: core.serialization.property("tracking_category", JournalLineRequestTrackingCategory.optional()), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(JournalLineRequestTrackingCategoriesItem.optional()).optional(), - ), - currency: JournalLineRequestCurrency.optional(), - company: core.serialization.string().optional(), - employee: core.serialization.string().optional(), - project: JournalLineRequestProject.optional(), - contact: core.serialization.string().optional(), - taxRate: core.serialization.property("tax_rate", core.serialization.string().optional()), - description: core.serialization.string().optional(), - exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), - integrationParams: core.serialization.property( - "integration_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - linkedAccountParams: core.serialization.property( - "linked_account_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - remoteFields: core.serialization.property("remote_fields", core.serialization.list(RemoteFieldRequest).optional()), -}); - -export declare namespace JournalLineRequest { - export interface Raw { - remote_id?: string | null; - account?: JournalLineRequestAccount.Raw | null; - net_amount?: number | null; - tracking_category?: JournalLineRequestTrackingCategory.Raw | null; - tracking_categories?: (JournalLineRequestTrackingCategoriesItem.Raw | null | undefined)[] | null; - currency?: JournalLineRequestCurrency.Raw | null; - company?: string | null; - employee?: string | null; - project?: JournalLineRequestProject.Raw | null; - contact?: string | null; - tax_rate?: string | null; - description?: string | null; - exchange_rate?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/JournalLineRequestAccount.ts b/src/serialization/resources/accounting/types/JournalLineRequestAccount.ts deleted file mode 100644 index 6dff35c7e..000000000 --- a/src/serialization/resources/accounting/types/JournalLineRequestAccount.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 JournalLineRequestAccount: core.serialization.Schema< - serializers.accounting.JournalLineRequestAccount.Raw, - Merge.accounting.JournalLineRequestAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace JournalLineRequestAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/accounting/types/JournalLineRequestCurrency.ts b/src/serialization/resources/accounting/types/JournalLineRequestCurrency.ts deleted file mode 100644 index 9454aba1a..000000000 --- a/src/serialization/resources/accounting/types/JournalLineRequestCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const JournalLineRequestCurrency: core.serialization.Schema< - serializers.accounting.JournalLineRequestCurrency.Raw, - Merge.accounting.JournalLineRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace JournalLineRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/JournalLineRequestProject.ts b/src/serialization/resources/accounting/types/JournalLineRequestProject.ts deleted file mode 100644 index 7b034c849..000000000 --- a/src/serialization/resources/accounting/types/JournalLineRequestProject.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 { Project } from "./Project"; - -export const JournalLineRequestProject: core.serialization.Schema< - serializers.accounting.JournalLineRequestProject.Raw, - Merge.accounting.JournalLineRequestProject -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Project]); - -export declare namespace JournalLineRequestProject { - export type Raw = string | Project.Raw; -} diff --git a/src/serialization/resources/accounting/types/JournalLineRequestTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/JournalLineRequestTrackingCategoriesItem.ts deleted file mode 100644 index c5a504a3c..000000000 --- a/src/serialization/resources/accounting/types/JournalLineRequestTrackingCategoriesItem.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 { TrackingCategory } from "./TrackingCategory"; - -export const JournalLineRequestTrackingCategoriesItem: core.serialization.Schema< - serializers.accounting.JournalLineRequestTrackingCategoriesItem.Raw, - Merge.accounting.JournalLineRequestTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace JournalLineRequestTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/JournalLineRequestTrackingCategory.ts b/src/serialization/resources/accounting/types/JournalLineRequestTrackingCategory.ts deleted file mode 100644 index 1a1622781..000000000 --- a/src/serialization/resources/accounting/types/JournalLineRequestTrackingCategory.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 { TrackingCategory } from "./TrackingCategory"; - -export const JournalLineRequestTrackingCategory: core.serialization.Schema< - serializers.accounting.JournalLineRequestTrackingCategory.Raw, - Merge.accounting.JournalLineRequestTrackingCategory -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace JournalLineRequestTrackingCategory { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/JournalLineTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/JournalLineTrackingCategoriesItem.ts deleted file mode 100644 index 532e81fa7..000000000 --- a/src/serialization/resources/accounting/types/JournalLineTrackingCategoriesItem.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 { TrackingCategory } from "./TrackingCategory"; - -export const JournalLineTrackingCategoriesItem: core.serialization.Schema< - serializers.accounting.JournalLineTrackingCategoriesItem.Raw, - Merge.accounting.JournalLineTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace JournalLineTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/JournalLineTrackingCategory.ts b/src/serialization/resources/accounting/types/JournalLineTrackingCategory.ts deleted file mode 100644 index 13ba6560d..000000000 --- a/src/serialization/resources/accounting/types/JournalLineTrackingCategory.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 { TrackingCategory } from "./TrackingCategory"; - -export const JournalLineTrackingCategory: core.serialization.Schema< - serializers.accounting.JournalLineTrackingCategory.Raw, - Merge.accounting.JournalLineTrackingCategory -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace JournalLineTrackingCategory { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/LanguageEnum.ts b/src/serialization/resources/accounting/types/LanguageEnum.ts deleted file mode 100644 index 5b39ae89c..000000000 --- a/src/serialization/resources/accounting/types/LanguageEnum.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 LanguageEnum: core.serialization.Schema< - serializers.accounting.LanguageEnum.Raw, - Merge.accounting.LanguageEnum -> = core.serialization.enum_(["en", "de"]); - -export declare namespace LanguageEnum { - export type Raw = "en" | "de"; -} diff --git a/src/serialization/resources/accounting/types/LastSyncResultEnum.ts b/src/serialization/resources/accounting/types/LastSyncResultEnum.ts deleted file mode 100644 index 59f0ed7d8..000000000 --- a/src/serialization/resources/accounting/types/LastSyncResultEnum.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 LastSyncResultEnum: core.serialization.Schema< - serializers.accounting.LastSyncResultEnum.Raw, - Merge.accounting.LastSyncResultEnum -> = core.serialization.enum_(["SYNCING", "DONE", "FAILED", "DISABLED", "PAUSED", "PARTIALLY_SYNCED"]); - -export declare namespace LastSyncResultEnum { - export type Raw = "SYNCING" | "DONE" | "FAILED" | "DISABLED" | "PAUSED" | "PARTIALLY_SYNCED"; -} diff --git a/src/serialization/resources/accounting/types/LinkToken.ts b/src/serialization/resources/accounting/types/LinkToken.ts deleted file mode 100644 index 5385410e3..000000000 --- a/src/serialization/resources/accounting/types/LinkToken.ts +++ /dev/null @@ -1,22 +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 LinkToken: core.serialization.ObjectSchema< - serializers.accounting.LinkToken.Raw, - Merge.accounting.LinkToken -> = core.serialization.object({ - linkToken: core.serialization.property("link_token", core.serialization.string()), - integrationName: core.serialization.property("integration_name", core.serialization.string().optional()), - magicLinkUrl: core.serialization.property("magic_link_url", core.serialization.string().optional()), -}); - -export declare namespace LinkToken { - export interface Raw { - link_token: string; - integration_name?: string | null; - magic_link_url?: string | null; - } -} diff --git a/src/serialization/resources/accounting/types/LinkedAccountStatus.ts b/src/serialization/resources/accounting/types/LinkedAccountStatus.ts deleted file mode 100644 index ad7b30ab2..000000000 --- a/src/serialization/resources/accounting/types/LinkedAccountStatus.ts +++ /dev/null @@ -1,20 +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 LinkedAccountStatus: core.serialization.ObjectSchema< - serializers.accounting.LinkedAccountStatus.Raw, - Merge.accounting.LinkedAccountStatus -> = core.serialization.object({ - linkedAccountStatus: core.serialization.property("linked_account_status", core.serialization.string()), - canMakeRequest: core.serialization.property("can_make_request", core.serialization.boolean()), -}); - -export declare namespace LinkedAccountStatus { - export interface Raw { - linked_account_status: string; - can_make_request: boolean; - } -} diff --git a/src/serialization/resources/accounting/types/MetaResponse.ts b/src/serialization/resources/accounting/types/MetaResponse.ts deleted file mode 100644 index 8eff11624..000000000 --- a/src/serialization/resources/accounting/types/MetaResponse.ts +++ /dev/null @@ -1,36 +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 { LinkedAccountStatus } from "./LinkedAccountStatus"; - -export const MetaResponse: core.serialization.ObjectSchema< - serializers.accounting.MetaResponse.Raw, - Merge.accounting.MetaResponse -> = core.serialization.object({ - requestSchema: core.serialization.property( - "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(), - ), -}); - -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; - } -} diff --git a/src/serialization/resources/accounting/types/MethodEnum.ts b/src/serialization/resources/accounting/types/MethodEnum.ts deleted file mode 100644 index 59b092e9a..000000000 --- a/src/serialization/resources/accounting/types/MethodEnum.ts +++ /dev/null @@ -1,12 +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 MethodEnum: core.serialization.Schema = - core.serialization.enum_(["GET", "OPTIONS", "HEAD", "POST", "PUT", "PATCH", "DELETE"]); - -export declare namespace MethodEnum { - export type Raw = "GET" | "OPTIONS" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE"; -} diff --git a/src/serialization/resources/accounting/types/MethodTypeEnum.ts b/src/serialization/resources/accounting/types/MethodTypeEnum.ts deleted file mode 100644 index 87a381019..000000000 --- a/src/serialization/resources/accounting/types/MethodTypeEnum.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 MethodTypeEnum: core.serialization.Schema< - serializers.accounting.MethodTypeEnum.Raw, - Merge.accounting.MethodTypeEnum -> = core.serialization.enum_(["CREDIT_CARD", "DEBIT_CARD", "ACH", "CASH", "CHECK"]); - -export declare namespace MethodTypeEnum { - export type Raw = "CREDIT_CARD" | "DEBIT_CARD" | "ACH" | "CASH" | "CHECK"; -} diff --git a/src/serialization/resources/accounting/types/ModelOperation.ts b/src/serialization/resources/accounting/types/ModelOperation.ts deleted file mode 100644 index 655531571..000000000 --- a/src/serialization/resources/accounting/types/ModelOperation.ts +++ /dev/null @@ -1,33 +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 ModelOperation: core.serialization.ObjectSchema< - serializers.accounting.ModelOperation.Raw, - Merge.accounting.ModelOperation -> = core.serialization.object({ - modelName: core.serialization.property("model_name", core.serialization.string()), - availableOperations: core.serialization.property( - "available_operations", - core.serialization.list(core.serialization.string()), - ), - requiredPostParameters: core.serialization.property( - "required_post_parameters", - core.serialization.list(core.serialization.string()), - ), - supportedFields: core.serialization.property( - "supported_fields", - core.serialization.list(core.serialization.string()), - ), -}); - -export declare namespace ModelOperation { - export interface Raw { - model_name: string; - available_operations: string[]; - required_post_parameters: string[]; - supported_fields: string[]; - } -} diff --git a/src/serialization/resources/accounting/types/ModelPermissionDeserializer.ts b/src/serialization/resources/accounting/types/ModelPermissionDeserializer.ts deleted file mode 100644 index a359969a9..000000000 --- a/src/serialization/resources/accounting/types/ModelPermissionDeserializer.ts +++ /dev/null @@ -1,18 +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 ModelPermissionDeserializer: core.serialization.ObjectSchema< - serializers.accounting.ModelPermissionDeserializer.Raw, - Merge.accounting.ModelPermissionDeserializer -> = core.serialization.object({ - isEnabled: core.serialization.property("is_enabled", core.serialization.boolean().optional()), -}); - -export declare namespace ModelPermissionDeserializer { - export interface Raw { - is_enabled?: boolean | null; - } -} diff --git a/src/serialization/resources/accounting/types/ModelPermissionDeserializerRequest.ts b/src/serialization/resources/accounting/types/ModelPermissionDeserializerRequest.ts deleted file mode 100644 index fee62b039..000000000 --- a/src/serialization/resources/accounting/types/ModelPermissionDeserializerRequest.ts +++ /dev/null @@ -1,18 +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 ModelPermissionDeserializerRequest: core.serialization.ObjectSchema< - serializers.accounting.ModelPermissionDeserializerRequest.Raw, - Merge.accounting.ModelPermissionDeserializerRequest -> = core.serialization.object({ - isEnabled: core.serialization.property("is_enabled", core.serialization.boolean().optional()), -}); - -export declare namespace ModelPermissionDeserializerRequest { - export interface Raw { - is_enabled?: boolean | null; - } -} diff --git a/src/serialization/resources/accounting/types/MultipartFormFieldRequest.ts b/src/serialization/resources/accounting/types/MultipartFormFieldRequest.ts deleted file mode 100644 index 37876dd92..000000000 --- a/src/serialization/resources/accounting/types/MultipartFormFieldRequest.ts +++ /dev/null @@ -1,27 +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 { MultipartFormFieldRequestEncoding } from "./MultipartFormFieldRequestEncoding"; - -export const MultipartFormFieldRequest: core.serialization.ObjectSchema< - serializers.accounting.MultipartFormFieldRequest.Raw, - Merge.accounting.MultipartFormFieldRequest -> = core.serialization.object({ - name: core.serialization.string(), - data: core.serialization.string(), - encoding: MultipartFormFieldRequestEncoding.optional(), - fileName: core.serialization.property("file_name", core.serialization.string().optional()), - contentType: core.serialization.property("content_type", core.serialization.string().optional()), -}); - -export declare namespace MultipartFormFieldRequest { - export interface Raw { - name: string; - data: string; - encoding?: MultipartFormFieldRequestEncoding.Raw | null; - file_name?: string | null; - content_type?: string | null; - } -} diff --git a/src/serialization/resources/accounting/types/MultipartFormFieldRequestEncoding.ts b/src/serialization/resources/accounting/types/MultipartFormFieldRequestEncoding.ts deleted file mode 100644 index a1b2d3db6..000000000 --- a/src/serialization/resources/accounting/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.accounting.MultipartFormFieldRequestEncoding.Raw, - Merge.accounting.MultipartFormFieldRequestEncoding -> = core.serialization.undiscriminatedUnion([EncodingEnum, core.serialization.string()]); - -export declare namespace MultipartFormFieldRequestEncoding { - export type Raw = EncodingEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/PaginatedAccountDetailsAndActionsList.ts b/src/serialization/resources/accounting/types/PaginatedAccountDetailsAndActionsList.ts deleted file mode 100644 index 6c472531a..000000000 --- a/src/serialization/resources/accounting/types/PaginatedAccountDetailsAndActionsList.ts +++ /dev/null @@ -1,23 +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 { AccountDetailsAndActions } from "./AccountDetailsAndActions"; - -export const PaginatedAccountDetailsAndActionsList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedAccountDetailsAndActionsList.Raw, - Merge.accounting.PaginatedAccountDetailsAndActionsList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(AccountDetailsAndActions).optional(), -}); - -export declare namespace PaginatedAccountDetailsAndActionsList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: AccountDetailsAndActions.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedAccountList.ts b/src/serialization/resources/accounting/types/PaginatedAccountList.ts deleted file mode 100644 index 1ea48a9db..000000000 --- a/src/serialization/resources/accounting/types/PaginatedAccountList.ts +++ /dev/null @@ -1,23 +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 PaginatedAccountList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedAccountList.Raw, - Merge.accounting.PaginatedAccountList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Account).optional(), -}); - -export declare namespace PaginatedAccountList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Account.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedAccountingAttachmentList.ts b/src/serialization/resources/accounting/types/PaginatedAccountingAttachmentList.ts deleted file mode 100644 index dfb5adae6..000000000 --- a/src/serialization/resources/accounting/types/PaginatedAccountingAttachmentList.ts +++ /dev/null @@ -1,23 +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 { AccountingAttachment } from "./AccountingAttachment"; - -export const PaginatedAccountingAttachmentList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedAccountingAttachmentList.Raw, - Merge.accounting.PaginatedAccountingAttachmentList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(AccountingAttachment).optional(), -}); - -export declare namespace PaginatedAccountingAttachmentList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: AccountingAttachment.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedAccountingPeriodList.ts b/src/serialization/resources/accounting/types/PaginatedAccountingPeriodList.ts deleted file mode 100644 index e9e10ec13..000000000 --- a/src/serialization/resources/accounting/types/PaginatedAccountingPeriodList.ts +++ /dev/null @@ -1,23 +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 { AccountingPeriod } from "./AccountingPeriod"; - -export const PaginatedAccountingPeriodList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedAccountingPeriodList.Raw, - Merge.accounting.PaginatedAccountingPeriodList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(AccountingPeriod).optional(), -}); - -export declare namespace PaginatedAccountingPeriodList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: AccountingPeriod.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedAuditLogEventList.ts b/src/serialization/resources/accounting/types/PaginatedAuditLogEventList.ts deleted file mode 100644 index 5d04c707d..000000000 --- a/src/serialization/resources/accounting/types/PaginatedAuditLogEventList.ts +++ /dev/null @@ -1,23 +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 { AuditLogEvent } from "./AuditLogEvent"; - -export const PaginatedAuditLogEventList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedAuditLogEventList.Raw, - Merge.accounting.PaginatedAuditLogEventList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(AuditLogEvent).optional(), -}); - -export declare namespace PaginatedAuditLogEventList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: AuditLogEvent.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedBalanceSheetList.ts b/src/serialization/resources/accounting/types/PaginatedBalanceSheetList.ts deleted file mode 100644 index dc5e9c068..000000000 --- a/src/serialization/resources/accounting/types/PaginatedBalanceSheetList.ts +++ /dev/null @@ -1,23 +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 { BalanceSheet } from "./BalanceSheet"; - -export const PaginatedBalanceSheetList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedBalanceSheetList.Raw, - Merge.accounting.PaginatedBalanceSheetList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(BalanceSheet).optional(), -}); - -export declare namespace PaginatedBalanceSheetList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: BalanceSheet.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedBankFeedAccountList.ts b/src/serialization/resources/accounting/types/PaginatedBankFeedAccountList.ts deleted file mode 100644 index 0e817c383..000000000 --- a/src/serialization/resources/accounting/types/PaginatedBankFeedAccountList.ts +++ /dev/null @@ -1,23 +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 { BankFeedAccount } from "./BankFeedAccount"; - -export const PaginatedBankFeedAccountList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedBankFeedAccountList.Raw, - Merge.accounting.PaginatedBankFeedAccountList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(BankFeedAccount).optional(), -}); - -export declare namespace PaginatedBankFeedAccountList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: BankFeedAccount.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedBankFeedTransactionList.ts b/src/serialization/resources/accounting/types/PaginatedBankFeedTransactionList.ts deleted file mode 100644 index 945aae30b..000000000 --- a/src/serialization/resources/accounting/types/PaginatedBankFeedTransactionList.ts +++ /dev/null @@ -1,23 +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 { BankFeedTransaction } from "./BankFeedTransaction"; - -export const PaginatedBankFeedTransactionList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedBankFeedTransactionList.Raw, - Merge.accounting.PaginatedBankFeedTransactionList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(BankFeedTransaction).optional(), -}); - -export declare namespace PaginatedBankFeedTransactionList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: BankFeedTransaction.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedCashFlowStatementList.ts b/src/serialization/resources/accounting/types/PaginatedCashFlowStatementList.ts deleted file mode 100644 index a5f17fbe6..000000000 --- a/src/serialization/resources/accounting/types/PaginatedCashFlowStatementList.ts +++ /dev/null @@ -1,23 +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 { CashFlowStatement } from "./CashFlowStatement"; - -export const PaginatedCashFlowStatementList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedCashFlowStatementList.Raw, - Merge.accounting.PaginatedCashFlowStatementList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(CashFlowStatement).optional(), -}); - -export declare namespace PaginatedCashFlowStatementList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: CashFlowStatement.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedCompanyInfoList.ts b/src/serialization/resources/accounting/types/PaginatedCompanyInfoList.ts deleted file mode 100644 index fcd568159..000000000 --- a/src/serialization/resources/accounting/types/PaginatedCompanyInfoList.ts +++ /dev/null @@ -1,23 +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 { CompanyInfo } from "./CompanyInfo"; - -export const PaginatedCompanyInfoList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedCompanyInfoList.Raw, - Merge.accounting.PaginatedCompanyInfoList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(CompanyInfo).optional(), -}); - -export declare namespace PaginatedCompanyInfoList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: CompanyInfo.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedContactList.ts b/src/serialization/resources/accounting/types/PaginatedContactList.ts deleted file mode 100644 index 2d29c9816..000000000 --- a/src/serialization/resources/accounting/types/PaginatedContactList.ts +++ /dev/null @@ -1,23 +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 { Contact } from "./Contact"; - -export const PaginatedContactList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedContactList.Raw, - Merge.accounting.PaginatedContactList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Contact).optional(), -}); - -export declare namespace PaginatedContactList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Contact.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedCreditNoteList.ts b/src/serialization/resources/accounting/types/PaginatedCreditNoteList.ts deleted file mode 100644 index 2a1b8a903..000000000 --- a/src/serialization/resources/accounting/types/PaginatedCreditNoteList.ts +++ /dev/null @@ -1,22 +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 * as serializers from "../../../index"; - -export const PaginatedCreditNoteList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedCreditNoteList.Raw, - Merge.accounting.PaginatedCreditNoteList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(core.serialization.lazyObject(() => serializers.accounting.CreditNote)).optional(), -}); - -export declare namespace PaginatedCreditNoteList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: serializers.accounting.CreditNote.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedEmployeeList.ts b/src/serialization/resources/accounting/types/PaginatedEmployeeList.ts deleted file mode 100644 index e9a21f2d5..000000000 --- a/src/serialization/resources/accounting/types/PaginatedEmployeeList.ts +++ /dev/null @@ -1,23 +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 PaginatedEmployeeList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedEmployeeList.Raw, - Merge.accounting.PaginatedEmployeeList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Employee).optional(), -}); - -export declare namespace PaginatedEmployeeList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Employee.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedExpenseList.ts b/src/serialization/resources/accounting/types/PaginatedExpenseList.ts deleted file mode 100644 index df020446f..000000000 --- a/src/serialization/resources/accounting/types/PaginatedExpenseList.ts +++ /dev/null @@ -1,23 +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 { Expense } from "./Expense"; - -export const PaginatedExpenseList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedExpenseList.Raw, - Merge.accounting.PaginatedExpenseList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Expense).optional(), -}); - -export declare namespace PaginatedExpenseList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Expense.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedExpenseReportLineList.ts b/src/serialization/resources/accounting/types/PaginatedExpenseReportLineList.ts deleted file mode 100644 index 9aba8ccef..000000000 --- a/src/serialization/resources/accounting/types/PaginatedExpenseReportLineList.ts +++ /dev/null @@ -1,23 +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 { ExpenseReportLine } from "./ExpenseReportLine"; - -export const PaginatedExpenseReportLineList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedExpenseReportLineList.Raw, - Merge.accounting.PaginatedExpenseReportLineList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(ExpenseReportLine).optional(), -}); - -export declare namespace PaginatedExpenseReportLineList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: ExpenseReportLine.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedExpenseReportList.ts b/src/serialization/resources/accounting/types/PaginatedExpenseReportList.ts deleted file mode 100644 index a83485e9a..000000000 --- a/src/serialization/resources/accounting/types/PaginatedExpenseReportList.ts +++ /dev/null @@ -1,23 +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 { ExpenseReport } from "./ExpenseReport"; - -export const PaginatedExpenseReportList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedExpenseReportList.Raw, - Merge.accounting.PaginatedExpenseReportList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(ExpenseReport).optional(), -}); - -export declare namespace PaginatedExpenseReportList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: ExpenseReport.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedGeneralLedgerTransactionList.ts b/src/serialization/resources/accounting/types/PaginatedGeneralLedgerTransactionList.ts deleted file mode 100644 index bfc35eb21..000000000 --- a/src/serialization/resources/accounting/types/PaginatedGeneralLedgerTransactionList.ts +++ /dev/null @@ -1,23 +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 { GeneralLedgerTransaction } from "./GeneralLedgerTransaction"; - -export const PaginatedGeneralLedgerTransactionList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedGeneralLedgerTransactionList.Raw, - Merge.accounting.PaginatedGeneralLedgerTransactionList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(GeneralLedgerTransaction).optional(), -}); - -export declare namespace PaginatedGeneralLedgerTransactionList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: GeneralLedgerTransaction.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedIncomeStatementList.ts b/src/serialization/resources/accounting/types/PaginatedIncomeStatementList.ts deleted file mode 100644 index af90a0851..000000000 --- a/src/serialization/resources/accounting/types/PaginatedIncomeStatementList.ts +++ /dev/null @@ -1,23 +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 { IncomeStatement } from "./IncomeStatement"; - -export const PaginatedIncomeStatementList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedIncomeStatementList.Raw, - Merge.accounting.PaginatedIncomeStatementList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(IncomeStatement).optional(), -}); - -export declare namespace PaginatedIncomeStatementList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: IncomeStatement.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedInvoiceList.ts b/src/serialization/resources/accounting/types/PaginatedInvoiceList.ts deleted file mode 100644 index 85f232da0..000000000 --- a/src/serialization/resources/accounting/types/PaginatedInvoiceList.ts +++ /dev/null @@ -1,22 +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 * as serializers from "../../../index"; - -export const PaginatedInvoiceList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedInvoiceList.Raw, - Merge.accounting.PaginatedInvoiceList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(core.serialization.lazyObject(() => serializers.accounting.Invoice)).optional(), -}); - -export declare namespace PaginatedInvoiceList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: serializers.accounting.Invoice.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedIssueList.ts b/src/serialization/resources/accounting/types/PaginatedIssueList.ts deleted file mode 100644 index aadac5805..000000000 --- a/src/serialization/resources/accounting/types/PaginatedIssueList.ts +++ /dev/null @@ -1,23 +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 { Issue } from "./Issue"; - -export const PaginatedIssueList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedIssueList.Raw, - Merge.accounting.PaginatedIssueList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Issue).optional(), -}); - -export declare namespace PaginatedIssueList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Issue.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedItemList.ts b/src/serialization/resources/accounting/types/PaginatedItemList.ts deleted file mode 100644 index 77ff1b53f..000000000 --- a/src/serialization/resources/accounting/types/PaginatedItemList.ts +++ /dev/null @@ -1,23 +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 { Item } from "./Item"; - -export const PaginatedItemList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedItemList.Raw, - Merge.accounting.PaginatedItemList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Item).optional(), -}); - -export declare namespace PaginatedItemList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Item.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedJournalEntryList.ts b/src/serialization/resources/accounting/types/PaginatedJournalEntryList.ts deleted file mode 100644 index 2cb9d1671..000000000 --- a/src/serialization/resources/accounting/types/PaginatedJournalEntryList.ts +++ /dev/null @@ -1,23 +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 { JournalEntry } from "./JournalEntry"; - -export const PaginatedJournalEntryList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedJournalEntryList.Raw, - Merge.accounting.PaginatedJournalEntryList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(JournalEntry).optional(), -}); - -export declare namespace PaginatedJournalEntryList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: JournalEntry.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedPaymentList.ts b/src/serialization/resources/accounting/types/PaginatedPaymentList.ts deleted file mode 100644 index a48e55c73..000000000 --- a/src/serialization/resources/accounting/types/PaginatedPaymentList.ts +++ /dev/null @@ -1,23 +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 { Payment } from "./Payment"; - -export const PaginatedPaymentList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedPaymentList.Raw, - Merge.accounting.PaginatedPaymentList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Payment).optional(), -}); - -export declare namespace PaginatedPaymentList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Payment.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedPaymentMethodList.ts b/src/serialization/resources/accounting/types/PaginatedPaymentMethodList.ts deleted file mode 100644 index 99be07c59..000000000 --- a/src/serialization/resources/accounting/types/PaginatedPaymentMethodList.ts +++ /dev/null @@ -1,23 +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 PaginatedPaymentMethodList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedPaymentMethodList.Raw, - Merge.accounting.PaginatedPaymentMethodList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(PaymentMethod).optional(), -}); - -export declare namespace PaginatedPaymentMethodList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: PaymentMethod.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedPaymentTermList.ts b/src/serialization/resources/accounting/types/PaginatedPaymentTermList.ts deleted file mode 100644 index 549c7b9d1..000000000 --- a/src/serialization/resources/accounting/types/PaginatedPaymentTermList.ts +++ /dev/null @@ -1,23 +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 { PaymentTerm } from "./PaymentTerm"; - -export const PaginatedPaymentTermList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedPaymentTermList.Raw, - Merge.accounting.PaginatedPaymentTermList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(PaymentTerm).optional(), -}); - -export declare namespace PaginatedPaymentTermList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: PaymentTerm.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedProjectList.ts b/src/serialization/resources/accounting/types/PaginatedProjectList.ts deleted file mode 100644 index 9a92118a5..000000000 --- a/src/serialization/resources/accounting/types/PaginatedProjectList.ts +++ /dev/null @@ -1,23 +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 { Project } from "./Project"; - -export const PaginatedProjectList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedProjectList.Raw, - Merge.accounting.PaginatedProjectList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Project).optional(), -}); - -export declare namespace PaginatedProjectList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Project.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedPurchaseOrderList.ts b/src/serialization/resources/accounting/types/PaginatedPurchaseOrderList.ts deleted file mode 100644 index 722b27e17..000000000 --- a/src/serialization/resources/accounting/types/PaginatedPurchaseOrderList.ts +++ /dev/null @@ -1,23 +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 { PurchaseOrder } from "./PurchaseOrder"; - -export const PaginatedPurchaseOrderList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedPurchaseOrderList.Raw, - Merge.accounting.PaginatedPurchaseOrderList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(PurchaseOrder).optional(), -}); - -export declare namespace PaginatedPurchaseOrderList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: PurchaseOrder.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedRemoteFieldClassList.ts b/src/serialization/resources/accounting/types/PaginatedRemoteFieldClassList.ts deleted file mode 100644 index 8f1047409..000000000 --- a/src/serialization/resources/accounting/types/PaginatedRemoteFieldClassList.ts +++ /dev/null @@ -1,23 +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 PaginatedRemoteFieldClassList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedRemoteFieldClassList.Raw, - Merge.accounting.PaginatedRemoteFieldClassList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(RemoteFieldClass).optional(), -}); - -export declare namespace PaginatedRemoteFieldClassList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: RemoteFieldClass.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedSyncStatusList.ts b/src/serialization/resources/accounting/types/PaginatedSyncStatusList.ts deleted file mode 100644 index 3aeb4fcd3..000000000 --- a/src/serialization/resources/accounting/types/PaginatedSyncStatusList.ts +++ /dev/null @@ -1,23 +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 { SyncStatus } from "./SyncStatus"; - -export const PaginatedSyncStatusList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedSyncStatusList.Raw, - Merge.accounting.PaginatedSyncStatusList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(SyncStatus).optional(), -}); - -export declare namespace PaginatedSyncStatusList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: SyncStatus.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedTaxRateList.ts b/src/serialization/resources/accounting/types/PaginatedTaxRateList.ts deleted file mode 100644 index a9623ed75..000000000 --- a/src/serialization/resources/accounting/types/PaginatedTaxRateList.ts +++ /dev/null @@ -1,23 +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 { TaxRate } from "./TaxRate"; - -export const PaginatedTaxRateList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedTaxRateList.Raw, - Merge.accounting.PaginatedTaxRateList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(TaxRate).optional(), -}); - -export declare namespace PaginatedTaxRateList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: TaxRate.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedTrackingCategoryList.ts b/src/serialization/resources/accounting/types/PaginatedTrackingCategoryList.ts deleted file mode 100644 index 7613b30d5..000000000 --- a/src/serialization/resources/accounting/types/PaginatedTrackingCategoryList.ts +++ /dev/null @@ -1,23 +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 { TrackingCategory } from "./TrackingCategory"; - -export const PaginatedTrackingCategoryList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedTrackingCategoryList.Raw, - Merge.accounting.PaginatedTrackingCategoryList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(TrackingCategory).optional(), -}); - -export declare namespace PaginatedTrackingCategoryList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: TrackingCategory.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedTransactionList.ts b/src/serialization/resources/accounting/types/PaginatedTransactionList.ts deleted file mode 100644 index a207aa088..000000000 --- a/src/serialization/resources/accounting/types/PaginatedTransactionList.ts +++ /dev/null @@ -1,23 +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 { Transaction } from "./Transaction"; - -export const PaginatedTransactionList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedTransactionList.Raw, - Merge.accounting.PaginatedTransactionList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Transaction).optional(), -}); - -export declare namespace PaginatedTransactionList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Transaction.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedVendorCreditList.ts b/src/serialization/resources/accounting/types/PaginatedVendorCreditList.ts deleted file mode 100644 index a7f710083..000000000 --- a/src/serialization/resources/accounting/types/PaginatedVendorCreditList.ts +++ /dev/null @@ -1,24 +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 * as serializers from "../../../index"; - -export const PaginatedVendorCreditList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedVendorCreditList.Raw, - Merge.accounting.PaginatedVendorCreditList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization - .list(core.serialization.lazyObject(() => serializers.accounting.VendorCredit)) - .optional(), -}); - -export declare namespace PaginatedVendorCreditList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: serializers.accounting.VendorCredit.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PatchedContactRequest.ts b/src/serialization/resources/accounting/types/PatchedContactRequest.ts deleted file mode 100644 index 0c62524ed..000000000 --- a/src/serialization/resources/accounting/types/PatchedContactRequest.ts +++ /dev/null @@ -1,54 +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 { AccountingPhoneNumberRequest } from "./AccountingPhoneNumberRequest"; -import { PatchedContactRequestAddressesItem } from "./PatchedContactRequestAddressesItem"; -import { RemoteFieldRequest } from "./RemoteFieldRequest"; - -export const PatchedContactRequest: core.serialization.ObjectSchema< - serializers.accounting.PatchedContactRequest.Raw, - Merge.accounting.PatchedContactRequest -> = core.serialization.object({ - name: core.serialization.string().optional(), - isSupplier: core.serialization.property("is_supplier", core.serialization.boolean().optional()), - 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(), - currency: core.serialization.string().optional(), - company: core.serialization.string().optional(), - addresses: core.serialization.list(PatchedContactRequestAddressesItem.optional()).optional(), - phoneNumbers: core.serialization.property( - "phone_numbers", - core.serialization.list(AccountingPhoneNumberRequest).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 PatchedContactRequest { - export interface Raw { - name?: string | null; - is_supplier?: boolean | null; - is_customer?: boolean | null; - email_address?: string | null; - tax_number?: string | null; - status?: string | null; - currency?: string | null; - company?: string | null; - addresses?: (PatchedContactRequestAddressesItem.Raw | null | undefined)[] | null; - phone_numbers?: AccountingPhoneNumberRequest.Raw[] | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PatchedContactRequestAddressesItem.ts b/src/serialization/resources/accounting/types/PatchedContactRequestAddressesItem.ts deleted file mode 100644 index d3f4d429e..000000000 --- a/src/serialization/resources/accounting/types/PatchedContactRequestAddressesItem.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { Address } from "./Address"; - -export const PatchedContactRequestAddressesItem: core.serialization.Schema< - serializers.accounting.PatchedContactRequestAddressesItem.Raw, - Merge.accounting.PatchedContactRequestAddressesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Address]); - -export declare namespace PatchedContactRequestAddressesItem { - export type Raw = string | Address.Raw; -} diff --git a/src/serialization/resources/accounting/types/PatchedItemRequestRequest.ts b/src/serialization/resources/accounting/types/PatchedItemRequestRequest.ts deleted file mode 100644 index 6788698e6..000000000 --- a/src/serialization/resources/accounting/types/PatchedItemRequestRequest.ts +++ /dev/null @@ -1,48 +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 { PatchedItemRequestRequestStatus } from "./PatchedItemRequestRequestStatus"; -import { PatchedItemRequestRequestType } from "./PatchedItemRequestRequestType"; - -export const PatchedItemRequestRequest: core.serialization.ObjectSchema< - serializers.accounting.PatchedItemRequestRequest.Raw, - Merge.accounting.PatchedItemRequestRequest -> = core.serialization.object({ - name: core.serialization.string().optional(), - status: PatchedItemRequestRequestStatus.optional(), - type: PatchedItemRequestRequestType.optional(), - unitPrice: core.serialization.property("unit_price", core.serialization.number().optional()), - purchasePrice: core.serialization.property("purchase_price", core.serialization.number().optional()), - purchaseAccount: core.serialization.property("purchase_account", core.serialization.string().optional()), - salesAccount: core.serialization.property("sales_account", core.serialization.string().optional()), - company: core.serialization.string().optional(), - purchaseTaxRate: core.serialization.property("purchase_tax_rate", core.serialization.string().optional()), - salesTaxRate: core.serialization.property("sales_tax_rate", core.serialization.string().optional()), - integrationParams: core.serialization.property( - "integration_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - linkedAccountParams: core.serialization.property( - "linked_account_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), -}); - -export declare namespace PatchedItemRequestRequest { - export interface Raw { - name?: string | null; - status?: PatchedItemRequestRequestStatus.Raw | null; - type?: PatchedItemRequestRequestType.Raw | null; - unit_price?: number | null; - purchase_price?: number | null; - purchase_account?: string | null; - sales_account?: string | null; - company?: string | null; - purchase_tax_rate?: string | null; - sales_tax_rate?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/accounting/types/PatchedItemRequestRequestStatus.ts b/src/serialization/resources/accounting/types/PatchedItemRequestRequestStatus.ts deleted file mode 100644 index 44ec6b17d..000000000 --- a/src/serialization/resources/accounting/types/PatchedItemRequestRequestStatus.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 { Status7D1Enum } from "./Status7D1Enum"; - -export const PatchedItemRequestRequestStatus: core.serialization.Schema< - serializers.accounting.PatchedItemRequestRequestStatus.Raw, - Merge.accounting.PatchedItemRequestRequestStatus -> = core.serialization.undiscriminatedUnion([Status7D1Enum, core.serialization.string()]); - -export declare namespace PatchedItemRequestRequestStatus { - export type Raw = Status7D1Enum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/PatchedItemRequestRequestType.ts b/src/serialization/resources/accounting/types/PatchedItemRequestRequestType.ts deleted file mode 100644 index 4061ce065..000000000 --- a/src/serialization/resources/accounting/types/PatchedItemRequestRequestType.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 { Type2BbEnum } from "./Type2BbEnum"; - -export const PatchedItemRequestRequestType: core.serialization.Schema< - serializers.accounting.PatchedItemRequestRequestType.Raw, - Merge.accounting.PatchedItemRequestRequestType -> = core.serialization.undiscriminatedUnion([Type2BbEnum, core.serialization.string()]); - -export declare namespace PatchedItemRequestRequestType { - export type Raw = Type2BbEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/PatchedPaymentRequest.ts b/src/serialization/resources/accounting/types/PatchedPaymentRequest.ts deleted file mode 100644 index 4cf160d22..000000000 --- a/src/serialization/resources/accounting/types/PatchedPaymentRequest.ts +++ /dev/null @@ -1,71 +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 { 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 { RemoteFieldRequest } from "./RemoteFieldRequest"; - -export const PatchedPaymentRequest: core.serialization.ObjectSchema< - serializers.accounting.PatchedPaymentRequest.Raw, - 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()), - currency: PatchedPaymentRequestCurrency.optional(), - exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), - company: PatchedPaymentRequestCompany.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(), - ), - appliedToLines: core.serialization.property( - "applied_to_lines", - core.serialization.list(PatchedPaymentRequestAppliedToLinesItem).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 PatchedPaymentRequest { - export interface Raw { - transaction_date?: string | null; - contact?: PatchedPaymentRequestContact.Raw | null; - account?: PatchedPaymentRequestAccount.Raw | null; - payment_method?: PatchedPaymentRequestPaymentMethod.Raw | null; - currency?: PatchedPaymentRequestCurrency.Raw | null; - exchange_rate?: string | null; - company?: PatchedPaymentRequestCompany.Raw | 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; - 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/PatchedPaymentRequestAccountingPeriod.ts b/src/serialization/resources/accounting/types/PatchedPaymentRequestAccountingPeriod.ts deleted file mode 100644 index d775376df..000000000 --- a/src/serialization/resources/accounting/types/PatchedPaymentRequestAccountingPeriod.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 { AccountingPeriod } from "./AccountingPeriod"; - -export const PatchedPaymentRequestAccountingPeriod: core.serialization.Schema< - serializers.accounting.PatchedPaymentRequestAccountingPeriod.Raw, - Merge.accounting.PatchedPaymentRequestAccountingPeriod -> = core.serialization.undiscriminatedUnion([core.serialization.string(), AccountingPeriod]); - -export declare namespace PatchedPaymentRequestAccountingPeriod { - export type Raw = string | AccountingPeriod.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/PatchedPaymentRequestCompany.ts b/src/serialization/resources/accounting/types/PatchedPaymentRequestCompany.ts deleted file mode 100644 index 4e62bb74a..000000000 --- a/src/serialization/resources/accounting/types/PatchedPaymentRequestCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const PatchedPaymentRequestCompany: core.serialization.Schema< - serializers.accounting.PatchedPaymentRequestCompany.Raw, - Merge.accounting.PatchedPaymentRequestCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace PatchedPaymentRequestCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/PatchedPaymentRequestContact.ts b/src/serialization/resources/accounting/types/PatchedPaymentRequestContact.ts deleted file mode 100644 index a10ecbc8d..000000000 --- a/src/serialization/resources/accounting/types/PatchedPaymentRequestContact.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 { Contact } from "./Contact"; - -export const PatchedPaymentRequestContact: core.serialization.Schema< - serializers.accounting.PatchedPaymentRequestContact.Raw, - Merge.accounting.PatchedPaymentRequestContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace PatchedPaymentRequestContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/PatchedPaymentRequestCurrency.ts b/src/serialization/resources/accounting/types/PatchedPaymentRequestCurrency.ts deleted file mode 100644 index 2d4fd74e1..000000000 --- a/src/serialization/resources/accounting/types/PatchedPaymentRequestCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const PatchedPaymentRequestCurrency: core.serialization.Schema< - serializers.accounting.PatchedPaymentRequestCurrency.Raw, - Merge.accounting.PatchedPaymentRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace PatchedPaymentRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} 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/PatchedPaymentRequestTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/PatchedPaymentRequestTrackingCategoriesItem.ts deleted file mode 100644 index e0674d4fd..000000000 --- a/src/serialization/resources/accounting/types/PatchedPaymentRequestTrackingCategoriesItem.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 { TrackingCategory } from "./TrackingCategory"; - -export const PatchedPaymentRequestTrackingCategoriesItem: core.serialization.Schema< - serializers.accounting.PatchedPaymentRequestTrackingCategoriesItem.Raw, - Merge.accounting.PatchedPaymentRequestTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace PatchedPaymentRequestTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/PatchedPaymentRequestType.ts b/src/serialization/resources/accounting/types/PatchedPaymentRequestType.ts deleted file mode 100644 index d74de5ac1..000000000 --- a/src/serialization/resources/accounting/types/PatchedPaymentRequestType.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 { PaymentTypeEnum } from "./PaymentTypeEnum"; - -export const PatchedPaymentRequestType: core.serialization.Schema< - serializers.accounting.PatchedPaymentRequestType.Raw, - Merge.accounting.PatchedPaymentRequestType -> = core.serialization.undiscriminatedUnion([PaymentTypeEnum, core.serialization.string()]); - -export declare namespace PatchedPaymentRequestType { - export type Raw = PaymentTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/Payment.ts b/src/serialization/resources/accounting/types/Payment.ts deleted file mode 100644 index c8e21dfc5..000000000 --- a/src/serialization/resources/accounting/types/Payment.ts +++ /dev/null @@ -1,76 +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 { PaymentAccount } from "./PaymentAccount"; -import { PaymentAccountingPeriod } from "./PaymentAccountingPeriod"; -import { PaymentAppliedToLinesItem } from "./PaymentAppliedToLinesItem"; -import { PaymentCompany } from "./PaymentCompany"; -import { PaymentContact } from "./PaymentContact"; -import { PaymentCurrency } from "./PaymentCurrency"; -import { PaymentPaymentMethod } from "./PaymentPaymentMethod"; -import { PaymentTrackingCategoriesItem } from "./PaymentTrackingCategoriesItem"; -import { PaymentType } from "./PaymentType"; -import { RemoteData } from "./RemoteData"; -import { RemoteField } from "./RemoteField"; - -export const Payment: core.serialization.ObjectSchema = - 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()), - transactionDate: core.serialization.property("transaction_date", core.serialization.date().optional()), - contact: PaymentContact.optional(), - account: PaymentAccount.optional(), - paymentMethod: core.serialization.property("payment_method", PaymentPaymentMethod.optional()), - currency: PaymentCurrency.optional(), - exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), - company: PaymentCompany.optional(), - totalAmount: core.serialization.property("total_amount", core.serialization.number().optional()), - type: PaymentType.optional(), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(PaymentTrackingCategoriesItem.optional()).optional(), - ), - accountingPeriod: core.serialization.property("accounting_period", PaymentAccountingPeriod.optional()), - appliedToLines: core.serialization.property( - "applied_to_lines", - core.serialization.list(PaymentAppliedToLinesItem).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 Payment { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - transaction_date?: string | null; - contact?: PaymentContact.Raw | null; - account?: PaymentAccount.Raw | null; - payment_method?: PaymentPaymentMethod.Raw | null; - currency?: PaymentCurrency.Raw | null; - exchange_rate?: string | null; - company?: PaymentCompany.Raw | null; - total_amount?: number | null; - type?: PaymentType.Raw | null; - tracking_categories?: (PaymentTrackingCategoriesItem.Raw | null | undefined)[] | null; - accounting_period?: PaymentAccountingPeriod.Raw | null; - applied_to_lines?: PaymentAppliedToLinesItem.Raw[] | 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/PaymentAccount.ts b/src/serialization/resources/accounting/types/PaymentAccount.ts deleted file mode 100644 index 194f2cd53..000000000 --- a/src/serialization/resources/accounting/types/PaymentAccount.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 PaymentAccount: core.serialization.Schema< - serializers.accounting.PaymentAccount.Raw, - Merge.accounting.PaymentAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace PaymentAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/accounting/types/PaymentAccountingPeriod.ts b/src/serialization/resources/accounting/types/PaymentAccountingPeriod.ts deleted file mode 100644 index d8e4d48a1..000000000 --- a/src/serialization/resources/accounting/types/PaymentAccountingPeriod.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 { AccountingPeriod } from "./AccountingPeriod"; - -export const PaymentAccountingPeriod: core.serialization.Schema< - serializers.accounting.PaymentAccountingPeriod.Raw, - Merge.accounting.PaymentAccountingPeriod -> = core.serialization.undiscriminatedUnion([core.serialization.string(), AccountingPeriod]); - -export declare namespace PaymentAccountingPeriod { - export type Raw = string | AccountingPeriod.Raw; -} diff --git a/src/serialization/resources/accounting/types/PaymentAppliedToLinesItem.ts b/src/serialization/resources/accounting/types/PaymentAppliedToLinesItem.ts deleted file mode 100644 index 62af058d6..000000000 --- a/src/serialization/resources/accounting/types/PaymentAppliedToLinesItem.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 { PaymentLineItem } from "./PaymentLineItem"; - -export const PaymentAppliedToLinesItem: core.serialization.Schema< - serializers.accounting.PaymentAppliedToLinesItem.Raw, - Merge.accounting.PaymentAppliedToLinesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), PaymentLineItem]); - -export declare namespace PaymentAppliedToLinesItem { - export type Raw = string | PaymentLineItem.Raw; -} diff --git a/src/serialization/resources/accounting/types/PaymentCompany.ts b/src/serialization/resources/accounting/types/PaymentCompany.ts deleted file mode 100644 index 73a8c22d6..000000000 --- a/src/serialization/resources/accounting/types/PaymentCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const PaymentCompany: core.serialization.Schema< - serializers.accounting.PaymentCompany.Raw, - Merge.accounting.PaymentCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace PaymentCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/PaymentContact.ts b/src/serialization/resources/accounting/types/PaymentContact.ts deleted file mode 100644 index 69b64cd77..000000000 --- a/src/serialization/resources/accounting/types/PaymentContact.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 { Contact } from "./Contact"; - -export const PaymentContact: core.serialization.Schema< - serializers.accounting.PaymentContact.Raw, - Merge.accounting.PaymentContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace PaymentContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/PaymentCurrency.ts b/src/serialization/resources/accounting/types/PaymentCurrency.ts deleted file mode 100644 index fb5efe92d..000000000 --- a/src/serialization/resources/accounting/types/PaymentCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const PaymentCurrency: core.serialization.Schema< - serializers.accounting.PaymentCurrency.Raw, - Merge.accounting.PaymentCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace PaymentCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/PaymentLineItem.ts b/src/serialization/resources/accounting/types/PaymentLineItem.ts deleted file mode 100644 index ce43d810d..000000000 --- a/src/serialization/resources/accounting/types/PaymentLineItem.ts +++ /dev/null @@ -1,32 +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 PaymentLineItem: core.serialization.ObjectSchema< - serializers.accounting.PaymentLineItem.Raw, - Merge.accounting.PaymentLineItem -> = 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()), - appliedAmount: core.serialization.property("applied_amount", core.serialization.string().optional()), - appliedDate: core.serialization.property("applied_date", core.serialization.date().optional()), - relatedObjectId: core.serialization.property("related_object_id", core.serialization.string().optional()), - relatedObjectType: core.serialization.property("related_object_type", core.serialization.string().optional()), -}); - -export declare namespace PaymentLineItem { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - applied_amount?: string | null; - applied_date?: string | null; - related_object_id?: string | null; - related_object_type?: string | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaymentLineItemRequest.ts b/src/serialization/resources/accounting/types/PaymentLineItemRequest.ts deleted file mode 100644 index 5fd4e0011..000000000 --- a/src/serialization/resources/accounting/types/PaymentLineItemRequest.ts +++ /dev/null @@ -1,39 +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 { RemoteFieldRequest } from "./RemoteFieldRequest"; - -export const PaymentLineItemRequest: core.serialization.ObjectSchema< - serializers.accounting.PaymentLineItemRequest.Raw, - Merge.accounting.PaymentLineItemRequest -> = core.serialization.object({ - remoteId: core.serialization.property("remote_id", core.serialization.string().optional()), - appliedAmount: core.serialization.property("applied_amount", core.serialization.string().optional()), - appliedDate: core.serialization.property("applied_date", core.serialization.date().optional()), - relatedObjectId: core.serialization.property("related_object_id", core.serialization.string().optional()), - relatedObjectType: core.serialization.property("related_object_type", core.serialization.string().optional()), - integrationParams: core.serialization.property( - "integration_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - linkedAccountParams: core.serialization.property( - "linked_account_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - remoteFields: core.serialization.property("remote_fields", core.serialization.list(RemoteFieldRequest).optional()), -}); - -export declare namespace PaymentLineItemRequest { - export interface Raw { - remote_id?: string | null; - applied_amount?: string | null; - applied_date?: string | null; - related_object_id?: string | null; - related_object_type?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaymentMethod.ts b/src/serialization/resources/accounting/types/PaymentMethod.ts deleted file mode 100644 index d949c5a1d..000000000 --- a/src/serialization/resources/accounting/types/PaymentMethod.ts +++ /dev/null @@ -1,41 +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 { PaymentMethodMethodType } from "./PaymentMethodMethodType"; -import { RemoteData } from "./RemoteData"; - -export const PaymentMethod: core.serialization.ObjectSchema< - serializers.accounting.PaymentMethod.Raw, - Merge.accounting.PaymentMethod -> = 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()), - methodType: core.serialization.property("method_type", PaymentMethodMethodType), - 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()), - 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()), -}); - -export declare namespace PaymentMethod { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - method_type: PaymentMethodMethodType.Raw; - name: string; - is_active?: boolean | null; - remote_updated_at?: string | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaymentMethodMethodType.ts b/src/serialization/resources/accounting/types/PaymentMethodMethodType.ts deleted file mode 100644 index 23cc09c4a..000000000 --- a/src/serialization/resources/accounting/types/PaymentMethodMethodType.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 { MethodTypeEnum } from "./MethodTypeEnum"; - -export const PaymentMethodMethodType: core.serialization.Schema< - serializers.accounting.PaymentMethodMethodType.Raw, - Merge.accounting.PaymentMethodMethodType -> = core.serialization.undiscriminatedUnion([MethodTypeEnum, core.serialization.string()]); - -export declare namespace PaymentMethodMethodType { - export type Raw = MethodTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/PaymentPaymentMethod.ts b/src/serialization/resources/accounting/types/PaymentPaymentMethod.ts deleted file mode 100644 index 6bdc4578e..000000000 --- a/src/serialization/resources/accounting/types/PaymentPaymentMethod.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 PaymentPaymentMethod: core.serialization.Schema< - serializers.accounting.PaymentPaymentMethod.Raw, - Merge.accounting.PaymentPaymentMethod -> = core.serialization.undiscriminatedUnion([core.serialization.string(), PaymentMethod]); - -export declare namespace PaymentPaymentMethod { - export type Raw = string | PaymentMethod.Raw; -} diff --git a/src/serialization/resources/accounting/types/PaymentRequest.ts b/src/serialization/resources/accounting/types/PaymentRequest.ts deleted file mode 100644 index 11d48d727..000000000 --- a/src/serialization/resources/accounting/types/PaymentRequest.ts +++ /dev/null @@ -1,68 +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 { PaymentRequestAccount } from "./PaymentRequestAccount"; -import { PaymentRequestAccountingPeriod } from "./PaymentRequestAccountingPeriod"; -import { PaymentRequestAppliedToLinesItem } from "./PaymentRequestAppliedToLinesItem"; -import { PaymentRequestCompany } from "./PaymentRequestCompany"; -import { PaymentRequestContact } from "./PaymentRequestContact"; -import { PaymentRequestCurrency } from "./PaymentRequestCurrency"; -import { PaymentRequestPaymentMethod } from "./PaymentRequestPaymentMethod"; -import { PaymentRequestTrackingCategoriesItem } from "./PaymentRequestTrackingCategoriesItem"; -import { PaymentRequestType } from "./PaymentRequestType"; -import { RemoteFieldRequest } from "./RemoteFieldRequest"; - -export const PaymentRequest: core.serialization.ObjectSchema< - serializers.accounting.PaymentRequest.Raw, - Merge.accounting.PaymentRequest -> = core.serialization.object({ - transactionDate: core.serialization.property("transaction_date", core.serialization.date().optional()), - contact: PaymentRequestContact.optional(), - account: PaymentRequestAccount.optional(), - paymentMethod: core.serialization.property("payment_method", PaymentRequestPaymentMethod.optional()), - currency: PaymentRequestCurrency.optional(), - exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), - company: PaymentRequestCompany.optional(), - totalAmount: core.serialization.property("total_amount", core.serialization.number().optional()), - type: PaymentRequestType.optional(), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(PaymentRequestTrackingCategoriesItem.optional()).optional(), - ), - accountingPeriod: core.serialization.property("accounting_period", PaymentRequestAccountingPeriod.optional()), - appliedToLines: core.serialization.property( - "applied_to_lines", - core.serialization.list(PaymentRequestAppliedToLinesItem).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 PaymentRequest { - export interface Raw { - transaction_date?: string | null; - contact?: PaymentRequestContact.Raw | null; - account?: PaymentRequestAccount.Raw | null; - payment_method?: PaymentRequestPaymentMethod.Raw | null; - currency?: PaymentRequestCurrency.Raw | null; - exchange_rate?: string | null; - company?: PaymentRequestCompany.Raw | null; - total_amount?: number | null; - type?: PaymentRequestType.Raw | null; - tracking_categories?: (PaymentRequestTrackingCategoriesItem.Raw | null | undefined)[] | null; - accounting_period?: PaymentRequestAccountingPeriod.Raw | null; - applied_to_lines?: PaymentRequestAppliedToLinesItem.Raw[] | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaymentRequestAccount.ts b/src/serialization/resources/accounting/types/PaymentRequestAccount.ts deleted file mode 100644 index 063b18da4..000000000 --- a/src/serialization/resources/accounting/types/PaymentRequestAccount.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 PaymentRequestAccount: core.serialization.Schema< - serializers.accounting.PaymentRequestAccount.Raw, - Merge.accounting.PaymentRequestAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace PaymentRequestAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/accounting/types/PaymentRequestAccountingPeriod.ts b/src/serialization/resources/accounting/types/PaymentRequestAccountingPeriod.ts deleted file mode 100644 index dd7718e23..000000000 --- a/src/serialization/resources/accounting/types/PaymentRequestAccountingPeriod.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 { AccountingPeriod } from "./AccountingPeriod"; - -export const PaymentRequestAccountingPeriod: core.serialization.Schema< - serializers.accounting.PaymentRequestAccountingPeriod.Raw, - Merge.accounting.PaymentRequestAccountingPeriod -> = core.serialization.undiscriminatedUnion([core.serialization.string(), AccountingPeriod]); - -export declare namespace PaymentRequestAccountingPeriod { - export type Raw = string | AccountingPeriod.Raw; -} diff --git a/src/serialization/resources/accounting/types/PaymentRequestAppliedToLinesItem.ts b/src/serialization/resources/accounting/types/PaymentRequestAppliedToLinesItem.ts deleted file mode 100644 index c8c25a108..000000000 --- a/src/serialization/resources/accounting/types/PaymentRequestAppliedToLinesItem.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 PaymentRequestAppliedToLinesItem: core.serialization.Schema< - serializers.accounting.PaymentRequestAppliedToLinesItem.Raw, - Merge.accounting.PaymentRequestAppliedToLinesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), PaymentLineItemRequest]); - -export declare namespace PaymentRequestAppliedToLinesItem { - export type Raw = string | PaymentLineItemRequest.Raw; -} diff --git a/src/serialization/resources/accounting/types/PaymentRequestCompany.ts b/src/serialization/resources/accounting/types/PaymentRequestCompany.ts deleted file mode 100644 index 573620388..000000000 --- a/src/serialization/resources/accounting/types/PaymentRequestCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const PaymentRequestCompany: core.serialization.Schema< - serializers.accounting.PaymentRequestCompany.Raw, - Merge.accounting.PaymentRequestCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace PaymentRequestCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/PaymentRequestContact.ts b/src/serialization/resources/accounting/types/PaymentRequestContact.ts deleted file mode 100644 index 2dfb94a03..000000000 --- a/src/serialization/resources/accounting/types/PaymentRequestContact.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 { Contact } from "./Contact"; - -export const PaymentRequestContact: core.serialization.Schema< - serializers.accounting.PaymentRequestContact.Raw, - Merge.accounting.PaymentRequestContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace PaymentRequestContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/PaymentRequestCurrency.ts b/src/serialization/resources/accounting/types/PaymentRequestCurrency.ts deleted file mode 100644 index ecf81a559..000000000 --- a/src/serialization/resources/accounting/types/PaymentRequestCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const PaymentRequestCurrency: core.serialization.Schema< - serializers.accounting.PaymentRequestCurrency.Raw, - Merge.accounting.PaymentRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace PaymentRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/PaymentRequestPaymentMethod.ts b/src/serialization/resources/accounting/types/PaymentRequestPaymentMethod.ts deleted file mode 100644 index ad9265621..000000000 --- a/src/serialization/resources/accounting/types/PaymentRequestPaymentMethod.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 PaymentRequestPaymentMethod: core.serialization.Schema< - serializers.accounting.PaymentRequestPaymentMethod.Raw, - Merge.accounting.PaymentRequestPaymentMethod -> = core.serialization.undiscriminatedUnion([core.serialization.string(), PaymentMethod]); - -export declare namespace PaymentRequestPaymentMethod { - export type Raw = string | PaymentMethod.Raw; -} diff --git a/src/serialization/resources/accounting/types/PaymentRequestTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/PaymentRequestTrackingCategoriesItem.ts deleted file mode 100644 index baa50dfb9..000000000 --- a/src/serialization/resources/accounting/types/PaymentRequestTrackingCategoriesItem.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 { TrackingCategory } from "./TrackingCategory"; - -export const PaymentRequestTrackingCategoriesItem: core.serialization.Schema< - serializers.accounting.PaymentRequestTrackingCategoriesItem.Raw, - Merge.accounting.PaymentRequestTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace PaymentRequestTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/PaymentRequestType.ts b/src/serialization/resources/accounting/types/PaymentRequestType.ts deleted file mode 100644 index 2e427122b..000000000 --- a/src/serialization/resources/accounting/types/PaymentRequestType.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 { PaymentTypeEnum } from "./PaymentTypeEnum"; - -export const PaymentRequestType: core.serialization.Schema< - serializers.accounting.PaymentRequestType.Raw, - Merge.accounting.PaymentRequestType -> = core.serialization.undiscriminatedUnion([PaymentTypeEnum, core.serialization.string()]); - -export declare namespace PaymentRequestType { - export type Raw = PaymentTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/PaymentResponse.ts b/src/serialization/resources/accounting/types/PaymentResponse.ts deleted file mode 100644 index 9044c477d..000000000 --- a/src/serialization/resources/accounting/types/PaymentResponse.ts +++ /dev/null @@ -1,28 +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 { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { Payment } from "./Payment"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const PaymentResponse: core.serialization.ObjectSchema< - serializers.accounting.PaymentResponse.Raw, - Merge.accounting.PaymentResponse -> = core.serialization.object({ - model: Payment, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace PaymentResponse { - export interface Raw { - model: Payment.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaymentTerm.ts b/src/serialization/resources/accounting/types/PaymentTerm.ts deleted file mode 100644 index 075dc652e..000000000 --- a/src/serialization/resources/accounting/types/PaymentTerm.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"; -import { PaymentTermCompany } from "./PaymentTermCompany"; -import { RemoteData } from "./RemoteData"; - -export const PaymentTerm: core.serialization.ObjectSchema< - serializers.accounting.PaymentTerm.Raw, - Merge.accounting.PaymentTerm -> = 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()), - name: core.serialization.string(), - isActive: core.serialization.property("is_active", core.serialization.boolean().optional()), - company: PaymentTermCompany.optional(), - daysUntilDue: core.serialization.property("days_until_due", core.serialization.number().optional()), - discountDays: core.serialization.property("discount_days", core.serialization.number().optional()), - remoteLastModifiedAt: core.serialization.property("remote_last_modified_at", core.serialization.date().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()), -}); - -export declare namespace PaymentTerm { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name: string; - is_active?: boolean | null; - company?: PaymentTermCompany.Raw | null; - days_until_due?: number | null; - discount_days?: number | null; - remote_last_modified_at?: string | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaymentTermCompany.ts b/src/serialization/resources/accounting/types/PaymentTermCompany.ts deleted file mode 100644 index 599c89f4e..000000000 --- a/src/serialization/resources/accounting/types/PaymentTermCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const PaymentTermCompany: core.serialization.Schema< - serializers.accounting.PaymentTermCompany.Raw, - Merge.accounting.PaymentTermCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace PaymentTermCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/PaymentTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/PaymentTrackingCategoriesItem.ts deleted file mode 100644 index 35d88d763..000000000 --- a/src/serialization/resources/accounting/types/PaymentTrackingCategoriesItem.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 { TrackingCategory } from "./TrackingCategory"; - -export const PaymentTrackingCategoriesItem: core.serialization.Schema< - serializers.accounting.PaymentTrackingCategoriesItem.Raw, - Merge.accounting.PaymentTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace PaymentTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/PaymentType.ts b/src/serialization/resources/accounting/types/PaymentType.ts deleted file mode 100644 index 0eda7572a..000000000 --- a/src/serialization/resources/accounting/types/PaymentType.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 { PaymentTypeEnum } from "./PaymentTypeEnum"; - -export const PaymentType: core.serialization.Schema< - serializers.accounting.PaymentType.Raw, - Merge.accounting.PaymentType -> = core.serialization.undiscriminatedUnion([PaymentTypeEnum, core.serialization.string()]); - -export declare namespace PaymentType { - export type Raw = PaymentTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/PaymentTypeEnum.ts b/src/serialization/resources/accounting/types/PaymentTypeEnum.ts deleted file mode 100644 index 75ce3f9b1..000000000 --- a/src/serialization/resources/accounting/types/PaymentTypeEnum.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 PaymentTypeEnum: core.serialization.Schema< - serializers.accounting.PaymentTypeEnum.Raw, - Merge.accounting.PaymentTypeEnum -> = core.serialization.enum_(["ACCOUNTS_PAYABLE", "ACCOUNTS_RECEIVABLE"]); - -export declare namespace PaymentTypeEnum { - export type Raw = "ACCOUNTS_PAYABLE" | "ACCOUNTS_RECEIVABLE"; -} diff --git a/src/serialization/resources/accounting/types/PostingStatusEnum.ts b/src/serialization/resources/accounting/types/PostingStatusEnum.ts deleted file mode 100644 index 95698e05a..000000000 --- a/src/serialization/resources/accounting/types/PostingStatusEnum.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 PostingStatusEnum: core.serialization.Schema< - serializers.accounting.PostingStatusEnum.Raw, - Merge.accounting.PostingStatusEnum -> = core.serialization.enum_(["UNPOSTED", "POSTED"]); - -export declare namespace PostingStatusEnum { - export type Raw = "UNPOSTED" | "POSTED"; -} diff --git a/src/serialization/resources/accounting/types/Project.ts b/src/serialization/resources/accounting/types/Project.ts deleted file mode 100644 index 85c8c1643..000000000 --- a/src/serialization/resources/accounting/types/Project.ts +++ /dev/null @@ -1,40 +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 { ProjectCompany } from "./ProjectCompany"; -import { ProjectContact } from "./ProjectContact"; -import { RemoteData } from "./RemoteData"; - -export const Project: core.serialization.ObjectSchema = - 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()), - name: core.serialization.string(), - isActive: core.serialization.property("is_active", core.serialization.boolean().optional()), - company: ProjectCompany.optional(), - contact: ProjectContact.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()), - }); - -export declare namespace Project { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name: string; - is_active?: boolean | null; - company?: ProjectCompany.Raw | null; - contact?: ProjectContact.Raw | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/ProjectCompany.ts b/src/serialization/resources/accounting/types/ProjectCompany.ts deleted file mode 100644 index 8afe44dd8..000000000 --- a/src/serialization/resources/accounting/types/ProjectCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const ProjectCompany: core.serialization.Schema< - serializers.accounting.ProjectCompany.Raw, - Merge.accounting.ProjectCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace ProjectCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/ProjectContact.ts b/src/serialization/resources/accounting/types/ProjectContact.ts deleted file mode 100644 index baf61f124..000000000 --- a/src/serialization/resources/accounting/types/ProjectContact.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 { Contact } from "./Contact"; - -export const ProjectContact: core.serialization.Schema< - serializers.accounting.ProjectContact.Raw, - Merge.accounting.ProjectContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace ProjectContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/PurchaseOrder.ts b/src/serialization/resources/accounting/types/PurchaseOrder.ts deleted file mode 100644 index d56c36d48..000000000 --- a/src/serialization/resources/accounting/types/PurchaseOrder.ts +++ /dev/null @@ -1,87 +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 { PurchaseOrderAccountingPeriod } from "./PurchaseOrderAccountingPeriod"; -import { PurchaseOrderCompany } from "./PurchaseOrderCompany"; -import { PurchaseOrderCurrency } from "./PurchaseOrderCurrency"; -import { PurchaseOrderDeliveryAddress } from "./PurchaseOrderDeliveryAddress"; -import { PurchaseOrderLineItem } from "./PurchaseOrderLineItem"; -import { PurchaseOrderPaymentTerm } from "./PurchaseOrderPaymentTerm"; -import { PurchaseOrderStatus } from "./PurchaseOrderStatus"; -import { PurchaseOrderTrackingCategoriesItem } from "./PurchaseOrderTrackingCategoriesItem"; -import { PurchaseOrderVendor } from "./PurchaseOrderVendor"; -import { RemoteData } from "./RemoteData"; -import { RemoteField } from "./RemoteField"; - -export const PurchaseOrder: core.serialization.ObjectSchema< - serializers.accounting.PurchaseOrder.Raw, - Merge.accounting.PurchaseOrder -> = 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()), - status: PurchaseOrderStatus.optional(), - issueDate: core.serialization.property("issue_date", core.serialization.date().optional()), - purchaseOrderNumber: core.serialization.property("purchase_order_number", core.serialization.string().optional()), - deliveryDate: core.serialization.property("delivery_date", core.serialization.date().optional()), - deliveryAddress: core.serialization.property("delivery_address", PurchaseOrderDeliveryAddress.optional()), - customer: core.serialization.string().optional(), - vendor: PurchaseOrderVendor.optional(), - memo: core.serialization.string().optional(), - company: PurchaseOrderCompany.optional(), - totalAmount: core.serialization.property("total_amount", core.serialization.number().optional()), - 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()), - inclusiveOfTax: core.serialization.property("inclusive_of_tax", core.serialization.boolean().optional()), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(PurchaseOrderTrackingCategoriesItem.optional()).optional(), - ), - accountingPeriod: core.serialization.property("accounting_period", PurchaseOrderAccountingPeriod.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 PurchaseOrder { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - status?: PurchaseOrderStatus.Raw | null; - issue_date?: string | null; - purchase_order_number?: string | null; - delivery_date?: string | null; - delivery_address?: PurchaseOrderDeliveryAddress.Raw | null; - customer?: string | null; - vendor?: PurchaseOrderVendor.Raw | null; - memo?: string | null; - company?: PurchaseOrderCompany.Raw | null; - total_amount?: number | null; - currency?: PurchaseOrderCurrency.Raw | null; - exchange_rate?: string | null; - payment_term?: PurchaseOrderPaymentTerm.Raw | null; - line_items?: PurchaseOrderLineItem.Raw[] | null; - inclusive_of_tax?: boolean | null; - tracking_categories?: (PurchaseOrderTrackingCategoriesItem.Raw | null | undefined)[] | null; - accounting_period?: PurchaseOrderAccountingPeriod.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/PurchaseOrderAccountingPeriod.ts b/src/serialization/resources/accounting/types/PurchaseOrderAccountingPeriod.ts deleted file mode 100644 index acac12859..000000000 --- a/src/serialization/resources/accounting/types/PurchaseOrderAccountingPeriod.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 { AccountingPeriod } from "./AccountingPeriod"; - -export const PurchaseOrderAccountingPeriod: core.serialization.Schema< - serializers.accounting.PurchaseOrderAccountingPeriod.Raw, - Merge.accounting.PurchaseOrderAccountingPeriod -> = core.serialization.undiscriminatedUnion([core.serialization.string(), AccountingPeriod]); - -export declare namespace PurchaseOrderAccountingPeriod { - export type Raw = string | AccountingPeriod.Raw; -} diff --git a/src/serialization/resources/accounting/types/PurchaseOrderCompany.ts b/src/serialization/resources/accounting/types/PurchaseOrderCompany.ts deleted file mode 100644 index 33f12aa21..000000000 --- a/src/serialization/resources/accounting/types/PurchaseOrderCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const PurchaseOrderCompany: core.serialization.Schema< - serializers.accounting.PurchaseOrderCompany.Raw, - Merge.accounting.PurchaseOrderCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace PurchaseOrderCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/PurchaseOrderCurrency.ts b/src/serialization/resources/accounting/types/PurchaseOrderCurrency.ts deleted file mode 100644 index 38bcbb6ca..000000000 --- a/src/serialization/resources/accounting/types/PurchaseOrderCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const PurchaseOrderCurrency: core.serialization.Schema< - serializers.accounting.PurchaseOrderCurrency.Raw, - Merge.accounting.PurchaseOrderCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace PurchaseOrderCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/PurchaseOrderDeliveryAddress.ts b/src/serialization/resources/accounting/types/PurchaseOrderDeliveryAddress.ts deleted file mode 100644 index c9a4ce058..000000000 --- a/src/serialization/resources/accounting/types/PurchaseOrderDeliveryAddress.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { Address } from "./Address"; - -export const PurchaseOrderDeliveryAddress: core.serialization.Schema< - serializers.accounting.PurchaseOrderDeliveryAddress.Raw, - Merge.accounting.PurchaseOrderDeliveryAddress -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Address]); - -export declare namespace PurchaseOrderDeliveryAddress { - export type Raw = string | Address.Raw; -} diff --git a/src/serialization/resources/accounting/types/PurchaseOrderLineItem.ts b/src/serialization/resources/accounting/types/PurchaseOrderLineItem.ts deleted file mode 100644 index 3690cd829..000000000 --- a/src/serialization/resources/accounting/types/PurchaseOrderLineItem.ts +++ /dev/null @@ -1,60 +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 { PurchaseOrderLineItemCurrency } from "./PurchaseOrderLineItemCurrency"; -import { PurchaseOrderLineItemItem } from "./PurchaseOrderLineItemItem"; -import { RemoteField } from "./RemoteField"; - -export const PurchaseOrderLineItem: core.serialization.ObjectSchema< - serializers.accounting.PurchaseOrderLineItem.Raw, - Merge.accounting.PurchaseOrderLineItem -> = 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.number().optional()), - quantity: core.serialization.number().optional(), - item: PurchaseOrderLineItemItem.optional(), - account: core.serialization.string().optional(), - trackingCategory: core.serialization.property("tracking_category", core.serialization.string().optional()), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(core.serialization.string().optional()).optional(), - ), - taxAmount: core.serialization.property("tax_amount", core.serialization.string().optional()), - totalLineAmount: core.serialization.property("total_line_amount", core.serialization.string().optional()), - currency: PurchaseOrderLineItemCurrency.optional(), - taxRate: core.serialization.property("tax_rate", core.serialization.string().optional()), - exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), - company: core.serialization.string().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 PurchaseOrderLineItem { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - description?: string | null; - unit_price?: number | null; - quantity?: number | null; - item?: PurchaseOrderLineItemItem.Raw | null; - account?: string | null; - tracking_category?: string | null; - tracking_categories?: (string | null | undefined)[] | null; - tax_amount?: string | null; - total_line_amount?: string | null; - currency?: PurchaseOrderLineItemCurrency.Raw | null; - tax_rate?: string | null; - exchange_rate?: string | null; - company?: string | null; - remote_was_deleted?: boolean | null; - remote_fields?: RemoteField.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PurchaseOrderLineItemCurrency.ts b/src/serialization/resources/accounting/types/PurchaseOrderLineItemCurrency.ts deleted file mode 100644 index f6f31c06a..000000000 --- a/src/serialization/resources/accounting/types/PurchaseOrderLineItemCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const PurchaseOrderLineItemCurrency: core.serialization.Schema< - serializers.accounting.PurchaseOrderLineItemCurrency.Raw, - Merge.accounting.PurchaseOrderLineItemCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace PurchaseOrderLineItemCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/PurchaseOrderLineItemItem.ts b/src/serialization/resources/accounting/types/PurchaseOrderLineItemItem.ts deleted file mode 100644 index e5148c0bd..000000000 --- a/src/serialization/resources/accounting/types/PurchaseOrderLineItemItem.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 { Item } from "./Item"; - -export const PurchaseOrderLineItemItem: core.serialization.Schema< - serializers.accounting.PurchaseOrderLineItemItem.Raw, - Merge.accounting.PurchaseOrderLineItemItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Item]); - -export declare namespace PurchaseOrderLineItemItem { - export type Raw = string | Item.Raw; -} diff --git a/src/serialization/resources/accounting/types/PurchaseOrderLineItemRequest.ts b/src/serialization/resources/accounting/types/PurchaseOrderLineItemRequest.ts deleted file mode 100644 index 3c39ba32d..000000000 --- a/src/serialization/resources/accounting/types/PurchaseOrderLineItemRequest.ts +++ /dev/null @@ -1,62 +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 { PurchaseOrderLineItemRequestCurrency } from "./PurchaseOrderLineItemRequestCurrency"; -import { PurchaseOrderLineItemRequestItem } from "./PurchaseOrderLineItemRequestItem"; -import { RemoteFieldRequest } from "./RemoteFieldRequest"; - -export const PurchaseOrderLineItemRequest: core.serialization.ObjectSchema< - serializers.accounting.PurchaseOrderLineItemRequest.Raw, - Merge.accounting.PurchaseOrderLineItemRequest -> = 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.number().optional()), - quantity: core.serialization.number().optional(), - item: PurchaseOrderLineItemRequestItem.optional(), - account: core.serialization.string().optional(), - trackingCategory: core.serialization.property("tracking_category", core.serialization.string().optional()), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(core.serialization.string().optional()).optional(), - ), - taxAmount: core.serialization.property("tax_amount", core.serialization.string().optional()), - totalLineAmount: core.serialization.property("total_line_amount", core.serialization.string().optional()), - currency: PurchaseOrderLineItemRequestCurrency.optional(), - taxRate: core.serialization.property("tax_rate", core.serialization.string().optional()), - exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), - company: core.serialization.string().optional(), - integrationParams: core.serialization.property( - "integration_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - linkedAccountParams: core.serialization.property( - "linked_account_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - remoteFields: core.serialization.property("remote_fields", core.serialization.list(RemoteFieldRequest).optional()), -}); - -export declare namespace PurchaseOrderLineItemRequest { - export interface Raw { - remote_id?: string | null; - description?: string | null; - unit_price?: number | null; - quantity?: number | null; - item?: PurchaseOrderLineItemRequestItem.Raw | null; - account?: string | null; - tracking_category?: string | null; - tracking_categories?: (string | null | undefined)[] | null; - tax_amount?: string | null; - total_line_amount?: string | null; - currency?: PurchaseOrderLineItemRequestCurrency.Raw | null; - tax_rate?: string | null; - exchange_rate?: string | null; - company?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PurchaseOrderLineItemRequestCurrency.ts b/src/serialization/resources/accounting/types/PurchaseOrderLineItemRequestCurrency.ts deleted file mode 100644 index 3833ea50f..000000000 --- a/src/serialization/resources/accounting/types/PurchaseOrderLineItemRequestCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const PurchaseOrderLineItemRequestCurrency: core.serialization.Schema< - serializers.accounting.PurchaseOrderLineItemRequestCurrency.Raw, - Merge.accounting.PurchaseOrderLineItemRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace PurchaseOrderLineItemRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/PurchaseOrderLineItemRequestItem.ts b/src/serialization/resources/accounting/types/PurchaseOrderLineItemRequestItem.ts deleted file mode 100644 index 8238bd3f6..000000000 --- a/src/serialization/resources/accounting/types/PurchaseOrderLineItemRequestItem.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 { Item } from "./Item"; - -export const PurchaseOrderLineItemRequestItem: core.serialization.Schema< - serializers.accounting.PurchaseOrderLineItemRequestItem.Raw, - Merge.accounting.PurchaseOrderLineItemRequestItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Item]); - -export declare namespace PurchaseOrderLineItemRequestItem { - export type Raw = string | Item.Raw; -} diff --git a/src/serialization/resources/accounting/types/PurchaseOrderPaymentTerm.ts b/src/serialization/resources/accounting/types/PurchaseOrderPaymentTerm.ts deleted file mode 100644 index 0eab9d929..000000000 --- a/src/serialization/resources/accounting/types/PurchaseOrderPaymentTerm.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 { PaymentTerm } from "./PaymentTerm"; - -export const PurchaseOrderPaymentTerm: core.serialization.Schema< - serializers.accounting.PurchaseOrderPaymentTerm.Raw, - Merge.accounting.PurchaseOrderPaymentTerm -> = core.serialization.undiscriminatedUnion([core.serialization.string(), PaymentTerm]); - -export declare namespace PurchaseOrderPaymentTerm { - export type Raw = string | PaymentTerm.Raw; -} diff --git a/src/serialization/resources/accounting/types/PurchaseOrderRequest.ts b/src/serialization/resources/accounting/types/PurchaseOrderRequest.ts deleted file mode 100644 index fd5015807..000000000 --- a/src/serialization/resources/accounting/types/PurchaseOrderRequest.ts +++ /dev/null @@ -1,73 +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 { PurchaseOrderLineItemRequest } from "./PurchaseOrderLineItemRequest"; -import { PurchaseOrderRequestCompany } from "./PurchaseOrderRequestCompany"; -import { PurchaseOrderRequestCurrency } from "./PurchaseOrderRequestCurrency"; -import { PurchaseOrderRequestDeliveryAddress } from "./PurchaseOrderRequestDeliveryAddress"; -import { PurchaseOrderRequestPaymentTerm } from "./PurchaseOrderRequestPaymentTerm"; -import { PurchaseOrderRequestStatus } from "./PurchaseOrderRequestStatus"; -import { PurchaseOrderRequestTrackingCategoriesItem } from "./PurchaseOrderRequestTrackingCategoriesItem"; -import { PurchaseOrderRequestVendor } from "./PurchaseOrderRequestVendor"; -import { RemoteFieldRequest } from "./RemoteFieldRequest"; - -export const PurchaseOrderRequest: core.serialization.ObjectSchema< - serializers.accounting.PurchaseOrderRequest.Raw, - Merge.accounting.PurchaseOrderRequest -> = core.serialization.object({ - status: PurchaseOrderRequestStatus.optional(), - issueDate: core.serialization.property("issue_date", core.serialization.date().optional()), - deliveryDate: core.serialization.property("delivery_date", core.serialization.date().optional()), - deliveryAddress: core.serialization.property("delivery_address", PurchaseOrderRequestDeliveryAddress.optional()), - customer: core.serialization.string().optional(), - vendor: PurchaseOrderRequestVendor.optional(), - memo: core.serialization.string().optional(), - company: PurchaseOrderRequestCompany.optional(), - totalAmount: core.serialization.property("total_amount", core.serialization.number().optional()), - paymentTerm: core.serialization.property("payment_term", PurchaseOrderRequestPaymentTerm.optional()), - currency: PurchaseOrderRequestCurrency.optional(), - inclusiveOfTax: core.serialization.property("inclusive_of_tax", core.serialization.boolean().optional()), - exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(PurchaseOrderRequestTrackingCategoriesItem.optional()).optional(), - ), - lineItems: core.serialization.property( - "line_items", - core.serialization.list(PurchaseOrderLineItemRequest).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 PurchaseOrderRequest { - export interface Raw { - status?: PurchaseOrderRequestStatus.Raw | null; - issue_date?: string | null; - delivery_date?: string | null; - delivery_address?: PurchaseOrderRequestDeliveryAddress.Raw | null; - customer?: string | null; - vendor?: PurchaseOrderRequestVendor.Raw | null; - memo?: string | null; - company?: PurchaseOrderRequestCompany.Raw | null; - total_amount?: number | null; - payment_term?: PurchaseOrderRequestPaymentTerm.Raw | null; - currency?: PurchaseOrderRequestCurrency.Raw | null; - inclusive_of_tax?: boolean | null; - exchange_rate?: string | null; - tracking_categories?: (PurchaseOrderRequestTrackingCategoriesItem.Raw | null | undefined)[] | null; - line_items?: PurchaseOrderLineItemRequest.Raw[] | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PurchaseOrderRequestCompany.ts b/src/serialization/resources/accounting/types/PurchaseOrderRequestCompany.ts deleted file mode 100644 index 02c7763c1..000000000 --- a/src/serialization/resources/accounting/types/PurchaseOrderRequestCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const PurchaseOrderRequestCompany: core.serialization.Schema< - serializers.accounting.PurchaseOrderRequestCompany.Raw, - Merge.accounting.PurchaseOrderRequestCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace PurchaseOrderRequestCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/PurchaseOrderRequestCurrency.ts b/src/serialization/resources/accounting/types/PurchaseOrderRequestCurrency.ts deleted file mode 100644 index 9ba3b359d..000000000 --- a/src/serialization/resources/accounting/types/PurchaseOrderRequestCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const PurchaseOrderRequestCurrency: core.serialization.Schema< - serializers.accounting.PurchaseOrderRequestCurrency.Raw, - Merge.accounting.PurchaseOrderRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace PurchaseOrderRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/PurchaseOrderRequestDeliveryAddress.ts b/src/serialization/resources/accounting/types/PurchaseOrderRequestDeliveryAddress.ts deleted file mode 100644 index 0ab428fb5..000000000 --- a/src/serialization/resources/accounting/types/PurchaseOrderRequestDeliveryAddress.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { Address } from "./Address"; - -export const PurchaseOrderRequestDeliveryAddress: core.serialization.Schema< - serializers.accounting.PurchaseOrderRequestDeliveryAddress.Raw, - Merge.accounting.PurchaseOrderRequestDeliveryAddress -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Address]); - -export declare namespace PurchaseOrderRequestDeliveryAddress { - export type Raw = string | Address.Raw; -} diff --git a/src/serialization/resources/accounting/types/PurchaseOrderRequestPaymentTerm.ts b/src/serialization/resources/accounting/types/PurchaseOrderRequestPaymentTerm.ts deleted file mode 100644 index 5163b3850..000000000 --- a/src/serialization/resources/accounting/types/PurchaseOrderRequestPaymentTerm.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 { PaymentTerm } from "./PaymentTerm"; - -export const PurchaseOrderRequestPaymentTerm: core.serialization.Schema< - serializers.accounting.PurchaseOrderRequestPaymentTerm.Raw, - Merge.accounting.PurchaseOrderRequestPaymentTerm -> = core.serialization.undiscriminatedUnion([core.serialization.string(), PaymentTerm]); - -export declare namespace PurchaseOrderRequestPaymentTerm { - export type Raw = string | PaymentTerm.Raw; -} diff --git a/src/serialization/resources/accounting/types/PurchaseOrderRequestStatus.ts b/src/serialization/resources/accounting/types/PurchaseOrderRequestStatus.ts deleted file mode 100644 index 04ea90dfc..000000000 --- a/src/serialization/resources/accounting/types/PurchaseOrderRequestStatus.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 { PurchaseOrderStatusEnum } from "./PurchaseOrderStatusEnum"; - -export const PurchaseOrderRequestStatus: core.serialization.Schema< - serializers.accounting.PurchaseOrderRequestStatus.Raw, - Merge.accounting.PurchaseOrderRequestStatus -> = core.serialization.undiscriminatedUnion([PurchaseOrderStatusEnum, core.serialization.string()]); - -export declare namespace PurchaseOrderRequestStatus { - export type Raw = PurchaseOrderStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/PurchaseOrderRequestTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/PurchaseOrderRequestTrackingCategoriesItem.ts deleted file mode 100644 index 0e38ce5cf..000000000 --- a/src/serialization/resources/accounting/types/PurchaseOrderRequestTrackingCategoriesItem.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 { TrackingCategory } from "./TrackingCategory"; - -export const PurchaseOrderRequestTrackingCategoriesItem: core.serialization.Schema< - serializers.accounting.PurchaseOrderRequestTrackingCategoriesItem.Raw, - Merge.accounting.PurchaseOrderRequestTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace PurchaseOrderRequestTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/PurchaseOrderRequestVendor.ts b/src/serialization/resources/accounting/types/PurchaseOrderRequestVendor.ts deleted file mode 100644 index 8ae65faf5..000000000 --- a/src/serialization/resources/accounting/types/PurchaseOrderRequestVendor.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 { Contact } from "./Contact"; - -export const PurchaseOrderRequestVendor: core.serialization.Schema< - serializers.accounting.PurchaseOrderRequestVendor.Raw, - Merge.accounting.PurchaseOrderRequestVendor -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace PurchaseOrderRequestVendor { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/PurchaseOrderResponse.ts b/src/serialization/resources/accounting/types/PurchaseOrderResponse.ts deleted file mode 100644 index 1a9a80eb9..000000000 --- a/src/serialization/resources/accounting/types/PurchaseOrderResponse.ts +++ /dev/null @@ -1,28 +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 { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { PurchaseOrder } from "./PurchaseOrder"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const PurchaseOrderResponse: core.serialization.ObjectSchema< - serializers.accounting.PurchaseOrderResponse.Raw, - Merge.accounting.PurchaseOrderResponse -> = core.serialization.object({ - model: PurchaseOrder, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace PurchaseOrderResponse { - export interface Raw { - model: PurchaseOrder.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PurchaseOrderStatus.ts b/src/serialization/resources/accounting/types/PurchaseOrderStatus.ts deleted file mode 100644 index c61280216..000000000 --- a/src/serialization/resources/accounting/types/PurchaseOrderStatus.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 { PurchaseOrderStatusEnum } from "./PurchaseOrderStatusEnum"; - -export const PurchaseOrderStatus: core.serialization.Schema< - serializers.accounting.PurchaseOrderStatus.Raw, - Merge.accounting.PurchaseOrderStatus -> = core.serialization.undiscriminatedUnion([PurchaseOrderStatusEnum, core.serialization.string()]); - -export declare namespace PurchaseOrderStatus { - export type Raw = PurchaseOrderStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/PurchaseOrderStatusEnum.ts b/src/serialization/resources/accounting/types/PurchaseOrderStatusEnum.ts deleted file mode 100644 index 89f2f0322..000000000 --- a/src/serialization/resources/accounting/types/PurchaseOrderStatusEnum.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 PurchaseOrderStatusEnum: core.serialization.Schema< - serializers.accounting.PurchaseOrderStatusEnum.Raw, - Merge.accounting.PurchaseOrderStatusEnum -> = core.serialization.enum_(["DRAFT", "SUBMITTED", "AUTHORIZED", "BILLED", "DELETED"]); - -export declare namespace PurchaseOrderStatusEnum { - export type Raw = "DRAFT" | "SUBMITTED" | "AUTHORIZED" | "BILLED" | "DELETED"; -} diff --git a/src/serialization/resources/accounting/types/PurchaseOrderTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/PurchaseOrderTrackingCategoriesItem.ts deleted file mode 100644 index 82c42e06b..000000000 --- a/src/serialization/resources/accounting/types/PurchaseOrderTrackingCategoriesItem.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 { TrackingCategory } from "./TrackingCategory"; - -export const PurchaseOrderTrackingCategoriesItem: core.serialization.Schema< - serializers.accounting.PurchaseOrderTrackingCategoriesItem.Raw, - Merge.accounting.PurchaseOrderTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace PurchaseOrderTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/PurchaseOrderVendor.ts b/src/serialization/resources/accounting/types/PurchaseOrderVendor.ts deleted file mode 100644 index e72fcdfe0..000000000 --- a/src/serialization/resources/accounting/types/PurchaseOrderVendor.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 { Contact } from "./Contact"; - -export const PurchaseOrderVendor: core.serialization.Schema< - serializers.accounting.PurchaseOrderVendor.Raw, - Merge.accounting.PurchaseOrderVendor -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace PurchaseOrderVendor { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/RemoteData.ts b/src/serialization/resources/accounting/types/RemoteData.ts deleted file mode 100644 index 8f9583912..000000000 --- a/src/serialization/resources/accounting/types/RemoteData.ts +++ /dev/null @@ -1,20 +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 RemoteData: core.serialization.ObjectSchema< - serializers.accounting.RemoteData.Raw, - Merge.accounting.RemoteData -> = core.serialization.object({ - path: core.serialization.string(), - data: core.serialization.unknown().optional(), -}); - -export declare namespace RemoteData { - export interface Raw { - path: string; - data?: unknown | null; - } -} diff --git a/src/serialization/resources/accounting/types/RemoteEndpointInfo.ts b/src/serialization/resources/accounting/types/RemoteEndpointInfo.ts deleted file mode 100644 index 35841c4da..000000000 --- a/src/serialization/resources/accounting/types/RemoteEndpointInfo.ts +++ /dev/null @@ -1,25 +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 RemoteEndpointInfo: core.serialization.ObjectSchema< - serializers.accounting.RemoteEndpointInfo.Raw, - Merge.accounting.RemoteEndpointInfo -> = core.serialization.object({ - method: core.serialization.string(), - urlPath: core.serialization.property("url_path", core.serialization.string()), - fieldTraversalPath: core.serialization.property( - "field_traversal_path", - core.serialization.list(core.serialization.unknown()), - ), -}); - -export declare namespace RemoteEndpointInfo { - export interface Raw { - method: string; - url_path: string; - field_traversal_path: unknown[]; - } -} diff --git a/src/serialization/resources/accounting/types/RemoteField.ts b/src/serialization/resources/accounting/types/RemoteField.ts deleted file mode 100644 index 1f35b5312..000000000 --- a/src/serialization/resources/accounting/types/RemoteField.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { RemoteFieldRemoteFieldClass } from "./RemoteFieldRemoteFieldClass"; - -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(), -}); - -export declare namespace RemoteField { - export interface Raw { - remote_field_class: RemoteFieldRemoteFieldClass.Raw; - value?: unknown | null; - } -} diff --git a/src/serialization/resources/accounting/types/RemoteFieldApi.ts b/src/serialization/resources/accounting/types/RemoteFieldApi.ts deleted file mode 100644 index 5d37bb44c..000000000 --- a/src/serialization/resources/accounting/types/RemoteFieldApi.ts +++ /dev/null @@ -1,34 +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 { AdvancedMetadata } from "./AdvancedMetadata"; -import { RemoteEndpointInfo } from "./RemoteEndpointInfo"; -import { RemoteFieldApiCoverage } from "./RemoteFieldApiCoverage"; - -export const RemoteFieldApi: core.serialization.ObjectSchema< - serializers.accounting.RemoteFieldApi.Raw, - Merge.accounting.RemoteFieldApi -> = core.serialization.object({ - schema: core.serialization.record(core.serialization.string(), core.serialization.unknown()), - remoteKeyName: core.serialization.property("remote_key_name", core.serialization.string()), - remoteEndpointInfo: core.serialization.property("remote_endpoint_info", RemoteEndpointInfo), - exampleValues: core.serialization.property( - "example_values", - core.serialization.list(core.serialization.unknown()).optional(), - ), - advancedMetadata: core.serialization.property("advanced_metadata", AdvancedMetadata.optional()), - coverage: RemoteFieldApiCoverage.optional(), -}); - -export declare namespace RemoteFieldApi { - export interface Raw { - schema: Record; - remote_key_name: string; - remote_endpoint_info: RemoteEndpointInfo.Raw; - example_values?: unknown[] | null; - advanced_metadata?: AdvancedMetadata.Raw | null; - coverage?: RemoteFieldApiCoverage.Raw | null; - } -} diff --git a/src/serialization/resources/accounting/types/RemoteFieldApiCoverage.ts b/src/serialization/resources/accounting/types/RemoteFieldApiCoverage.ts deleted file mode 100644 index 255d9789f..000000000 --- a/src/serialization/resources/accounting/types/RemoteFieldApiCoverage.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 RemoteFieldApiCoverage: core.serialization.Schema< - serializers.accounting.RemoteFieldApiCoverage.Raw, - Merge.accounting.RemoteFieldApiCoverage -> = core.serialization.undiscriminatedUnion([core.serialization.number(), core.serialization.number()]); - -export declare namespace RemoteFieldApiCoverage { - export type Raw = number | number; -} diff --git a/src/serialization/resources/accounting/types/RemoteFieldApiResponse.ts b/src/serialization/resources/accounting/types/RemoteFieldApiResponse.ts deleted file mode 100644 index 8b1acd25b..000000000 --- a/src/serialization/resources/accounting/types/RemoteFieldApiResponse.ts +++ /dev/null @@ -1,82 +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 { RemoteFieldApi } from "./RemoteFieldApi"; - -export const RemoteFieldApiResponse: core.serialization.ObjectSchema< - serializers.accounting.RemoteFieldApiResponse.Raw, - Merge.accounting.RemoteFieldApiResponse -> = core.serialization.object({ - account: core.serialization.property("Account", core.serialization.list(RemoteFieldApi).optional()), - accountingAttachment: core.serialization.property( - "AccountingAttachment", - core.serialization.list(RemoteFieldApi).optional(), - ), - balanceSheet: core.serialization.property("BalanceSheet", core.serialization.list(RemoteFieldApi).optional()), - cashFlowStatement: core.serialization.property( - "CashFlowStatement", - core.serialization.list(RemoteFieldApi).optional(), - ), - companyInfo: core.serialization.property("CompanyInfo", core.serialization.list(RemoteFieldApi).optional()), - contact: core.serialization.property("Contact", core.serialization.list(RemoteFieldApi).optional()), - incomeStatement: core.serialization.property("IncomeStatement", core.serialization.list(RemoteFieldApi).optional()), - 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()), - trackingCategory: core.serialization.property( - "TrackingCategory", - core.serialization.list(RemoteFieldApi).optional(), - ), - journalEntry: core.serialization.property("JournalEntry", core.serialization.list(RemoteFieldApi).optional()), - taxRate: core.serialization.property("TaxRate", core.serialization.list(RemoteFieldApi).optional()), - invoice: core.serialization.property("Invoice", core.serialization.list(RemoteFieldApi).optional()), - payment: core.serialization.property("Payment", core.serialization.list(RemoteFieldApi).optional()), - expense: core.serialization.property("Expense", core.serialization.list(RemoteFieldApi).optional()), - vendorCredit: core.serialization.property("VendorCredit", core.serialization.list(RemoteFieldApi).optional()), - transaction: core.serialization.property("Transaction", core.serialization.list(RemoteFieldApi).optional()), - accountingPeriod: core.serialization.property( - "AccountingPeriod", - core.serialization.list(RemoteFieldApi).optional(), - ), - generalLedgerTransaction: core.serialization.property( - "GeneralLedgerTransaction", - core.serialization.list(RemoteFieldApi).optional(), - ), - bankFeedAccount: core.serialization.property("BankFeedAccount", core.serialization.list(RemoteFieldApi).optional()), - employee: core.serialization.property("Employee", core.serialization.list(RemoteFieldApi).optional()), - paymentMethod: core.serialization.property("PaymentMethod", core.serialization.list(RemoteFieldApi).optional()), - project: core.serialization.property("Project", core.serialization.list(RemoteFieldApi).optional()), - paymentTerm: core.serialization.property("PaymentTerm", core.serialization.list(RemoteFieldApi).optional()), -}); - -export declare namespace RemoteFieldApiResponse { - export interface Raw { - Account?: RemoteFieldApi.Raw[] | null; - AccountingAttachment?: RemoteFieldApi.Raw[] | null; - BalanceSheet?: RemoteFieldApi.Raw[] | null; - CashFlowStatement?: RemoteFieldApi.Raw[] | null; - CompanyInfo?: RemoteFieldApi.Raw[] | null; - Contact?: RemoteFieldApi.Raw[] | null; - IncomeStatement?: RemoteFieldApi.Raw[] | null; - CreditNote?: RemoteFieldApi.Raw[] | null; - Item?: RemoteFieldApi.Raw[] | null; - PurchaseOrder?: RemoteFieldApi.Raw[] | null; - TrackingCategory?: RemoteFieldApi.Raw[] | null; - JournalEntry?: RemoteFieldApi.Raw[] | null; - TaxRate?: RemoteFieldApi.Raw[] | null; - Invoice?: RemoteFieldApi.Raw[] | null; - Payment?: RemoteFieldApi.Raw[] | null; - Expense?: RemoteFieldApi.Raw[] | null; - VendorCredit?: RemoteFieldApi.Raw[] | null; - Transaction?: RemoteFieldApi.Raw[] | null; - AccountingPeriod?: RemoteFieldApi.Raw[] | null; - GeneralLedgerTransaction?: RemoteFieldApi.Raw[] | null; - BankFeedAccount?: RemoteFieldApi.Raw[] | null; - Employee?: RemoteFieldApi.Raw[] | null; - PaymentMethod?: RemoteFieldApi.Raw[] | null; - Project?: RemoteFieldApi.Raw[] | null; - PaymentTerm?: RemoteFieldApi.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/RemoteFieldClass.ts b/src/serialization/resources/accounting/types/RemoteFieldClass.ts deleted file mode 100644 index 61f303a1d..000000000 --- a/src/serialization/resources/accounting/types/RemoteFieldClass.ts +++ /dev/null @@ -1,44 +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"; -import { FieldTypeEnum } from "./FieldTypeEnum"; -import { ItemSchema } from "./ItemSchema"; - -export const RemoteFieldClass: core.serialization.ObjectSchema< - serializers.accounting.RemoteFieldClass.Raw, - Merge.accounting.RemoteFieldClass -> = core.serialization.object({ - id: core.serialization.string().optional(), - displayName: core.serialization.property("display_name", core.serialization.string().optional()), - remoteKeyName: core.serialization.property("remote_key_name", core.serialization.string().optional()), - description: core.serialization.string().optional(), - 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", FieldTypeEnum.optional()), - fieldFormat: core.serialization.property("field_format", FieldFormatEnum.optional()), - fieldChoices: core.serialization.property( - "field_choices", - core.serialization.list(core.serialization.string()).optional(), - ), - itemSchema: core.serialization.property("item_schema", ItemSchema.optional()), -}); - -export declare namespace RemoteFieldClass { - export interface Raw { - id?: string | null; - display_name?: string | null; - remote_key_name?: string | null; - description?: string | null; - is_custom?: boolean | null; - is_common_model_field?: boolean | null; - is_required?: boolean | null; - field_type?: FieldTypeEnum.Raw | null; - field_format?: FieldFormatEnum.Raw | null; - field_choices?: string[] | null; - item_schema?: ItemSchema.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 deleted file mode 100644 index 9ccdfd7b5..000000000 --- a/src/serialization/resources/accounting/types/RemoteFieldRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { 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(), -}); - -export declare namespace RemoteFieldRequest { - export interface Raw { - remote_field_class: RemoteFieldRequestRemoteFieldClass.Raw; - value?: unknown | 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/RemoteKey.ts b/src/serialization/resources/accounting/types/RemoteKey.ts deleted file mode 100644 index 7b8c03511..000000000 --- a/src/serialization/resources/accounting/types/RemoteKey.ts +++ /dev/null @@ -1,20 +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 RemoteKey: core.serialization.ObjectSchema< - serializers.accounting.RemoteKey.Raw, - Merge.accounting.RemoteKey -> = core.serialization.object({ - name: core.serialization.string(), - key: core.serialization.string(), -}); - -export declare namespace RemoteKey { - export interface Raw { - name: string; - key: string; - } -} diff --git a/src/serialization/resources/accounting/types/RemoteResponse.ts b/src/serialization/resources/accounting/types/RemoteResponse.ts deleted file mode 100644 index 50f57c36e..000000000 --- a/src/serialization/resources/accounting/types/RemoteResponse.ts +++ /dev/null @@ -1,34 +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 { ResponseTypeEnum } from "./ResponseTypeEnum"; - -export const RemoteResponse: core.serialization.ObjectSchema< - serializers.accounting.RemoteResponse.Raw, - Merge.accounting.RemoteResponse -> = core.serialization.object({ - method: core.serialization.string(), - path: core.serialization.string(), - status: core.serialization.number(), - response: core.serialization.unknown(), - responseHeaders: core.serialization.property( - "response_headers", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - responseType: core.serialization.property("response_type", ResponseTypeEnum.optional()), - headers: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), -}); - -export declare namespace RemoteResponse { - export interface Raw { - method: string; - path: string; - status: number; - response?: unknown; - response_headers?: Record | null; - response_type?: ResponseTypeEnum.Raw | null; - headers?: Record | null; - } -} diff --git a/src/serialization/resources/accounting/types/ReportItem.ts b/src/serialization/resources/accounting/types/ReportItem.ts deleted file mode 100644 index 2824188d8..000000000 --- a/src/serialization/resources/accounting/types/ReportItem.ts +++ /dev/null @@ -1,37 +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 ReportItem: core.serialization.ObjectSchema< - serializers.accounting.ReportItem.Raw, - Merge.accounting.ReportItem -> = core.serialization.object({ - 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()), - name: core.serialization.string().optional(), - value: core.serialization.number().optional(), - subItems: core.serialization.property( - "sub_items", - core.serialization - .list(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()), -}); - -export declare namespace ReportItem { - export interface Raw { - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - value?: number | null; - sub_items?: Record[] | null; - company?: string | null; - remote_was_deleted?: boolean | null; - } -} diff --git a/src/serialization/resources/accounting/types/RequestFormatEnum.ts b/src/serialization/resources/accounting/types/RequestFormatEnum.ts deleted file mode 100644 index 12aa26135..000000000 --- a/src/serialization/resources/accounting/types/RequestFormatEnum.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 RequestFormatEnum: core.serialization.Schema< - serializers.accounting.RequestFormatEnum.Raw, - Merge.accounting.RequestFormatEnum -> = core.serialization.enum_(["JSON", "XML", "MULTIPART"]); - -export declare namespace RequestFormatEnum { - export type Raw = "JSON" | "XML" | "MULTIPART"; -} diff --git a/src/serialization/resources/accounting/types/ResponseTypeEnum.ts b/src/serialization/resources/accounting/types/ResponseTypeEnum.ts deleted file mode 100644 index c98560253..000000000 --- a/src/serialization/resources/accounting/types/ResponseTypeEnum.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 ResponseTypeEnum: core.serialization.Schema< - serializers.accounting.ResponseTypeEnum.Raw, - Merge.accounting.ResponseTypeEnum -> = core.serialization.enum_(["JSON", "BASE64_GZIP"]); - -export declare namespace ResponseTypeEnum { - export type Raw = "JSON" | "BASE64_GZIP"; -} diff --git a/src/serialization/resources/accounting/types/RoleEnum.ts b/src/serialization/resources/accounting/types/RoleEnum.ts deleted file mode 100644 index 20190f6cc..000000000 --- a/src/serialization/resources/accounting/types/RoleEnum.ts +++ /dev/null @@ -1,12 +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 RoleEnum: core.serialization.Schema = - core.serialization.enum_(["ADMIN", "DEVELOPER", "MEMBER", "API", "SYSTEM", "MERGE_TEAM"]); - -export declare namespace RoleEnum { - export type Raw = "ADMIN" | "DEVELOPER" | "MEMBER" | "API" | "SYSTEM" | "MERGE_TEAM"; -} diff --git a/src/serialization/resources/accounting/types/SelectiveSyncConfigurationsUsageEnum.ts b/src/serialization/resources/accounting/types/SelectiveSyncConfigurationsUsageEnum.ts deleted file mode 100644 index 3e964aa9b..000000000 --- a/src/serialization/resources/accounting/types/SelectiveSyncConfigurationsUsageEnum.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 SelectiveSyncConfigurationsUsageEnum: core.serialization.Schema< - serializers.accounting.SelectiveSyncConfigurationsUsageEnum.Raw, - Merge.accounting.SelectiveSyncConfigurationsUsageEnum -> = core.serialization.enum_(["IN_NEXT_SYNC", "IN_LAST_SYNC"]); - -export declare namespace SelectiveSyncConfigurationsUsageEnum { - export type Raw = "IN_NEXT_SYNC" | "IN_LAST_SYNC"; -} diff --git a/src/serialization/resources/accounting/types/Status7D1Enum.ts b/src/serialization/resources/accounting/types/Status7D1Enum.ts deleted file mode 100644 index 3daf936f2..000000000 --- a/src/serialization/resources/accounting/types/Status7D1Enum.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 Status7D1Enum: core.serialization.Schema< - serializers.accounting.Status7D1Enum.Raw, - Merge.accounting.Status7D1Enum -> = core.serialization.enum_(["ACTIVE", "ARCHIVED"]); - -export declare namespace Status7D1Enum { - export type Raw = "ACTIVE" | "ARCHIVED"; -} diff --git a/src/serialization/resources/accounting/types/Status895Enum.ts b/src/serialization/resources/accounting/types/Status895Enum.ts deleted file mode 100644 index 9190af9a3..000000000 --- a/src/serialization/resources/accounting/types/Status895Enum.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 Status895Enum: core.serialization.Schema< - serializers.accounting.Status895Enum.Raw, - Merge.accounting.Status895Enum -> = core.serialization.enum_(["ACTIVE", "INACTIVE"]); - -export declare namespace Status895Enum { - export type Raw = "ACTIVE" | "INACTIVE"; -} diff --git a/src/serialization/resources/accounting/types/StatusFd5Enum.ts b/src/serialization/resources/accounting/types/StatusFd5Enum.ts deleted file mode 100644 index 3af9abc58..000000000 --- a/src/serialization/resources/accounting/types/StatusFd5Enum.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 StatusFd5Enum: core.serialization.Schema< - serializers.accounting.StatusFd5Enum.Raw, - Merge.accounting.StatusFd5Enum -> = core.serialization.enum_(["SYNCING", "DONE", "FAILED", "DISABLED", "PAUSED", "PARTIALLY_SYNCED"]); - -export declare namespace StatusFd5Enum { - export type Raw = "SYNCING" | "DONE" | "FAILED" | "DISABLED" | "PAUSED" | "PARTIALLY_SYNCED"; -} diff --git a/src/serialization/resources/accounting/types/SyncStatus.ts b/src/serialization/resources/accounting/types/SyncStatus.ts deleted file mode 100644 index 8e1575ef1..000000000 --- a/src/serialization/resources/accounting/types/SyncStatus.ts +++ /dev/null @@ -1,40 +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 { LastSyncResultEnum } from "./LastSyncResultEnum"; -import { SelectiveSyncConfigurationsUsageEnum } from "./SelectiveSyncConfigurationsUsageEnum"; -import { SyncStatusStatus } from "./SyncStatusStatus"; - -export const SyncStatus: core.serialization.ObjectSchema< - serializers.accounting.SyncStatus.Raw, - Merge.accounting.SyncStatus -> = core.serialization.object({ - modelName: core.serialization.property("model_name", core.serialization.string()), - 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()), - lastSyncFinished: core.serialization.property("last_sync_finished", core.serialization.date().optional()), - status: SyncStatusStatus, - isInitialSync: core.serialization.property("is_initial_sync", core.serialization.boolean()), - selectiveSyncConfigurationsUsage: core.serialization.property( - "selective_sync_configurations_usage", - SelectiveSyncConfigurationsUsageEnum.optional(), - ), -}); - -export declare namespace SyncStatus { - export interface Raw { - model_name: string; - model_id: string; - last_sync_start?: string | null; - next_sync_start?: string | null; - last_sync_result?: LastSyncResultEnum.Raw | null; - last_sync_finished?: string | null; - status: SyncStatusStatus.Raw; - is_initial_sync: boolean; - selective_sync_configurations_usage?: SelectiveSyncConfigurationsUsageEnum.Raw | null; - } -} diff --git a/src/serialization/resources/accounting/types/SyncStatusStatus.ts b/src/serialization/resources/accounting/types/SyncStatusStatus.ts deleted file mode 100644 index 234711ba1..000000000 --- a/src/serialization/resources/accounting/types/SyncStatusStatus.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 { StatusFd5Enum } from "./StatusFd5Enum"; - -export const SyncStatusStatus: core.serialization.Schema< - serializers.accounting.SyncStatusStatus.Raw, - Merge.accounting.SyncStatusStatus -> = core.serialization.undiscriminatedUnion([StatusFd5Enum, core.serialization.string()]); - -export declare namespace SyncStatusStatus { - export type Raw = StatusFd5Enum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/TaxComponent.ts b/src/serialization/resources/accounting/types/TaxComponent.ts deleted file mode 100644 index 6c2b73b30..000000000 --- a/src/serialization/resources/accounting/types/TaxComponent.ts +++ /dev/null @@ -1,35 +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 { TaxComponentComponentType } from "./TaxComponentComponentType"; - -export const TaxComponent: core.serialization.ObjectSchema< - serializers.accounting.TaxComponent.Raw, - Merge.accounting.TaxComponent -> = 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()), - name: core.serialization.string().optional(), - rate: core.serialization.string().optional(), - isCompound: core.serialization.property("is_compound", core.serialization.boolean().optional()), - componentType: core.serialization.property("component_type", TaxComponentComponentType.optional()), - remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), -}); - -export declare namespace TaxComponent { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - rate?: string | null; - is_compound?: boolean | null; - component_type?: TaxComponentComponentType.Raw | null; - remote_was_deleted?: boolean | null; - } -} diff --git a/src/serialization/resources/accounting/types/TaxComponentComponentType.ts b/src/serialization/resources/accounting/types/TaxComponentComponentType.ts deleted file mode 100644 index 97324596a..000000000 --- a/src/serialization/resources/accounting/types/TaxComponentComponentType.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 { ComponentTypeEnum } from "./ComponentTypeEnum"; - -export const TaxComponentComponentType: core.serialization.Schema< - serializers.accounting.TaxComponentComponentType.Raw, - Merge.accounting.TaxComponentComponentType -> = core.serialization.undiscriminatedUnion([ComponentTypeEnum, core.serialization.string()]); - -export declare namespace TaxComponentComponentType { - export type Raw = ComponentTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/TaxRate.ts b/src/serialization/resources/accounting/types/TaxRate.ts deleted file mode 100644 index 8ca2c6326..000000000 --- a/src/serialization/resources/accounting/types/TaxRate.ts +++ /dev/null @@ -1,56 +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 { RemoteData } from "./RemoteData"; -import { TaxRateCompany } from "./TaxRateCompany"; -import { TaxRateStatus } from "./TaxRateStatus"; -import { TaxRateTaxComponentsItem } from "./TaxRateTaxComponentsItem"; - -export const TaxRate: core.serialization.ObjectSchema = - 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()), - company: TaxRateCompany.optional(), - code: core.serialization.string().optional(), - name: core.serialization.string().optional(), - description: core.serialization.string().optional(), - status: TaxRateStatus.optional(), - country: core.serialization.string().optional(), - totalTaxRate: core.serialization.property("total_tax_rate", core.serialization.number().optional()), - effectiveTaxRate: core.serialization.property("effective_tax_rate", core.serialization.number().optional()), - taxComponents: core.serialization.property( - "tax_components", - core.serialization.list(TaxRateTaxComponentsItem).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()), - }); - -export declare namespace TaxRate { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - company?: TaxRateCompany.Raw | null; - code?: string | null; - name?: string | null; - description?: string | null; - status?: TaxRateStatus.Raw | null; - country?: string | null; - total_tax_rate?: number | null; - effective_tax_rate?: number | null; - tax_components?: TaxRateTaxComponentsItem.Raw[] | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/TaxRateCompany.ts b/src/serialization/resources/accounting/types/TaxRateCompany.ts deleted file mode 100644 index 536bb6af5..000000000 --- a/src/serialization/resources/accounting/types/TaxRateCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const TaxRateCompany: core.serialization.Schema< - serializers.accounting.TaxRateCompany.Raw, - Merge.accounting.TaxRateCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace TaxRateCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/TaxRateStatus.ts b/src/serialization/resources/accounting/types/TaxRateStatus.ts deleted file mode 100644 index 2831da1b1..000000000 --- a/src/serialization/resources/accounting/types/TaxRateStatus.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 { Status7D1Enum } from "./Status7D1Enum"; - -export const TaxRateStatus: core.serialization.Schema< - serializers.accounting.TaxRateStatus.Raw, - Merge.accounting.TaxRateStatus -> = core.serialization.undiscriminatedUnion([Status7D1Enum, core.serialization.string()]); - -export declare namespace TaxRateStatus { - export type Raw = Status7D1Enum.Raw | string; -} 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/TrackingCategory.ts b/src/serialization/resources/accounting/types/TrackingCategory.ts deleted file mode 100644 index 44865b69e..000000000 --- a/src/serialization/resources/accounting/types/TrackingCategory.ts +++ /dev/null @@ -1,44 +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 { TrackingCategoryCategoryType } from "./TrackingCategoryCategoryType"; -import { TrackingCategoryCompany } from "./TrackingCategoryCompany"; -import { TrackingCategoryStatus } from "./TrackingCategoryStatus"; - -export const TrackingCategory: core.serialization.ObjectSchema< - serializers.accounting.TrackingCategory.Raw, - Merge.accounting.TrackingCategory -> = 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()), - name: core.serialization.string().optional(), - status: TrackingCategoryStatus.optional(), - categoryType: core.serialization.property("category_type", TrackingCategoryCategoryType.optional()), - parentCategory: core.serialization.property("parent_category", core.serialization.string().optional()), - company: TrackingCategoryCompany.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 TrackingCategory { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - status?: TrackingCategoryStatus.Raw | null; - category_type?: TrackingCategoryCategoryType.Raw | null; - parent_category?: string | null; - company?: TrackingCategoryCompany.Raw | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - } -} diff --git a/src/serialization/resources/accounting/types/TrackingCategoryCategoryType.ts b/src/serialization/resources/accounting/types/TrackingCategoryCategoryType.ts deleted file mode 100644 index d43df8938..000000000 --- a/src/serialization/resources/accounting/types/TrackingCategoryCategoryType.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 { CategoryTypeEnum } from "./CategoryTypeEnum"; - -export const TrackingCategoryCategoryType: core.serialization.Schema< - serializers.accounting.TrackingCategoryCategoryType.Raw, - Merge.accounting.TrackingCategoryCategoryType -> = core.serialization.undiscriminatedUnion([CategoryTypeEnum, core.serialization.string()]); - -export declare namespace TrackingCategoryCategoryType { - export type Raw = CategoryTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/TrackingCategoryCompany.ts b/src/serialization/resources/accounting/types/TrackingCategoryCompany.ts deleted file mode 100644 index 278063968..000000000 --- a/src/serialization/resources/accounting/types/TrackingCategoryCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const TrackingCategoryCompany: core.serialization.Schema< - serializers.accounting.TrackingCategoryCompany.Raw, - Merge.accounting.TrackingCategoryCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace TrackingCategoryCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/TrackingCategoryStatus.ts b/src/serialization/resources/accounting/types/TrackingCategoryStatus.ts deleted file mode 100644 index b98738b75..000000000 --- a/src/serialization/resources/accounting/types/TrackingCategoryStatus.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 { Status7D1Enum } from "./Status7D1Enum"; - -export const TrackingCategoryStatus: core.serialization.Schema< - serializers.accounting.TrackingCategoryStatus.Raw, - Merge.accounting.TrackingCategoryStatus -> = core.serialization.undiscriminatedUnion([Status7D1Enum, core.serialization.string()]); - -export declare namespace TrackingCategoryStatus { - export type Raw = Status7D1Enum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/Transaction.ts b/src/serialization/resources/accounting/types/Transaction.ts deleted file mode 100644 index f1fb2fe4a..000000000 --- a/src/serialization/resources/accounting/types/Transaction.ts +++ /dev/null @@ -1,69 +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 { RemoteData } from "./RemoteData"; -import { TransactionAccount } from "./TransactionAccount"; -import { TransactionAccountingPeriod } from "./TransactionAccountingPeriod"; -import { TransactionContact } from "./TransactionContact"; -import { TransactionCurrency } from "./TransactionCurrency"; -import { TransactionLineItem } from "./TransactionLineItem"; -import { TransactionTrackingCategoriesItem } from "./TransactionTrackingCategoriesItem"; - -export const Transaction: core.serialization.ObjectSchema< - serializers.accounting.Transaction.Raw, - Merge.accounting.Transaction -> = 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()), - transactionType: core.serialization.property("transaction_type", core.serialization.string().optional()), - number: core.serialization.string().optional(), - transactionDate: core.serialization.property("transaction_date", core.serialization.date().optional()), - account: TransactionAccount.optional(), - contact: TransactionContact.optional(), - inclusiveOfTax: core.serialization.property("inclusive_of_tax", core.serialization.boolean().optional()), - 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(), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(TransactionTrackingCategoriesItem.optional()).optional(), - ), - lineItems: core.serialization.property("line_items", core.serialization.list(TransactionLineItem).optional()), - remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), - accountingPeriod: core.serialization.property("accounting_period", TransactionAccountingPeriod.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()), -}); - -export declare namespace Transaction { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - transaction_type?: string | null; - number?: string | null; - transaction_date?: string | null; - account?: TransactionAccount.Raw | null; - contact?: TransactionContact.Raw | null; - inclusive_of_tax?: boolean | null; - total_amount?: string | null; - currency?: TransactionCurrency.Raw | null; - exchange_rate?: string | null; - company?: string | null; - tracking_categories?: (TransactionTrackingCategoriesItem.Raw | null | undefined)[] | null; - line_items?: TransactionLineItem.Raw[] | null; - remote_was_deleted?: boolean | null; - accounting_period?: TransactionAccountingPeriod.Raw | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/TransactionAccount.ts b/src/serialization/resources/accounting/types/TransactionAccount.ts deleted file mode 100644 index 8c83d3ea2..000000000 --- a/src/serialization/resources/accounting/types/TransactionAccount.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 TransactionAccount: core.serialization.Schema< - serializers.accounting.TransactionAccount.Raw, - Merge.accounting.TransactionAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace TransactionAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/accounting/types/TransactionAccountingPeriod.ts b/src/serialization/resources/accounting/types/TransactionAccountingPeriod.ts deleted file mode 100644 index 2bae22f93..000000000 --- a/src/serialization/resources/accounting/types/TransactionAccountingPeriod.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 { AccountingPeriod } from "./AccountingPeriod"; - -export const TransactionAccountingPeriod: core.serialization.Schema< - serializers.accounting.TransactionAccountingPeriod.Raw, - Merge.accounting.TransactionAccountingPeriod -> = core.serialization.undiscriminatedUnion([core.serialization.string(), AccountingPeriod]); - -export declare namespace TransactionAccountingPeriod { - export type Raw = string | AccountingPeriod.Raw; -} diff --git a/src/serialization/resources/accounting/types/TransactionContact.ts b/src/serialization/resources/accounting/types/TransactionContact.ts deleted file mode 100644 index 1dbaa0c21..000000000 --- a/src/serialization/resources/accounting/types/TransactionContact.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 { Contact } from "./Contact"; - -export const TransactionContact: core.serialization.Schema< - serializers.accounting.TransactionContact.Raw, - Merge.accounting.TransactionContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace TransactionContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/TransactionCurrency.ts b/src/serialization/resources/accounting/types/TransactionCurrency.ts deleted file mode 100644 index 5f28b3607..000000000 --- a/src/serialization/resources/accounting/types/TransactionCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const TransactionCurrency: core.serialization.Schema< - serializers.accounting.TransactionCurrency.Raw, - Merge.accounting.TransactionCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace TransactionCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/TransactionCurrencyEnum.ts b/src/serialization/resources/accounting/types/TransactionCurrencyEnum.ts deleted file mode 100644 index fcdda5a15..000000000 --- a/src/serialization/resources/accounting/types/TransactionCurrencyEnum.ts +++ /dev/null @@ -1,627 +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 TransactionCurrencyEnum: core.serialization.Schema< - serializers.accounting.TransactionCurrencyEnum.Raw, - Merge.accounting.TransactionCurrencyEnum -> = core.serialization.enum_([ - "XUA", - "AFN", - "AFA", - "ALL", - "ALK", - "DZD", - "ADP", - "AOA", - "AOK", - "AON", - "AOR", - "ARA", - "ARS", - "ARM", - "ARP", - "ARL", - "AMD", - "AWG", - "AUD", - "ATS", - "AZN", - "AZM", - "BSD", - "BHD", - "BDT", - "BBD", - "BYN", - "BYB", - "BYR", - "BEF", - "BEC", - "BEL", - "BZD", - "BMD", - "BTN", - "BOB", - "BOL", - "BOV", - "BOP", - "BAM", - "BAD", - "BAN", - "BWP", - "BRC", - "BRZ", - "BRE", - "BRR", - "BRN", - "BRB", - "BRL", - "GBP", - "BND", - "BGL", - "BGN", - "BGO", - "BGM", - "BUK", - "BIF", - "XPF", - "KHR", - "CAD", - "CVE", - "KYD", - "XAF", - "CLE", - "CLP", - "CLF", - "CNX", - "CNY", - "CNH", - "COP", - "COU", - "KMF", - "CDF", - "CRC", - "HRD", - "HRK", - "CUC", - "CUP", - "CYP", - "CZK", - "CSK", - "DKK", - "DJF", - "DOP", - "NLG", - "XCD", - "DDM", - "ECS", - "ECV", - "EGP", - "GQE", - "ERN", - "EEK", - "ETB", - "EUR", - "XBA", - "XEU", - "XBB", - "XBC", - "XBD", - "FKP", - "FJD", - "FIM", - "FRF", - "XFO", - "XFU", - "GMD", - "GEK", - "GEL", - "DEM", - "GHS", - "GHC", - "GIP", - "XAU", - "GRD", - "GTQ", - "GWP", - "GNF", - "GNS", - "GYD", - "HTG", - "HNL", - "HKD", - "HUF", - "IMP", - "ISK", - "ISJ", - "INR", - "IDR", - "IRR", - "IQD", - "IEP", - "ILS", - "ILP", - "ILR", - "ITL", - "JMD", - "JPY", - "JOD", - "KZT", - "KES", - "KWD", - "KGS", - "LAK", - "LVL", - "LVR", - "LBP", - "LSL", - "LRD", - "LYD", - "LTL", - "LTT", - "LUL", - "LUC", - "LUF", - "MOP", - "MKD", - "MKN", - "MGA", - "MGF", - "MWK", - "MYR", - "MVR", - "MVP", - "MLF", - "MTL", - "MTP", - "MRU", - "MRO", - "MUR", - "MXV", - "MXN", - "MXP", - "MDC", - "MDL", - "MCF", - "MNT", - "MAD", - "MAF", - "MZE", - "MZN", - "MZM", - "MMK", - "NAD", - "NPR", - "ANG", - "TWD", - "NZD", - "NIO", - "NIC", - "NGN", - "KPW", - "NOK", - "OMR", - "PKR", - "XPD", - "PAB", - "PGK", - "PYG", - "PEI", - "PEN", - "PES", - "PHP", - "XPT", - "PLN", - "PLZ", - "PTE", - "GWE", - "QAR", - "XRE", - "RHD", - "RON", - "ROL", - "RUB", - "RUR", - "RWF", - "SVC", - "WST", - "SAR", - "RSD", - "CSD", - "SCR", - "SLL", - "XAG", - "SGD", - "SKK", - "SIT", - "SBD", - "SOS", - "ZAR", - "ZAL", - "KRH", - "KRW", - "KRO", - "SSP", - "SUR", - "ESP", - "ESA", - "ESB", - "XDR", - "LKR", - "SHP", - "XSU", - "SDD", - "SDG", - "SDP", - "SRD", - "SRG", - "SZL", - "SEK", - "CHF", - "SYP", - "STN", - "STD", - "TVD", - "TJR", - "TJS", - "TZS", - "XTS", - "THB", - "XXX", - "TPE", - "TOP", - "TTD", - "TND", - "TRY", - "TRL", - "TMT", - "TMM", - "USD", - "USN", - "USS", - "UGX", - "UGS", - "UAH", - "UAK", - "AED", - "UYW", - "UYU", - "UYP", - "UYI", - "UZS", - "VUV", - "VES", - "VEB", - "VEF", - "VND", - "VNN", - "CHE", - "CHW", - "XOF", - "YDD", - "YER", - "YUN", - "YUD", - "YUM", - "YUR", - "ZWN", - "ZRN", - "ZRZ", - "ZMW", - "ZMK", - "ZWD", - "ZWR", - "ZWL", -]); - -export declare namespace TransactionCurrencyEnum { - export type Raw = - | "XUA" - | "AFN" - | "AFA" - | "ALL" - | "ALK" - | "DZD" - | "ADP" - | "AOA" - | "AOK" - | "AON" - | "AOR" - | "ARA" - | "ARS" - | "ARM" - | "ARP" - | "ARL" - | "AMD" - | "AWG" - | "AUD" - | "ATS" - | "AZN" - | "AZM" - | "BSD" - | "BHD" - | "BDT" - | "BBD" - | "BYN" - | "BYB" - | "BYR" - | "BEF" - | "BEC" - | "BEL" - | "BZD" - | "BMD" - | "BTN" - | "BOB" - | "BOL" - | "BOV" - | "BOP" - | "BAM" - | "BAD" - | "BAN" - | "BWP" - | "BRC" - | "BRZ" - | "BRE" - | "BRR" - | "BRN" - | "BRB" - | "BRL" - | "GBP" - | "BND" - | "BGL" - | "BGN" - | "BGO" - | "BGM" - | "BUK" - | "BIF" - | "XPF" - | "KHR" - | "CAD" - | "CVE" - | "KYD" - | "XAF" - | "CLE" - | "CLP" - | "CLF" - | "CNX" - | "CNY" - | "CNH" - | "COP" - | "COU" - | "KMF" - | "CDF" - | "CRC" - | "HRD" - | "HRK" - | "CUC" - | "CUP" - | "CYP" - | "CZK" - | "CSK" - | "DKK" - | "DJF" - | "DOP" - | "NLG" - | "XCD" - | "DDM" - | "ECS" - | "ECV" - | "EGP" - | "GQE" - | "ERN" - | "EEK" - | "ETB" - | "EUR" - | "XBA" - | "XEU" - | "XBB" - | "XBC" - | "XBD" - | "FKP" - | "FJD" - | "FIM" - | "FRF" - | "XFO" - | "XFU" - | "GMD" - | "GEK" - | "GEL" - | "DEM" - | "GHS" - | "GHC" - | "GIP" - | "XAU" - | "GRD" - | "GTQ" - | "GWP" - | "GNF" - | "GNS" - | "GYD" - | "HTG" - | "HNL" - | "HKD" - | "HUF" - | "IMP" - | "ISK" - | "ISJ" - | "INR" - | "IDR" - | "IRR" - | "IQD" - | "IEP" - | "ILS" - | "ILP" - | "ILR" - | "ITL" - | "JMD" - | "JPY" - | "JOD" - | "KZT" - | "KES" - | "KWD" - | "KGS" - | "LAK" - | "LVL" - | "LVR" - | "LBP" - | "LSL" - | "LRD" - | "LYD" - | "LTL" - | "LTT" - | "LUL" - | "LUC" - | "LUF" - | "MOP" - | "MKD" - | "MKN" - | "MGA" - | "MGF" - | "MWK" - | "MYR" - | "MVR" - | "MVP" - | "MLF" - | "MTL" - | "MTP" - | "MRU" - | "MRO" - | "MUR" - | "MXV" - | "MXN" - | "MXP" - | "MDC" - | "MDL" - | "MCF" - | "MNT" - | "MAD" - | "MAF" - | "MZE" - | "MZN" - | "MZM" - | "MMK" - | "NAD" - | "NPR" - | "ANG" - | "TWD" - | "NZD" - | "NIO" - | "NIC" - | "NGN" - | "KPW" - | "NOK" - | "OMR" - | "PKR" - | "XPD" - | "PAB" - | "PGK" - | "PYG" - | "PEI" - | "PEN" - | "PES" - | "PHP" - | "XPT" - | "PLN" - | "PLZ" - | "PTE" - | "GWE" - | "QAR" - | "XRE" - | "RHD" - | "RON" - | "ROL" - | "RUB" - | "RUR" - | "RWF" - | "SVC" - | "WST" - | "SAR" - | "RSD" - | "CSD" - | "SCR" - | "SLL" - | "XAG" - | "SGD" - | "SKK" - | "SIT" - | "SBD" - | "SOS" - | "ZAR" - | "ZAL" - | "KRH" - | "KRW" - | "KRO" - | "SSP" - | "SUR" - | "ESP" - | "ESA" - | "ESB" - | "XDR" - | "LKR" - | "SHP" - | "XSU" - | "SDD" - | "SDG" - | "SDP" - | "SRD" - | "SRG" - | "SZL" - | "SEK" - | "CHF" - | "SYP" - | "STN" - | "STD" - | "TVD" - | "TJR" - | "TJS" - | "TZS" - | "XTS" - | "THB" - | "XXX" - | "TPE" - | "TOP" - | "TTD" - | "TND" - | "TRY" - | "TRL" - | "TMT" - | "TMM" - | "USD" - | "USN" - | "USS" - | "UGX" - | "UGS" - | "UAH" - | "UAK" - | "AED" - | "UYW" - | "UYU" - | "UYP" - | "UYI" - | "UZS" - | "VUV" - | "VES" - | "VEB" - | "VEF" - | "VND" - | "VNN" - | "CHE" - | "CHW" - | "XOF" - | "YDD" - | "YER" - | "YUN" - | "YUD" - | "YUM" - | "YUR" - | "ZWN" - | "ZRN" - | "ZRZ" - | "ZMW" - | "ZMK" - | "ZWD" - | "ZWR" - | "ZWL"; -} diff --git a/src/serialization/resources/accounting/types/TransactionLineItem.ts b/src/serialization/resources/accounting/types/TransactionLineItem.ts deleted file mode 100644 index 5250d5362..000000000 --- a/src/serialization/resources/accounting/types/TransactionLineItem.ts +++ /dev/null @@ -1,55 +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 { TransactionLineItemCurrency } from "./TransactionLineItemCurrency"; -import { TransactionLineItemItem } from "./TransactionLineItemItem"; - -export const TransactionLineItem: core.serialization.ObjectSchema< - serializers.accounting.TransactionLineItem.Raw, - Merge.accounting.TransactionLineItem -> = 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()), - memo: core.serialization.string().optional(), - unitPrice: core.serialization.property("unit_price", core.serialization.string().optional()), - quantity: core.serialization.string().optional(), - item: TransactionLineItemItem.optional(), - account: core.serialization.string().optional(), - trackingCategory: core.serialization.property("tracking_category", core.serialization.string().optional()), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(core.serialization.string().optional()).optional(), - ), - totalLineAmount: core.serialization.property("total_line_amount", core.serialization.string().optional()), - taxRate: core.serialization.property("tax_rate", core.serialization.string().optional()), - currency: TransactionLineItemCurrency.optional(), - exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), - company: core.serialization.string().optional(), - remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), -}); - -export declare namespace TransactionLineItem { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - memo?: string | null; - unit_price?: string | null; - quantity?: string | null; - item?: TransactionLineItemItem.Raw | null; - account?: string | null; - tracking_category?: string | null; - tracking_categories?: (string | null | undefined)[] | null; - total_line_amount?: string | null; - tax_rate?: string | null; - currency?: TransactionLineItemCurrency.Raw | null; - exchange_rate?: string | null; - company?: string | null; - remote_was_deleted?: boolean | null; - } -} diff --git a/src/serialization/resources/accounting/types/TransactionLineItemCurrency.ts b/src/serialization/resources/accounting/types/TransactionLineItemCurrency.ts deleted file mode 100644 index 45dd79d60..000000000 --- a/src/serialization/resources/accounting/types/TransactionLineItemCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const TransactionLineItemCurrency: core.serialization.Schema< - serializers.accounting.TransactionLineItemCurrency.Raw, - Merge.accounting.TransactionLineItemCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace TransactionLineItemCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/TransactionLineItemItem.ts b/src/serialization/resources/accounting/types/TransactionLineItemItem.ts deleted file mode 100644 index b4454b131..000000000 --- a/src/serialization/resources/accounting/types/TransactionLineItemItem.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 { Item } from "./Item"; - -export const TransactionLineItemItem: core.serialization.Schema< - serializers.accounting.TransactionLineItemItem.Raw, - Merge.accounting.TransactionLineItemItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Item]); - -export declare namespace TransactionLineItemItem { - export type Raw = string | Item.Raw; -} diff --git a/src/serialization/resources/accounting/types/TransactionTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/TransactionTrackingCategoriesItem.ts deleted file mode 100644 index a6f595008..000000000 --- a/src/serialization/resources/accounting/types/TransactionTrackingCategoriesItem.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 { TrackingCategory } from "./TrackingCategory"; - -export const TransactionTrackingCategoriesItem: core.serialization.Schema< - serializers.accounting.TransactionTrackingCategoriesItem.Raw, - Merge.accounting.TransactionTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace TransactionTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/Type2BbEnum.ts b/src/serialization/resources/accounting/types/Type2BbEnum.ts deleted file mode 100644 index 4f412a28f..000000000 --- a/src/serialization/resources/accounting/types/Type2BbEnum.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 Type2BbEnum: core.serialization.Schema< - serializers.accounting.Type2BbEnum.Raw, - Merge.accounting.Type2BbEnum -> = core.serialization.enum_(["INVENTORY", "NON_INVENTORY", "SERVICE", "UNKNOWN"]); - -export declare namespace Type2BbEnum { - export type Raw = "INVENTORY" | "NON_INVENTORY" | "SERVICE" | "UNKNOWN"; -} diff --git a/src/serialization/resources/accounting/types/UnderlyingTransactionTypeEnum.ts b/src/serialization/resources/accounting/types/UnderlyingTransactionTypeEnum.ts deleted file mode 100644 index dd29986a2..000000000 --- a/src/serialization/resources/accounting/types/UnderlyingTransactionTypeEnum.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 UnderlyingTransactionTypeEnum: core.serialization.Schema< - serializers.accounting.UnderlyingTransactionTypeEnum.Raw, - Merge.accounting.UnderlyingTransactionTypeEnum -> = core.serialization.enum_([ - "INVOICE", - "EXPENSE", - "TRANSACTION", - "JOURNAL_ENTRY", - "PAYMENT", - "VENDOR_CREDIT", - "CREDIT_NOTE", -]); - -export declare namespace UnderlyingTransactionTypeEnum { - export type Raw = - | "INVOICE" - | "EXPENSE" - | "TRANSACTION" - | "JOURNAL_ENTRY" - | "PAYMENT" - | "VENDOR_CREDIT" - | "CREDIT_NOTE"; -} diff --git a/src/serialization/resources/accounting/types/ValidationProblemSource.ts b/src/serialization/resources/accounting/types/ValidationProblemSource.ts deleted file mode 100644 index 022946b72..000000000 --- a/src/serialization/resources/accounting/types/ValidationProblemSource.ts +++ /dev/null @@ -1,18 +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 ValidationProblemSource: core.serialization.ObjectSchema< - serializers.accounting.ValidationProblemSource.Raw, - Merge.accounting.ValidationProblemSource -> = core.serialization.object({ - pointer: core.serialization.string(), -}); - -export declare namespace ValidationProblemSource { - export interface Raw { - pointer: string; - } -} diff --git a/src/serialization/resources/accounting/types/VendorCredit.ts b/src/serialization/resources/accounting/types/VendorCredit.ts deleted file mode 100644 index 59c58a95d..000000000 --- a/src/serialization/resources/accounting/types/VendorCredit.ts +++ /dev/null @@ -1,72 +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 * as serializers from "../../../index"; -import { RemoteData } from "./RemoteData"; -import { VendorCreditAccountingPeriod } from "./VendorCreditAccountingPeriod"; -import { VendorCreditCompany } from "./VendorCreditCompany"; -import { VendorCreditCurrency } from "./VendorCreditCurrency"; -import { VendorCreditLine } from "./VendorCreditLine"; -import { VendorCreditTrackingCategoriesItem } from "./VendorCreditTrackingCategoriesItem"; -import { VendorCreditVendor } from "./VendorCreditVendor"; - -export const VendorCredit: core.serialization.ObjectSchema< - serializers.accounting.VendorCredit.Raw, - Merge.accounting.VendorCredit -> = 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()), - number: core.serialization.string().optional(), - transactionDate: core.serialization.property("transaction_date", core.serialization.date().optional()), - vendor: VendorCreditVendor.optional(), - totalAmount: core.serialization.property("total_amount", core.serialization.number().optional()), - currency: VendorCreditCurrency.optional(), - 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(), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(VendorCreditTrackingCategoriesItem.optional()).optional(), - ), - appliedToLines: core.serialization.property( - "applied_to_lines", - core.serialization - .list(core.serialization.lazyObject(() => serializers.accounting.VendorCreditApplyLineForVendorCredit)) - .optional(), - ), - remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), - accountingPeriod: core.serialization.property("accounting_period", VendorCreditAccountingPeriod.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()), -}); - -export declare namespace VendorCredit { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - number?: string | null; - transaction_date?: string | null; - vendor?: VendorCreditVendor.Raw | null; - total_amount?: number | null; - currency?: VendorCreditCurrency.Raw | null; - exchange_rate?: string | null; - inclusive_of_tax?: boolean | null; - company?: VendorCreditCompany.Raw | null; - lines?: VendorCreditLine.Raw[] | null; - tracking_categories?: (VendorCreditTrackingCategoriesItem.Raw | null | undefined)[] | null; - applied_to_lines?: serializers.accounting.VendorCreditApplyLineForVendorCredit.Raw[] | null; - remote_was_deleted?: boolean | null; - accounting_period?: VendorCreditAccountingPeriod.Raw | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/VendorCreditAccountingPeriod.ts b/src/serialization/resources/accounting/types/VendorCreditAccountingPeriod.ts deleted file mode 100644 index 631bb84d6..000000000 --- a/src/serialization/resources/accounting/types/VendorCreditAccountingPeriod.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 { AccountingPeriod } from "./AccountingPeriod"; - -export const VendorCreditAccountingPeriod: core.serialization.Schema< - serializers.accounting.VendorCreditAccountingPeriod.Raw, - Merge.accounting.VendorCreditAccountingPeriod -> = core.serialization.undiscriminatedUnion([core.serialization.string(), AccountingPeriod]); - -export declare namespace VendorCreditAccountingPeriod { - export type Raw = string | AccountingPeriod.Raw; -} diff --git a/src/serialization/resources/accounting/types/VendorCreditApplyLineForInvoice.ts b/src/serialization/resources/accounting/types/VendorCreditApplyLineForInvoice.ts deleted file mode 100644 index 2f7edc375..000000000 --- a/src/serialization/resources/accounting/types/VendorCreditApplyLineForInvoice.ts +++ /dev/null @@ -1,33 +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 * as serializers from "../../../index"; - -export const VendorCreditApplyLineForInvoice: core.serialization.ObjectSchema< - serializers.accounting.VendorCreditApplyLineForInvoice.Raw, - Merge.accounting.VendorCreditApplyLineForInvoice -> = core.serialization.object({ - 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()), - vendorCredit: core.serialization.property( - "vendor_credit", - core.serialization.lazy(() => serializers.accounting.VendorCreditApplyLineForInvoiceVendorCredit).optional(), - ), - appliedDate: core.serialization.property("applied_date", core.serialization.date().optional()), - appliedAmount: core.serialization.property("applied_amount", core.serialization.string().optional()), - remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), -}); - -export declare namespace VendorCreditApplyLineForInvoice { - export interface Raw { - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - vendor_credit?: serializers.accounting.VendorCreditApplyLineForInvoiceVendorCredit.Raw | null; - applied_date?: string | null; - applied_amount?: string | null; - remote_was_deleted?: boolean | null; - } -} diff --git a/src/serialization/resources/accounting/types/VendorCreditApplyLineForInvoiceVendorCredit.ts b/src/serialization/resources/accounting/types/VendorCreditApplyLineForInvoiceVendorCredit.ts deleted file mode 100644 index f14cc921c..000000000 --- a/src/serialization/resources/accounting/types/VendorCreditApplyLineForInvoiceVendorCredit.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const VendorCreditApplyLineForInvoiceVendorCredit: core.serialization.Schema< - serializers.accounting.VendorCreditApplyLineForInvoiceVendorCredit.Raw, - Merge.accounting.VendorCreditApplyLineForInvoiceVendorCredit -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.accounting.VendorCredit), -]); - -export declare namespace VendorCreditApplyLineForInvoiceVendorCredit { - export type Raw = string | serializers.accounting.VendorCredit.Raw; -} diff --git a/src/serialization/resources/accounting/types/VendorCreditApplyLineForVendorCredit.ts b/src/serialization/resources/accounting/types/VendorCreditApplyLineForVendorCredit.ts deleted file mode 100644 index dad71afe0..000000000 --- a/src/serialization/resources/accounting/types/VendorCreditApplyLineForVendorCredit.ts +++ /dev/null @@ -1,32 +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 * as serializers from "../../../index"; - -export const VendorCreditApplyLineForVendorCredit: core.serialization.ObjectSchema< - serializers.accounting.VendorCreditApplyLineForVendorCredit.Raw, - Merge.accounting.VendorCreditApplyLineForVendorCredit -> = core.serialization.object({ - 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()), - invoice: core.serialization - .lazy(() => serializers.accounting.VendorCreditApplyLineForVendorCreditInvoice) - .optional(), - appliedDate: core.serialization.property("applied_date", core.serialization.date().optional()), - appliedAmount: core.serialization.property("applied_amount", core.serialization.string().optional()), - remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), -}); - -export declare namespace VendorCreditApplyLineForVendorCredit { - export interface Raw { - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - invoice?: serializers.accounting.VendorCreditApplyLineForVendorCreditInvoice.Raw | null; - applied_date?: string | null; - applied_amount?: string | null; - remote_was_deleted?: boolean | null; - } -} diff --git a/src/serialization/resources/accounting/types/VendorCreditApplyLineForVendorCreditInvoice.ts b/src/serialization/resources/accounting/types/VendorCreditApplyLineForVendorCreditInvoice.ts deleted file mode 100644 index b624dd470..000000000 --- a/src/serialization/resources/accounting/types/VendorCreditApplyLineForVendorCreditInvoice.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const VendorCreditApplyLineForVendorCreditInvoice: core.serialization.Schema< - serializers.accounting.VendorCreditApplyLineForVendorCreditInvoice.Raw, - Merge.accounting.VendorCreditApplyLineForVendorCreditInvoice -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.accounting.Invoice), -]); - -export declare namespace VendorCreditApplyLineForVendorCreditInvoice { - export type Raw = string | serializers.accounting.Invoice.Raw; -} diff --git a/src/serialization/resources/accounting/types/VendorCreditApplyLineForVendorCreditRequest.ts b/src/serialization/resources/accounting/types/VendorCreditApplyLineForVendorCreditRequest.ts deleted file mode 100644 index 2db45978e..000000000 --- a/src/serialization/resources/accounting/types/VendorCreditApplyLineForVendorCreditRequest.ts +++ /dev/null @@ -1,35 +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 { VendorCreditApplyLineForVendorCreditRequestInvoice } from "./VendorCreditApplyLineForVendorCreditRequestInvoice"; - -export const VendorCreditApplyLineForVendorCreditRequest: core.serialization.ObjectSchema< - serializers.accounting.VendorCreditApplyLineForVendorCreditRequest.Raw, - Merge.accounting.VendorCreditApplyLineForVendorCreditRequest -> = core.serialization.object({ - remoteId: core.serialization.property("remote_id", core.serialization.string().optional()), - invoice: VendorCreditApplyLineForVendorCreditRequestInvoice.optional(), - appliedDate: core.serialization.property("applied_date", core.serialization.date().optional()), - appliedAmount: core.serialization.property("applied_amount", core.serialization.string().optional()), - integrationParams: core.serialization.property( - "integration_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - linkedAccountParams: core.serialization.property( - "linked_account_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), -}); - -export declare namespace VendorCreditApplyLineForVendorCreditRequest { - export interface Raw { - remote_id?: string | null; - invoice?: VendorCreditApplyLineForVendorCreditRequestInvoice.Raw | null; - applied_date?: string | null; - applied_amount?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/accounting/types/VendorCreditApplyLineForVendorCreditRequestInvoice.ts b/src/serialization/resources/accounting/types/VendorCreditApplyLineForVendorCreditRequestInvoice.ts deleted file mode 100644 index 4ed67b028..000000000 --- a/src/serialization/resources/accounting/types/VendorCreditApplyLineForVendorCreditRequestInvoice.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const VendorCreditApplyLineForVendorCreditRequestInvoice: core.serialization.Schema< - serializers.accounting.VendorCreditApplyLineForVendorCreditRequestInvoice.Raw, - Merge.accounting.VendorCreditApplyLineForVendorCreditRequestInvoice -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.accounting.Invoice), -]); - -export declare namespace VendorCreditApplyLineForVendorCreditRequestInvoice { - export type Raw = string | serializers.accounting.Invoice.Raw; -} diff --git a/src/serialization/resources/accounting/types/VendorCreditCompany.ts b/src/serialization/resources/accounting/types/VendorCreditCompany.ts deleted file mode 100644 index 42e46e293..000000000 --- a/src/serialization/resources/accounting/types/VendorCreditCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const VendorCreditCompany: core.serialization.Schema< - serializers.accounting.VendorCreditCompany.Raw, - Merge.accounting.VendorCreditCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace VendorCreditCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/VendorCreditCurrency.ts b/src/serialization/resources/accounting/types/VendorCreditCurrency.ts deleted file mode 100644 index 73f0acb71..000000000 --- a/src/serialization/resources/accounting/types/VendorCreditCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const VendorCreditCurrency: core.serialization.Schema< - serializers.accounting.VendorCreditCurrency.Raw, - Merge.accounting.VendorCreditCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace VendorCreditCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/VendorCreditLine.ts b/src/serialization/resources/accounting/types/VendorCreditLine.ts deleted file mode 100644 index c0ff49e0d..000000000 --- a/src/serialization/resources/accounting/types/VendorCreditLine.ts +++ /dev/null @@ -1,52 +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 { VendorCreditLineAccount } from "./VendorCreditLineAccount"; -import { VendorCreditLineContact } from "./VendorCreditLineContact"; -import { VendorCreditLineProject } from "./VendorCreditLineProject"; - -export const VendorCreditLine: core.serialization.ObjectSchema< - serializers.accounting.VendorCreditLine.Raw, - Merge.accounting.VendorCreditLine -> = 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()), - netAmount: core.serialization.property("net_amount", core.serialization.number().optional()), - trackingCategory: core.serialization.property("tracking_category", core.serialization.string().optional()), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(core.serialization.string().optional()).optional(), - ), - description: core.serialization.string().optional(), - account: VendorCreditLineAccount.optional(), - company: core.serialization.string().optional(), - project: VendorCreditLineProject.optional(), - contact: VendorCreditLineContact.optional(), - taxRate: core.serialization.property("tax_rate", core.serialization.string().optional()), - exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), - remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), -}); - -export declare namespace VendorCreditLine { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - net_amount?: number | null; - tracking_category?: string | null; - tracking_categories?: (string | null | undefined)[] | null; - description?: string | null; - account?: VendorCreditLineAccount.Raw | null; - company?: string | null; - project?: VendorCreditLineProject.Raw | null; - contact?: VendorCreditLineContact.Raw | null; - tax_rate?: string | null; - exchange_rate?: string | null; - remote_was_deleted?: boolean | null; - } -} diff --git a/src/serialization/resources/accounting/types/VendorCreditLineAccount.ts b/src/serialization/resources/accounting/types/VendorCreditLineAccount.ts deleted file mode 100644 index 6864bb24b..000000000 --- a/src/serialization/resources/accounting/types/VendorCreditLineAccount.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 VendorCreditLineAccount: core.serialization.Schema< - serializers.accounting.VendorCreditLineAccount.Raw, - Merge.accounting.VendorCreditLineAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace VendorCreditLineAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/accounting/types/VendorCreditLineContact.ts b/src/serialization/resources/accounting/types/VendorCreditLineContact.ts deleted file mode 100644 index cfc5defee..000000000 --- a/src/serialization/resources/accounting/types/VendorCreditLineContact.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 { Contact } from "./Contact"; - -export const VendorCreditLineContact: core.serialization.Schema< - serializers.accounting.VendorCreditLineContact.Raw, - Merge.accounting.VendorCreditLineContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace VendorCreditLineContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/VendorCreditLineProject.ts b/src/serialization/resources/accounting/types/VendorCreditLineProject.ts deleted file mode 100644 index a4b4fbf6e..000000000 --- a/src/serialization/resources/accounting/types/VendorCreditLineProject.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 { Project } from "./Project"; - -export const VendorCreditLineProject: core.serialization.Schema< - serializers.accounting.VendorCreditLineProject.Raw, - Merge.accounting.VendorCreditLineProject -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Project]); - -export declare namespace VendorCreditLineProject { - export type Raw = string | Project.Raw; -} diff --git a/src/serialization/resources/accounting/types/VendorCreditLineRequest.ts b/src/serialization/resources/accounting/types/VendorCreditLineRequest.ts deleted file mode 100644 index 437a0ee5a..000000000 --- a/src/serialization/resources/accounting/types/VendorCreditLineRequest.ts +++ /dev/null @@ -1,54 +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 { VendorCreditLineRequestAccount } from "./VendorCreditLineRequestAccount"; -import { VendorCreditLineRequestContact } from "./VendorCreditLineRequestContact"; -import { VendorCreditLineRequestProject } from "./VendorCreditLineRequestProject"; - -export const VendorCreditLineRequest: core.serialization.ObjectSchema< - serializers.accounting.VendorCreditLineRequest.Raw, - Merge.accounting.VendorCreditLineRequest -> = core.serialization.object({ - remoteId: core.serialization.property("remote_id", core.serialization.string().optional()), - netAmount: core.serialization.property("net_amount", core.serialization.number().optional()), - trackingCategory: core.serialization.property("tracking_category", core.serialization.string().optional()), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(core.serialization.string().optional()).optional(), - ), - description: core.serialization.string().optional(), - account: VendorCreditLineRequestAccount.optional(), - company: core.serialization.string().optional(), - project: VendorCreditLineRequestProject.optional(), - contact: VendorCreditLineRequestContact.optional(), - taxRate: core.serialization.property("tax_rate", core.serialization.string().optional()), - exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), - integrationParams: core.serialization.property( - "integration_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - linkedAccountParams: core.serialization.property( - "linked_account_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), -}); - -export declare namespace VendorCreditLineRequest { - export interface Raw { - remote_id?: string | null; - net_amount?: number | null; - tracking_category?: string | null; - tracking_categories?: (string | null | undefined)[] | null; - description?: string | null; - account?: VendorCreditLineRequestAccount.Raw | null; - company?: string | null; - project?: VendorCreditLineRequestProject.Raw | null; - contact?: VendorCreditLineRequestContact.Raw | null; - tax_rate?: string | null; - exchange_rate?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/accounting/types/VendorCreditLineRequestAccount.ts b/src/serialization/resources/accounting/types/VendorCreditLineRequestAccount.ts deleted file mode 100644 index 57b939bdb..000000000 --- a/src/serialization/resources/accounting/types/VendorCreditLineRequestAccount.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 VendorCreditLineRequestAccount: core.serialization.Schema< - serializers.accounting.VendorCreditLineRequestAccount.Raw, - Merge.accounting.VendorCreditLineRequestAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace VendorCreditLineRequestAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/accounting/types/VendorCreditLineRequestContact.ts b/src/serialization/resources/accounting/types/VendorCreditLineRequestContact.ts deleted file mode 100644 index d368a2a7c..000000000 --- a/src/serialization/resources/accounting/types/VendorCreditLineRequestContact.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 { Contact } from "./Contact"; - -export const VendorCreditLineRequestContact: core.serialization.Schema< - serializers.accounting.VendorCreditLineRequestContact.Raw, - Merge.accounting.VendorCreditLineRequestContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace VendorCreditLineRequestContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/VendorCreditLineRequestProject.ts b/src/serialization/resources/accounting/types/VendorCreditLineRequestProject.ts deleted file mode 100644 index e464398ba..000000000 --- a/src/serialization/resources/accounting/types/VendorCreditLineRequestProject.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 { Project } from "./Project"; - -export const VendorCreditLineRequestProject: core.serialization.Schema< - serializers.accounting.VendorCreditLineRequestProject.Raw, - Merge.accounting.VendorCreditLineRequestProject -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Project]); - -export declare namespace VendorCreditLineRequestProject { - export type Raw = string | Project.Raw; -} diff --git a/src/serialization/resources/accounting/types/VendorCreditRequest.ts b/src/serialization/resources/accounting/types/VendorCreditRequest.ts deleted file mode 100644 index e6bfbd45a..000000000 --- a/src/serialization/resources/accounting/types/VendorCreditRequest.ts +++ /dev/null @@ -1,60 +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 { VendorCreditApplyLineForVendorCreditRequest } from "./VendorCreditApplyLineForVendorCreditRequest"; -import { VendorCreditRequestAccountingPeriod } from "./VendorCreditRequestAccountingPeriod"; -import { VendorCreditRequestCompany } from "./VendorCreditRequestCompany"; -import { VendorCreditRequestCurrency } from "./VendorCreditRequestCurrency"; -import { VendorCreditRequestTrackingCategoriesItem } from "./VendorCreditRequestTrackingCategoriesItem"; -import { VendorCreditRequestVendor } from "./VendorCreditRequestVendor"; - -export const VendorCreditRequest: core.serialization.ObjectSchema< - serializers.accounting.VendorCreditRequest.Raw, - Merge.accounting.VendorCreditRequest -> = core.serialization.object({ - number: core.serialization.string().optional(), - transactionDate: core.serialization.property("transaction_date", core.serialization.date().optional()), - vendor: VendorCreditRequestVendor.optional(), - totalAmount: core.serialization.property("total_amount", core.serialization.number().optional()), - currency: VendorCreditRequestCurrency.optional(), - exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), - inclusiveOfTax: core.serialization.property("inclusive_of_tax", core.serialization.boolean().optional()), - company: VendorCreditRequestCompany.optional(), - trackingCategories: core.serialization.property( - "tracking_categories", - core.serialization.list(VendorCreditRequestTrackingCategoriesItem.optional()).optional(), - ), - appliedToLines: core.serialization.property( - "applied_to_lines", - core.serialization.list(VendorCreditApplyLineForVendorCreditRequest).optional(), - ), - accountingPeriod: core.serialization.property("accounting_period", VendorCreditRequestAccountingPeriod.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 VendorCreditRequest { - export interface Raw { - number?: string | null; - transaction_date?: string | null; - vendor?: VendorCreditRequestVendor.Raw | null; - total_amount?: number | null; - currency?: VendorCreditRequestCurrency.Raw | null; - exchange_rate?: string | null; - inclusive_of_tax?: boolean | null; - company?: VendorCreditRequestCompany.Raw | null; - tracking_categories?: (VendorCreditRequestTrackingCategoriesItem.Raw | null | undefined)[] | null; - applied_to_lines?: VendorCreditApplyLineForVendorCreditRequest.Raw[] | null; - accounting_period?: VendorCreditRequestAccountingPeriod.Raw | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/accounting/types/VendorCreditRequestAccountingPeriod.ts b/src/serialization/resources/accounting/types/VendorCreditRequestAccountingPeriod.ts deleted file mode 100644 index 8582f76a2..000000000 --- a/src/serialization/resources/accounting/types/VendorCreditRequestAccountingPeriod.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 { AccountingPeriod } from "./AccountingPeriod"; - -export const VendorCreditRequestAccountingPeriod: core.serialization.Schema< - serializers.accounting.VendorCreditRequestAccountingPeriod.Raw, - Merge.accounting.VendorCreditRequestAccountingPeriod -> = core.serialization.undiscriminatedUnion([core.serialization.string(), AccountingPeriod]); - -export declare namespace VendorCreditRequestAccountingPeriod { - export type Raw = string | AccountingPeriod.Raw; -} diff --git a/src/serialization/resources/accounting/types/VendorCreditRequestCompany.ts b/src/serialization/resources/accounting/types/VendorCreditRequestCompany.ts deleted file mode 100644 index e03fe58a7..000000000 --- a/src/serialization/resources/accounting/types/VendorCreditRequestCompany.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 { CompanyInfo } from "./CompanyInfo"; - -export const VendorCreditRequestCompany: core.serialization.Schema< - serializers.accounting.VendorCreditRequestCompany.Raw, - Merge.accounting.VendorCreditRequestCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); - -export declare namespace VendorCreditRequestCompany { - export type Raw = string | CompanyInfo.Raw; -} diff --git a/src/serialization/resources/accounting/types/VendorCreditRequestCurrency.ts b/src/serialization/resources/accounting/types/VendorCreditRequestCurrency.ts deleted file mode 100644 index 72a8a65eb..000000000 --- a/src/serialization/resources/accounting/types/VendorCreditRequestCurrency.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 { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; - -export const VendorCreditRequestCurrency: core.serialization.Schema< - serializers.accounting.VendorCreditRequestCurrency.Raw, - Merge.accounting.VendorCreditRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); - -export declare namespace VendorCreditRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/VendorCreditRequestTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/VendorCreditRequestTrackingCategoriesItem.ts deleted file mode 100644 index d85225fc1..000000000 --- a/src/serialization/resources/accounting/types/VendorCreditRequestTrackingCategoriesItem.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 { TrackingCategory } from "./TrackingCategory"; - -export const VendorCreditRequestTrackingCategoriesItem: core.serialization.Schema< - serializers.accounting.VendorCreditRequestTrackingCategoriesItem.Raw, - Merge.accounting.VendorCreditRequestTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace VendorCreditRequestTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/VendorCreditRequestVendor.ts b/src/serialization/resources/accounting/types/VendorCreditRequestVendor.ts deleted file mode 100644 index a43c54616..000000000 --- a/src/serialization/resources/accounting/types/VendorCreditRequestVendor.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 { Contact } from "./Contact"; - -export const VendorCreditRequestVendor: core.serialization.Schema< - serializers.accounting.VendorCreditRequestVendor.Raw, - Merge.accounting.VendorCreditRequestVendor -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace VendorCreditRequestVendor { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/VendorCreditResponse.ts b/src/serialization/resources/accounting/types/VendorCreditResponse.ts deleted file mode 100644 index ffc99c20c..000000000 --- a/src/serialization/resources/accounting/types/VendorCreditResponse.ts +++ /dev/null @@ -1,27 +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 * as serializers from "../../../index"; -import { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const VendorCreditResponse: core.serialization.ObjectSchema< - serializers.accounting.VendorCreditResponse.Raw, - Merge.accounting.VendorCreditResponse -> = core.serialization.object({ - model: core.serialization.lazyObject(() => serializers.accounting.VendorCredit), - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace VendorCreditResponse { - export interface Raw { - model: serializers.accounting.VendorCredit.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/VendorCreditTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/VendorCreditTrackingCategoriesItem.ts deleted file mode 100644 index a8367a2d8..000000000 --- a/src/serialization/resources/accounting/types/VendorCreditTrackingCategoriesItem.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 { TrackingCategory } from "./TrackingCategory"; - -export const VendorCreditTrackingCategoriesItem: core.serialization.Schema< - serializers.accounting.VendorCreditTrackingCategoriesItem.Raw, - Merge.accounting.VendorCreditTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); - -export declare namespace VendorCreditTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; -} diff --git a/src/serialization/resources/accounting/types/VendorCreditVendor.ts b/src/serialization/resources/accounting/types/VendorCreditVendor.ts deleted file mode 100644 index 3f48678bd..000000000 --- a/src/serialization/resources/accounting/types/VendorCreditVendor.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 { Contact } from "./Contact"; - -export const VendorCreditVendor: core.serialization.Schema< - serializers.accounting.VendorCreditVendor.Raw, - Merge.accounting.VendorCreditVendor -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace VendorCreditVendor { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/accounting/types/WarningValidationProblem.ts b/src/serialization/resources/accounting/types/WarningValidationProblem.ts deleted file mode 100644 index a30805753..000000000 --- a/src/serialization/resources/accounting/types/WarningValidationProblem.ts +++ /dev/null @@ -1,25 +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 { ValidationProblemSource } from "./ValidationProblemSource"; - -export const WarningValidationProblem: core.serialization.ObjectSchema< - serializers.accounting.WarningValidationProblem.Raw, - Merge.accounting.WarningValidationProblem -> = core.serialization.object({ - source: ValidationProblemSource.optional(), - title: core.serialization.string(), - detail: core.serialization.string(), - problemType: core.serialization.property("problem_type", core.serialization.string()), -}); - -export declare namespace WarningValidationProblem { - export interface Raw { - source?: ValidationProblemSource.Raw | null; - title: string; - detail: string; - problem_type: string; - } -} diff --git a/src/serialization/resources/accounting/types/WebhookReceiver.ts b/src/serialization/resources/accounting/types/WebhookReceiver.ts deleted file mode 100644 index b5dbb6091..000000000 --- a/src/serialization/resources/accounting/types/WebhookReceiver.ts +++ /dev/null @@ -1,22 +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 WebhookReceiver: core.serialization.ObjectSchema< - serializers.accounting.WebhookReceiver.Raw, - Merge.accounting.WebhookReceiver -> = core.serialization.object({ - event: core.serialization.string(), - isActive: core.serialization.property("is_active", core.serialization.boolean()), - key: core.serialization.string().optional(), -}); - -export declare namespace WebhookReceiver { - export interface Raw { - event: string; - is_active: boolean; - key?: string | null; - } -} diff --git a/src/serialization/resources/accounting/types/index.ts b/src/serialization/resources/accounting/types/index.ts deleted file mode 100644 index 22194d0a9..000000000 --- a/src/serialization/resources/accounting/types/index.ts +++ /dev/null @@ -1,515 +0,0 @@ -export * from "./Account"; -export * from "./AccountAccountType"; -export * from "./AccountAccountTypeEnum"; -export * from "./AccountClassification"; -export * from "./AccountCurrency"; -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 "./AccountingAttachment"; -export * from "./AccountingAttachmentRequest"; -export * from "./AccountingAttachmentResponse"; -export * from "./AccountingPeriod"; -export * from "./AccountingPeriodStatus"; -export * from "./AccountingPhoneNumber"; -export * from "./AccountingPhoneNumberRequest"; -export * from "./AccountRequest"; -export * from "./AccountRequestAccountType"; -export * from "./AccountRequestClassification"; -export * from "./AccountRequestCurrency"; -export * from "./AccountRequestStatus"; -export * from "./AccountResponse"; -export * from "./AccountStatus"; -export * from "./AccountStatusEnum"; -export * from "./AccountToken"; -export * from "./Address"; -export * from "./AddressCountry"; -export * from "./AddressRequest"; -export * from "./AddressRequestCountry"; -export * from "./AddressRequestType"; -export * from "./AddressType"; -export * from "./AddressTypeEnum"; -export * from "./AdvancedMetadata"; -export * from "./AsyncPassthroughReciept"; -export * from "./AsyncPostTask"; -export * from "./AsyncPostTaskResult"; -export * from "./AsyncPostTaskStatus"; -export * from "./AsyncPostTaskStatusEnum"; -export * from "./AuditLogEvent"; -export * from "./AuditLogEventEventType"; -export * from "./AuditLogEventRole"; -export * from "./AvailableActions"; -export * from "./BalanceSheet"; -export * from "./BalanceSheetCompany"; -export * from "./BalanceSheetCurrency"; -export * from "./BankFeedAccount"; -export * from "./BankFeedAccountAccountType"; -export * from "./BankFeedAccountAccountTypeEnum"; -export * from "./BankFeedAccountCurrency"; -export * from "./BankFeedAccountFeedStatus"; -export * from "./BankFeedAccountRequest"; -export * from "./BankFeedAccountRequestAccountType"; -export * from "./BankFeedAccountRequestCurrency"; -export * from "./BankFeedAccountRequestFeedStatus"; -export * from "./BankFeedAccountResponse"; -export * from "./BankFeedTransaction"; -export * from "./BankFeedTransactionBankFeedAccount"; -export * from "./BankFeedTransactionCreditOrDebit"; -export * from "./BankFeedTransactionRequestRequest"; -export * from "./BankFeedTransactionRequestRequestBankFeedAccount"; -export * from "./BankFeedTransactionRequestRequestCreditOrDebit"; -export * from "./BankFeedTransactionResponse"; -export * from "./CashFlowStatement"; -export * from "./CashFlowStatementCompany"; -export * from "./CashFlowStatementCurrency"; -export * from "./CategoriesEnum"; -export * from "./CategoryEnum"; -export * from "./CategoryTypeEnum"; -export * from "./ClassificationEnum"; -export * from "./CommonModelScopeApi"; -export * from "./CommonModelScopesBodyRequest"; -export * from "./CompanyInfo"; -export * from "./CompanyInfoCurrency"; -export * from "./ComponentTypeEnum"; -export * from "./Contact"; -export * from "./ContactAddressesItem"; -export * from "./ContactRequest"; -export * from "./ContactRequestAddressesItem"; -export * from "./ContactRequestStatus"; -export * from "./ContactResponse"; -export * from "./ContactStatus"; -export * from "./CountryEnum"; -export * from "./CreditNote"; -export * from "./CreditNoteAccountingPeriod"; -export * from "./CreditNoteAppliedPaymentsItem"; -export * from "./CreditNoteApplyLineForCreditNote"; -export * from "./CreditNoteApplyLineForCreditNoteInvoice"; -export * from "./CreditNoteApplyLineForCreditNoteRequest"; -export * from "./CreditNoteApplyLineForCreditNoteRequestInvoice"; -export * from "./CreditNoteApplyLineForInvoice"; -export * from "./CreditNoteApplyLineForInvoiceCreditNote"; -export * from "./CreditNoteCompany"; -export * from "./CreditNoteContact"; -export * from "./CreditNoteCurrency"; -export * from "./CreditNoteLineItem"; -export * from "./CreditNoteLineItemCompany"; -export * from "./CreditNoteLineItemContact"; -export * from "./CreditNoteLineItemItem"; -export * from "./CreditNoteLineItemProject"; -export * from "./CreditNoteLineItemRequest"; -export * from "./CreditNoteLineItemRequestCompany"; -export * from "./CreditNoteLineItemRequestContact"; -export * from "./CreditNoteLineItemRequestItem"; -export * from "./CreditNoteLineItemRequestProject"; -export * from "./CreditNotePaymentsItem"; -export * from "./CreditNoteRequest"; -export * from "./CreditNoteRequestAccountingPeriod"; -export * from "./CreditNoteRequestAppliedPaymentsItem"; -export * from "./CreditNoteRequestCompany"; -export * from "./CreditNoteRequestContact"; -export * from "./CreditNoteRequestCurrency"; -export * from "./CreditNoteRequestLineItemsItem"; -export * from "./CreditNoteRequestPaymentsItem"; -export * from "./CreditNoteRequestStatus"; -export * from "./CreditNoteRequestTrackingCategoriesItem"; -export * from "./CreditNoteResponse"; -export * from "./CreditNoteStatus"; -export * from "./CreditNoteStatusEnum"; -export * from "./CreditNoteTrackingCategoriesItem"; -export * from "./CreditOrDebitEnum"; -export * from "./DataPassthroughRequest"; -export * from "./DataPassthroughRequestMethod"; -export * from "./DebugModeLog"; -export * from "./DebugModelLogSummary"; -export * from "./Employee"; -export * from "./EmployeeCompany"; -export * from "./EmployeeStatus"; -export * from "./EnabledActionsEnum"; -export * from "./EncodingEnum"; -export * from "./ErrorValidationProblem"; -export * from "./EventTypeEnum"; -export * from "./Expense"; -export * from "./ExpenseAccount"; -export * from "./ExpenseAccountingPeriod"; -export * from "./ExpenseCompany"; -export * from "./ExpenseContact"; -export * from "./ExpenseCurrency"; -export * from "./ExpenseEmployee"; -export * from "./ExpenseLine"; -export * from "./ExpenseLineAccount"; -export * from "./ExpenseLineContact"; -export * from "./ExpenseLineCurrency"; -export * from "./ExpenseLineEmployee"; -export * from "./ExpenseLineItem"; -export * from "./ExpenseLineProject"; -export * from "./ExpenseLineRequest"; -export * from "./ExpenseLineRequestAccount"; -export * from "./ExpenseLineRequestContact"; -export * from "./ExpenseLineRequestCurrency"; -export * from "./ExpenseLineRequestEmployee"; -export * from "./ExpenseLineRequestItem"; -export * from "./ExpenseLineRequestProject"; -export * from "./ExpenseLineRequestTrackingCategoriesItem"; -export * from "./ExpenseLineRequestTrackingCategory"; -export * from "./ExpenseLineTrackingCategoriesItem"; -export * from "./ExpenseLineTrackingCategory"; -export * from "./ExpenseReport"; -export * from "./ExpenseReportCompany"; -export * from "./ExpenseReportLine"; -export * from "./ExpenseReportLineAccount"; -export * from "./ExpenseReportLineCompany"; -export * from "./ExpenseReportLineContact"; -export * from "./ExpenseReportLineEmployee"; -export * from "./ExpenseReportLineProject"; -export * from "./ExpenseReportLineRequest"; -export * from "./ExpenseReportLineRequestAccount"; -export * from "./ExpenseReportLineRequestCompany"; -export * from "./ExpenseReportLineRequestContact"; -export * from "./ExpenseReportLineRequestEmployee"; -export * from "./ExpenseReportLineRequestProject"; -export * from "./ExpenseReportLineRequestTaxRate"; -export * from "./ExpenseReportLineTaxRate"; -export * from "./ExpenseReportRequest"; -export * from "./ExpenseReportRequestAccountingPeriod"; -export * from "./ExpenseReportRequestCompany"; -export * from "./ExpenseReportRequestEmployee"; -export * from "./ExpenseReportResponse"; -export * from "./ExpenseReportStatus"; -export * from "./ExpenseReportStatusEnum"; -export * from "./ExpenseRequest"; -export * from "./ExpenseRequestAccount"; -export * from "./ExpenseRequestAccountingPeriod"; -export * from "./ExpenseRequestCompany"; -export * from "./ExpenseRequestContact"; -export * from "./ExpenseRequestCurrency"; -export * from "./ExpenseRequestEmployee"; -export * from "./ExpenseRequestTrackingCategoriesItem"; -export * from "./ExpenseResponse"; -export * from "./ExpenseTrackingCategoriesItem"; -export * from "./ExternalTargetFieldApi"; -export * from "./ExternalTargetFieldApiResponse"; -export * from "./FeedStatusEnum"; -export * from "./FieldFormatEnum"; -export * from "./FieldMappingApiInstance"; -export * from "./FieldMappingApiInstanceRemoteField"; -export * from "./FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo"; -export * from "./FieldMappingApiInstanceResponse"; -export * from "./FieldMappingApiInstanceTargetField"; -export * from "./FieldMappingInstanceResponse"; -export * from "./FieldPermissionDeserializer"; -export * from "./FieldPermissionDeserializerRequest"; -export * from "./FieldTypeEnum"; -export * from "./GeneralLedgerTransaction"; -export * from "./GeneralLedgerTransactionAccountingPeriod"; -export * from "./GeneralLedgerTransactionCompany"; -export * from "./GeneralLedgerTransactionGeneralLedgerTransactionLinesItem"; -export * from "./GeneralLedgerTransactionLine"; -export * from "./GeneralLedgerTransactionLineAccount"; -export * from "./GeneralLedgerTransactionLineBaseCurrency"; -export * from "./GeneralLedgerTransactionLineCompany"; -export * from "./GeneralLedgerTransactionLineContact"; -export * from "./GeneralLedgerTransactionLineEmployee"; -export * from "./GeneralLedgerTransactionLineItem"; -export * from "./GeneralLedgerTransactionLineProject"; -export * from "./GeneralLedgerTransactionLineTrackingCategoriesItem"; -export * from "./GeneralLedgerTransactionLineTransactionCurrency"; -export * from "./GeneralLedgerTransactionTrackingCategoriesItem"; -export * from "./GeneralLedgerTransactionUnderlyingTransactionType"; -export * from "./IncomeStatement"; -export * from "./IncomeStatementCompany"; -export * from "./IncomeStatementCurrency"; -export * from "./IndividualCommonModelScopeDeserializer"; -export * from "./IndividualCommonModelScopeDeserializerRequest"; -export * from "./Invoice"; -export * from "./InvoiceAccountingPeriod"; -export * from "./InvoiceAppliedCreditNotesItem"; -export * from "./InvoiceAppliedPaymentsItem"; -export * from "./InvoiceAppliedVendorCreditsItem"; -export * from "./InvoiceCompany"; -export * from "./InvoiceContact"; -export * from "./InvoiceCurrency"; -export * from "./InvoiceEmployee"; -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 "./InvoiceLineItemTrackingCategoriesItem"; -export * from "./InvoiceLineItemTrackingCategory"; -export * from "./InvoicePaymentsItem"; -export * from "./InvoicePaymentTerm"; -export * from "./InvoicePurchaseOrdersItem"; -export * from "./InvoiceRequest"; -export * from "./InvoiceRequestCompany"; -export * from "./InvoiceRequestContact"; -export * from "./InvoiceRequestCurrency"; -export * from "./InvoiceRequestEmployee"; -export * from "./InvoiceRequestPaymentsItem"; -export * from "./InvoiceRequestPaymentTerm"; -export * from "./InvoiceRequestPurchaseOrdersItem"; -export * from "./InvoiceRequestStatus"; -export * from "./InvoiceRequestTrackingCategoriesItem"; -export * from "./InvoiceRequestType"; -export * from "./InvoiceResponse"; -export * from "./InvoiceStatus"; -export * from "./InvoiceStatusEnum"; -export * from "./InvoiceTrackingCategoriesItem"; -export * from "./InvoiceType"; -export * from "./InvoiceTypeEnum"; -export * from "./Issue"; -export * from "./IssueStatus"; -export * from "./IssueStatusEnum"; -export * from "./Item"; -export * from "./ItemCompany"; -export * from "./ItemFormatEnum"; -export * from "./ItemPurchaseAccount"; -export * from "./ItemPurchaseTaxRate"; -export * from "./ItemRequestRequest"; -export * from "./ItemRequestRequestCompany"; -export * from "./ItemRequestRequestPurchaseAccount"; -export * from "./ItemRequestRequestPurchaseTaxRate"; -export * from "./ItemRequestRequestSalesAccount"; -export * from "./ItemRequestRequestSalesTaxRate"; -export * from "./ItemRequestRequestStatus"; -export * from "./ItemRequestRequestType"; -export * from "./ItemResponse"; -export * from "./ItemSalesAccount"; -export * from "./ItemSalesTaxRate"; -export * from "./ItemSchema"; -export * from "./ItemStatus"; -export * from "./ItemType"; -export * from "./ItemTypeEnum"; -export * from "./JournalEntry"; -export * from "./JournalEntryAccountingPeriod"; -export * from "./JournalEntryAppliedPaymentsItem"; -export * from "./JournalEntryCompany"; -export * from "./JournalEntryCurrency"; -export * from "./JournalEntryPaymentsItem"; -export * from "./JournalEntryPostingStatus"; -export * from "./JournalEntryRequest"; -export * from "./JournalEntryRequestCompany"; -export * from "./JournalEntryRequestCurrency"; -export * from "./JournalEntryRequestPaymentsItem"; -export * from "./JournalEntryRequestPostingStatus"; -export * from "./JournalEntryRequestTrackingCategoriesItem"; -export * from "./JournalEntryResponse"; -export * from "./JournalEntryTrackingCategoriesItem"; -export * from "./JournalLine"; -export * from "./JournalLineAccount"; -export * from "./JournalLineCurrency"; -export * from "./JournalLineProject"; -export * from "./JournalLineRequest"; -export * from "./JournalLineRequestAccount"; -export * from "./JournalLineRequestCurrency"; -export * from "./JournalLineRequestProject"; -export * from "./JournalLineRequestTrackingCategoriesItem"; -export * from "./JournalLineRequestTrackingCategory"; -export * from "./JournalLineTrackingCategoriesItem"; -export * from "./JournalLineTrackingCategory"; -export * from "./LanguageEnum"; -export * from "./LastSyncResultEnum"; -export * from "./LinkedAccountStatus"; -export * from "./LinkToken"; -export * from "./MetaResponse"; -export * from "./MethodEnum"; -export * from "./MethodTypeEnum"; -export * from "./ModelOperation"; -export * from "./ModelPermissionDeserializer"; -export * from "./ModelPermissionDeserializerRequest"; -export * from "./MultipartFormFieldRequest"; -export * from "./MultipartFormFieldRequestEncoding"; -export * from "./PaginatedAccountDetailsAndActionsList"; -export * from "./PaginatedAccountingAttachmentList"; -export * from "./PaginatedAccountingPeriodList"; -export * from "./PaginatedAccountList"; -export * from "./PaginatedAuditLogEventList"; -export * from "./PaginatedBalanceSheetList"; -export * from "./PaginatedBankFeedAccountList"; -export * from "./PaginatedBankFeedTransactionList"; -export * from "./PaginatedCashFlowStatementList"; -export * from "./PaginatedCompanyInfoList"; -export * from "./PaginatedContactList"; -export * from "./PaginatedCreditNoteList"; -export * from "./PaginatedEmployeeList"; -export * from "./PaginatedExpenseList"; -export * from "./PaginatedExpenseReportLineList"; -export * from "./PaginatedExpenseReportList"; -export * from "./PaginatedGeneralLedgerTransactionList"; -export * from "./PaginatedIncomeStatementList"; -export * from "./PaginatedInvoiceList"; -export * from "./PaginatedIssueList"; -export * from "./PaginatedItemList"; -export * from "./PaginatedJournalEntryList"; -export * from "./PaginatedPaymentList"; -export * from "./PaginatedPaymentMethodList"; -export * from "./PaginatedPaymentTermList"; -export * from "./PaginatedProjectList"; -export * from "./PaginatedPurchaseOrderList"; -export * from "./PaginatedRemoteFieldClassList"; -export * from "./PaginatedSyncStatusList"; -export * from "./PaginatedTaxRateList"; -export * from "./PaginatedTrackingCategoryList"; -export * from "./PaginatedTransactionList"; -export * from "./PaginatedVendorCreditList"; -export * from "./PatchedContactRequest"; -export * from "./PatchedContactRequestAddressesItem"; -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 "./Payment"; -export * from "./PaymentAccount"; -export * from "./PaymentAccountingPeriod"; -export * from "./PaymentAppliedToLinesItem"; -export * from "./PaymentCompany"; -export * from "./PaymentContact"; -export * from "./PaymentCurrency"; -export * from "./PaymentLineItem"; -export * from "./PaymentLineItemRequest"; -export * from "./PaymentMethod"; -export * from "./PaymentMethodMethodType"; -export * from "./PaymentPaymentMethod"; -export * from "./PaymentRequest"; -export * from "./PaymentRequestAccount"; -export * from "./PaymentRequestAccountingPeriod"; -export * from "./PaymentRequestAppliedToLinesItem"; -export * from "./PaymentRequestCompany"; -export * from "./PaymentRequestContact"; -export * from "./PaymentRequestCurrency"; -export * from "./PaymentRequestPaymentMethod"; -export * from "./PaymentRequestTrackingCategoriesItem"; -export * from "./PaymentRequestType"; -export * from "./PaymentResponse"; -export * from "./PaymentTerm"; -export * from "./PaymentTermCompany"; -export * from "./PaymentTrackingCategoriesItem"; -export * from "./PaymentType"; -export * from "./PaymentTypeEnum"; -export * from "./PostingStatusEnum"; -export * from "./Project"; -export * from "./ProjectCompany"; -export * from "./ProjectContact"; -export * from "./PurchaseOrder"; -export * from "./PurchaseOrderAccountingPeriod"; -export * from "./PurchaseOrderCompany"; -export * from "./PurchaseOrderCurrency"; -export * from "./PurchaseOrderDeliveryAddress"; -export * from "./PurchaseOrderLineItem"; -export * from "./PurchaseOrderLineItemCurrency"; -export * from "./PurchaseOrderLineItemItem"; -export * from "./PurchaseOrderLineItemRequest"; -export * from "./PurchaseOrderLineItemRequestCurrency"; -export * from "./PurchaseOrderLineItemRequestItem"; -export * from "./PurchaseOrderPaymentTerm"; -export * from "./PurchaseOrderRequest"; -export * from "./PurchaseOrderRequestCompany"; -export * from "./PurchaseOrderRequestCurrency"; -export * from "./PurchaseOrderRequestDeliveryAddress"; -export * from "./PurchaseOrderRequestPaymentTerm"; -export * from "./PurchaseOrderRequestStatus"; -export * from "./PurchaseOrderRequestTrackingCategoriesItem"; -export * from "./PurchaseOrderRequestVendor"; -export * from "./PurchaseOrderResponse"; -export * from "./PurchaseOrderStatus"; -export * from "./PurchaseOrderStatusEnum"; -export * from "./PurchaseOrderTrackingCategoriesItem"; -export * from "./PurchaseOrderVendor"; -export * from "./RemoteData"; -export * from "./RemoteEndpointInfo"; -export * from "./RemoteField"; -export * from "./RemoteFieldApi"; -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 "./ReportItem"; -export * from "./RequestFormatEnum"; -export * from "./ResponseTypeEnum"; -export * from "./RoleEnum"; -export * from "./SelectiveSyncConfigurationsUsageEnum"; -export * from "./Status7D1Enum"; -export * from "./Status895Enum"; -export * from "./StatusFd5Enum"; -export * from "./SyncStatus"; -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"; -export * from "./TrackingCategoryStatus"; -export * from "./Transaction"; -export * from "./TransactionAccount"; -export * from "./TransactionAccountingPeriod"; -export * from "./TransactionContact"; -export * from "./TransactionCurrency"; -export * from "./TransactionCurrencyEnum"; -export * from "./TransactionLineItem"; -export * from "./TransactionLineItemCurrency"; -export * from "./TransactionLineItemItem"; -export * from "./TransactionTrackingCategoriesItem"; -export * from "./Type2BbEnum"; -export * from "./UnderlyingTransactionTypeEnum"; -export * from "./ValidationProblemSource"; -export * from "./VendorCredit"; -export * from "./VendorCreditAccountingPeriod"; -export * from "./VendorCreditApplyLineForInvoice"; -export * from "./VendorCreditApplyLineForInvoiceVendorCredit"; -export * from "./VendorCreditApplyLineForVendorCredit"; -export * from "./VendorCreditApplyLineForVendorCreditInvoice"; -export * from "./VendorCreditApplyLineForVendorCreditRequest"; -export * from "./VendorCreditApplyLineForVendorCreditRequestInvoice"; -export * from "./VendorCreditCompany"; -export * from "./VendorCreditCurrency"; -export * from "./VendorCreditLine"; -export * from "./VendorCreditLineAccount"; -export * from "./VendorCreditLineContact"; -export * from "./VendorCreditLineProject"; -export * from "./VendorCreditLineRequest"; -export * from "./VendorCreditLineRequestAccount"; -export * from "./VendorCreditLineRequestContact"; -export * from "./VendorCreditLineRequestProject"; -export * from "./VendorCreditRequest"; -export * from "./VendorCreditRequestAccountingPeriod"; -export * from "./VendorCreditRequestCompany"; -export * from "./VendorCreditRequestCurrency"; -export * from "./VendorCreditRequestTrackingCategoriesItem"; -export * from "./VendorCreditRequestVendor"; -export * from "./VendorCreditResponse"; -export * from "./VendorCreditTrackingCategoriesItem"; -export * from "./VendorCreditVendor"; -export * from "./WarningValidationProblem"; -export * from "./WebhookReceiver"; diff --git a/src/serialization/resources/ats/index.ts b/src/serialization/resources/ats/index.ts deleted file mode 100644 index 3e15e2907..000000000 --- a/src/serialization/resources/ats/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./resources"; -export * from "./types"; diff --git a/src/serialization/resources/ats/resources/activities/client/index.ts b/src/serialization/resources/ats/resources/activities/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/ats/resources/activities/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/ats/resources/activities/client/requests/ActivityEndpointRequest.ts b/src/serialization/resources/ats/resources/activities/client/requests/ActivityEndpointRequest.ts deleted file mode 100644 index a56b3d033..000000000 --- a/src/serialization/resources/ats/resources/activities/client/requests/ActivityEndpointRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { ActivityRequest } from "../../../../types/ActivityRequest"; - -export const ActivityEndpointRequest: core.serialization.Schema< - serializers.ats.ActivityEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: ActivityRequest, - remoteUserId: core.serialization.property("remote_user_id", core.serialization.string()), -}); - -export declare namespace ActivityEndpointRequest { - export interface Raw { - model: ActivityRequest.Raw; - remote_user_id: string; - } -} diff --git a/src/serialization/resources/ats/resources/activities/client/requests/index.ts b/src/serialization/resources/ats/resources/activities/client/requests/index.ts deleted file mode 100644 index 1a5fb54ec..000000000 --- a/src/serialization/resources/ats/resources/activities/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { ActivityEndpointRequest } from "./ActivityEndpointRequest"; diff --git a/src/serialization/resources/ats/resources/activities/index.ts b/src/serialization/resources/ats/resources/activities/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/ats/resources/activities/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/serialization/resources/ats/resources/activities/types/ActivitiesListRequestRemoteFields.ts b/src/serialization/resources/ats/resources/activities/types/ActivitiesListRequestRemoteFields.ts deleted file mode 100644 index 0dac668e0..000000000 --- a/src/serialization/resources/ats/resources/activities/types/ActivitiesListRequestRemoteFields.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 ActivitiesListRequestRemoteFields: core.serialization.Schema< - serializers.ats.ActivitiesListRequestRemoteFields.Raw, - Merge.ats.ActivitiesListRequestRemoteFields -> = core.serialization.enum_(["activity_type", "activity_type,visibility", "visibility"]); - -export declare namespace ActivitiesListRequestRemoteFields { - export type Raw = "activity_type" | "activity_type,visibility" | "visibility"; -} diff --git a/src/serialization/resources/ats/resources/activities/types/ActivitiesListRequestShowEnumOrigins.ts b/src/serialization/resources/ats/resources/activities/types/ActivitiesListRequestShowEnumOrigins.ts deleted file mode 100644 index 5a8563044..000000000 --- a/src/serialization/resources/ats/resources/activities/types/ActivitiesListRequestShowEnumOrigins.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 ActivitiesListRequestShowEnumOrigins: core.serialization.Schema< - serializers.ats.ActivitiesListRequestShowEnumOrigins.Raw, - Merge.ats.ActivitiesListRequestShowEnumOrigins -> = core.serialization.enum_(["activity_type", "activity_type,visibility", "visibility"]); - -export declare namespace ActivitiesListRequestShowEnumOrigins { - export type Raw = "activity_type" | "activity_type,visibility" | "visibility"; -} diff --git a/src/serialization/resources/ats/resources/activities/types/ActivitiesRetrieveRequestRemoteFields.ts b/src/serialization/resources/ats/resources/activities/types/ActivitiesRetrieveRequestRemoteFields.ts deleted file mode 100644 index 130497445..000000000 --- a/src/serialization/resources/ats/resources/activities/types/ActivitiesRetrieveRequestRemoteFields.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 ActivitiesRetrieveRequestRemoteFields: core.serialization.Schema< - serializers.ats.ActivitiesRetrieveRequestRemoteFields.Raw, - Merge.ats.ActivitiesRetrieveRequestRemoteFields -> = core.serialization.enum_(["activity_type", "activity_type,visibility", "visibility"]); - -export declare namespace ActivitiesRetrieveRequestRemoteFields { - export type Raw = "activity_type" | "activity_type,visibility" | "visibility"; -} diff --git a/src/serialization/resources/ats/resources/activities/types/ActivitiesRetrieveRequestShowEnumOrigins.ts b/src/serialization/resources/ats/resources/activities/types/ActivitiesRetrieveRequestShowEnumOrigins.ts deleted file mode 100644 index 67a80861e..000000000 --- a/src/serialization/resources/ats/resources/activities/types/ActivitiesRetrieveRequestShowEnumOrigins.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 ActivitiesRetrieveRequestShowEnumOrigins: core.serialization.Schema< - serializers.ats.ActivitiesRetrieveRequestShowEnumOrigins.Raw, - Merge.ats.ActivitiesRetrieveRequestShowEnumOrigins -> = core.serialization.enum_(["activity_type", "activity_type,visibility", "visibility"]); - -export declare namespace ActivitiesRetrieveRequestShowEnumOrigins { - export type Raw = "activity_type" | "activity_type,visibility" | "visibility"; -} diff --git a/src/serialization/resources/ats/resources/activities/types/index.ts b/src/serialization/resources/ats/resources/activities/types/index.ts deleted file mode 100644 index 82c347432..000000000 --- a/src/serialization/resources/ats/resources/activities/types/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./ActivitiesListRequestRemoteFields"; -export * from "./ActivitiesListRequestShowEnumOrigins"; -export * from "./ActivitiesRetrieveRequestRemoteFields"; -export * from "./ActivitiesRetrieveRequestShowEnumOrigins"; diff --git a/src/serialization/resources/ats/resources/applications/client/index.ts b/src/serialization/resources/ats/resources/applications/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/ats/resources/applications/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/ats/resources/applications/client/requests/ApplicationEndpointRequest.ts b/src/serialization/resources/ats/resources/applications/client/requests/ApplicationEndpointRequest.ts deleted file mode 100644 index 7bcf9042e..000000000 --- a/src/serialization/resources/ats/resources/applications/client/requests/ApplicationEndpointRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { ApplicationRequest } from "../../../../types/ApplicationRequest"; - -export const ApplicationEndpointRequest: core.serialization.Schema< - serializers.ats.ApplicationEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: ApplicationRequest, - remoteUserId: core.serialization.property("remote_user_id", core.serialization.string()), -}); - -export declare namespace ApplicationEndpointRequest { - export interface Raw { - model: ApplicationRequest.Raw; - remote_user_id: string; - } -} diff --git a/src/serialization/resources/ats/resources/applications/client/requests/UpdateApplicationStageRequest.ts b/src/serialization/resources/ats/resources/applications/client/requests/UpdateApplicationStageRequest.ts deleted file mode 100644 index cd4e3119c..000000000 --- a/src/serialization/resources/ats/resources/applications/client/requests/UpdateApplicationStageRequest.ts +++ /dev/null @@ -1,20 +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 UpdateApplicationStageRequest: core.serialization.Schema< - serializers.ats.UpdateApplicationStageRequest.Raw, - Omit -> = core.serialization.object({ - jobInterviewStage: core.serialization.property("job_interview_stage", core.serialization.string().optional()), - remoteUserId: core.serialization.property("remote_user_id", core.serialization.string().optional()), -}); - -export declare namespace UpdateApplicationStageRequest { - export interface Raw { - job_interview_stage?: string | null; - remote_user_id?: string | null; - } -} diff --git a/src/serialization/resources/ats/resources/applications/client/requests/index.ts b/src/serialization/resources/ats/resources/applications/client/requests/index.ts deleted file mode 100644 index 09a061dd3..000000000 --- a/src/serialization/resources/ats/resources/applications/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { ApplicationEndpointRequest } from "./ApplicationEndpointRequest"; -export { UpdateApplicationStageRequest } from "./UpdateApplicationStageRequest"; diff --git a/src/serialization/resources/ats/resources/applications/index.ts b/src/serialization/resources/ats/resources/applications/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/ats/resources/applications/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/serialization/resources/ats/resources/applications/types/index.ts deleted file mode 100644 index 10d68b6c6..000000000 --- a/src/serialization/resources/ats/resources/applications/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./ApplicationsListRequestExpand"; -export * from "./ApplicationsRetrieveRequestExpand"; diff --git a/src/serialization/resources/ats/resources/asyncPassthrough/index.ts b/src/serialization/resources/ats/resources/asyncPassthrough/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/ats/resources/asyncPassthrough/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; diff --git a/src/serialization/resources/ats/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.ts b/src/serialization/resources/ats/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.ts deleted file mode 100644 index 1f37aecc0..000000000 --- a/src/serialization/resources/ats/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.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 { RemoteResponse } from "../../../types/RemoteResponse"; - -export const AsyncPassthroughRetrieveResponse: core.serialization.Schema< - serializers.ats.AsyncPassthroughRetrieveResponse.Raw, - Merge.ats.AsyncPassthroughRetrieveResponse -> = core.serialization.undiscriminatedUnion([RemoteResponse, core.serialization.string()]); - -export declare namespace AsyncPassthroughRetrieveResponse { - export type Raw = RemoteResponse.Raw | string; -} diff --git a/src/serialization/resources/ats/resources/asyncPassthrough/types/index.ts b/src/serialization/resources/ats/resources/asyncPassthrough/types/index.ts deleted file mode 100644 index f2b2d0e21..000000000 --- a/src/serialization/resources/ats/resources/asyncPassthrough/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./AsyncPassthroughRetrieveResponse"; diff --git a/src/serialization/resources/ats/resources/attachments/client/index.ts b/src/serialization/resources/ats/resources/attachments/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/ats/resources/attachments/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/ats/resources/attachments/client/requests/AttachmentEndpointRequest.ts b/src/serialization/resources/ats/resources/attachments/client/requests/AttachmentEndpointRequest.ts deleted file mode 100644 index 7f0c65c2a..000000000 --- a/src/serialization/resources/ats/resources/attachments/client/requests/AttachmentEndpointRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { AttachmentRequest } from "../../../../types/AttachmentRequest"; - -export const AttachmentEndpointRequest: core.serialization.Schema< - serializers.ats.AttachmentEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: AttachmentRequest, - remoteUserId: core.serialization.property("remote_user_id", core.serialization.string()), -}); - -export declare namespace AttachmentEndpointRequest { - export interface Raw { - model: AttachmentRequest.Raw; - remote_user_id: string; - } -} diff --git a/src/serialization/resources/ats/resources/attachments/client/requests/index.ts b/src/serialization/resources/ats/resources/attachments/client/requests/index.ts deleted file mode 100644 index 659c13691..000000000 --- a/src/serialization/resources/ats/resources/attachments/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { AttachmentEndpointRequest } from "./AttachmentEndpointRequest"; diff --git a/src/serialization/resources/ats/resources/attachments/index.ts b/src/serialization/resources/ats/resources/attachments/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/ats/resources/attachments/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/ats/resources/candidates/client/index.ts b/src/serialization/resources/ats/resources/candidates/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/ats/resources/candidates/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/ats/resources/candidates/client/requests/CandidateEndpointRequest.ts b/src/serialization/resources/ats/resources/candidates/client/requests/CandidateEndpointRequest.ts deleted file mode 100644 index 842d6eb5d..000000000 --- a/src/serialization/resources/ats/resources/candidates/client/requests/CandidateEndpointRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { CandidateRequest } from "../../../../types/CandidateRequest"; - -export const CandidateEndpointRequest: core.serialization.Schema< - serializers.ats.CandidateEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: CandidateRequest, - remoteUserId: core.serialization.property("remote_user_id", core.serialization.string()), -}); - -export declare namespace CandidateEndpointRequest { - export interface Raw { - model: CandidateRequest.Raw; - remote_user_id: string; - } -} diff --git a/src/serialization/resources/ats/resources/candidates/client/requests/IgnoreCommonModelRequest.ts b/src/serialization/resources/ats/resources/candidates/client/requests/IgnoreCommonModelRequest.ts deleted file mode 100644 index 946c7153b..000000000 --- a/src/serialization/resources/ats/resources/candidates/client/requests/IgnoreCommonModelRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { IgnoreCommonModelRequestReason } from "../../types/IgnoreCommonModelRequestReason"; - -export const IgnoreCommonModelRequest: core.serialization.Schema< - serializers.ats.IgnoreCommonModelRequest.Raw, - Merge.ats.IgnoreCommonModelRequest -> = core.serialization.object({ - reason: IgnoreCommonModelRequestReason, - message: core.serialization.string().optional(), -}); - -export declare namespace IgnoreCommonModelRequest { - export interface Raw { - reason: IgnoreCommonModelRequestReason.Raw; - message?: string | null; - } -} diff --git a/src/serialization/resources/ats/resources/candidates/client/requests/PatchedCandidateEndpointRequest.ts b/src/serialization/resources/ats/resources/candidates/client/requests/PatchedCandidateEndpointRequest.ts deleted file mode 100644 index e649710d0..000000000 --- a/src/serialization/resources/ats/resources/candidates/client/requests/PatchedCandidateEndpointRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { PatchedCandidateRequest } from "../../../../types/PatchedCandidateRequest"; - -export const PatchedCandidateEndpointRequest: core.serialization.Schema< - serializers.ats.PatchedCandidateEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: PatchedCandidateRequest, - remoteUserId: core.serialization.property("remote_user_id", core.serialization.string()), -}); - -export declare namespace PatchedCandidateEndpointRequest { - export interface Raw { - model: PatchedCandidateRequest.Raw; - remote_user_id: string; - } -} diff --git a/src/serialization/resources/ats/resources/candidates/client/requests/index.ts b/src/serialization/resources/ats/resources/candidates/client/requests/index.ts deleted file mode 100644 index 00a1be6c8..000000000 --- a/src/serialization/resources/ats/resources/candidates/client/requests/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { CandidateEndpointRequest } from "./CandidateEndpointRequest"; -export { IgnoreCommonModelRequest } from "./IgnoreCommonModelRequest"; -export { PatchedCandidateEndpointRequest } from "./PatchedCandidateEndpointRequest"; diff --git a/src/serialization/resources/ats/resources/candidates/index.ts b/src/serialization/resources/ats/resources/candidates/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/ats/resources/candidates/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/IgnoreCommonModelRequestReason.ts b/src/serialization/resources/ats/resources/candidates/types/IgnoreCommonModelRequestReason.ts deleted file mode 100644 index e03a87c4a..000000000 --- a/src/serialization/resources/ats/resources/candidates/types/IgnoreCommonModelRequestReason.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; -import { ReasonEnum } from "../../../types/ReasonEnum"; - -export const IgnoreCommonModelRequestReason: core.serialization.Schema< - serializers.ats.IgnoreCommonModelRequestReason.Raw, - Merge.ats.IgnoreCommonModelRequestReason -> = core.serialization.undiscriminatedUnion([ReasonEnum, core.serialization.string()]); - -export declare namespace IgnoreCommonModelRequestReason { - export type Raw = ReasonEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/resources/candidates/types/index.ts b/src/serialization/resources/ats/resources/candidates/types/index.ts deleted file mode 100644 index 36e0b3d6e..000000000 --- a/src/serialization/resources/ats/resources/candidates/types/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./CandidatesListRequestExpand"; -export * from "./CandidatesRetrieveRequestExpand"; -export * from "./IgnoreCommonModelRequestReason"; diff --git a/src/serialization/resources/ats/resources/eeocs/index.ts b/src/serialization/resources/ats/resources/eeocs/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/ats/resources/eeocs/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; diff --git a/src/serialization/resources/ats/resources/eeocs/types/EeocsListRequestRemoteFields.ts b/src/serialization/resources/ats/resources/eeocs/types/EeocsListRequestRemoteFields.ts deleted file mode 100644 index 0be0c31db..000000000 --- a/src/serialization/resources/ats/resources/eeocs/types/EeocsListRequestRemoteFields.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 EeocsListRequestRemoteFields: core.serialization.Schema< - serializers.ats.EeocsListRequestRemoteFields.Raw, - Merge.ats.EeocsListRequestRemoteFields -> = core.serialization.enum_([ - "disability_status", - "disability_status,gender", - "disability_status,gender,race", - "disability_status,gender,race,veteran_status", - "disability_status,gender,veteran_status", - "disability_status,race", - "disability_status,race,veteran_status", - "disability_status,veteran_status", - "gender", - "gender,race", - "gender,race,veteran_status", - "gender,veteran_status", - "race", - "race,veteran_status", - "veteran_status", -]); - -export declare namespace EeocsListRequestRemoteFields { - export type Raw = - | "disability_status" - | "disability_status,gender" - | "disability_status,gender,race" - | "disability_status,gender,race,veteran_status" - | "disability_status,gender,veteran_status" - | "disability_status,race" - | "disability_status,race,veteran_status" - | "disability_status,veteran_status" - | "gender" - | "gender,race" - | "gender,race,veteran_status" - | "gender,veteran_status" - | "race" - | "race,veteran_status" - | "veteran_status"; -} diff --git a/src/serialization/resources/ats/resources/eeocs/types/EeocsListRequestShowEnumOrigins.ts b/src/serialization/resources/ats/resources/eeocs/types/EeocsListRequestShowEnumOrigins.ts deleted file mode 100644 index 2f3f36d5d..000000000 --- a/src/serialization/resources/ats/resources/eeocs/types/EeocsListRequestShowEnumOrigins.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 EeocsListRequestShowEnumOrigins: core.serialization.Schema< - serializers.ats.EeocsListRequestShowEnumOrigins.Raw, - Merge.ats.EeocsListRequestShowEnumOrigins -> = core.serialization.enum_([ - "disability_status", - "disability_status,gender", - "disability_status,gender,race", - "disability_status,gender,race,veteran_status", - "disability_status,gender,veteran_status", - "disability_status,race", - "disability_status,race,veteran_status", - "disability_status,veteran_status", - "gender", - "gender,race", - "gender,race,veteran_status", - "gender,veteran_status", - "race", - "race,veteran_status", - "veteran_status", -]); - -export declare namespace EeocsListRequestShowEnumOrigins { - export type Raw = - | "disability_status" - | "disability_status,gender" - | "disability_status,gender,race" - | "disability_status,gender,race,veteran_status" - | "disability_status,gender,veteran_status" - | "disability_status,race" - | "disability_status,race,veteran_status" - | "disability_status,veteran_status" - | "gender" - | "gender,race" - | "gender,race,veteran_status" - | "gender,veteran_status" - | "race" - | "race,veteran_status" - | "veteran_status"; -} diff --git a/src/serialization/resources/ats/resources/eeocs/types/EeocsRetrieveRequestRemoteFields.ts b/src/serialization/resources/ats/resources/eeocs/types/EeocsRetrieveRequestRemoteFields.ts deleted file mode 100644 index 53f2317e6..000000000 --- a/src/serialization/resources/ats/resources/eeocs/types/EeocsRetrieveRequestRemoteFields.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 EeocsRetrieveRequestRemoteFields: core.serialization.Schema< - serializers.ats.EeocsRetrieveRequestRemoteFields.Raw, - Merge.ats.EeocsRetrieveRequestRemoteFields -> = core.serialization.enum_([ - "disability_status", - "disability_status,gender", - "disability_status,gender,race", - "disability_status,gender,race,veteran_status", - "disability_status,gender,veteran_status", - "disability_status,race", - "disability_status,race,veteran_status", - "disability_status,veteran_status", - "gender", - "gender,race", - "gender,race,veteran_status", - "gender,veteran_status", - "race", - "race,veteran_status", - "veteran_status", -]); - -export declare namespace EeocsRetrieveRequestRemoteFields { - export type Raw = - | "disability_status" - | "disability_status,gender" - | "disability_status,gender,race" - | "disability_status,gender,race,veteran_status" - | "disability_status,gender,veteran_status" - | "disability_status,race" - | "disability_status,race,veteran_status" - | "disability_status,veteran_status" - | "gender" - | "gender,race" - | "gender,race,veteran_status" - | "gender,veteran_status" - | "race" - | "race,veteran_status" - | "veteran_status"; -} diff --git a/src/serialization/resources/ats/resources/eeocs/types/EeocsRetrieveRequestShowEnumOrigins.ts b/src/serialization/resources/ats/resources/eeocs/types/EeocsRetrieveRequestShowEnumOrigins.ts deleted file mode 100644 index 6cc1aceae..000000000 --- a/src/serialization/resources/ats/resources/eeocs/types/EeocsRetrieveRequestShowEnumOrigins.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 EeocsRetrieveRequestShowEnumOrigins: core.serialization.Schema< - serializers.ats.EeocsRetrieveRequestShowEnumOrigins.Raw, - Merge.ats.EeocsRetrieveRequestShowEnumOrigins -> = core.serialization.enum_([ - "disability_status", - "disability_status,gender", - "disability_status,gender,race", - "disability_status,gender,race,veteran_status", - "disability_status,gender,veteran_status", - "disability_status,race", - "disability_status,race,veteran_status", - "disability_status,veteran_status", - "gender", - "gender,race", - "gender,race,veteran_status", - "gender,veteran_status", - "race", - "race,veteran_status", - "veteran_status", -]); - -export declare namespace EeocsRetrieveRequestShowEnumOrigins { - export type Raw = - | "disability_status" - | "disability_status,gender" - | "disability_status,gender,race" - | "disability_status,gender,race,veteran_status" - | "disability_status,gender,veteran_status" - | "disability_status,race" - | "disability_status,race,veteran_status" - | "disability_status,veteran_status" - | "gender" - | "gender,race" - | "gender,race,veteran_status" - | "gender,veteran_status" - | "race" - | "race,veteran_status" - | "veteran_status"; -} diff --git a/src/serialization/resources/ats/resources/eeocs/types/index.ts b/src/serialization/resources/ats/resources/eeocs/types/index.ts deleted file mode 100644 index 55f674fdc..000000000 --- a/src/serialization/resources/ats/resources/eeocs/types/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./EeocsListRequestRemoteFields"; -export * from "./EeocsListRequestShowEnumOrigins"; -export * from "./EeocsRetrieveRequestRemoteFields"; -export * from "./EeocsRetrieveRequestShowEnumOrigins"; diff --git a/src/serialization/resources/ats/resources/fieldMapping/client/index.ts b/src/serialization/resources/ats/resources/fieldMapping/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/ats/resources/fieldMapping/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/ats/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/serialization/resources/ats/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts deleted file mode 100644 index 250ad76df..000000000 --- a/src/serialization/resources/ats/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ /dev/null @@ -1,31 +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 CreateFieldMappingRequest: core.serialization.Schema< - serializers.ats.CreateFieldMappingRequest.Raw, - Omit -> = core.serialization.object({ - targetFieldName: core.serialization.property("target_field_name", core.serialization.string()), - targetFieldDescription: core.serialization.property("target_field_description", core.serialization.string()), - remoteFieldTraversalPath: core.serialization.property( - "remote_field_traversal_path", - core.serialization.list(core.serialization.unknown()), - ), - 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()), -}); - -export declare namespace CreateFieldMappingRequest { - export interface Raw { - target_field_name: string; - target_field_description: string; - remote_field_traversal_path: unknown[]; - remote_method: string; - remote_url_path: string; - common_model_name: string; - } -} diff --git a/src/serialization/resources/ats/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts b/src/serialization/resources/ats/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts deleted file mode 100644 index b11356a01..000000000 --- a/src/serialization/resources/ats/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ /dev/null @@ -1,25 +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 PatchedEditFieldMappingRequest: core.serialization.Schema< - serializers.ats.PatchedEditFieldMappingRequest.Raw, - Merge.ats.PatchedEditFieldMappingRequest -> = core.serialization.object({ - remoteFieldTraversalPath: core.serialization.property( - "remote_field_traversal_path", - core.serialization.list(core.serialization.unknown()).optional(), - ), - remoteMethod: core.serialization.property("remote_method", core.serialization.string().optional()), - remoteUrlPath: core.serialization.property("remote_url_path", core.serialization.string().optional()), -}); - -export declare namespace PatchedEditFieldMappingRequest { - export interface Raw { - remote_field_traversal_path?: unknown[] | null; - remote_method?: string | null; - remote_url_path?: string | null; - } -} diff --git a/src/serialization/resources/ats/resources/fieldMapping/client/requests/index.ts b/src/serialization/resources/ats/resources/fieldMapping/client/requests/index.ts deleted file mode 100644 index 9bb691d70..000000000 --- a/src/serialization/resources/ats/resources/fieldMapping/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { CreateFieldMappingRequest } from "./CreateFieldMappingRequest"; -export { PatchedEditFieldMappingRequest } from "./PatchedEditFieldMappingRequest"; diff --git a/src/serialization/resources/ats/resources/fieldMapping/index.ts b/src/serialization/resources/ats/resources/fieldMapping/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/ats/resources/fieldMapping/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/ats/resources/forceResync/client/index.ts b/src/serialization/resources/ats/resources/forceResync/client/index.ts deleted file mode 100644 index d5680837c..000000000 --- a/src/serialization/resources/ats/resources/forceResync/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * as syncStatusResyncCreate from "./syncStatusResyncCreate"; diff --git a/src/serialization/resources/ats/resources/forceResync/client/syncStatusResyncCreate.ts b/src/serialization/resources/ats/resources/forceResync/client/syncStatusResyncCreate.ts deleted file mode 100644 index 0cb04b110..000000000 --- a/src/serialization/resources/ats/resources/forceResync/client/syncStatusResyncCreate.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 { SyncStatus } from "../../../types/SyncStatus"; - -export const Response: core.serialization.Schema< - serializers.ats.forceResync.syncStatusResyncCreate.Response.Raw, - Merge.ats.SyncStatus[] -> = core.serialization.list(SyncStatus); - -export declare namespace Response { - export type Raw = SyncStatus.Raw[]; -} diff --git a/src/serialization/resources/ats/resources/forceResync/index.ts b/src/serialization/resources/ats/resources/forceResync/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/ats/resources/forceResync/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/ats/resources/generateKey/client/index.ts b/src/serialization/resources/ats/resources/generateKey/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/ats/resources/generateKey/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/ats/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts b/src/serialization/resources/ats/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts deleted file mode 100644 index 26fa2878e..000000000 --- a/src/serialization/resources/ats/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts +++ /dev/null @@ -1,18 +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 GenerateRemoteKeyRequest: core.serialization.Schema< - serializers.ats.GenerateRemoteKeyRequest.Raw, - Merge.ats.GenerateRemoteKeyRequest -> = core.serialization.object({ - name: core.serialization.string(), -}); - -export declare namespace GenerateRemoteKeyRequest { - export interface Raw { - name: string; - } -} diff --git a/src/serialization/resources/ats/resources/generateKey/client/requests/index.ts b/src/serialization/resources/ats/resources/generateKey/client/requests/index.ts deleted file mode 100644 index 0df6e7c8b..000000000 --- a/src/serialization/resources/ats/resources/generateKey/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { GenerateRemoteKeyRequest } from "./GenerateRemoteKeyRequest"; diff --git a/src/serialization/resources/ats/resources/generateKey/index.ts b/src/serialization/resources/ats/resources/generateKey/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/ats/resources/generateKey/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/ats/resources/index.ts b/src/serialization/resources/ats/resources/index.ts deleted file mode 100644 index 09066159f..000000000 --- a/src/serialization/resources/ats/resources/index.ts +++ /dev/null @@ -1,44 +0,0 @@ -export * as activities from "./activities"; -export * from "./activities/client/requests"; -export * from "./activities/types"; -export * as applications from "./applications"; -export * from "./applications/client/requests"; -export * from "./applications/types"; -export * as asyncPassthrough from "./asyncPassthrough"; -export * from "./asyncPassthrough/types"; -export * as attachments from "./attachments"; -export * from "./attachments/client/requests"; -export * as candidates from "./candidates"; -export * from "./candidates/client/requests"; -export * from "./candidates/types"; -export * as eeocs from "./eeocs"; -export * from "./eeocs/types"; -export * as fieldMapping from "./fieldMapping"; -export * from "./fieldMapping/client/requests"; -export * as forceResync from "./forceResync"; -export * as generateKey from "./generateKey"; -export * from "./generateKey/client/requests"; -export * as interviews from "./interviews"; -export * from "./interviews/client/requests"; -export * from "./interviews/types"; -export * as issues from "./issues"; -export * from "./issues/types"; -export * as jobPostings from "./jobPostings"; -export * from "./jobPostings/types"; -export * as jobs from "./jobs"; -export * from "./jobs/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 offers from "./offers"; -export * from "./offers/types"; -export * as regenerateKey from "./regenerateKey"; -export * from "./regenerateKey/client/requests"; -export * as scopes from "./scopes"; -export * from "./scopes/client/requests"; -export * as scorecards from "./scorecards"; -export * from "./scorecards/types"; -export * as webhookReceivers from "./webhookReceivers"; -export * from "./webhookReceivers/client/requests"; diff --git a/src/serialization/resources/ats/resources/interviews/client/index.ts b/src/serialization/resources/ats/resources/interviews/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/ats/resources/interviews/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/ats/resources/interviews/client/requests/ScheduledInterviewEndpointRequest.ts b/src/serialization/resources/ats/resources/interviews/client/requests/ScheduledInterviewEndpointRequest.ts deleted file mode 100644 index c40a84a69..000000000 --- a/src/serialization/resources/ats/resources/interviews/client/requests/ScheduledInterviewEndpointRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { ScheduledInterviewRequest } from "../../../../types/ScheduledInterviewRequest"; - -export const ScheduledInterviewEndpointRequest: core.serialization.Schema< - serializers.ats.ScheduledInterviewEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: ScheduledInterviewRequest, - remoteUserId: core.serialization.property("remote_user_id", core.serialization.string()), -}); - -export declare namespace ScheduledInterviewEndpointRequest { - export interface Raw { - model: ScheduledInterviewRequest.Raw; - remote_user_id: string; - } -} diff --git a/src/serialization/resources/ats/resources/interviews/client/requests/index.ts b/src/serialization/resources/ats/resources/interviews/client/requests/index.ts deleted file mode 100644 index 4cd3816da..000000000 --- a/src/serialization/resources/ats/resources/interviews/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { ScheduledInterviewEndpointRequest } from "./ScheduledInterviewEndpointRequest"; diff --git a/src/serialization/resources/ats/resources/interviews/index.ts b/src/serialization/resources/ats/resources/interviews/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/ats/resources/interviews/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/serialization/resources/ats/resources/interviews/types/index.ts deleted file mode 100644 index 51b55d6c2..000000000 --- a/src/serialization/resources/ats/resources/interviews/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./InterviewsListRequestExpand"; -export * from "./InterviewsRetrieveRequestExpand"; diff --git a/src/serialization/resources/ats/resources/issues/index.ts b/src/serialization/resources/ats/resources/issues/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/ats/resources/issues/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; diff --git a/src/serialization/resources/ats/resources/issues/types/IssuesListRequestStatus.ts b/src/serialization/resources/ats/resources/issues/types/IssuesListRequestStatus.ts deleted file mode 100644 index 04cf4e315..000000000 --- a/src/serialization/resources/ats/resources/issues/types/IssuesListRequestStatus.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 IssuesListRequestStatus: core.serialization.Schema< - serializers.ats.IssuesListRequestStatus.Raw, - Merge.ats.IssuesListRequestStatus -> = core.serialization.enum_(["ONGOING", "RESOLVED"]); - -export declare namespace IssuesListRequestStatus { - export type Raw = "ONGOING" | "RESOLVED"; -} diff --git a/src/serialization/resources/ats/resources/issues/types/index.ts b/src/serialization/resources/ats/resources/issues/types/index.ts deleted file mode 100644 index 554cdf48c..000000000 --- a/src/serialization/resources/ats/resources/issues/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./IssuesListRequestStatus"; diff --git a/src/serialization/resources/ats/resources/jobPostings/index.ts b/src/serialization/resources/ats/resources/jobPostings/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/ats/resources/jobPostings/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; diff --git a/src/serialization/resources/ats/resources/jobPostings/types/JobPostingsListRequestStatus.ts b/src/serialization/resources/ats/resources/jobPostings/types/JobPostingsListRequestStatus.ts deleted file mode 100644 index 08ef2a354..000000000 --- a/src/serialization/resources/ats/resources/jobPostings/types/JobPostingsListRequestStatus.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 JobPostingsListRequestStatus: core.serialization.Schema< - serializers.ats.JobPostingsListRequestStatus.Raw, - Merge.ats.JobPostingsListRequestStatus -> = core.serialization.enum_(["CLOSED", "DRAFT", "INTERNAL", "PENDING", "PUBLISHED"]); - -export declare namespace JobPostingsListRequestStatus { - export type Raw = "CLOSED" | "DRAFT" | "INTERNAL" | "PENDING" | "PUBLISHED"; -} diff --git a/src/serialization/resources/ats/resources/jobPostings/types/index.ts b/src/serialization/resources/ats/resources/jobPostings/types/index.ts deleted file mode 100644 index 69ba8cfd0..000000000 --- a/src/serialization/resources/ats/resources/jobPostings/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./JobPostingsListRequestStatus"; diff --git a/src/serialization/resources/ats/resources/jobs/index.ts b/src/serialization/resources/ats/resources/jobs/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/ats/resources/jobs/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; 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/JobsListRequestStatus.ts b/src/serialization/resources/ats/resources/jobs/types/JobsListRequestStatus.ts deleted file mode 100644 index a074847cb..000000000 --- a/src/serialization/resources/ats/resources/jobs/types/JobsListRequestStatus.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 JobsListRequestStatus: core.serialization.Schema< - serializers.ats.JobsListRequestStatus.Raw, - Merge.ats.JobsListRequestStatus -> = core.serialization.enum_(["ARCHIVED", "CLOSED", "DRAFT", "OPEN", "PENDING"]); - -export declare namespace JobsListRequestStatus { - export type Raw = "ARCHIVED" | "CLOSED" | "DRAFT" | "OPEN" | "PENDING"; -} 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/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/index.ts b/src/serialization/resources/ats/resources/jobs/types/index.ts deleted file mode 100644 index ebb23b639..000000000 --- a/src/serialization/resources/ats/resources/jobs/types/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./JobsListRequestExpand"; -export * from "./JobsListRequestStatus"; -export * from "./JobsRetrieveRequestExpand"; -export * from "./JobsScreeningQuestionsListRequestExpand"; diff --git a/src/serialization/resources/ats/resources/linkToken/client/index.ts b/src/serialization/resources/ats/resources/linkToken/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/ats/resources/linkToken/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/ats/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/serialization/resources/ats/resources/linkToken/client/requests/EndUserDetailsRequest.ts deleted file mode 100644 index 90102f1a9..000000000 --- a/src/serialization/resources/ats/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ /dev/null @@ -1,66 +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 { CategoriesEnum } from "../../../../types/CategoriesEnum"; -import { CommonModelScopesBodyRequest } from "../../../../types/CommonModelScopesBodyRequest"; -import { IndividualCommonModelScopeDeserializerRequest } from "../../../../types/IndividualCommonModelScopeDeserializerRequest"; -import { EndUserDetailsRequestLanguage } from "../../types/EndUserDetailsRequestLanguage"; - -export const EndUserDetailsRequest: core.serialization.Schema< - serializers.ats.EndUserDetailsRequest.Raw, - Merge.ats.EndUserDetailsRequest -> = core.serialization.object({ - endUserEmailAddress: core.serialization.property("end_user_email_address", core.serialization.string()), - endUserOrganizationName: core.serialization.property("end_user_organization_name", core.serialization.string()), - endUserOriginId: core.serialization.property("end_user_origin_id", core.serialization.string()), - categories: core.serialization.list(CategoriesEnum), - integration: core.serialization.string().optional(), - linkExpiryMins: core.serialization.property("link_expiry_mins", core.serialization.number().optional()), - shouldCreateMagicLinkUrl: core.serialization.property( - "should_create_magic_link_url", - core.serialization.boolean().optional(), - ), - hideAdminMagicLink: core.serialization.property("hide_admin_magic_link", core.serialization.boolean().optional()), - commonModels: core.serialization.property( - "common_models", - core.serialization.list(CommonModelScopesBodyRequest).optional(), - ), - categoryCommonModelScopes: core.serialization.property( - "category_common_model_scopes", - core.serialization - .record( - core.serialization.string(), - core.serialization.list(IndividualCommonModelScopeDeserializerRequest).optional(), - ) - .optional(), - ), - language: EndUserDetailsRequestLanguage.optional(), - areSyncsDisabled: core.serialization.property("are_syncs_disabled", core.serialization.boolean().optional()), - integrationSpecificConfig: core.serialization.property( - "integration_specific_config", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), -}); - -export declare namespace EndUserDetailsRequest { - export interface Raw { - end_user_email_address: string; - end_user_organization_name: string; - end_user_origin_id: string; - categories: CategoriesEnum.Raw[]; - integration?: string | null; - link_expiry_mins?: number | null; - should_create_magic_link_url?: boolean | null; - hide_admin_magic_link?: boolean | null; - common_models?: CommonModelScopesBodyRequest.Raw[] | null; - category_common_model_scopes?: Record< - string, - IndividualCommonModelScopeDeserializerRequest.Raw[] | null | undefined - > | null; - language?: EndUserDetailsRequestLanguage.Raw | null; - are_syncs_disabled?: boolean | null; - integration_specific_config?: Record | null; - } -} diff --git a/src/serialization/resources/ats/resources/linkToken/client/requests/index.ts b/src/serialization/resources/ats/resources/linkToken/client/requests/index.ts deleted file mode 100644 index d94b44a3e..000000000 --- a/src/serialization/resources/ats/resources/linkToken/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { EndUserDetailsRequest } from "./EndUserDetailsRequest"; diff --git a/src/serialization/resources/ats/resources/linkToken/index.ts b/src/serialization/resources/ats/resources/linkToken/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/ats/resources/linkToken/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/serialization/resources/ats/resources/linkToken/types/EndUserDetailsRequestLanguage.ts b/src/serialization/resources/ats/resources/linkToken/types/EndUserDetailsRequestLanguage.ts deleted file mode 100644 index 2594473e8..000000000 --- a/src/serialization/resources/ats/resources/linkToken/types/EndUserDetailsRequestLanguage.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 { LanguageEnum } from "../../../types/LanguageEnum"; - -export const EndUserDetailsRequestLanguage: core.serialization.Schema< - serializers.ats.EndUserDetailsRequestLanguage.Raw, - Merge.ats.EndUserDetailsRequestLanguage -> = core.serialization.undiscriminatedUnion([LanguageEnum, core.serialization.string()]); - -export declare namespace EndUserDetailsRequestLanguage { - export type Raw = LanguageEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/resources/linkToken/types/index.ts b/src/serialization/resources/ats/resources/linkToken/types/index.ts deleted file mode 100644 index c90e13c37..000000000 --- a/src/serialization/resources/ats/resources/linkToken/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./EndUserDetailsRequestLanguage"; diff --git a/src/serialization/resources/ats/resources/linkedAccounts/index.ts b/src/serialization/resources/ats/resources/linkedAccounts/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/ats/resources/linkedAccounts/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; diff --git a/src/serialization/resources/ats/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts b/src/serialization/resources/ats/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts deleted file mode 100644 index 5443c0144..000000000 --- a/src/serialization/resources/ats/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.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 LinkedAccountsListRequestCategory: core.serialization.Schema< - serializers.ats.LinkedAccountsListRequestCategory.Raw, - Merge.ats.LinkedAccountsListRequestCategory -> = core.serialization.enum_(["accounting", "ats", "crm", "filestorage", "hris", "mktg", "ticketing"]); - -export declare namespace LinkedAccountsListRequestCategory { - export type Raw = "accounting" | "ats" | "crm" | "filestorage" | "hris" | "mktg" | "ticketing"; -} diff --git a/src/serialization/resources/ats/resources/linkedAccounts/types/index.ts b/src/serialization/resources/ats/resources/linkedAccounts/types/index.ts deleted file mode 100644 index 91de6010a..000000000 --- a/src/serialization/resources/ats/resources/linkedAccounts/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./LinkedAccountsListRequestCategory"; diff --git a/src/serialization/resources/ats/resources/offers/index.ts b/src/serialization/resources/ats/resources/offers/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/ats/resources/offers/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; 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/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/index.ts b/src/serialization/resources/ats/resources/offers/types/index.ts deleted file mode 100644 index 4b81bcdb5..000000000 --- a/src/serialization/resources/ats/resources/offers/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./OffersListRequestExpand"; -export * from "./OffersRetrieveRequestExpand"; diff --git a/src/serialization/resources/ats/resources/regenerateKey/client/index.ts b/src/serialization/resources/ats/resources/regenerateKey/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/ats/resources/regenerateKey/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/ats/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts b/src/serialization/resources/ats/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts deleted file mode 100644 index 689bcdf11..000000000 --- a/src/serialization/resources/ats/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts +++ /dev/null @@ -1,18 +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 RemoteKeyForRegenerationRequest: core.serialization.Schema< - serializers.ats.RemoteKeyForRegenerationRequest.Raw, - Merge.ats.RemoteKeyForRegenerationRequest -> = core.serialization.object({ - name: core.serialization.string(), -}); - -export declare namespace RemoteKeyForRegenerationRequest { - export interface Raw { - name: string; - } -} diff --git a/src/serialization/resources/ats/resources/regenerateKey/client/requests/index.ts b/src/serialization/resources/ats/resources/regenerateKey/client/requests/index.ts deleted file mode 100644 index 2987ef933..000000000 --- a/src/serialization/resources/ats/resources/regenerateKey/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { RemoteKeyForRegenerationRequest } from "./RemoteKeyForRegenerationRequest"; diff --git a/src/serialization/resources/ats/resources/regenerateKey/index.ts b/src/serialization/resources/ats/resources/regenerateKey/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/ats/resources/regenerateKey/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/ats/resources/scopes/client/index.ts b/src/serialization/resources/ats/resources/scopes/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/ats/resources/scopes/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/ats/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts b/src/serialization/resources/ats/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts deleted file mode 100644 index c37eb6052..000000000 --- a/src/serialization/resources/ats/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts +++ /dev/null @@ -1,22 +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 { IndividualCommonModelScopeDeserializerRequest } from "../../../../types/IndividualCommonModelScopeDeserializerRequest"; - -export const LinkedAccountCommonModelScopeDeserializerRequest: core.serialization.Schema< - serializers.ats.LinkedAccountCommonModelScopeDeserializerRequest.Raw, - Merge.ats.LinkedAccountCommonModelScopeDeserializerRequest -> = core.serialization.object({ - commonModels: core.serialization.property( - "common_models", - core.serialization.list(IndividualCommonModelScopeDeserializerRequest), - ), -}); - -export declare namespace LinkedAccountCommonModelScopeDeserializerRequest { - export interface Raw { - common_models: IndividualCommonModelScopeDeserializerRequest.Raw[]; - } -} diff --git a/src/serialization/resources/ats/resources/scopes/client/requests/index.ts b/src/serialization/resources/ats/resources/scopes/client/requests/index.ts deleted file mode 100644 index 28d8d7974..000000000 --- a/src/serialization/resources/ats/resources/scopes/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { LinkedAccountCommonModelScopeDeserializerRequest } from "./LinkedAccountCommonModelScopeDeserializerRequest"; diff --git a/src/serialization/resources/ats/resources/scopes/index.ts b/src/serialization/resources/ats/resources/scopes/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/ats/resources/scopes/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/ats/resources/scorecards/index.ts b/src/serialization/resources/ats/resources/scorecards/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/ats/resources/scorecards/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; 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/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/index.ts b/src/serialization/resources/ats/resources/scorecards/types/index.ts deleted file mode 100644 index abc9dc751..000000000 --- a/src/serialization/resources/ats/resources/scorecards/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./ScorecardsListRequestExpand"; -export * from "./ScorecardsRetrieveRequestExpand"; diff --git a/src/serialization/resources/ats/resources/webhookReceivers/client/index.ts b/src/serialization/resources/ats/resources/webhookReceivers/client/index.ts deleted file mode 100644 index 257d03e90..000000000 --- a/src/serialization/resources/ats/resources/webhookReceivers/client/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * as list from "./list"; -export * from "./requests"; diff --git a/src/serialization/resources/ats/resources/webhookReceivers/client/list.ts b/src/serialization/resources/ats/resources/webhookReceivers/client/list.ts deleted file mode 100644 index d69030312..000000000 --- a/src/serialization/resources/ats/resources/webhookReceivers/client/list.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 { WebhookReceiver } from "../../../types/WebhookReceiver"; - -export const Response: core.serialization.Schema< - serializers.ats.webhookReceivers.list.Response.Raw, - Merge.ats.WebhookReceiver[] -> = core.serialization.list(WebhookReceiver); - -export declare namespace Response { - export type Raw = WebhookReceiver.Raw[]; -} diff --git a/src/serialization/resources/ats/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts b/src/serialization/resources/ats/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts deleted file mode 100644 index 16668bff6..000000000 --- a/src/serialization/resources/ats/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts +++ /dev/null @@ -1,22 +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 WebhookReceiverRequest: core.serialization.Schema< - serializers.ats.WebhookReceiverRequest.Raw, - Merge.ats.WebhookReceiverRequest -> = core.serialization.object({ - event: core.serialization.string(), - isActive: core.serialization.property("is_active", core.serialization.boolean()), - key: core.serialization.string().optional(), -}); - -export declare namespace WebhookReceiverRequest { - export interface Raw { - event: string; - is_active: boolean; - key?: string | null; - } -} diff --git a/src/serialization/resources/ats/resources/webhookReceivers/client/requests/index.ts b/src/serialization/resources/ats/resources/webhookReceivers/client/requests/index.ts deleted file mode 100644 index 29f534250..000000000 --- a/src/serialization/resources/ats/resources/webhookReceivers/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { WebhookReceiverRequest } from "./WebhookReceiverRequest"; diff --git a/src/serialization/resources/ats/resources/webhookReceivers/index.ts b/src/serialization/resources/ats/resources/webhookReceivers/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/ats/resources/webhookReceivers/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/ats/types/AccessRoleEnum.ts b/src/serialization/resources/ats/types/AccessRoleEnum.ts deleted file mode 100644 index fe7c018f2..000000000 --- a/src/serialization/resources/ats/types/AccessRoleEnum.ts +++ /dev/null @@ -1,12 +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 AccessRoleEnum: core.serialization.Schema = - core.serialization.enum_(["SUPER_ADMIN", "ADMIN", "TEAM_MEMBER", "LIMITED_TEAM_MEMBER", "INTERVIEWER"]); - -export declare namespace AccessRoleEnum { - export type Raw = "SUPER_ADMIN" | "ADMIN" | "TEAM_MEMBER" | "LIMITED_TEAM_MEMBER" | "INTERVIEWER"; -} diff --git a/src/serialization/resources/ats/types/AccountDetails.ts b/src/serialization/resources/ats/types/AccountDetails.ts deleted file mode 100644 index 27180a351..000000000 --- a/src/serialization/resources/ats/types/AccountDetails.ts +++ /dev/null @@ -1,44 +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 { AccountDetailsCategory } from "./AccountDetailsCategory"; - -export const AccountDetails: core.serialization.ObjectSchema< - serializers.ats.AccountDetails.Raw, - Merge.ats.AccountDetails -> = core.serialization.object({ - id: core.serialization.string().optional(), - integration: core.serialization.string().optional(), - integrationSlug: core.serialization.property("integration_slug", core.serialization.string().optional()), - category: AccountDetailsCategory.optional(), - endUserOriginId: core.serialization.property("end_user_origin_id", core.serialization.string().optional()), - endUserOrganizationName: core.serialization.property( - "end_user_organization_name", - core.serialization.string().optional(), - ), - endUserEmailAddress: core.serialization.property("end_user_email_address", core.serialization.string().optional()), - status: core.serialization.string().optional(), - webhookListenerUrl: core.serialization.property("webhook_listener_url", core.serialization.string().optional()), - isDuplicate: core.serialization.property("is_duplicate", core.serialization.boolean().optional()), - accountType: core.serialization.property("account_type", core.serialization.string().optional()), - completedAt: core.serialization.property("completed_at", core.serialization.date().optional()), -}); - -export declare namespace AccountDetails { - export interface Raw { - id?: string | null; - integration?: string | null; - integration_slug?: string | null; - category?: AccountDetailsCategory.Raw | null; - end_user_origin_id?: string | null; - end_user_organization_name?: string | null; - end_user_email_address?: string | null; - status?: string | null; - webhook_listener_url?: string | null; - is_duplicate?: boolean | null; - account_type?: string | null; - completed_at?: string | null; - } -} diff --git a/src/serialization/resources/ats/types/AccountDetailsAndActions.ts b/src/serialization/resources/ats/types/AccountDetailsAndActions.ts deleted file mode 100644 index ceaff2696..000000000 --- a/src/serialization/resources/ats/types/AccountDetailsAndActions.ts +++ /dev/null @@ -1,50 +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 { AccountDetailsAndActionsCategory } from "./AccountDetailsAndActionsCategory"; -import { AccountDetailsAndActionsIntegration } from "./AccountDetailsAndActionsIntegration"; -import { AccountDetailsAndActionsStatus } from "./AccountDetailsAndActionsStatus"; - -export const AccountDetailsAndActions: core.serialization.ObjectSchema< - serializers.ats.AccountDetailsAndActions.Raw, - Merge.ats.AccountDetailsAndActions -> = core.serialization.object({ - id: core.serialization.string(), - 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()), - endUserEmailAddress: core.serialization.property("end_user_email_address", core.serialization.string()), - subdomain: core.serialization.string().optional(), - webhookListenerUrl: core.serialization.property("webhook_listener_url", core.serialization.string()), - isDuplicate: core.serialization.property("is_duplicate", core.serialization.boolean().optional()), - 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 { - export interface Raw { - id: string; - category?: AccountDetailsAndActionsCategory.Raw | null; - status: AccountDetailsAndActionsStatus.Raw; - status_detail?: string | null; - end_user_origin_id?: string | null; - end_user_organization_name: string; - end_user_email_address: string; - subdomain?: string | null; - webhook_listener_url: string; - is_duplicate?: boolean | null; - integration?: AccountDetailsAndActionsIntegration.Raw | null; - account_type: string; - completed_at: string; - integration_specific_fields?: Record | null; - } -} diff --git a/src/serialization/resources/ats/types/AccountDetailsAndActionsCategory.ts b/src/serialization/resources/ats/types/AccountDetailsAndActionsCategory.ts deleted file mode 100644 index 6fc669fc9..000000000 --- a/src/serialization/resources/ats/types/AccountDetailsAndActionsCategory.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { CategoryEnum } from "./CategoryEnum"; - -export const AccountDetailsAndActionsCategory: core.serialization.Schema< - serializers.ats.AccountDetailsAndActionsCategory.Raw, - Merge.ats.AccountDetailsAndActionsCategory -> = core.serialization.undiscriminatedUnion([CategoryEnum, core.serialization.string()]); - -export declare namespace AccountDetailsAndActionsCategory { - export type Raw = CategoryEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/AccountDetailsAndActionsIntegration.ts b/src/serialization/resources/ats/types/AccountDetailsAndActionsIntegration.ts deleted file mode 100644 index 99fbd8ae5..000000000 --- a/src/serialization/resources/ats/types/AccountDetailsAndActionsIntegration.ts +++ /dev/null @@ -1,37 +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 { CategoriesEnum } from "./CategoriesEnum"; -import { ModelOperation } from "./ModelOperation"; - -export const AccountDetailsAndActionsIntegration: core.serialization.ObjectSchema< - serializers.ats.AccountDetailsAndActionsIntegration.Raw, - Merge.ats.AccountDetailsAndActionsIntegration -> = core.serialization.object({ - name: core.serialization.string(), - categories: core.serialization.list(CategoriesEnum), - image: core.serialization.string().optional(), - squareImage: core.serialization.property("square_image", core.serialization.string().optional()), - color: core.serialization.string(), - slug: core.serialization.string(), - passthroughAvailable: core.serialization.property("passthrough_available", core.serialization.boolean()), - availableModelOperations: core.serialization.property( - "available_model_operations", - core.serialization.list(ModelOperation).optional(), - ), -}); - -export declare namespace AccountDetailsAndActionsIntegration { - export interface Raw { - name: string; - categories: CategoriesEnum.Raw[]; - image?: string | null; - square_image?: string | null; - color: string; - slug: string; - passthrough_available: boolean; - available_model_operations?: ModelOperation.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/AccountDetailsAndActionsStatus.ts b/src/serialization/resources/ats/types/AccountDetailsAndActionsStatus.ts deleted file mode 100644 index 87dace704..000000000 --- a/src/serialization/resources/ats/types/AccountDetailsAndActionsStatus.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 { AccountDetailsAndActionsStatusEnum } from "./AccountDetailsAndActionsStatusEnum"; - -export const AccountDetailsAndActionsStatus: core.serialization.Schema< - serializers.ats.AccountDetailsAndActionsStatus.Raw, - Merge.ats.AccountDetailsAndActionsStatus -> = core.serialization.undiscriminatedUnion([AccountDetailsAndActionsStatusEnum, core.serialization.string()]); - -export declare namespace AccountDetailsAndActionsStatus { - export type Raw = AccountDetailsAndActionsStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/AccountDetailsAndActionsStatusEnum.ts b/src/serialization/resources/ats/types/AccountDetailsAndActionsStatusEnum.ts deleted file mode 100644 index bad3cebf3..000000000 --- a/src/serialization/resources/ats/types/AccountDetailsAndActionsStatusEnum.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 AccountDetailsAndActionsStatusEnum: core.serialization.Schema< - serializers.ats.AccountDetailsAndActionsStatusEnum.Raw, - Merge.ats.AccountDetailsAndActionsStatusEnum -> = core.serialization.enum_(["COMPLETE", "INCOMPLETE", "RELINK_NEEDED", "IDLE"]); - -export declare namespace AccountDetailsAndActionsStatusEnum { - export type Raw = "COMPLETE" | "INCOMPLETE" | "RELINK_NEEDED" | "IDLE"; -} diff --git a/src/serialization/resources/ats/types/AccountDetailsCategory.ts b/src/serialization/resources/ats/types/AccountDetailsCategory.ts deleted file mode 100644 index 6e4854c6c..000000000 --- a/src/serialization/resources/ats/types/AccountDetailsCategory.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { CategoryEnum } from "./CategoryEnum"; - -export const AccountDetailsCategory: core.serialization.Schema< - serializers.ats.AccountDetailsCategory.Raw, - Merge.ats.AccountDetailsCategory -> = core.serialization.undiscriminatedUnion([CategoryEnum, core.serialization.string()]); - -export declare namespace AccountDetailsCategory { - export type Raw = CategoryEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/AccountIntegration.ts b/src/serialization/resources/ats/types/AccountIntegration.ts deleted file mode 100644 index 3dcea561b..000000000 --- a/src/serialization/resources/ats/types/AccountIntegration.ts +++ /dev/null @@ -1,46 +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 { CategoriesEnum } from "./CategoriesEnum"; - -export const AccountIntegration: core.serialization.ObjectSchema< - serializers.ats.AccountIntegration.Raw, - Merge.ats.AccountIntegration -> = core.serialization.object({ - name: core.serialization.string(), - abbreviatedName: core.serialization.property("abbreviated_name", core.serialization.string().optional()), - categories: core.serialization.list(CategoriesEnum).optional(), - image: core.serialization.string().optional(), - squareImage: core.serialization.property("square_image", core.serialization.string().optional()), - color: core.serialization.string().optional(), - slug: core.serialization.string().optional(), - apiEndpointsToDocumentationUrls: core.serialization.property( - "api_endpoints_to_documentation_urls", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - webhookSetupGuideUrl: core.serialization.property( - "webhook_setup_guide_url", - core.serialization.string().optional(), - ), - categoryBetaStatus: core.serialization.property( - "category_beta_status", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), -}); - -export declare namespace AccountIntegration { - export interface Raw { - name: string; - abbreviated_name?: string | null; - categories?: CategoriesEnum.Raw[] | null; - image?: string | null; - square_image?: string | null; - color?: string | null; - slug?: string | null; - api_endpoints_to_documentation_urls?: Record | null; - webhook_setup_guide_url?: string | null; - category_beta_status?: Record | null; - } -} diff --git a/src/serialization/resources/ats/types/AccountToken.ts b/src/serialization/resources/ats/types/AccountToken.ts deleted file mode 100644 index b6d2e2246..000000000 --- a/src/serialization/resources/ats/types/AccountToken.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { AccountIntegration } from "./AccountIntegration"; - -export const AccountToken: core.serialization.ObjectSchema = - core.serialization.object({ - accountToken: core.serialization.property("account_token", core.serialization.string()), - integration: AccountIntegration, - id: core.serialization.string(), - }); - -export declare namespace AccountToken { - export interface Raw { - account_token: string; - integration: AccountIntegration.Raw; - id: string; - } -} diff --git a/src/serialization/resources/ats/types/Activity.ts b/src/serialization/resources/ats/types/Activity.ts deleted file mode 100644 index 13590c94c..000000000 --- a/src/serialization/resources/ats/types/Activity.ts +++ /dev/null @@ -1,49 +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 { ActivityActivityType } from "./ActivityActivityType"; -import { ActivityUser } from "./ActivityUser"; -import { ActivityVisibility } from "./ActivityVisibility"; -import { RemoteData } from "./RemoteData"; - -export const Activity: core.serialization.ObjectSchema = - 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()), - user: ActivityUser.optional(), - remoteCreatedAt: core.serialization.property("remote_created_at", core.serialization.date().optional()), - activityType: core.serialization.property("activity_type", ActivityActivityType.optional()), - subject: core.serialization.string().optional(), - body: core.serialization.string().optional(), - visibility: ActivityVisibility.optional(), - candidate: core.serialization.string().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()), - }); - -export declare namespace Activity { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - user?: ActivityUser.Raw | null; - remote_created_at?: string | null; - activity_type?: ActivityActivityType.Raw | null; - subject?: string | null; - body?: string | null; - visibility?: ActivityVisibility.Raw | null; - candidate?: string | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/ActivityActivityType.ts b/src/serialization/resources/ats/types/ActivityActivityType.ts deleted file mode 100644 index 3583379ad..000000000 --- a/src/serialization/resources/ats/types/ActivityActivityType.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 ActivityActivityType: core.serialization.Schema< - serializers.ats.ActivityActivityType.Raw, - Merge.ats.ActivityActivityType -> = core.serialization.undiscriminatedUnion([ActivityTypeEnum, core.serialization.string()]); - -export declare namespace ActivityActivityType { - export type Raw = ActivityTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/ActivityRequest.ts b/src/serialization/resources/ats/types/ActivityRequest.ts deleted file mode 100644 index 63511b623..000000000 --- a/src/serialization/resources/ats/types/ActivityRequest.ts +++ /dev/null @@ -1,41 +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 { ActivityRequestActivityType } from "./ActivityRequestActivityType"; -import { ActivityRequestUser } from "./ActivityRequestUser"; -import { ActivityRequestVisibility } from "./ActivityRequestVisibility"; - -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()), - subject: core.serialization.string().optional(), - body: core.serialization.string().optional(), - visibility: ActivityRequestVisibility.optional(), - candidate: core.serialization.string().optional(), - integrationParams: core.serialization.property( - "integration_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - linkedAccountParams: core.serialization.property( - "linked_account_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), -}); - -export declare namespace ActivityRequest { - export interface Raw { - user?: ActivityRequestUser.Raw | null; - activity_type?: ActivityRequestActivityType.Raw | null; - subject?: string | null; - body?: string | null; - visibility?: ActivityRequestVisibility.Raw | null; - candidate?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | 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/ActivityRequestUser.ts b/src/serialization/resources/ats/types/ActivityRequestUser.ts deleted file mode 100644 index 70db552ec..000000000 --- a/src/serialization/resources/ats/types/ActivityRequestUser.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 { RemoteUser } from "./RemoteUser"; - -export const ActivityRequestUser: core.serialization.Schema< - serializers.ats.ActivityRequestUser.Raw, - Merge.ats.ActivityRequestUser -> = core.serialization.undiscriminatedUnion([core.serialization.string(), RemoteUser]); - -export declare namespace ActivityRequestUser { - export type Raw = string | RemoteUser.Raw; -} diff --git a/src/serialization/resources/ats/types/ActivityRequestVisibility.ts b/src/serialization/resources/ats/types/ActivityRequestVisibility.ts deleted file mode 100644 index d91049953..000000000 --- a/src/serialization/resources/ats/types/ActivityRequestVisibility.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 { VisibilityEnum } from "./VisibilityEnum"; - -export const ActivityRequestVisibility: core.serialization.Schema< - serializers.ats.ActivityRequestVisibility.Raw, - Merge.ats.ActivityRequestVisibility -> = core.serialization.undiscriminatedUnion([VisibilityEnum, core.serialization.string()]); - -export declare namespace ActivityRequestVisibility { - export type Raw = VisibilityEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/ActivityResponse.ts b/src/serialization/resources/ats/types/ActivityResponse.ts deleted file mode 100644 index fd918b7a8..000000000 --- a/src/serialization/resources/ats/types/ActivityResponse.ts +++ /dev/null @@ -1,28 +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 { Activity } from "./Activity"; -import { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const ActivityResponse: core.serialization.ObjectSchema< - serializers.ats.ActivityResponse.Raw, - Merge.ats.ActivityResponse -> = core.serialization.object({ - model: Activity, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace ActivityResponse { - export interface Raw { - model: Activity.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/ActivityTypeEnum.ts b/src/serialization/resources/ats/types/ActivityTypeEnum.ts deleted file mode 100644 index 09df6e85e..000000000 --- a/src/serialization/resources/ats/types/ActivityTypeEnum.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 ActivityTypeEnum: core.serialization.Schema< - serializers.ats.ActivityTypeEnum.Raw, - Merge.ats.ActivityTypeEnum -> = core.serialization.enum_(["NOTE", "EMAIL", "OTHER"]); - -export declare namespace ActivityTypeEnum { - export type Raw = "NOTE" | "EMAIL" | "OTHER"; -} diff --git a/src/serialization/resources/ats/types/ActivityUser.ts b/src/serialization/resources/ats/types/ActivityUser.ts deleted file mode 100644 index 2ee5ce480..000000000 --- a/src/serialization/resources/ats/types/ActivityUser.ts +++ /dev/null @@ -1,13 +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 { RemoteUser } from "./RemoteUser"; - -export const ActivityUser: core.serialization.Schema = - core.serialization.undiscriminatedUnion([core.serialization.string(), RemoteUser]); - -export declare namespace ActivityUser { - export type Raw = string | RemoteUser.Raw; -} diff --git a/src/serialization/resources/ats/types/ActivityVisibility.ts b/src/serialization/resources/ats/types/ActivityVisibility.ts deleted file mode 100644 index 6810495ea..000000000 --- a/src/serialization/resources/ats/types/ActivityVisibility.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 { VisibilityEnum } from "./VisibilityEnum"; - -export const ActivityVisibility: core.serialization.Schema< - serializers.ats.ActivityVisibility.Raw, - Merge.ats.ActivityVisibility -> = core.serialization.undiscriminatedUnion([VisibilityEnum, core.serialization.string()]); - -export declare namespace ActivityVisibility { - export type Raw = VisibilityEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/AdvancedMetadata.ts b/src/serialization/resources/ats/types/AdvancedMetadata.ts deleted file mode 100644 index 7ec201487..000000000 --- a/src/serialization/resources/ats/types/AdvancedMetadata.ts +++ /dev/null @@ -1,31 +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 AdvancedMetadata: core.serialization.ObjectSchema< - serializers.ats.AdvancedMetadata.Raw, - Merge.ats.AdvancedMetadata -> = core.serialization.object({ - id: core.serialization.string(), - displayName: core.serialization.property("display_name", core.serialization.string().optional()), - description: core.serialization.string().optional(), - isRequired: core.serialization.property("is_required", core.serialization.boolean().optional()), - isCustom: core.serialization.property("is_custom", core.serialization.boolean().optional()), - fieldChoices: core.serialization.property( - "field_choices", - core.serialization.list(core.serialization.unknown()).optional(), - ), -}); - -export declare namespace AdvancedMetadata { - export interface Raw { - id: string; - display_name?: string | null; - description?: string | null; - is_required?: boolean | null; - is_custom?: boolean | null; - field_choices?: unknown[] | null; - } -} diff --git a/src/serialization/resources/ats/types/Application.ts b/src/serialization/resources/ats/types/Application.ts deleted file mode 100644 index 6d1816991..000000000 --- a/src/serialization/resources/ats/types/Application.ts +++ /dev/null @@ -1,62 +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 * as serializers from "../../../index"; -import { ApplicationCreditedTo } from "./ApplicationCreditedTo"; -import { ApplicationCurrentStage } from "./ApplicationCurrentStage"; -import { ApplicationJob } from "./ApplicationJob"; -import { ApplicationRejectReason } from "./ApplicationRejectReason"; -import { ApplicationScreeningQuestionAnswersItem } from "./ApplicationScreeningQuestionAnswersItem"; -import { RemoteData } from "./RemoteData"; - -export const Application: core.serialization.ObjectSchema = - 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()), - candidate: core.serialization.lazy(() => serializers.ats.ApplicationCandidate).optional(), - job: ApplicationJob.optional(), - appliedAt: core.serialization.property("applied_at", core.serialization.date().optional()), - rejectedAt: core.serialization.property("rejected_at", core.serialization.date().optional()), - offers: core.serialization - .list(core.serialization.lazy(() => serializers.ats.ApplicationOffersItem).optional()) - .optional(), - source: core.serialization.string().optional(), - creditedTo: core.serialization.property("credited_to", ApplicationCreditedTo.optional()), - screeningQuestionAnswers: core.serialization.property( - "screening_question_answers", - core.serialization.list(ApplicationScreeningQuestionAnswersItem).optional(), - ), - currentStage: core.serialization.property("current_stage", ApplicationCurrentStage.optional()), - rejectReason: core.serialization.property("reject_reason", ApplicationRejectReason.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()), - }); - -export declare namespace Application { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - candidate?: serializers.ats.ApplicationCandidate.Raw | null; - job?: ApplicationJob.Raw | null; - applied_at?: string | null; - rejected_at?: string | null; - offers?: (serializers.ats.ApplicationOffersItem.Raw | null | undefined)[] | null; - source?: string | null; - credited_to?: ApplicationCreditedTo.Raw | null; - screening_question_answers?: ApplicationScreeningQuestionAnswersItem.Raw[] | null; - current_stage?: ApplicationCurrentStage.Raw | null; - reject_reason?: ApplicationRejectReason.Raw | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/ApplicationCandidate.ts b/src/serialization/resources/ats/types/ApplicationCandidate.ts deleted file mode 100644 index 5cbe629c0..000000000 --- a/src/serialization/resources/ats/types/ApplicationCandidate.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const ApplicationCandidate: core.serialization.Schema< - serializers.ats.ApplicationCandidate.Raw, - Merge.ats.ApplicationCandidate -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.ats.Candidate), -]); - -export declare namespace ApplicationCandidate { - export type Raw = string | serializers.ats.Candidate.Raw; -} diff --git a/src/serialization/resources/ats/types/ApplicationCreditedTo.ts b/src/serialization/resources/ats/types/ApplicationCreditedTo.ts deleted file mode 100644 index fd779749e..000000000 --- a/src/serialization/resources/ats/types/ApplicationCreditedTo.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 { RemoteUser } from "./RemoteUser"; - -export const ApplicationCreditedTo: core.serialization.Schema< - serializers.ats.ApplicationCreditedTo.Raw, - Merge.ats.ApplicationCreditedTo -> = core.serialization.undiscriminatedUnion([core.serialization.string(), RemoteUser]); - -export declare namespace ApplicationCreditedTo { - export type Raw = string | RemoteUser.Raw; -} diff --git a/src/serialization/resources/ats/types/ApplicationCurrentStage.ts b/src/serialization/resources/ats/types/ApplicationCurrentStage.ts deleted file mode 100644 index d0718c74e..000000000 --- a/src/serialization/resources/ats/types/ApplicationCurrentStage.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 { JobInterviewStage } from "./JobInterviewStage"; - -export const ApplicationCurrentStage: core.serialization.Schema< - serializers.ats.ApplicationCurrentStage.Raw, - Merge.ats.ApplicationCurrentStage -> = core.serialization.undiscriminatedUnion([core.serialization.string(), JobInterviewStage]); - -export declare namespace ApplicationCurrentStage { - export type Raw = string | JobInterviewStage.Raw; -} diff --git a/src/serialization/resources/ats/types/ApplicationJob.ts b/src/serialization/resources/ats/types/ApplicationJob.ts deleted file mode 100644 index 4336e0b59..000000000 --- a/src/serialization/resources/ats/types/ApplicationJob.ts +++ /dev/null @@ -1,13 +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 { Job } from "./Job"; - -export const ApplicationJob: core.serialization.Schema = - core.serialization.undiscriminatedUnion([core.serialization.string(), Job]); - -export declare namespace ApplicationJob { - export type Raw = string | Job.Raw; -} diff --git a/src/serialization/resources/ats/types/ApplicationOffersItem.ts b/src/serialization/resources/ats/types/ApplicationOffersItem.ts deleted file mode 100644 index 069153bed..000000000 --- a/src/serialization/resources/ats/types/ApplicationOffersItem.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const ApplicationOffersItem: core.serialization.Schema< - serializers.ats.ApplicationOffersItem.Raw, - Merge.ats.ApplicationOffersItem -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.ats.Offer), -]); - -export declare namespace ApplicationOffersItem { - export type Raw = string | serializers.ats.Offer.Raw; -} diff --git a/src/serialization/resources/ats/types/ApplicationRejectReason.ts b/src/serialization/resources/ats/types/ApplicationRejectReason.ts deleted file mode 100644 index 21e613c2d..000000000 --- a/src/serialization/resources/ats/types/ApplicationRejectReason.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 { RejectReason } from "./RejectReason"; - -export const ApplicationRejectReason: core.serialization.Schema< - serializers.ats.ApplicationRejectReason.Raw, - Merge.ats.ApplicationRejectReason -> = core.serialization.undiscriminatedUnion([core.serialization.string(), RejectReason]); - -export declare namespace ApplicationRejectReason { - export type Raw = string | RejectReason.Raw; -} diff --git a/src/serialization/resources/ats/types/ApplicationRequest.ts b/src/serialization/resources/ats/types/ApplicationRequest.ts deleted file mode 100644 index 2b5111f62..000000000 --- a/src/serialization/resources/ats/types/ApplicationRequest.ts +++ /dev/null @@ -1,58 +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 { ApplicationRequestCandidate } from "./ApplicationRequestCandidate"; -import { ApplicationRequestCreditedTo } from "./ApplicationRequestCreditedTo"; -import { ApplicationRequestCurrentStage } from "./ApplicationRequestCurrentStage"; -import { ApplicationRequestJob } from "./ApplicationRequestJob"; -import { ApplicationRequestOffersItem } from "./ApplicationRequestOffersItem"; -import { ApplicationRequestRejectReason } from "./ApplicationRequestRejectReason"; -import { ApplicationRequestScreeningQuestionAnswersItem } from "./ApplicationRequestScreeningQuestionAnswersItem"; - -export const ApplicationRequest: core.serialization.ObjectSchema< - serializers.ats.ApplicationRequest.Raw, - Merge.ats.ApplicationRequest -> = core.serialization.object({ - candidate: ApplicationRequestCandidate.optional(), - job: ApplicationRequestJob.optional(), - appliedAt: core.serialization.property("applied_at", core.serialization.date().optional()), - rejectedAt: core.serialization.property("rejected_at", core.serialization.date().optional()), - offers: core.serialization.list(ApplicationRequestOffersItem.optional()).optional(), - source: core.serialization.string().optional(), - creditedTo: core.serialization.property("credited_to", ApplicationRequestCreditedTo.optional()), - screeningQuestionAnswers: core.serialization.property( - "screening_question_answers", - core.serialization.list(ApplicationRequestScreeningQuestionAnswersItem).optional(), - ), - currentStage: core.serialization.property("current_stage", ApplicationRequestCurrentStage.optional()), - rejectReason: core.serialization.property("reject_reason", ApplicationRequestRejectReason.optional()), - remoteTemplateId: core.serialization.property("remote_template_id", core.serialization.string().optional()), - integrationParams: core.serialization.property( - "integration_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - linkedAccountParams: core.serialization.property( - "linked_account_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), -}); - -export declare namespace ApplicationRequest { - export interface Raw { - candidate?: ApplicationRequestCandidate.Raw | null; - job?: ApplicationRequestJob.Raw | null; - applied_at?: string | null; - rejected_at?: string | null; - offers?: (ApplicationRequestOffersItem.Raw | null | undefined)[] | null; - source?: string | null; - credited_to?: ApplicationRequestCreditedTo.Raw | null; - screening_question_answers?: ApplicationRequestScreeningQuestionAnswersItem.Raw[] | null; - current_stage?: ApplicationRequestCurrentStage.Raw | null; - reject_reason?: ApplicationRequestRejectReason.Raw | null; - remote_template_id?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/ats/types/ApplicationRequestCandidate.ts b/src/serialization/resources/ats/types/ApplicationRequestCandidate.ts deleted file mode 100644 index b354d4ca2..000000000 --- a/src/serialization/resources/ats/types/ApplicationRequestCandidate.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const ApplicationRequestCandidate: core.serialization.Schema< - serializers.ats.ApplicationRequestCandidate.Raw, - Merge.ats.ApplicationRequestCandidate -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.ats.Candidate), -]); - -export declare namespace ApplicationRequestCandidate { - export type Raw = string | serializers.ats.Candidate.Raw; -} diff --git a/src/serialization/resources/ats/types/ApplicationRequestCreditedTo.ts b/src/serialization/resources/ats/types/ApplicationRequestCreditedTo.ts deleted file mode 100644 index 5baf4c71a..000000000 --- a/src/serialization/resources/ats/types/ApplicationRequestCreditedTo.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 { RemoteUser } from "./RemoteUser"; - -export const ApplicationRequestCreditedTo: core.serialization.Schema< - serializers.ats.ApplicationRequestCreditedTo.Raw, - Merge.ats.ApplicationRequestCreditedTo -> = core.serialization.undiscriminatedUnion([core.serialization.string(), RemoteUser]); - -export declare namespace ApplicationRequestCreditedTo { - export type Raw = string | RemoteUser.Raw; -} diff --git a/src/serialization/resources/ats/types/ApplicationRequestCurrentStage.ts b/src/serialization/resources/ats/types/ApplicationRequestCurrentStage.ts deleted file mode 100644 index e502acfbb..000000000 --- a/src/serialization/resources/ats/types/ApplicationRequestCurrentStage.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 { JobInterviewStage } from "./JobInterviewStage"; - -export const ApplicationRequestCurrentStage: core.serialization.Schema< - serializers.ats.ApplicationRequestCurrentStage.Raw, - Merge.ats.ApplicationRequestCurrentStage -> = core.serialization.undiscriminatedUnion([core.serialization.string(), JobInterviewStage]); - -export declare namespace ApplicationRequestCurrentStage { - export type Raw = string | JobInterviewStage.Raw; -} diff --git a/src/serialization/resources/ats/types/ApplicationRequestJob.ts b/src/serialization/resources/ats/types/ApplicationRequestJob.ts deleted file mode 100644 index e96967b92..000000000 --- a/src/serialization/resources/ats/types/ApplicationRequestJob.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 { Job } from "./Job"; - -export const ApplicationRequestJob: core.serialization.Schema< - serializers.ats.ApplicationRequestJob.Raw, - Merge.ats.ApplicationRequestJob -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Job]); - -export declare namespace ApplicationRequestJob { - export type Raw = string | Job.Raw; -} diff --git a/src/serialization/resources/ats/types/ApplicationRequestOffersItem.ts b/src/serialization/resources/ats/types/ApplicationRequestOffersItem.ts deleted file mode 100644 index 15b4aedc1..000000000 --- a/src/serialization/resources/ats/types/ApplicationRequestOffersItem.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const ApplicationRequestOffersItem: core.serialization.Schema< - serializers.ats.ApplicationRequestOffersItem.Raw, - Merge.ats.ApplicationRequestOffersItem -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.ats.Offer), -]); - -export declare namespace ApplicationRequestOffersItem { - export type Raw = string | serializers.ats.Offer.Raw; -} diff --git a/src/serialization/resources/ats/types/ApplicationRequestRejectReason.ts b/src/serialization/resources/ats/types/ApplicationRequestRejectReason.ts deleted file mode 100644 index d8f7d811d..000000000 --- a/src/serialization/resources/ats/types/ApplicationRequestRejectReason.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 { RejectReason } from "./RejectReason"; - -export const ApplicationRequestRejectReason: core.serialization.Schema< - serializers.ats.ApplicationRequestRejectReason.Raw, - Merge.ats.ApplicationRequestRejectReason -> = core.serialization.undiscriminatedUnion([core.serialization.string(), RejectReason]); - -export declare namespace ApplicationRequestRejectReason { - export type Raw = string | RejectReason.Raw; -} diff --git a/src/serialization/resources/ats/types/ApplicationRequestScreeningQuestionAnswersItem.ts b/src/serialization/resources/ats/types/ApplicationRequestScreeningQuestionAnswersItem.ts deleted file mode 100644 index 56c5cac2f..000000000 --- a/src/serialization/resources/ats/types/ApplicationRequestScreeningQuestionAnswersItem.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 { ScreeningQuestionAnswerRequest } from "./ScreeningQuestionAnswerRequest"; - -export const ApplicationRequestScreeningQuestionAnswersItem: core.serialization.Schema< - serializers.ats.ApplicationRequestScreeningQuestionAnswersItem.Raw, - Merge.ats.ApplicationRequestScreeningQuestionAnswersItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), ScreeningQuestionAnswerRequest]); - -export declare namespace ApplicationRequestScreeningQuestionAnswersItem { - export type Raw = string | ScreeningQuestionAnswerRequest.Raw; -} diff --git a/src/serialization/resources/ats/types/ApplicationResponse.ts b/src/serialization/resources/ats/types/ApplicationResponse.ts deleted file mode 100644 index 0986e70d1..000000000 --- a/src/serialization/resources/ats/types/ApplicationResponse.ts +++ /dev/null @@ -1,27 +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 * as serializers from "../../../index"; -import { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const ApplicationResponse: core.serialization.ObjectSchema< - serializers.ats.ApplicationResponse.Raw, - Merge.ats.ApplicationResponse -> = core.serialization.object({ - model: core.serialization.lazyObject(() => serializers.ats.Application), - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace ApplicationResponse { - export interface Raw { - model: serializers.ats.Application.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/ApplicationScreeningQuestionAnswersItem.ts b/src/serialization/resources/ats/types/ApplicationScreeningQuestionAnswersItem.ts deleted file mode 100644 index 4a770a465..000000000 --- a/src/serialization/resources/ats/types/ApplicationScreeningQuestionAnswersItem.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 { ScreeningQuestionAnswer } from "./ScreeningQuestionAnswer"; - -export const ApplicationScreeningQuestionAnswersItem: core.serialization.Schema< - serializers.ats.ApplicationScreeningQuestionAnswersItem.Raw, - Merge.ats.ApplicationScreeningQuestionAnswersItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), ScreeningQuestionAnswer]); - -export declare namespace ApplicationScreeningQuestionAnswersItem { - export type Raw = string | ScreeningQuestionAnswer.Raw; -} diff --git a/src/serialization/resources/ats/types/AsyncPassthroughReciept.ts b/src/serialization/resources/ats/types/AsyncPassthroughReciept.ts deleted file mode 100644 index b79adb258..000000000 --- a/src/serialization/resources/ats/types/AsyncPassthroughReciept.ts +++ /dev/null @@ -1,18 +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 AsyncPassthroughReciept: core.serialization.ObjectSchema< - serializers.ats.AsyncPassthroughReciept.Raw, - Merge.ats.AsyncPassthroughReciept -> = core.serialization.object({ - asyncPassthroughReceiptId: core.serialization.property("async_passthrough_receipt_id", core.serialization.string()), -}); - -export declare namespace AsyncPassthroughReciept { - export interface Raw { - async_passthrough_receipt_id: string; - } -} diff --git a/src/serialization/resources/ats/types/Attachment.ts b/src/serialization/resources/ats/types/Attachment.ts deleted file mode 100644 index ff3252fd1..000000000 --- a/src/serialization/resources/ats/types/Attachment.ts +++ /dev/null @@ -1,41 +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 { AttachmentAttachmentType } from "./AttachmentAttachmentType"; -import { RemoteData } from "./RemoteData"; - -export const Attachment: core.serialization.ObjectSchema = - 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()), - fileName: core.serialization.property("file_name", core.serialization.string().optional()), - fileUrl: core.serialization.property("file_url", core.serialization.string().optional()), - candidate: core.serialization.string().optional(), - attachmentType: core.serialization.property("attachment_type", AttachmentAttachmentType.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()), - }); - -export declare namespace Attachment { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - file_name?: string | null; - file_url?: string | null; - candidate?: string | null; - attachment_type?: AttachmentAttachmentType.Raw | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/AttachmentAttachmentType.ts b/src/serialization/resources/ats/types/AttachmentAttachmentType.ts deleted file mode 100644 index 18bd0aaca..000000000 --- a/src/serialization/resources/ats/types/AttachmentAttachmentType.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 { AttachmentTypeEnum } from "./AttachmentTypeEnum"; - -export const AttachmentAttachmentType: core.serialization.Schema< - serializers.ats.AttachmentAttachmentType.Raw, - Merge.ats.AttachmentAttachmentType -> = core.serialization.undiscriminatedUnion([AttachmentTypeEnum, core.serialization.string()]); - -export declare namespace AttachmentAttachmentType { - export type Raw = AttachmentTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/AttachmentRequest.ts b/src/serialization/resources/ats/types/AttachmentRequest.ts deleted file mode 100644 index 19a5abe8e..000000000 --- a/src/serialization/resources/ats/types/AttachmentRequest.ts +++ /dev/null @@ -1,35 +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 { AttachmentRequestAttachmentType } from "./AttachmentRequestAttachmentType"; - -export const AttachmentRequest: core.serialization.ObjectSchema< - serializers.ats.AttachmentRequest.Raw, - Merge.ats.AttachmentRequest -> = core.serialization.object({ - fileName: core.serialization.property("file_name", core.serialization.string().optional()), - fileUrl: core.serialization.property("file_url", core.serialization.string().optional()), - candidate: core.serialization.string().optional(), - attachmentType: core.serialization.property("attachment_type", AttachmentRequestAttachmentType.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 AttachmentRequest { - export interface Raw { - file_name?: string | null; - file_url?: string | null; - candidate?: string | null; - attachment_type?: AttachmentRequestAttachmentType.Raw | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/ats/types/AttachmentRequestAttachmentType.ts b/src/serialization/resources/ats/types/AttachmentRequestAttachmentType.ts deleted file mode 100644 index a93eb16be..000000000 --- a/src/serialization/resources/ats/types/AttachmentRequestAttachmentType.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 { AttachmentTypeEnum } from "./AttachmentTypeEnum"; - -export const AttachmentRequestAttachmentType: core.serialization.Schema< - serializers.ats.AttachmentRequestAttachmentType.Raw, - Merge.ats.AttachmentRequestAttachmentType -> = core.serialization.undiscriminatedUnion([AttachmentTypeEnum, core.serialization.string()]); - -export declare namespace AttachmentRequestAttachmentType { - export type Raw = AttachmentTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/AttachmentResponse.ts b/src/serialization/resources/ats/types/AttachmentResponse.ts deleted file mode 100644 index a28c6b296..000000000 --- a/src/serialization/resources/ats/types/AttachmentResponse.ts +++ /dev/null @@ -1,28 +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 { Attachment } from "./Attachment"; -import { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const AttachmentResponse: core.serialization.ObjectSchema< - serializers.ats.AttachmentResponse.Raw, - Merge.ats.AttachmentResponse -> = core.serialization.object({ - model: Attachment, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace AttachmentResponse { - export interface Raw { - model: Attachment.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/AttachmentTypeEnum.ts b/src/serialization/resources/ats/types/AttachmentTypeEnum.ts deleted file mode 100644 index ea36c2350..000000000 --- a/src/serialization/resources/ats/types/AttachmentTypeEnum.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 AttachmentTypeEnum: core.serialization.Schema< - serializers.ats.AttachmentTypeEnum.Raw, - Merge.ats.AttachmentTypeEnum -> = core.serialization.enum_(["RESUME", "COVER_LETTER", "OFFER_LETTER", "OTHER"]); - -export declare namespace AttachmentTypeEnum { - export type Raw = "RESUME" | "COVER_LETTER" | "OFFER_LETTER" | "OTHER"; -} diff --git a/src/serialization/resources/ats/types/AuditLogEvent.ts b/src/serialization/resources/ats/types/AuditLogEvent.ts deleted file mode 100644 index f9610c26e..000000000 --- a/src/serialization/resources/ats/types/AuditLogEvent.ts +++ /dev/null @@ -1,34 +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 { AuditLogEventEventType } from "./AuditLogEventEventType"; -import { AuditLogEventRole } from "./AuditLogEventRole"; - -export const AuditLogEvent: core.serialization.ObjectSchema< - serializers.ats.AuditLogEvent.Raw, - Merge.ats.AuditLogEvent -> = core.serialization.object({ - id: core.serialization.string().optional(), - userName: core.serialization.property("user_name", core.serialization.string().optional()), - userEmail: core.serialization.property("user_email", core.serialization.string().optional()), - role: AuditLogEventRole, - ipAddress: core.serialization.property("ip_address", core.serialization.string()), - eventType: core.serialization.property("event_type", AuditLogEventEventType), - eventDescription: core.serialization.property("event_description", core.serialization.string()), - createdAt: core.serialization.property("created_at", core.serialization.date().optional()), -}); - -export declare namespace AuditLogEvent { - export interface Raw { - id?: string | null; - user_name?: string | null; - user_email?: string | null; - role: AuditLogEventRole.Raw; - ip_address: string; - event_type: AuditLogEventEventType.Raw; - event_description: string; - created_at?: string | null; - } -} diff --git a/src/serialization/resources/ats/types/AuditLogEventEventType.ts b/src/serialization/resources/ats/types/AuditLogEventEventType.ts deleted file mode 100644 index 478c942dc..000000000 --- a/src/serialization/resources/ats/types/AuditLogEventEventType.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 { EventTypeEnum } from "./EventTypeEnum"; - -export const AuditLogEventEventType: core.serialization.Schema< - serializers.ats.AuditLogEventEventType.Raw, - Merge.ats.AuditLogEventEventType -> = core.serialization.undiscriminatedUnion([EventTypeEnum, core.serialization.string()]); - -export declare namespace AuditLogEventEventType { - export type Raw = EventTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/AuditLogEventRole.ts b/src/serialization/resources/ats/types/AuditLogEventRole.ts deleted file mode 100644 index 93a29b6d5..000000000 --- a/src/serialization/resources/ats/types/AuditLogEventRole.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 { RoleEnum } from "./RoleEnum"; - -export const AuditLogEventRole: core.serialization.Schema< - serializers.ats.AuditLogEventRole.Raw, - Merge.ats.AuditLogEventRole -> = core.serialization.undiscriminatedUnion([RoleEnum, core.serialization.string()]); - -export declare namespace AuditLogEventRole { - export type Raw = RoleEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/AvailableActions.ts b/src/serialization/resources/ats/types/AvailableActions.ts deleted file mode 100644 index 24c90f664..000000000 --- a/src/serialization/resources/ats/types/AvailableActions.ts +++ /dev/null @@ -1,27 +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 { AccountIntegration } from "./AccountIntegration"; -import { ModelOperation } from "./ModelOperation"; - -export const AvailableActions: core.serialization.ObjectSchema< - serializers.ats.AvailableActions.Raw, - Merge.ats.AvailableActions -> = core.serialization.object({ - integration: AccountIntegration, - passthroughAvailable: core.serialization.property("passthrough_available", core.serialization.boolean()), - availableModelOperations: core.serialization.property( - "available_model_operations", - core.serialization.list(ModelOperation).optional(), - ), -}); - -export declare namespace AvailableActions { - export interface Raw { - integration: AccountIntegration.Raw; - passthrough_available: boolean; - available_model_operations?: ModelOperation.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/Candidate.ts b/src/serialization/resources/ats/types/Candidate.ts deleted file mode 100644 index 797217690..000000000 --- a/src/serialization/resources/ats/types/Candidate.ts +++ /dev/null @@ -1,73 +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 * as serializers from "../../../index"; -import { CandidateAttachmentsItem } from "./CandidateAttachmentsItem"; -import { EmailAddress } from "./EmailAddress"; -import { PhoneNumber } from "./PhoneNumber"; -import { RemoteData } from "./RemoteData"; -import { Url } from "./Url"; - -export const Candidate: core.serialization.ObjectSchema = - 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()), - firstName: core.serialization.property("first_name", core.serialization.string().optional()), - lastName: core.serialization.property("last_name", core.serialization.string().optional()), - company: core.serialization.string().optional(), - title: 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()), - lastInteractionAt: core.serialization.property("last_interaction_at", core.serialization.date().optional()), - isPrivate: core.serialization.property("is_private", core.serialization.boolean().optional()), - canEmail: core.serialization.property("can_email", core.serialization.boolean().optional()), - locations: core.serialization.list(core.serialization.string().optional()).optional(), - phoneNumbers: core.serialization.property("phone_numbers", core.serialization.list(PhoneNumber).optional()), - emailAddresses: core.serialization.property( - "email_addresses", - core.serialization.list(EmailAddress).optional(), - ), - urls: core.serialization.list(Url).optional(), - tags: core.serialization.list(core.serialization.string().optional()).optional(), - applications: core.serialization - .list(core.serialization.lazy(() => serializers.ats.CandidateApplicationsItem).optional()) - .optional(), - attachments: core.serialization.list(CandidateAttachmentsItem.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(), - ), - remoteData: core.serialization.property("remote_data", core.serialization.list(RemoteData).optional()), - }); - -export declare namespace Candidate { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - first_name?: string | null; - last_name?: string | null; - company?: string | null; - title?: string | null; - remote_created_at?: string | null; - remote_updated_at?: string | null; - last_interaction_at?: string | null; - is_private?: boolean | null; - can_email?: boolean | null; - locations?: (string | null | undefined)[] | null; - phone_numbers?: PhoneNumber.Raw[] | null; - email_addresses?: EmailAddress.Raw[] | null; - urls?: Url.Raw[] | null; - tags?: (string | null | undefined)[] | null; - applications?: (serializers.ats.CandidateApplicationsItem.Raw | null | undefined)[] | null; - attachments?: (CandidateAttachmentsItem.Raw | null | undefined)[] | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/CandidateApplicationsItem.ts b/src/serialization/resources/ats/types/CandidateApplicationsItem.ts deleted file mode 100644 index 816a0c62f..000000000 --- a/src/serialization/resources/ats/types/CandidateApplicationsItem.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const CandidateApplicationsItem: core.serialization.Schema< - serializers.ats.CandidateApplicationsItem.Raw, - Merge.ats.CandidateApplicationsItem -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.ats.Application), -]); - -export declare namespace CandidateApplicationsItem { - export type Raw = string | serializers.ats.Application.Raw; -} diff --git a/src/serialization/resources/ats/types/CandidateAttachmentsItem.ts b/src/serialization/resources/ats/types/CandidateAttachmentsItem.ts deleted file mode 100644 index 6b0c3a591..000000000 --- a/src/serialization/resources/ats/types/CandidateAttachmentsItem.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 { Attachment } from "./Attachment"; - -export const CandidateAttachmentsItem: core.serialization.Schema< - serializers.ats.CandidateAttachmentsItem.Raw, - Merge.ats.CandidateAttachmentsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Attachment]); - -export declare namespace CandidateAttachmentsItem { - export type Raw = string | Attachment.Raw; -} diff --git a/src/serialization/resources/ats/types/CandidateRequest.ts b/src/serialization/resources/ats/types/CandidateRequest.ts deleted file mode 100644 index dc1204a11..000000000 --- a/src/serialization/resources/ats/types/CandidateRequest.ts +++ /dev/null @@ -1,64 +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 { CandidateRequestApplicationsItem } from "./CandidateRequestApplicationsItem"; -import { CandidateRequestAttachmentsItem } from "./CandidateRequestAttachmentsItem"; -import { EmailAddressRequest } from "./EmailAddressRequest"; -import { PhoneNumberRequest } from "./PhoneNumberRequest"; -import { UrlRequest } from "./UrlRequest"; - -export const CandidateRequest: core.serialization.ObjectSchema< - serializers.ats.CandidateRequest.Raw, - Merge.ats.CandidateRequest -> = core.serialization.object({ - firstName: core.serialization.property("first_name", core.serialization.string().optional()), - lastName: core.serialization.property("last_name", core.serialization.string().optional()), - company: core.serialization.string().optional(), - title: core.serialization.string().optional(), - lastInteractionAt: core.serialization.property("last_interaction_at", core.serialization.date().optional()), - isPrivate: core.serialization.property("is_private", core.serialization.boolean().optional()), - canEmail: core.serialization.property("can_email", core.serialization.boolean().optional()), - locations: core.serialization.list(core.serialization.string().optional()).optional(), - phoneNumbers: core.serialization.property("phone_numbers", core.serialization.list(PhoneNumberRequest).optional()), - emailAddresses: core.serialization.property( - "email_addresses", - core.serialization.list(EmailAddressRequest).optional(), - ), - urls: core.serialization.list(UrlRequest).optional(), - tags: core.serialization.list(core.serialization.string().optional()).optional(), - applications: core.serialization.list(CandidateRequestApplicationsItem.optional()).optional(), - attachments: core.serialization.list(CandidateRequestAttachmentsItem.optional()).optional(), - remoteTemplateId: core.serialization.property("remote_template_id", core.serialization.string().optional()), - integrationParams: core.serialization.property( - "integration_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - linkedAccountParams: core.serialization.property( - "linked_account_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), -}); - -export declare namespace CandidateRequest { - export interface Raw { - first_name?: string | null; - last_name?: string | null; - company?: string | null; - title?: string | null; - last_interaction_at?: string | null; - is_private?: boolean | null; - can_email?: boolean | null; - locations?: (string | null | undefined)[] | null; - phone_numbers?: PhoneNumberRequest.Raw[] | null; - email_addresses?: EmailAddressRequest.Raw[] | null; - urls?: UrlRequest.Raw[] | null; - tags?: (string | null | undefined)[] | null; - applications?: (CandidateRequestApplicationsItem.Raw | null | undefined)[] | null; - attachments?: (CandidateRequestAttachmentsItem.Raw | null | undefined)[] | null; - remote_template_id?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/ats/types/CandidateRequestApplicationsItem.ts b/src/serialization/resources/ats/types/CandidateRequestApplicationsItem.ts deleted file mode 100644 index 6b9fb3d29..000000000 --- a/src/serialization/resources/ats/types/CandidateRequestApplicationsItem.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const CandidateRequestApplicationsItem: core.serialization.Schema< - serializers.ats.CandidateRequestApplicationsItem.Raw, - Merge.ats.CandidateRequestApplicationsItem -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.ats.Application), -]); - -export declare namespace CandidateRequestApplicationsItem { - export type Raw = string | serializers.ats.Application.Raw; -} diff --git a/src/serialization/resources/ats/types/CandidateRequestAttachmentsItem.ts b/src/serialization/resources/ats/types/CandidateRequestAttachmentsItem.ts deleted file mode 100644 index 98d4556b4..000000000 --- a/src/serialization/resources/ats/types/CandidateRequestAttachmentsItem.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 { Attachment } from "./Attachment"; - -export const CandidateRequestAttachmentsItem: core.serialization.Schema< - serializers.ats.CandidateRequestAttachmentsItem.Raw, - Merge.ats.CandidateRequestAttachmentsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Attachment]); - -export declare namespace CandidateRequestAttachmentsItem { - export type Raw = string | Attachment.Raw; -} diff --git a/src/serialization/resources/ats/types/CandidateResponse.ts b/src/serialization/resources/ats/types/CandidateResponse.ts deleted file mode 100644 index d5131a50d..000000000 --- a/src/serialization/resources/ats/types/CandidateResponse.ts +++ /dev/null @@ -1,27 +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 * as serializers from "../../../index"; -import { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const CandidateResponse: core.serialization.ObjectSchema< - serializers.ats.CandidateResponse.Raw, - Merge.ats.CandidateResponse -> = core.serialization.object({ - model: core.serialization.lazyObject(() => serializers.ats.Candidate), - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace CandidateResponse { - export interface Raw { - model: serializers.ats.Candidate.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/CategoriesEnum.ts b/src/serialization/resources/ats/types/CategoriesEnum.ts deleted file mode 100644 index 3c0762efa..000000000 --- a/src/serialization/resources/ats/types/CategoriesEnum.ts +++ /dev/null @@ -1,12 +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 CategoriesEnum: core.serialization.Schema = - core.serialization.enum_(["hris", "ats", "accounting", "ticketing", "crm", "mktg", "filestorage"]); - -export declare namespace CategoriesEnum { - export type Raw = "hris" | "ats" | "accounting" | "ticketing" | "crm" | "mktg" | "filestorage"; -} diff --git a/src/serialization/resources/ats/types/CategoryEnum.ts b/src/serialization/resources/ats/types/CategoryEnum.ts deleted file mode 100644 index 080215778..000000000 --- a/src/serialization/resources/ats/types/CategoryEnum.ts +++ /dev/null @@ -1,12 +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 CategoryEnum: core.serialization.Schema = - core.serialization.enum_(["hris", "ats", "accounting", "ticketing", "crm", "mktg", "filestorage"]); - -export declare namespace CategoryEnum { - export type Raw = "hris" | "ats" | "accounting" | "ticketing" | "crm" | "mktg" | "filestorage"; -} diff --git a/src/serialization/resources/ats/types/CommonModelScopeApi.ts b/src/serialization/resources/ats/types/CommonModelScopeApi.ts deleted file mode 100644 index 6cd150576..000000000 --- a/src/serialization/resources/ats/types/CommonModelScopeApi.ts +++ /dev/null @@ -1,22 +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 { IndividualCommonModelScopeDeserializer } from "./IndividualCommonModelScopeDeserializer"; - -export const CommonModelScopeApi: core.serialization.ObjectSchema< - serializers.ats.CommonModelScopeApi.Raw, - Merge.ats.CommonModelScopeApi -> = core.serialization.object({ - commonModels: core.serialization.property( - "common_models", - core.serialization.list(IndividualCommonModelScopeDeserializer), - ), -}); - -export declare namespace CommonModelScopeApi { - export interface Raw { - common_models: IndividualCommonModelScopeDeserializer.Raw[]; - } -} diff --git a/src/serialization/resources/ats/types/CommonModelScopesBodyRequest.ts b/src/serialization/resources/ats/types/CommonModelScopesBodyRequest.ts deleted file mode 100644 index e295484cc..000000000 --- a/src/serialization/resources/ats/types/CommonModelScopesBodyRequest.ts +++ /dev/null @@ -1,26 +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 { EnabledActionsEnum } from "./EnabledActionsEnum"; - -export const CommonModelScopesBodyRequest: core.serialization.ObjectSchema< - serializers.ats.CommonModelScopesBodyRequest.Raw, - Merge.ats.CommonModelScopesBodyRequest -> = core.serialization.object({ - modelId: core.serialization.property("model_id", core.serialization.string()), - enabledActions: core.serialization.property("enabled_actions", core.serialization.list(EnabledActionsEnum)), - disabledFields: core.serialization.property( - "disabled_fields", - core.serialization.list(core.serialization.string()), - ), -}); - -export declare namespace CommonModelScopesBodyRequest { - export interface Raw { - model_id: string; - enabled_actions: EnabledActionsEnum.Raw[]; - disabled_fields: string[]; - } -} diff --git a/src/serialization/resources/ats/types/DataPassthroughRequest.ts b/src/serialization/resources/ats/types/DataPassthroughRequest.ts deleted file mode 100644 index 04e4abcfa..000000000 --- a/src/serialization/resources/ats/types/DataPassthroughRequest.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { MethodEnum } from "./MethodEnum"; -import { MultipartFormFieldRequest } from "./MultipartFormFieldRequest"; -import { RequestFormatEnum } from "./RequestFormatEnum"; - -export const DataPassthroughRequest: core.serialization.ObjectSchema< - serializers.ats.DataPassthroughRequest.Raw, - Merge.ats.DataPassthroughRequest -> = core.serialization.object({ - method: MethodEnum, - path: core.serialization.string(), - baseUrlOverride: core.serialization.property("base_url_override", core.serialization.string().optional()), - data: core.serialization.string().optional(), - multipartFormData: core.serialization.property( - "multipart_form_data", - core.serialization.list(MultipartFormFieldRequest).optional(), - ), - headers: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - requestFormat: core.serialization.property("request_format", RequestFormatEnum.optional()), - normalizeResponse: core.serialization.property("normalize_response", core.serialization.boolean().optional()), -}); - -export declare namespace DataPassthroughRequest { - export interface Raw { - method: MethodEnum.Raw; - path: string; - base_url_override?: string | null; - data?: string | null; - multipart_form_data?: MultipartFormFieldRequest.Raw[] | null; - headers?: Record | null; - request_format?: RequestFormatEnum.Raw | null; - normalize_response?: boolean | null; - } -} diff --git a/src/serialization/resources/ats/types/DebugModeLog.ts b/src/serialization/resources/ats/types/DebugModeLog.ts deleted file mode 100644 index 68596341c..000000000 --- a/src/serialization/resources/ats/types/DebugModeLog.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { DebugModelLogSummary } from "./DebugModelLogSummary"; - -export const DebugModeLog: core.serialization.ObjectSchema = - core.serialization.object({ - logId: core.serialization.property("log_id", core.serialization.string()), - dashboardView: core.serialization.property("dashboard_view", core.serialization.string()), - logSummary: core.serialization.property("log_summary", DebugModelLogSummary), - }); - -export declare namespace DebugModeLog { - export interface Raw { - log_id: string; - dashboard_view: string; - log_summary: DebugModelLogSummary.Raw; - } -} diff --git a/src/serialization/resources/ats/types/DebugModelLogSummary.ts b/src/serialization/resources/ats/types/DebugModelLogSummary.ts deleted file mode 100644 index fe23618cb..000000000 --- a/src/serialization/resources/ats/types/DebugModelLogSummary.ts +++ /dev/null @@ -1,22 +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 DebugModelLogSummary: core.serialization.ObjectSchema< - serializers.ats.DebugModelLogSummary.Raw, - Merge.ats.DebugModelLogSummary -> = core.serialization.object({ - url: core.serialization.string(), - method: core.serialization.string(), - statusCode: core.serialization.property("status_code", core.serialization.number()), -}); - -export declare namespace DebugModelLogSummary { - export interface Raw { - url: string; - method: string; - status_code: number; - } -} diff --git a/src/serialization/resources/ats/types/Department.ts b/src/serialization/resources/ats/types/Department.ts deleted file mode 100644 index e2f214e1e..000000000 --- a/src/serialization/resources/ats/types/Department.ts +++ /dev/null @@ -1,34 +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 { RemoteData } from "./RemoteData"; - -export const Department: core.serialization.ObjectSchema = - 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()), - name: core.serialization.string().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()), - }); - -export declare namespace Department { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/DisabilityStatusEnum.ts b/src/serialization/resources/ats/types/DisabilityStatusEnum.ts deleted file mode 100644 index caec51075..000000000 --- a/src/serialization/resources/ats/types/DisabilityStatusEnum.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; - -export const DisabilityStatusEnum: core.serialization.Schema< - serializers.ats.DisabilityStatusEnum.Raw, - Merge.ats.DisabilityStatusEnum -> = core.serialization.enum_([ - "YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY", - "NO_I_DONT_HAVE_A_DISABILITY", - "I_DONT_WISH_TO_ANSWER", -]); - -export declare namespace DisabilityStatusEnum { - export type Raw = - | "YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY" - | "NO_I_DONT_HAVE_A_DISABILITY" - | "I_DONT_WISH_TO_ANSWER"; -} diff --git a/src/serialization/resources/ats/types/Eeoc.ts b/src/serialization/resources/ats/types/Eeoc.ts deleted file mode 100644 index 30b08d8b1..000000000 --- a/src/serialization/resources/ats/types/Eeoc.ts +++ /dev/null @@ -1,49 +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 { EeocCandidate } from "./EeocCandidate"; -import { EeocDisabilityStatus } from "./EeocDisabilityStatus"; -import { EeocGender } from "./EeocGender"; -import { EeocRace } from "./EeocRace"; -import { EeocVeteranStatus } from "./EeocVeteranStatus"; -import { RemoteData } from "./RemoteData"; - -export const Eeoc: core.serialization.ObjectSchema = - 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()), - candidate: EeocCandidate.optional(), - submittedAt: core.serialization.property("submitted_at", core.serialization.date().optional()), - race: EeocRace.optional(), - gender: EeocGender.optional(), - veteranStatus: core.serialization.property("veteran_status", EeocVeteranStatus.optional()), - disabilityStatus: core.serialization.property("disability_status", EeocDisabilityStatus.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()), - }); - -export declare namespace Eeoc { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - candidate?: EeocCandidate.Raw | null; - submitted_at?: string | null; - race?: EeocRace.Raw | null; - gender?: EeocGender.Raw | null; - veteran_status?: EeocVeteranStatus.Raw | null; - disability_status?: EeocDisabilityStatus.Raw | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/EeocCandidate.ts b/src/serialization/resources/ats/types/EeocCandidate.ts deleted file mode 100644 index f64de8c16..000000000 --- a/src/serialization/resources/ats/types/EeocCandidate.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 * as serializers from "../../../index"; - -export const EeocCandidate: core.serialization.Schema = - core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.ats.Candidate), - ]); - -export declare namespace EeocCandidate { - export type Raw = string | serializers.ats.Candidate.Raw; -} diff --git a/src/serialization/resources/ats/types/EeocDisabilityStatus.ts b/src/serialization/resources/ats/types/EeocDisabilityStatus.ts deleted file mode 100644 index c84dbedff..000000000 --- a/src/serialization/resources/ats/types/EeocDisabilityStatus.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 { DisabilityStatusEnum } from "./DisabilityStatusEnum"; - -export const EeocDisabilityStatus: core.serialization.Schema< - serializers.ats.EeocDisabilityStatus.Raw, - Merge.ats.EeocDisabilityStatus -> = core.serialization.undiscriminatedUnion([DisabilityStatusEnum, core.serialization.string()]); - -export declare namespace EeocDisabilityStatus { - export type Raw = DisabilityStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/EeocGender.ts b/src/serialization/resources/ats/types/EeocGender.ts deleted file mode 100644 index b9839eed7..000000000 --- a/src/serialization/resources/ats/types/EeocGender.ts +++ /dev/null @@ -1,13 +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 { GenderEnum } from "./GenderEnum"; - -export const EeocGender: core.serialization.Schema = - core.serialization.undiscriminatedUnion([GenderEnum, core.serialization.string()]); - -export declare namespace EeocGender { - export type Raw = GenderEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/EeocRace.ts b/src/serialization/resources/ats/types/EeocRace.ts deleted file mode 100644 index 45c095270..000000000 --- a/src/serialization/resources/ats/types/EeocRace.ts +++ /dev/null @@ -1,13 +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 { RaceEnum } from "./RaceEnum"; - -export const EeocRace: core.serialization.Schema = - core.serialization.undiscriminatedUnion([RaceEnum, core.serialization.string()]); - -export declare namespace EeocRace { - export type Raw = RaceEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/EeocVeteranStatus.ts b/src/serialization/resources/ats/types/EeocVeteranStatus.ts deleted file mode 100644 index 8eb450775..000000000 --- a/src/serialization/resources/ats/types/EeocVeteranStatus.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 { VeteranStatusEnum } from "./VeteranStatusEnum"; - -export const EeocVeteranStatus: core.serialization.Schema< - serializers.ats.EeocVeteranStatus.Raw, - Merge.ats.EeocVeteranStatus -> = core.serialization.undiscriminatedUnion([VeteranStatusEnum, core.serialization.string()]); - -export declare namespace EeocVeteranStatus { - export type Raw = VeteranStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/EmailAddress.ts b/src/serialization/resources/ats/types/EmailAddress.ts deleted file mode 100644 index 508cbf50b..000000000 --- a/src/serialization/resources/ats/types/EmailAddress.ts +++ /dev/null @@ -1,25 +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 { EmailAddressEmailAddressType } from "./EmailAddressEmailAddressType"; - -export const EmailAddress: core.serialization.ObjectSchema = - core.serialization.object({ - createdAt: core.serialization.property("created_at", core.serialization.date().optional()), - modifiedAt: core.serialization.property("modified_at", core.serialization.date().optional()), - value: core.serialization.string().optional(), - emailAddressType: core.serialization.property("email_address_type", EmailAddressEmailAddressType.optional()), - remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), - }); - -export declare namespace EmailAddress { - export interface Raw { - created_at?: string | null; - modified_at?: string | null; - value?: string | null; - email_address_type?: EmailAddressEmailAddressType.Raw | null; - remote_was_deleted?: boolean | null; - } -} diff --git a/src/serialization/resources/ats/types/EmailAddressEmailAddressType.ts b/src/serialization/resources/ats/types/EmailAddressEmailAddressType.ts deleted file mode 100644 index 994170062..000000000 --- a/src/serialization/resources/ats/types/EmailAddressEmailAddressType.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 { EmailAddressTypeEnum } from "./EmailAddressTypeEnum"; - -export const EmailAddressEmailAddressType: core.serialization.Schema< - serializers.ats.EmailAddressEmailAddressType.Raw, - Merge.ats.EmailAddressEmailAddressType -> = core.serialization.undiscriminatedUnion([EmailAddressTypeEnum, core.serialization.string()]); - -export declare namespace EmailAddressEmailAddressType { - export type Raw = EmailAddressTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/EmailAddressRequest.ts b/src/serialization/resources/ats/types/EmailAddressRequest.ts deleted file mode 100644 index 22bff0a59..000000000 --- a/src/serialization/resources/ats/types/EmailAddressRequest.ts +++ /dev/null @@ -1,31 +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 { EmailAddressRequestEmailAddressType } from "./EmailAddressRequestEmailAddressType"; - -export const EmailAddressRequest: core.serialization.ObjectSchema< - serializers.ats.EmailAddressRequest.Raw, - Merge.ats.EmailAddressRequest -> = core.serialization.object({ - value: core.serialization.string().optional(), - emailAddressType: core.serialization.property("email_address_type", EmailAddressRequestEmailAddressType.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 EmailAddressRequest { - export interface Raw { - value?: string | null; - email_address_type?: EmailAddressRequestEmailAddressType.Raw | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/ats/types/EmailAddressRequestEmailAddressType.ts b/src/serialization/resources/ats/types/EmailAddressRequestEmailAddressType.ts deleted file mode 100644 index b9226c22d..000000000 --- a/src/serialization/resources/ats/types/EmailAddressRequestEmailAddressType.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 { EmailAddressTypeEnum } from "./EmailAddressTypeEnum"; - -export const EmailAddressRequestEmailAddressType: core.serialization.Schema< - serializers.ats.EmailAddressRequestEmailAddressType.Raw, - Merge.ats.EmailAddressRequestEmailAddressType -> = core.serialization.undiscriminatedUnion([EmailAddressTypeEnum, core.serialization.string()]); - -export declare namespace EmailAddressRequestEmailAddressType { - export type Raw = EmailAddressTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/EmailAddressTypeEnum.ts b/src/serialization/resources/ats/types/EmailAddressTypeEnum.ts deleted file mode 100644 index ce25cc02d..000000000 --- a/src/serialization/resources/ats/types/EmailAddressTypeEnum.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 EmailAddressTypeEnum: core.serialization.Schema< - serializers.ats.EmailAddressTypeEnum.Raw, - Merge.ats.EmailAddressTypeEnum -> = core.serialization.enum_(["PERSONAL", "WORK", "OTHER"]); - -export declare namespace EmailAddressTypeEnum { - export type Raw = "PERSONAL" | "WORK" | "OTHER"; -} diff --git a/src/serialization/resources/ats/types/EnabledActionsEnum.ts b/src/serialization/resources/ats/types/EnabledActionsEnum.ts deleted file mode 100644 index c62112fba..000000000 --- a/src/serialization/resources/ats/types/EnabledActionsEnum.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 EnabledActionsEnum: core.serialization.Schema< - serializers.ats.EnabledActionsEnum.Raw, - Merge.ats.EnabledActionsEnum -> = core.serialization.enum_(["READ", "WRITE"]); - -export declare namespace EnabledActionsEnum { - export type Raw = "READ" | "WRITE"; -} diff --git a/src/serialization/resources/ats/types/EncodingEnum.ts b/src/serialization/resources/ats/types/EncodingEnum.ts deleted file mode 100644 index 415a4acd3..000000000 --- a/src/serialization/resources/ats/types/EncodingEnum.ts +++ /dev/null @@ -1,12 +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 EncodingEnum: core.serialization.Schema = - core.serialization.enum_(["RAW", "BASE64", "GZIP_BASE64"]); - -export declare namespace EncodingEnum { - export type Raw = "RAW" | "BASE64" | "GZIP_BASE64"; -} diff --git a/src/serialization/resources/ats/types/ErrorValidationProblem.ts b/src/serialization/resources/ats/types/ErrorValidationProblem.ts deleted file mode 100644 index 99c0124b3..000000000 --- a/src/serialization/resources/ats/types/ErrorValidationProblem.ts +++ /dev/null @@ -1,25 +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 { ValidationProblemSource } from "./ValidationProblemSource"; - -export const ErrorValidationProblem: core.serialization.ObjectSchema< - serializers.ats.ErrorValidationProblem.Raw, - Merge.ats.ErrorValidationProblem -> = core.serialization.object({ - source: ValidationProblemSource.optional(), - title: core.serialization.string(), - detail: core.serialization.string(), - problemType: core.serialization.property("problem_type", core.serialization.string()), -}); - -export declare namespace ErrorValidationProblem { - export interface Raw { - source?: ValidationProblemSource.Raw | null; - title: string; - detail: string; - problem_type: string; - } -} diff --git a/src/serialization/resources/ats/types/EventTypeEnum.ts b/src/serialization/resources/ats/types/EventTypeEnum.ts deleted file mode 100644 index 83c5de969..000000000 --- a/src/serialization/resources/ats/types/EventTypeEnum.ts +++ /dev/null @@ -1,99 +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 EventTypeEnum: core.serialization.Schema = - core.serialization.enum_([ - "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", - ]); - -export declare namespace EventTypeEnum { - export type Raw = - | "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"; -} diff --git a/src/serialization/resources/ats/types/ExternalTargetFieldApi.ts b/src/serialization/resources/ats/types/ExternalTargetFieldApi.ts deleted file mode 100644 index c01654a6f..000000000 --- a/src/serialization/resources/ats/types/ExternalTargetFieldApi.ts +++ /dev/null @@ -1,22 +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 ExternalTargetFieldApi: core.serialization.ObjectSchema< - serializers.ats.ExternalTargetFieldApi.Raw, - Merge.ats.ExternalTargetFieldApi -> = core.serialization.object({ - name: core.serialization.string().optional(), - description: core.serialization.string().optional(), - isMapped: core.serialization.property("is_mapped", core.serialization.string().optional()), -}); - -export declare namespace ExternalTargetFieldApi { - export interface Raw { - name?: string | null; - description?: string | null; - is_mapped?: string | null; - } -} diff --git a/src/serialization/resources/ats/types/ExternalTargetFieldApiResponse.ts b/src/serialization/resources/ats/types/ExternalTargetFieldApiResponse.ts deleted file mode 100644 index 700489eb0..000000000 --- a/src/serialization/resources/ats/types/ExternalTargetFieldApiResponse.ts +++ /dev/null @@ -1,58 +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 { ExternalTargetFieldApi } from "./ExternalTargetFieldApi"; - -export const ExternalTargetFieldApiResponse: core.serialization.ObjectSchema< - serializers.ats.ExternalTargetFieldApiResponse.Raw, - Merge.ats.ExternalTargetFieldApiResponse -> = core.serialization.object({ - activity: core.serialization.property("Activity", core.serialization.list(ExternalTargetFieldApi).optional()), - application: core.serialization.property("Application", core.serialization.list(ExternalTargetFieldApi).optional()), - attachment: core.serialization.property("Attachment", core.serialization.list(ExternalTargetFieldApi).optional()), - candidate: core.serialization.property("Candidate", core.serialization.list(ExternalTargetFieldApi).optional()), - department: core.serialization.property("Department", core.serialization.list(ExternalTargetFieldApi).optional()), - eeoc: core.serialization.property("EEOC", core.serialization.list(ExternalTargetFieldApi).optional()), - scheduledInterview: core.serialization.property( - "ScheduledInterview", - core.serialization.list(ExternalTargetFieldApi).optional(), - ), - job: core.serialization.property("Job", core.serialization.list(ExternalTargetFieldApi).optional()), - jobPosting: core.serialization.property("JobPosting", core.serialization.list(ExternalTargetFieldApi).optional()), - jobInterviewStage: core.serialization.property( - "JobInterviewStage", - core.serialization.list(ExternalTargetFieldApi).optional(), - ), - offer: core.serialization.property("Offer", core.serialization.list(ExternalTargetFieldApi).optional()), - office: core.serialization.property("Office", core.serialization.list(ExternalTargetFieldApi).optional()), - rejectReason: core.serialization.property( - "RejectReason", - core.serialization.list(ExternalTargetFieldApi).optional(), - ), - scorecard: core.serialization.property("Scorecard", core.serialization.list(ExternalTargetFieldApi).optional()), - tag: core.serialization.property("Tag", core.serialization.list(ExternalTargetFieldApi).optional()), - remoteUser: core.serialization.property("RemoteUser", core.serialization.list(ExternalTargetFieldApi).optional()), -}); - -export declare namespace ExternalTargetFieldApiResponse { - export interface Raw { - Activity?: ExternalTargetFieldApi.Raw[] | null; - Application?: ExternalTargetFieldApi.Raw[] | null; - Attachment?: ExternalTargetFieldApi.Raw[] | null; - Candidate?: ExternalTargetFieldApi.Raw[] | null; - Department?: ExternalTargetFieldApi.Raw[] | null; - EEOC?: ExternalTargetFieldApi.Raw[] | null; - ScheduledInterview?: ExternalTargetFieldApi.Raw[] | null; - Job?: ExternalTargetFieldApi.Raw[] | null; - JobPosting?: ExternalTargetFieldApi.Raw[] | null; - JobInterviewStage?: ExternalTargetFieldApi.Raw[] | null; - Offer?: ExternalTargetFieldApi.Raw[] | null; - Office?: ExternalTargetFieldApi.Raw[] | null; - RejectReason?: ExternalTargetFieldApi.Raw[] | null; - Scorecard?: ExternalTargetFieldApi.Raw[] | null; - Tag?: ExternalTargetFieldApi.Raw[] | null; - RemoteUser?: ExternalTargetFieldApi.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/FieldMappingApiInstance.ts b/src/serialization/resources/ats/types/FieldMappingApiInstance.ts deleted file mode 100644 index 73a69a569..000000000 --- a/src/serialization/resources/ats/types/FieldMappingApiInstance.ts +++ /dev/null @@ -1,26 +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 { FieldMappingApiInstanceRemoteField } from "./FieldMappingApiInstanceRemoteField"; -import { FieldMappingApiInstanceTargetField } from "./FieldMappingApiInstanceTargetField"; - -export const FieldMappingApiInstance: core.serialization.ObjectSchema< - serializers.ats.FieldMappingApiInstance.Raw, - Merge.ats.FieldMappingApiInstance -> = core.serialization.object({ - id: core.serialization.string().optional(), - 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()), -}); - -export declare namespace FieldMappingApiInstance { - export interface Raw { - id?: string | null; - is_integration_wide?: boolean | null; - target_field?: FieldMappingApiInstanceTargetField.Raw | null; - remote_field?: FieldMappingApiInstanceRemoteField.Raw | null; - } -} diff --git a/src/serialization/resources/ats/types/FieldMappingApiInstanceRemoteField.ts b/src/serialization/resources/ats/types/FieldMappingApiInstanceRemoteField.ts deleted file mode 100644 index 92e33e052..000000000 --- a/src/serialization/resources/ats/types/FieldMappingApiInstanceRemoteField.ts +++ /dev/null @@ -1,26 +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 { FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo } from "./FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo"; - -export const FieldMappingApiInstanceRemoteField: core.serialization.ObjectSchema< - serializers.ats.FieldMappingApiInstanceRemoteField.Raw, - Merge.ats.FieldMappingApiInstanceRemoteField -> = core.serialization.object({ - remoteKeyName: core.serialization.property("remote_key_name", core.serialization.string().optional()), - schema: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - remoteEndpointInfo: core.serialization.property( - "remote_endpoint_info", - FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo, - ), -}); - -export declare namespace FieldMappingApiInstanceRemoteField { - export interface Raw { - remote_key_name?: string | null; - schema?: Record | null; - remote_endpoint_info: FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.Raw; - } -} diff --git a/src/serialization/resources/ats/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts b/src/serialization/resources/ats/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts deleted file mode 100644 index 2ea12ceb6..000000000 --- a/src/serialization/resources/ats/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts +++ /dev/null @@ -1,25 +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 FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo: core.serialization.ObjectSchema< - serializers.ats.FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.Raw, - Merge.ats.FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo -> = core.serialization.object({ - method: core.serialization.string().optional(), - urlPath: core.serialization.property("url_path", core.serialization.string().optional()), - fieldTraversalPath: core.serialization.property( - "field_traversal_path", - core.serialization.list(core.serialization.string()).optional(), - ), -}); - -export declare namespace FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo { - export interface Raw { - method?: string | null; - url_path?: string | null; - field_traversal_path?: string[] | null; - } -} diff --git a/src/serialization/resources/ats/types/FieldMappingApiInstanceResponse.ts b/src/serialization/resources/ats/types/FieldMappingApiInstanceResponse.ts deleted file mode 100644 index 5c85fa692..000000000 --- a/src/serialization/resources/ats/types/FieldMappingApiInstanceResponse.ts +++ /dev/null @@ -1,61 +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 { FieldMappingApiInstance } from "./FieldMappingApiInstance"; - -export const FieldMappingApiInstanceResponse: core.serialization.ObjectSchema< - serializers.ats.FieldMappingApiInstanceResponse.Raw, - Merge.ats.FieldMappingApiInstanceResponse -> = core.serialization.object({ - activity: core.serialization.property("Activity", core.serialization.list(FieldMappingApiInstance).optional()), - application: core.serialization.property( - "Application", - core.serialization.list(FieldMappingApiInstance).optional(), - ), - attachment: core.serialization.property("Attachment", core.serialization.list(FieldMappingApiInstance).optional()), - candidate: core.serialization.property("Candidate", core.serialization.list(FieldMappingApiInstance).optional()), - department: core.serialization.property("Department", core.serialization.list(FieldMappingApiInstance).optional()), - eeoc: core.serialization.property("EEOC", core.serialization.list(FieldMappingApiInstance).optional()), - scheduledInterview: core.serialization.property( - "ScheduledInterview", - core.serialization.list(FieldMappingApiInstance).optional(), - ), - job: core.serialization.property("Job", core.serialization.list(FieldMappingApiInstance).optional()), - jobPosting: core.serialization.property("JobPosting", core.serialization.list(FieldMappingApiInstance).optional()), - jobInterviewStage: core.serialization.property( - "JobInterviewStage", - core.serialization.list(FieldMappingApiInstance).optional(), - ), - offer: core.serialization.property("Offer", core.serialization.list(FieldMappingApiInstance).optional()), - office: core.serialization.property("Office", core.serialization.list(FieldMappingApiInstance).optional()), - rejectReason: core.serialization.property( - "RejectReason", - core.serialization.list(FieldMappingApiInstance).optional(), - ), - scorecard: core.serialization.property("Scorecard", core.serialization.list(FieldMappingApiInstance).optional()), - tag: core.serialization.property("Tag", core.serialization.list(FieldMappingApiInstance).optional()), - remoteUser: core.serialization.property("RemoteUser", core.serialization.list(FieldMappingApiInstance).optional()), -}); - -export declare namespace FieldMappingApiInstanceResponse { - export interface Raw { - Activity?: FieldMappingApiInstance.Raw[] | null; - Application?: FieldMappingApiInstance.Raw[] | null; - Attachment?: FieldMappingApiInstance.Raw[] | null; - Candidate?: FieldMappingApiInstance.Raw[] | null; - Department?: FieldMappingApiInstance.Raw[] | null; - EEOC?: FieldMappingApiInstance.Raw[] | null; - ScheduledInterview?: FieldMappingApiInstance.Raw[] | null; - Job?: FieldMappingApiInstance.Raw[] | null; - JobPosting?: FieldMappingApiInstance.Raw[] | null; - JobInterviewStage?: FieldMappingApiInstance.Raw[] | null; - Offer?: FieldMappingApiInstance.Raw[] | null; - Office?: FieldMappingApiInstance.Raw[] | null; - RejectReason?: FieldMappingApiInstance.Raw[] | null; - Scorecard?: FieldMappingApiInstance.Raw[] | null; - Tag?: FieldMappingApiInstance.Raw[] | null; - RemoteUser?: FieldMappingApiInstance.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/FieldMappingApiInstanceTargetField.ts b/src/serialization/resources/ats/types/FieldMappingApiInstanceTargetField.ts deleted file mode 100644 index 5be2ff5d9..000000000 --- a/src/serialization/resources/ats/types/FieldMappingApiInstanceTargetField.ts +++ /dev/null @@ -1,22 +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 FieldMappingApiInstanceTargetField: core.serialization.ObjectSchema< - serializers.ats.FieldMappingApiInstanceTargetField.Raw, - Merge.ats.FieldMappingApiInstanceTargetField -> = core.serialization.object({ - name: core.serialization.string(), - description: core.serialization.string(), - isOrganizationWide: core.serialization.property("is_organization_wide", core.serialization.boolean()), -}); - -export declare namespace FieldMappingApiInstanceTargetField { - export interface Raw { - name: string; - description: string; - is_organization_wide: boolean; - } -} diff --git a/src/serialization/resources/ats/types/FieldMappingInstanceResponse.ts b/src/serialization/resources/ats/types/FieldMappingInstanceResponse.ts deleted file mode 100644 index 8aa16ff64..000000000 --- a/src/serialization/resources/ats/types/FieldMappingInstanceResponse.ts +++ /dev/null @@ -1,28 +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 { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { FieldMappingApiInstance } from "./FieldMappingApiInstance"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const FieldMappingInstanceResponse: core.serialization.ObjectSchema< - serializers.ats.FieldMappingInstanceResponse.Raw, - Merge.ats.FieldMappingInstanceResponse -> = core.serialization.object({ - model: FieldMappingApiInstance, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace FieldMappingInstanceResponse { - export interface Raw { - model: FieldMappingApiInstance.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/FieldPermissionDeserializer.ts b/src/serialization/resources/ats/types/FieldPermissionDeserializer.ts deleted file mode 100644 index 0c21f7353..000000000 --- a/src/serialization/resources/ats/types/FieldPermissionDeserializer.ts +++ /dev/null @@ -1,26 +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 FieldPermissionDeserializer: core.serialization.ObjectSchema< - serializers.ats.FieldPermissionDeserializer.Raw, - Merge.ats.FieldPermissionDeserializer -> = core.serialization.object({ - enabledFields: core.serialization.property( - "enabled_fields", - core.serialization.list(core.serialization.unknown()).optional(), - ), - disabledFields: core.serialization.property( - "disabled_fields", - core.serialization.list(core.serialization.unknown()).optional(), - ), -}); - -export declare namespace FieldPermissionDeserializer { - export interface Raw { - enabled_fields?: unknown[] | null; - disabled_fields?: unknown[] | null; - } -} diff --git a/src/serialization/resources/ats/types/FieldPermissionDeserializerRequest.ts b/src/serialization/resources/ats/types/FieldPermissionDeserializerRequest.ts deleted file mode 100644 index d9ec787c5..000000000 --- a/src/serialization/resources/ats/types/FieldPermissionDeserializerRequest.ts +++ /dev/null @@ -1,26 +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 FieldPermissionDeserializerRequest: core.serialization.ObjectSchema< - serializers.ats.FieldPermissionDeserializerRequest.Raw, - Merge.ats.FieldPermissionDeserializerRequest -> = core.serialization.object({ - enabledFields: core.serialization.property( - "enabled_fields", - core.serialization.list(core.serialization.unknown()).optional(), - ), - disabledFields: core.serialization.property( - "disabled_fields", - core.serialization.list(core.serialization.unknown()).optional(), - ), -}); - -export declare namespace FieldPermissionDeserializerRequest { - export interface Raw { - enabled_fields?: unknown[] | null; - disabled_fields?: unknown[] | null; - } -} diff --git a/src/serialization/resources/ats/types/GenderEnum.ts b/src/serialization/resources/ats/types/GenderEnum.ts deleted file mode 100644 index a9476f4f7..000000000 --- a/src/serialization/resources/ats/types/GenderEnum.ts +++ /dev/null @@ -1,12 +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 GenderEnum: core.serialization.Schema = - core.serialization.enum_(["MALE", "FEMALE", "NON-BINARY", "OTHER", "DECLINE_TO_SELF_IDENTIFY"]); - -export declare namespace GenderEnum { - export type Raw = "MALE" | "FEMALE" | "NON-BINARY" | "OTHER" | "DECLINE_TO_SELF_IDENTIFY"; -} diff --git a/src/serialization/resources/ats/types/IndividualCommonModelScopeDeserializer.ts b/src/serialization/resources/ats/types/IndividualCommonModelScopeDeserializer.ts deleted file mode 100644 index 1b6d7d07d..000000000 --- a/src/serialization/resources/ats/types/IndividualCommonModelScopeDeserializer.ts +++ /dev/null @@ -1,27 +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 { FieldPermissionDeserializer } from "./FieldPermissionDeserializer"; -import { ModelPermissionDeserializer } from "./ModelPermissionDeserializer"; - -export const IndividualCommonModelScopeDeserializer: core.serialization.ObjectSchema< - serializers.ats.IndividualCommonModelScopeDeserializer.Raw, - Merge.ats.IndividualCommonModelScopeDeserializer -> = core.serialization.object({ - modelName: core.serialization.property("model_name", core.serialization.string()), - modelPermissions: core.serialization.property( - "model_permissions", - core.serialization.record(core.serialization.string(), ModelPermissionDeserializer).optional(), - ), - fieldPermissions: core.serialization.property("field_permissions", FieldPermissionDeserializer.optional()), -}); - -export declare namespace IndividualCommonModelScopeDeserializer { - export interface Raw { - model_name: string; - model_permissions?: Record | null; - field_permissions?: FieldPermissionDeserializer.Raw | null; - } -} diff --git a/src/serialization/resources/ats/types/IndividualCommonModelScopeDeserializerRequest.ts b/src/serialization/resources/ats/types/IndividualCommonModelScopeDeserializerRequest.ts deleted file mode 100644 index 2af454c88..000000000 --- a/src/serialization/resources/ats/types/IndividualCommonModelScopeDeserializerRequest.ts +++ /dev/null @@ -1,27 +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 { FieldPermissionDeserializerRequest } from "./FieldPermissionDeserializerRequest"; -import { ModelPermissionDeserializerRequest } from "./ModelPermissionDeserializerRequest"; - -export const IndividualCommonModelScopeDeserializerRequest: core.serialization.ObjectSchema< - serializers.ats.IndividualCommonModelScopeDeserializerRequest.Raw, - Merge.ats.IndividualCommonModelScopeDeserializerRequest -> = core.serialization.object({ - modelName: core.serialization.property("model_name", core.serialization.string()), - modelPermissions: core.serialization.property( - "model_permissions", - core.serialization.record(core.serialization.string(), ModelPermissionDeserializerRequest).optional(), - ), - fieldPermissions: core.serialization.property("field_permissions", FieldPermissionDeserializerRequest.optional()), -}); - -export declare namespace IndividualCommonModelScopeDeserializerRequest { - export interface Raw { - model_name: string; - model_permissions?: Record | null; - field_permissions?: FieldPermissionDeserializerRequest.Raw | null; - } -} diff --git a/src/serialization/resources/ats/types/Issue.ts b/src/serialization/resources/ats/types/Issue.ts deleted file mode 100644 index d8cadc76c..000000000 --- a/src/serialization/resources/ats/types/Issue.ts +++ /dev/null @@ -1,37 +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 { IssueStatus } from "./IssueStatus"; - -export const Issue: core.serialization.ObjectSchema = - core.serialization.object({ - id: core.serialization.string().optional(), - status: IssueStatus.optional(), - errorDescription: core.serialization.property("error_description", core.serialization.string()), - endUser: core.serialization.property( - "end_user", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - firstIncidentTime: core.serialization.property("first_incident_time", core.serialization.date().optional()), - lastIncidentTime: core.serialization.property("last_incident_time", core.serialization.date().optional()), - isMuted: core.serialization.property("is_muted", core.serialization.boolean().optional()), - errorDetails: core.serialization.property( - "error_details", - core.serialization.list(core.serialization.string()).optional(), - ), - }); - -export declare namespace Issue { - export interface Raw { - id?: string | null; - status?: IssueStatus.Raw | null; - error_description: string; - end_user?: Record | null; - first_incident_time?: string | null; - last_incident_time?: string | null; - is_muted?: boolean | null; - error_details?: string[] | null; - } -} diff --git a/src/serialization/resources/ats/types/IssueStatus.ts b/src/serialization/resources/ats/types/IssueStatus.ts deleted file mode 100644 index ea35fffda..000000000 --- a/src/serialization/resources/ats/types/IssueStatus.ts +++ /dev/null @@ -1,13 +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 { IssueStatusEnum } from "./IssueStatusEnum"; - -export const IssueStatus: core.serialization.Schema = - core.serialization.undiscriminatedUnion([IssueStatusEnum, core.serialization.string()]); - -export declare namespace IssueStatus { - export type Raw = IssueStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/IssueStatusEnum.ts b/src/serialization/resources/ats/types/IssueStatusEnum.ts deleted file mode 100644 index 82cd674f1..000000000 --- a/src/serialization/resources/ats/types/IssueStatusEnum.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 IssueStatusEnum: core.serialization.Schema< - serializers.ats.IssueStatusEnum.Raw, - Merge.ats.IssueStatusEnum -> = core.serialization.enum_(["ONGOING", "RESOLVED"]); - -export declare namespace IssueStatusEnum { - export type Raw = "ONGOING" | "RESOLVED"; -} diff --git a/src/serialization/resources/ats/types/Job.ts b/src/serialization/resources/ats/types/Job.ts deleted file mode 100644 index fc47e6311..000000000 --- a/src/serialization/resources/ats/types/Job.ts +++ /dev/null @@ -1,72 +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 { JobDepartmentsItem } from "./JobDepartmentsItem"; -import { JobHiringManagersItem } from "./JobHiringManagersItem"; -import { JobOfficesItem } from "./JobOfficesItem"; -import { JobRecruitersItem } from "./JobRecruitersItem"; -import { JobStatus } from "./JobStatus"; -import { JobType } from "./JobType"; -import { RemoteData } from "./RemoteData"; -import { Url } from "./Url"; - -export const Job: core.serialization.ObjectSchema = 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()), - name: core.serialization.string().optional(), - description: core.serialization.string().optional(), - code: core.serialization.string().optional(), - status: JobStatus.optional(), - type: JobType.optional(), - jobPostings: core.serialization.property( - "job_postings", - core.serialization.list(core.serialization.string().optional()).optional(), - ), - jobPostingUrls: core.serialization.property("job_posting_urls", core.serialization.list(Url).optional()), - remoteCreatedAt: core.serialization.property("remote_created_at", core.serialization.date().optional()), - remoteUpdatedAt: core.serialization.property("remote_updated_at", core.serialization.date().optional()), - confidential: core.serialization.boolean().optional(), - departments: core.serialization.list(JobDepartmentsItem.optional()).optional(), - offices: core.serialization.list(JobOfficesItem.optional()).optional(), - hiringManagers: core.serialization.property( - "hiring_managers", - core.serialization.list(JobHiringManagersItem.optional()).optional(), - ), - recruiters: core.serialization.list(JobRecruitersItem.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(), - ), - remoteData: core.serialization.property("remote_data", core.serialization.list(RemoteData).optional()), -}); - -export declare namespace Job { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - description?: string | null; - code?: string | null; - status?: JobStatus.Raw | null; - type?: JobType.Raw | null; - job_postings?: (string | null | undefined)[] | null; - job_posting_urls?: Url.Raw[] | null; - remote_created_at?: string | null; - remote_updated_at?: string | null; - confidential?: boolean | null; - departments?: (JobDepartmentsItem.Raw | null | undefined)[] | null; - offices?: (JobOfficesItem.Raw | null | undefined)[] | null; - hiring_managers?: (JobHiringManagersItem.Raw | null | undefined)[] | null; - recruiters?: (JobRecruitersItem.Raw | null | undefined)[] | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/JobDepartmentsItem.ts b/src/serialization/resources/ats/types/JobDepartmentsItem.ts deleted file mode 100644 index db1de7b49..000000000 --- a/src/serialization/resources/ats/types/JobDepartmentsItem.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 { Department } from "./Department"; - -export const JobDepartmentsItem: core.serialization.Schema< - serializers.ats.JobDepartmentsItem.Raw, - Merge.ats.JobDepartmentsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Department]); - -export declare namespace JobDepartmentsItem { - export type Raw = string | Department.Raw; -} diff --git a/src/serialization/resources/ats/types/JobHiringManagersItem.ts b/src/serialization/resources/ats/types/JobHiringManagersItem.ts deleted file mode 100644 index 29a0c5859..000000000 --- a/src/serialization/resources/ats/types/JobHiringManagersItem.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 { RemoteUser } from "./RemoteUser"; - -export const JobHiringManagersItem: core.serialization.Schema< - serializers.ats.JobHiringManagersItem.Raw, - Merge.ats.JobHiringManagersItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), RemoteUser]); - -export declare namespace JobHiringManagersItem { - export type Raw = string | RemoteUser.Raw; -} diff --git a/src/serialization/resources/ats/types/JobInterviewStage.ts b/src/serialization/resources/ats/types/JobInterviewStage.ts deleted file mode 100644 index 6fc56d56b..000000000 --- a/src/serialization/resources/ats/types/JobInterviewStage.ts +++ /dev/null @@ -1,41 +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 { JobInterviewStageJob } from "./JobInterviewStageJob"; -import { RemoteData } from "./RemoteData"; - -export const JobInterviewStage: core.serialization.ObjectSchema< - serializers.ats.JobInterviewStage.Raw, - Merge.ats.JobInterviewStage -> = 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()), - name: core.serialization.string().optional(), - job: JobInterviewStageJob.optional(), - stageOrder: core.serialization.property("stage_order", core.serialization.number().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()), -}); - -export declare namespace JobInterviewStage { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - job?: JobInterviewStageJob.Raw | null; - stage_order?: number | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/JobInterviewStageJob.ts b/src/serialization/resources/ats/types/JobInterviewStageJob.ts deleted file mode 100644 index 607298101..000000000 --- a/src/serialization/resources/ats/types/JobInterviewStageJob.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 { Job } from "./Job"; - -export const JobInterviewStageJob: core.serialization.Schema< - serializers.ats.JobInterviewStageJob.Raw, - Merge.ats.JobInterviewStageJob -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Job]); - -export declare namespace JobInterviewStageJob { - export type Raw = string | Job.Raw; -} diff --git a/src/serialization/resources/ats/types/JobOfficesItem.ts b/src/serialization/resources/ats/types/JobOfficesItem.ts deleted file mode 100644 index 2beb73a4c..000000000 --- a/src/serialization/resources/ats/types/JobOfficesItem.ts +++ /dev/null @@ -1,13 +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 { Office } from "./Office"; - -export const JobOfficesItem: core.serialization.Schema = - core.serialization.undiscriminatedUnion([core.serialization.string(), Office]); - -export declare namespace JobOfficesItem { - export type Raw = string | Office.Raw; -} diff --git a/src/serialization/resources/ats/types/JobPosting.ts b/src/serialization/resources/ats/types/JobPosting.ts deleted file mode 100644 index 3aae917a5..000000000 --- a/src/serialization/resources/ats/types/JobPosting.ts +++ /dev/null @@ -1,54 +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 { JobPostingJob } from "./JobPostingJob"; -import { JobPostingJobPostingUrlsItem } from "./JobPostingJobPostingUrlsItem"; -import { JobPostingStatus } from "./JobPostingStatus"; -import { RemoteData } from "./RemoteData"; - -export const JobPosting: core.serialization.ObjectSchema = - 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()), - title: core.serialization.string().optional(), - jobPostingUrls: core.serialization.property( - "job_posting_urls", - core.serialization.list(JobPostingJobPostingUrlsItem).optional(), - ), - job: JobPostingJob.optional(), - status: JobPostingStatus.optional(), - content: 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()), - isInternal: core.serialization.property("is_internal", core.serialization.boolean().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()), - }); - -export declare namespace JobPosting { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - title?: string | null; - job_posting_urls?: JobPostingJobPostingUrlsItem.Raw[] | null; - job?: JobPostingJob.Raw | null; - status?: JobPostingStatus.Raw | null; - content?: string | null; - remote_created_at?: string | null; - remote_updated_at?: string | null; - is_internal?: boolean | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/JobPostingJob.ts b/src/serialization/resources/ats/types/JobPostingJob.ts deleted file mode 100644 index 8fa4a5ae7..000000000 --- a/src/serialization/resources/ats/types/JobPostingJob.ts +++ /dev/null @@ -1,13 +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 { Job } from "./Job"; - -export const JobPostingJob: core.serialization.Schema = - core.serialization.undiscriminatedUnion([core.serialization.string(), Job]); - -export declare namespace JobPostingJob { - export type Raw = string | Job.Raw; -} diff --git a/src/serialization/resources/ats/types/JobPostingJobPostingUrlsItem.ts b/src/serialization/resources/ats/types/JobPostingJobPostingUrlsItem.ts deleted file mode 100644 index 1033d3b31..000000000 --- a/src/serialization/resources/ats/types/JobPostingJobPostingUrlsItem.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 { Url } from "./Url"; - -export const JobPostingJobPostingUrlsItem: core.serialization.Schema< - serializers.ats.JobPostingJobPostingUrlsItem.Raw, - Merge.ats.JobPostingJobPostingUrlsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Url]); - -export declare namespace JobPostingJobPostingUrlsItem { - export type Raw = string | Url.Raw; -} diff --git a/src/serialization/resources/ats/types/JobPostingStatus.ts b/src/serialization/resources/ats/types/JobPostingStatus.ts deleted file mode 100644 index de987c082..000000000 --- a/src/serialization/resources/ats/types/JobPostingStatus.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 { JobPostingStatusEnum } from "./JobPostingStatusEnum"; - -export const JobPostingStatus: core.serialization.Schema< - serializers.ats.JobPostingStatus.Raw, - Merge.ats.JobPostingStatus -> = core.serialization.undiscriminatedUnion([JobPostingStatusEnum, core.serialization.string()]); - -export declare namespace JobPostingStatus { - export type Raw = JobPostingStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/JobPostingStatusEnum.ts b/src/serialization/resources/ats/types/JobPostingStatusEnum.ts deleted file mode 100644 index e27954024..000000000 --- a/src/serialization/resources/ats/types/JobPostingStatusEnum.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 JobPostingStatusEnum: core.serialization.Schema< - serializers.ats.JobPostingStatusEnum.Raw, - Merge.ats.JobPostingStatusEnum -> = core.serialization.enum_(["PUBLISHED", "CLOSED", "DRAFT", "INTERNAL", "PENDING"]); - -export declare namespace JobPostingStatusEnum { - export type Raw = "PUBLISHED" | "CLOSED" | "DRAFT" | "INTERNAL" | "PENDING"; -} diff --git a/src/serialization/resources/ats/types/JobRecruitersItem.ts b/src/serialization/resources/ats/types/JobRecruitersItem.ts deleted file mode 100644 index cfacce065..000000000 --- a/src/serialization/resources/ats/types/JobRecruitersItem.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 { RemoteUser } from "./RemoteUser"; - -export const JobRecruitersItem: core.serialization.Schema< - serializers.ats.JobRecruitersItem.Raw, - Merge.ats.JobRecruitersItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), RemoteUser]); - -export declare namespace JobRecruitersItem { - export type Raw = string | RemoteUser.Raw; -} diff --git a/src/serialization/resources/ats/types/JobStatus.ts b/src/serialization/resources/ats/types/JobStatus.ts deleted file mode 100644 index 2569895d9..000000000 --- a/src/serialization/resources/ats/types/JobStatus.ts +++ /dev/null @@ -1,13 +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 { JobStatusEnum } from "./JobStatusEnum"; - -export const JobStatus: core.serialization.Schema = - core.serialization.undiscriminatedUnion([JobStatusEnum, core.serialization.string()]); - -export declare namespace JobStatus { - export type Raw = JobStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/JobStatusEnum.ts b/src/serialization/resources/ats/types/JobStatusEnum.ts deleted file mode 100644 index 69d65447a..000000000 --- a/src/serialization/resources/ats/types/JobStatusEnum.ts +++ /dev/null @@ -1,12 +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 JobStatusEnum: core.serialization.Schema = - core.serialization.enum_(["OPEN", "CLOSED", "DRAFT", "ARCHIVED", "PENDING"]); - -export declare namespace JobStatusEnum { - export type Raw = "OPEN" | "CLOSED" | "DRAFT" | "ARCHIVED" | "PENDING"; -} diff --git a/src/serialization/resources/ats/types/JobType.ts b/src/serialization/resources/ats/types/JobType.ts deleted file mode 100644 index e78ac388b..000000000 --- a/src/serialization/resources/ats/types/JobType.ts +++ /dev/null @@ -1,13 +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 { JobTypeEnum } from "./JobTypeEnum"; - -export const JobType: core.serialization.Schema = - core.serialization.undiscriminatedUnion([JobTypeEnum, core.serialization.string()]); - -export declare namespace JobType { - export type Raw = JobTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/JobTypeEnum.ts b/src/serialization/resources/ats/types/JobTypeEnum.ts deleted file mode 100644 index 40acfaf5a..000000000 --- a/src/serialization/resources/ats/types/JobTypeEnum.ts +++ /dev/null @@ -1,12 +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 JobTypeEnum: core.serialization.Schema = - core.serialization.enum_(["POSTING", "REQUISITION", "PROFILE"]); - -export declare namespace JobTypeEnum { - export type Raw = "POSTING" | "REQUISITION" | "PROFILE"; -} diff --git a/src/serialization/resources/ats/types/LanguageEnum.ts b/src/serialization/resources/ats/types/LanguageEnum.ts deleted file mode 100644 index d25f9fe61..000000000 --- a/src/serialization/resources/ats/types/LanguageEnum.ts +++ /dev/null @@ -1,12 +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 LanguageEnum: core.serialization.Schema = - core.serialization.enum_(["en", "de"]); - -export declare namespace LanguageEnum { - export type Raw = "en" | "de"; -} diff --git a/src/serialization/resources/ats/types/LastSyncResultEnum.ts b/src/serialization/resources/ats/types/LastSyncResultEnum.ts deleted file mode 100644 index f875570fa..000000000 --- a/src/serialization/resources/ats/types/LastSyncResultEnum.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 LastSyncResultEnum: core.serialization.Schema< - serializers.ats.LastSyncResultEnum.Raw, - Merge.ats.LastSyncResultEnum -> = core.serialization.enum_(["SYNCING", "DONE", "FAILED", "DISABLED", "PAUSED", "PARTIALLY_SYNCED"]); - -export declare namespace LastSyncResultEnum { - export type Raw = "SYNCING" | "DONE" | "FAILED" | "DISABLED" | "PAUSED" | "PARTIALLY_SYNCED"; -} diff --git a/src/serialization/resources/ats/types/LinkToken.ts b/src/serialization/resources/ats/types/LinkToken.ts deleted file mode 100644 index ab0ab0cda..000000000 --- a/src/serialization/resources/ats/types/LinkToken.ts +++ /dev/null @@ -1,20 +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 LinkToken: core.serialization.ObjectSchema = - core.serialization.object({ - linkToken: core.serialization.property("link_token", core.serialization.string()), - integrationName: core.serialization.property("integration_name", core.serialization.string().optional()), - magicLinkUrl: core.serialization.property("magic_link_url", core.serialization.string().optional()), - }); - -export declare namespace LinkToken { - export interface Raw { - link_token: string; - integration_name?: string | null; - magic_link_url?: string | null; - } -} diff --git a/src/serialization/resources/ats/types/LinkedAccountStatus.ts b/src/serialization/resources/ats/types/LinkedAccountStatus.ts deleted file mode 100644 index 915081aad..000000000 --- a/src/serialization/resources/ats/types/LinkedAccountStatus.ts +++ /dev/null @@ -1,20 +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 LinkedAccountStatus: core.serialization.ObjectSchema< - serializers.ats.LinkedAccountStatus.Raw, - Merge.ats.LinkedAccountStatus -> = core.serialization.object({ - linkedAccountStatus: core.serialization.property("linked_account_status", core.serialization.string()), - canMakeRequest: core.serialization.property("can_make_request", core.serialization.boolean()), -}); - -export declare namespace LinkedAccountStatus { - export interface Raw { - linked_account_status: string; - can_make_request: boolean; - } -} diff --git a/src/serialization/resources/ats/types/MetaResponse.ts b/src/serialization/resources/ats/types/MetaResponse.ts deleted file mode 100644 index 71091a1ec..000000000 --- a/src/serialization/resources/ats/types/MetaResponse.ts +++ /dev/null @@ -1,34 +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 { LinkedAccountStatus } from "./LinkedAccountStatus"; - -export const MetaResponse: core.serialization.ObjectSchema = - core.serialization.object({ - requestSchema: core.serialization.property( - "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(), - ), - }); - -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; - } -} diff --git a/src/serialization/resources/ats/types/MethodEnum.ts b/src/serialization/resources/ats/types/MethodEnum.ts deleted file mode 100644 index 83b005e06..000000000 --- a/src/serialization/resources/ats/types/MethodEnum.ts +++ /dev/null @@ -1,12 +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 MethodEnum: core.serialization.Schema = - core.serialization.enum_(["GET", "OPTIONS", "HEAD", "POST", "PUT", "PATCH", "DELETE"]); - -export declare namespace MethodEnum { - export type Raw = "GET" | "OPTIONS" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE"; -} diff --git a/src/serialization/resources/ats/types/ModelOperation.ts b/src/serialization/resources/ats/types/ModelOperation.ts deleted file mode 100644 index 08e5adf01..000000000 --- a/src/serialization/resources/ats/types/ModelOperation.ts +++ /dev/null @@ -1,33 +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 ModelOperation: core.serialization.ObjectSchema< - serializers.ats.ModelOperation.Raw, - Merge.ats.ModelOperation -> = core.serialization.object({ - modelName: core.serialization.property("model_name", core.serialization.string()), - availableOperations: core.serialization.property( - "available_operations", - core.serialization.list(core.serialization.string()), - ), - requiredPostParameters: core.serialization.property( - "required_post_parameters", - core.serialization.list(core.serialization.string()), - ), - supportedFields: core.serialization.property( - "supported_fields", - core.serialization.list(core.serialization.string()), - ), -}); - -export declare namespace ModelOperation { - export interface Raw { - model_name: string; - available_operations: string[]; - required_post_parameters: string[]; - supported_fields: string[]; - } -} diff --git a/src/serialization/resources/ats/types/ModelPermissionDeserializer.ts b/src/serialization/resources/ats/types/ModelPermissionDeserializer.ts deleted file mode 100644 index ab7e4f292..000000000 --- a/src/serialization/resources/ats/types/ModelPermissionDeserializer.ts +++ /dev/null @@ -1,18 +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 ModelPermissionDeserializer: core.serialization.ObjectSchema< - serializers.ats.ModelPermissionDeserializer.Raw, - Merge.ats.ModelPermissionDeserializer -> = core.serialization.object({ - isEnabled: core.serialization.property("is_enabled", core.serialization.boolean().optional()), -}); - -export declare namespace ModelPermissionDeserializer { - export interface Raw { - is_enabled?: boolean | null; - } -} diff --git a/src/serialization/resources/ats/types/ModelPermissionDeserializerRequest.ts b/src/serialization/resources/ats/types/ModelPermissionDeserializerRequest.ts deleted file mode 100644 index d928eb36d..000000000 --- a/src/serialization/resources/ats/types/ModelPermissionDeserializerRequest.ts +++ /dev/null @@ -1,18 +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 ModelPermissionDeserializerRequest: core.serialization.ObjectSchema< - serializers.ats.ModelPermissionDeserializerRequest.Raw, - Merge.ats.ModelPermissionDeserializerRequest -> = core.serialization.object({ - isEnabled: core.serialization.property("is_enabled", core.serialization.boolean().optional()), -}); - -export declare namespace ModelPermissionDeserializerRequest { - export interface Raw { - is_enabled?: boolean | null; - } -} diff --git a/src/serialization/resources/ats/types/MultipartFormFieldRequest.ts b/src/serialization/resources/ats/types/MultipartFormFieldRequest.ts deleted file mode 100644 index eb6817775..000000000 --- a/src/serialization/resources/ats/types/MultipartFormFieldRequest.ts +++ /dev/null @@ -1,27 +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 { MultipartFormFieldRequestEncoding } from "./MultipartFormFieldRequestEncoding"; - -export const MultipartFormFieldRequest: core.serialization.ObjectSchema< - serializers.ats.MultipartFormFieldRequest.Raw, - Merge.ats.MultipartFormFieldRequest -> = core.serialization.object({ - name: core.serialization.string(), - data: core.serialization.string(), - encoding: MultipartFormFieldRequestEncoding.optional(), - fileName: core.serialization.property("file_name", core.serialization.string().optional()), - contentType: core.serialization.property("content_type", core.serialization.string().optional()), -}); - -export declare namespace MultipartFormFieldRequest { - export interface Raw { - name: string; - data: string; - encoding?: MultipartFormFieldRequestEncoding.Raw | null; - file_name?: string | null; - content_type?: string | null; - } -} diff --git a/src/serialization/resources/ats/types/MultipartFormFieldRequestEncoding.ts b/src/serialization/resources/ats/types/MultipartFormFieldRequestEncoding.ts deleted file mode 100644 index 628bab12a..000000000 --- a/src/serialization/resources/ats/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.ats.MultipartFormFieldRequestEncoding.Raw, - Merge.ats.MultipartFormFieldRequestEncoding -> = core.serialization.undiscriminatedUnion([EncodingEnum, core.serialization.string()]); - -export declare namespace MultipartFormFieldRequestEncoding { - export type Raw = EncodingEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/Offer.ts b/src/serialization/resources/ats/types/Offer.ts deleted file mode 100644 index 29548c11e..000000000 --- a/src/serialization/resources/ats/types/Offer.ts +++ /dev/null @@ -1,48 +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 * as serializers from "../../../index"; -import { OfferCreator } from "./OfferCreator"; -import { OfferStatus } from "./OfferStatus"; -import { RemoteData } from "./RemoteData"; - -export const Offer: core.serialization.ObjectSchema = - 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()), - application: core.serialization.lazy(() => serializers.ats.OfferApplication).optional(), - creator: OfferCreator.optional(), - remoteCreatedAt: core.serialization.property("remote_created_at", core.serialization.date().optional()), - closedAt: core.serialization.property("closed_at", core.serialization.date().optional()), - sentAt: core.serialization.property("sent_at", core.serialization.date().optional()), - startDate: core.serialization.property("start_date", core.serialization.date().optional()), - status: OfferStatus.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()), - }); - -export declare namespace Offer { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - application?: serializers.ats.OfferApplication.Raw | null; - creator?: OfferCreator.Raw | null; - remote_created_at?: string | null; - closed_at?: string | null; - sent_at?: string | null; - start_date?: string | null; - status?: OfferStatus.Raw | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/OfferApplication.ts b/src/serialization/resources/ats/types/OfferApplication.ts deleted file mode 100644 index f43e72986..000000000 --- a/src/serialization/resources/ats/types/OfferApplication.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const OfferApplication: core.serialization.Schema< - serializers.ats.OfferApplication.Raw, - Merge.ats.OfferApplication -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.ats.Application), -]); - -export declare namespace OfferApplication { - export type Raw = string | serializers.ats.Application.Raw; -} diff --git a/src/serialization/resources/ats/types/OfferCreator.ts b/src/serialization/resources/ats/types/OfferCreator.ts deleted file mode 100644 index 6e73152df..000000000 --- a/src/serialization/resources/ats/types/OfferCreator.ts +++ /dev/null @@ -1,13 +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 { RemoteUser } from "./RemoteUser"; - -export const OfferCreator: core.serialization.Schema = - core.serialization.undiscriminatedUnion([core.serialization.string(), RemoteUser]); - -export declare namespace OfferCreator { - export type Raw = string | RemoteUser.Raw; -} diff --git a/src/serialization/resources/ats/types/OfferStatus.ts b/src/serialization/resources/ats/types/OfferStatus.ts deleted file mode 100644 index c5e2d58df..000000000 --- a/src/serialization/resources/ats/types/OfferStatus.ts +++ /dev/null @@ -1,13 +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 { OfferStatusEnum } from "./OfferStatusEnum"; - -export const OfferStatus: core.serialization.Schema = - core.serialization.undiscriminatedUnion([OfferStatusEnum, core.serialization.string()]); - -export declare namespace OfferStatus { - export type Raw = OfferStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/OfferStatusEnum.ts b/src/serialization/resources/ats/types/OfferStatusEnum.ts deleted file mode 100644 index adfb21a2a..000000000 --- a/src/serialization/resources/ats/types/OfferStatusEnum.ts +++ /dev/null @@ -1,33 +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 OfferStatusEnum: core.serialization.Schema< - serializers.ats.OfferStatusEnum.Raw, - Merge.ats.OfferStatusEnum -> = core.serialization.enum_([ - "DRAFT", - "APPROVAL-SENT", - "APPROVED", - "SENT", - "SENT-MANUALLY", - "OPENED", - "DENIED", - "SIGNED", - "DEPRECATED", -]); - -export declare namespace OfferStatusEnum { - export type Raw = - | "DRAFT" - | "APPROVAL-SENT" - | "APPROVED" - | "SENT" - | "SENT-MANUALLY" - | "OPENED" - | "DENIED" - | "SIGNED" - | "DEPRECATED"; -} diff --git a/src/serialization/resources/ats/types/Office.ts b/src/serialization/resources/ats/types/Office.ts deleted file mode 100644 index 697ef1acc..000000000 --- a/src/serialization/resources/ats/types/Office.ts +++ /dev/null @@ -1,36 +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 { RemoteData } from "./RemoteData"; - -export const Office: core.serialization.ObjectSchema = - 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()), - name: core.serialization.string().optional(), - location: core.serialization.string().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()), - }); - -export declare namespace Office { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - location?: string | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/OverallRecommendationEnum.ts b/src/serialization/resources/ats/types/OverallRecommendationEnum.ts deleted file mode 100644 index e9dd7c125..000000000 --- a/src/serialization/resources/ats/types/OverallRecommendationEnum.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 OverallRecommendationEnum: core.serialization.Schema< - serializers.ats.OverallRecommendationEnum.Raw, - Merge.ats.OverallRecommendationEnum -> = core.serialization.enum_(["DEFINITELY_NO", "NO", "YES", "STRONG_YES", "NO_DECISION"]); - -export declare namespace OverallRecommendationEnum { - export type Raw = "DEFINITELY_NO" | "NO" | "YES" | "STRONG_YES" | "NO_DECISION"; -} diff --git a/src/serialization/resources/ats/types/PaginatedAccountDetailsAndActionsList.ts b/src/serialization/resources/ats/types/PaginatedAccountDetailsAndActionsList.ts deleted file mode 100644 index 9c571164b..000000000 --- a/src/serialization/resources/ats/types/PaginatedAccountDetailsAndActionsList.ts +++ /dev/null @@ -1,23 +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 { AccountDetailsAndActions } from "./AccountDetailsAndActions"; - -export const PaginatedAccountDetailsAndActionsList: core.serialization.ObjectSchema< - serializers.ats.PaginatedAccountDetailsAndActionsList.Raw, - Merge.ats.PaginatedAccountDetailsAndActionsList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(AccountDetailsAndActions).optional(), -}); - -export declare namespace PaginatedAccountDetailsAndActionsList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: AccountDetailsAndActions.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/PaginatedActivityList.ts b/src/serialization/resources/ats/types/PaginatedActivityList.ts deleted file mode 100644 index 656645456..000000000 --- a/src/serialization/resources/ats/types/PaginatedActivityList.ts +++ /dev/null @@ -1,23 +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 { Activity } from "./Activity"; - -export const PaginatedActivityList: core.serialization.ObjectSchema< - serializers.ats.PaginatedActivityList.Raw, - Merge.ats.PaginatedActivityList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Activity).optional(), -}); - -export declare namespace PaginatedActivityList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Activity.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/PaginatedApplicationList.ts b/src/serialization/resources/ats/types/PaginatedApplicationList.ts deleted file mode 100644 index c3bdc8688..000000000 --- a/src/serialization/resources/ats/types/PaginatedApplicationList.ts +++ /dev/null @@ -1,22 +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 * as serializers from "../../../index"; - -export const PaginatedApplicationList: core.serialization.ObjectSchema< - serializers.ats.PaginatedApplicationList.Raw, - Merge.ats.PaginatedApplicationList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(core.serialization.lazyObject(() => serializers.ats.Application)).optional(), -}); - -export declare namespace PaginatedApplicationList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: serializers.ats.Application.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/PaginatedAttachmentList.ts b/src/serialization/resources/ats/types/PaginatedAttachmentList.ts deleted file mode 100644 index 1cf83e67a..000000000 --- a/src/serialization/resources/ats/types/PaginatedAttachmentList.ts +++ /dev/null @@ -1,23 +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 { Attachment } from "./Attachment"; - -export const PaginatedAttachmentList: core.serialization.ObjectSchema< - serializers.ats.PaginatedAttachmentList.Raw, - Merge.ats.PaginatedAttachmentList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Attachment).optional(), -}); - -export declare namespace PaginatedAttachmentList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Attachment.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/PaginatedAuditLogEventList.ts b/src/serialization/resources/ats/types/PaginatedAuditLogEventList.ts deleted file mode 100644 index b5951ff67..000000000 --- a/src/serialization/resources/ats/types/PaginatedAuditLogEventList.ts +++ /dev/null @@ -1,23 +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 { AuditLogEvent } from "./AuditLogEvent"; - -export const PaginatedAuditLogEventList: core.serialization.ObjectSchema< - serializers.ats.PaginatedAuditLogEventList.Raw, - Merge.ats.PaginatedAuditLogEventList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(AuditLogEvent).optional(), -}); - -export declare namespace PaginatedAuditLogEventList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: AuditLogEvent.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/PaginatedCandidateList.ts b/src/serialization/resources/ats/types/PaginatedCandidateList.ts deleted file mode 100644 index f73b6e712..000000000 --- a/src/serialization/resources/ats/types/PaginatedCandidateList.ts +++ /dev/null @@ -1,22 +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 * as serializers from "../../../index"; - -export const PaginatedCandidateList: core.serialization.ObjectSchema< - serializers.ats.PaginatedCandidateList.Raw, - Merge.ats.PaginatedCandidateList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(core.serialization.lazyObject(() => serializers.ats.Candidate)).optional(), -}); - -export declare namespace PaginatedCandidateList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: serializers.ats.Candidate.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/PaginatedDepartmentList.ts b/src/serialization/resources/ats/types/PaginatedDepartmentList.ts deleted file mode 100644 index 2baf29cbc..000000000 --- a/src/serialization/resources/ats/types/PaginatedDepartmentList.ts +++ /dev/null @@ -1,23 +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 { Department } from "./Department"; - -export const PaginatedDepartmentList: core.serialization.ObjectSchema< - serializers.ats.PaginatedDepartmentList.Raw, - Merge.ats.PaginatedDepartmentList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Department).optional(), -}); - -export declare namespace PaginatedDepartmentList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Department.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/PaginatedEeocList.ts b/src/serialization/resources/ats/types/PaginatedEeocList.ts deleted file mode 100644 index 5d9ac4433..000000000 --- a/src/serialization/resources/ats/types/PaginatedEeocList.ts +++ /dev/null @@ -1,23 +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 { Eeoc } from "./Eeoc"; - -export const PaginatedEeocList: core.serialization.ObjectSchema< - serializers.ats.PaginatedEeocList.Raw, - Merge.ats.PaginatedEeocList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Eeoc).optional(), -}); - -export declare namespace PaginatedEeocList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Eeoc.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/PaginatedIssueList.ts b/src/serialization/resources/ats/types/PaginatedIssueList.ts deleted file mode 100644 index aebe37efa..000000000 --- a/src/serialization/resources/ats/types/PaginatedIssueList.ts +++ /dev/null @@ -1,23 +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 { Issue } from "./Issue"; - -export const PaginatedIssueList: core.serialization.ObjectSchema< - serializers.ats.PaginatedIssueList.Raw, - Merge.ats.PaginatedIssueList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Issue).optional(), -}); - -export declare namespace PaginatedIssueList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Issue.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/PaginatedJobInterviewStageList.ts b/src/serialization/resources/ats/types/PaginatedJobInterviewStageList.ts deleted file mode 100644 index eee629c76..000000000 --- a/src/serialization/resources/ats/types/PaginatedJobInterviewStageList.ts +++ /dev/null @@ -1,23 +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 { JobInterviewStage } from "./JobInterviewStage"; - -export const PaginatedJobInterviewStageList: core.serialization.ObjectSchema< - serializers.ats.PaginatedJobInterviewStageList.Raw, - Merge.ats.PaginatedJobInterviewStageList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(JobInterviewStage).optional(), -}); - -export declare namespace PaginatedJobInterviewStageList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: JobInterviewStage.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/PaginatedJobList.ts b/src/serialization/resources/ats/types/PaginatedJobList.ts deleted file mode 100644 index 6387298b1..000000000 --- a/src/serialization/resources/ats/types/PaginatedJobList.ts +++ /dev/null @@ -1,23 +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 { Job } from "./Job"; - -export const PaginatedJobList: core.serialization.ObjectSchema< - serializers.ats.PaginatedJobList.Raw, - Merge.ats.PaginatedJobList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Job).optional(), -}); - -export declare namespace PaginatedJobList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Job.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/PaginatedJobPostingList.ts b/src/serialization/resources/ats/types/PaginatedJobPostingList.ts deleted file mode 100644 index 791c4120b..000000000 --- a/src/serialization/resources/ats/types/PaginatedJobPostingList.ts +++ /dev/null @@ -1,23 +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 { JobPosting } from "./JobPosting"; - -export const PaginatedJobPostingList: core.serialization.ObjectSchema< - serializers.ats.PaginatedJobPostingList.Raw, - Merge.ats.PaginatedJobPostingList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(JobPosting).optional(), -}); - -export declare namespace PaginatedJobPostingList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: JobPosting.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/PaginatedOfferList.ts b/src/serialization/resources/ats/types/PaginatedOfferList.ts deleted file mode 100644 index c75f65772..000000000 --- a/src/serialization/resources/ats/types/PaginatedOfferList.ts +++ /dev/null @@ -1,22 +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 * as serializers from "../../../index"; - -export const PaginatedOfferList: core.serialization.ObjectSchema< - serializers.ats.PaginatedOfferList.Raw, - Merge.ats.PaginatedOfferList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(core.serialization.lazyObject(() => serializers.ats.Offer)).optional(), -}); - -export declare namespace PaginatedOfferList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: serializers.ats.Offer.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/PaginatedOfficeList.ts b/src/serialization/resources/ats/types/PaginatedOfficeList.ts deleted file mode 100644 index bd58d9d3a..000000000 --- a/src/serialization/resources/ats/types/PaginatedOfficeList.ts +++ /dev/null @@ -1,23 +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 { Office } from "./Office"; - -export const PaginatedOfficeList: core.serialization.ObjectSchema< - serializers.ats.PaginatedOfficeList.Raw, - Merge.ats.PaginatedOfficeList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Office).optional(), -}); - -export declare namespace PaginatedOfficeList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Office.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/PaginatedRejectReasonList.ts b/src/serialization/resources/ats/types/PaginatedRejectReasonList.ts deleted file mode 100644 index a27664028..000000000 --- a/src/serialization/resources/ats/types/PaginatedRejectReasonList.ts +++ /dev/null @@ -1,23 +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 { RejectReason } from "./RejectReason"; - -export const PaginatedRejectReasonList: core.serialization.ObjectSchema< - serializers.ats.PaginatedRejectReasonList.Raw, - Merge.ats.PaginatedRejectReasonList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(RejectReason).optional(), -}); - -export declare namespace PaginatedRejectReasonList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: RejectReason.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/PaginatedRemoteUserList.ts b/src/serialization/resources/ats/types/PaginatedRemoteUserList.ts deleted file mode 100644 index 2352c463f..000000000 --- a/src/serialization/resources/ats/types/PaginatedRemoteUserList.ts +++ /dev/null @@ -1,23 +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 { RemoteUser } from "./RemoteUser"; - -export const PaginatedRemoteUserList: core.serialization.ObjectSchema< - serializers.ats.PaginatedRemoteUserList.Raw, - Merge.ats.PaginatedRemoteUserList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(RemoteUser).optional(), -}); - -export declare namespace PaginatedRemoteUserList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: RemoteUser.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/PaginatedScheduledInterviewList.ts b/src/serialization/resources/ats/types/PaginatedScheduledInterviewList.ts deleted file mode 100644 index bde51c4a7..000000000 --- a/src/serialization/resources/ats/types/PaginatedScheduledInterviewList.ts +++ /dev/null @@ -1,23 +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 { ScheduledInterview } from "./ScheduledInterview"; - -export const PaginatedScheduledInterviewList: core.serialization.ObjectSchema< - serializers.ats.PaginatedScheduledInterviewList.Raw, - Merge.ats.PaginatedScheduledInterviewList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(ScheduledInterview).optional(), -}); - -export declare namespace PaginatedScheduledInterviewList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: ScheduledInterview.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/PaginatedScorecardList.ts b/src/serialization/resources/ats/types/PaginatedScorecardList.ts deleted file mode 100644 index 0766a0b66..000000000 --- a/src/serialization/resources/ats/types/PaginatedScorecardList.ts +++ /dev/null @@ -1,23 +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 { Scorecard } from "./Scorecard"; - -export const PaginatedScorecardList: core.serialization.ObjectSchema< - serializers.ats.PaginatedScorecardList.Raw, - Merge.ats.PaginatedScorecardList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Scorecard).optional(), -}); - -export declare namespace PaginatedScorecardList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Scorecard.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/PaginatedScreeningQuestionList.ts b/src/serialization/resources/ats/types/PaginatedScreeningQuestionList.ts deleted file mode 100644 index bd5da35d2..000000000 --- a/src/serialization/resources/ats/types/PaginatedScreeningQuestionList.ts +++ /dev/null @@ -1,23 +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 { ScreeningQuestion } from "./ScreeningQuestion"; - -export const PaginatedScreeningQuestionList: core.serialization.ObjectSchema< - serializers.ats.PaginatedScreeningQuestionList.Raw, - Merge.ats.PaginatedScreeningQuestionList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(ScreeningQuestion).optional(), -}); - -export declare namespace PaginatedScreeningQuestionList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: ScreeningQuestion.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/PaginatedSyncStatusList.ts b/src/serialization/resources/ats/types/PaginatedSyncStatusList.ts deleted file mode 100644 index 0c40dbc5f..000000000 --- a/src/serialization/resources/ats/types/PaginatedSyncStatusList.ts +++ /dev/null @@ -1,23 +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 { SyncStatus } from "./SyncStatus"; - -export const PaginatedSyncStatusList: core.serialization.ObjectSchema< - serializers.ats.PaginatedSyncStatusList.Raw, - Merge.ats.PaginatedSyncStatusList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(SyncStatus).optional(), -}); - -export declare namespace PaginatedSyncStatusList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: SyncStatus.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/PaginatedTagList.ts b/src/serialization/resources/ats/types/PaginatedTagList.ts deleted file mode 100644 index 8e50ad2b3..000000000 --- a/src/serialization/resources/ats/types/PaginatedTagList.ts +++ /dev/null @@ -1,23 +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 { Tag } from "./Tag"; - -export const PaginatedTagList: core.serialization.ObjectSchema< - serializers.ats.PaginatedTagList.Raw, - Merge.ats.PaginatedTagList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Tag).optional(), -}); - -export declare namespace PaginatedTagList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Tag.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/PatchedCandidateRequest.ts b/src/serialization/resources/ats/types/PatchedCandidateRequest.ts deleted file mode 100644 index d0bdde1de..000000000 --- a/src/serialization/resources/ats/types/PatchedCandidateRequest.ts +++ /dev/null @@ -1,62 +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 { EmailAddressRequest } from "./EmailAddressRequest"; -import { PhoneNumberRequest } from "./PhoneNumberRequest"; -import { UrlRequest } from "./UrlRequest"; - -export const PatchedCandidateRequest: core.serialization.ObjectSchema< - serializers.ats.PatchedCandidateRequest.Raw, - Merge.ats.PatchedCandidateRequest -> = core.serialization.object({ - firstName: core.serialization.property("first_name", core.serialization.string().optional()), - lastName: core.serialization.property("last_name", core.serialization.string().optional()), - company: core.serialization.string().optional(), - title: core.serialization.string().optional(), - lastInteractionAt: core.serialization.property("last_interaction_at", core.serialization.date().optional()), - isPrivate: core.serialization.property("is_private", core.serialization.boolean().optional()), - canEmail: core.serialization.property("can_email", core.serialization.boolean().optional()), - locations: core.serialization.list(core.serialization.string().optional()).optional(), - phoneNumbers: core.serialization.property("phone_numbers", core.serialization.list(PhoneNumberRequest).optional()), - emailAddresses: core.serialization.property( - "email_addresses", - core.serialization.list(EmailAddressRequest).optional(), - ), - urls: core.serialization.list(UrlRequest).optional(), - tags: core.serialization.list(core.serialization.string().optional()).optional(), - applications: core.serialization.list(core.serialization.string().optional()).optional(), - attachments: core.serialization.list(core.serialization.string().optional()).optional(), - remoteTemplateId: core.serialization.property("remote_template_id", core.serialization.string().optional()), - integrationParams: core.serialization.property( - "integration_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - linkedAccountParams: core.serialization.property( - "linked_account_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), -}); - -export declare namespace PatchedCandidateRequest { - export interface Raw { - first_name?: string | null; - last_name?: string | null; - company?: string | null; - title?: string | null; - last_interaction_at?: string | null; - is_private?: boolean | null; - can_email?: boolean | null; - locations?: (string | null | undefined)[] | null; - phone_numbers?: PhoneNumberRequest.Raw[] | null; - email_addresses?: EmailAddressRequest.Raw[] | null; - urls?: UrlRequest.Raw[] | null; - tags?: (string | null | undefined)[] | null; - applications?: (string | null | undefined)[] | null; - attachments?: (string | null | undefined)[] | null; - remote_template_id?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/ats/types/PhoneNumber.ts b/src/serialization/resources/ats/types/PhoneNumber.ts deleted file mode 100644 index 9e06666c8..000000000 --- a/src/serialization/resources/ats/types/PhoneNumber.ts +++ /dev/null @@ -1,25 +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 { PhoneNumberPhoneNumberType } from "./PhoneNumberPhoneNumberType"; - -export const PhoneNumber: core.serialization.ObjectSchema = - core.serialization.object({ - createdAt: core.serialization.property("created_at", core.serialization.date().optional()), - modifiedAt: core.serialization.property("modified_at", core.serialization.date().optional()), - value: core.serialization.string().optional(), - phoneNumberType: core.serialization.property("phone_number_type", PhoneNumberPhoneNumberType.optional()), - remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), - }); - -export declare namespace PhoneNumber { - export interface Raw { - created_at?: string | null; - modified_at?: string | null; - value?: string | null; - phone_number_type?: PhoneNumberPhoneNumberType.Raw | null; - remote_was_deleted?: boolean | null; - } -} diff --git a/src/serialization/resources/ats/types/PhoneNumberPhoneNumberType.ts b/src/serialization/resources/ats/types/PhoneNumberPhoneNumberType.ts deleted file mode 100644 index 6bda1c7b9..000000000 --- a/src/serialization/resources/ats/types/PhoneNumberPhoneNumberType.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 { PhoneNumberTypeEnum } from "./PhoneNumberTypeEnum"; - -export const PhoneNumberPhoneNumberType: core.serialization.Schema< - serializers.ats.PhoneNumberPhoneNumberType.Raw, - Merge.ats.PhoneNumberPhoneNumberType -> = core.serialization.undiscriminatedUnion([PhoneNumberTypeEnum, core.serialization.string()]); - -export declare namespace PhoneNumberPhoneNumberType { - export type Raw = PhoneNumberTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/PhoneNumberRequest.ts b/src/serialization/resources/ats/types/PhoneNumberRequest.ts deleted file mode 100644 index a0fddef8b..000000000 --- a/src/serialization/resources/ats/types/PhoneNumberRequest.ts +++ /dev/null @@ -1,31 +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 { PhoneNumberRequestPhoneNumberType } from "./PhoneNumberRequestPhoneNumberType"; - -export const PhoneNumberRequest: core.serialization.ObjectSchema< - serializers.ats.PhoneNumberRequest.Raw, - Merge.ats.PhoneNumberRequest -> = core.serialization.object({ - value: core.serialization.string().optional(), - phoneNumberType: core.serialization.property("phone_number_type", PhoneNumberRequestPhoneNumberType.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 PhoneNumberRequest { - export interface Raw { - value?: string | null; - phone_number_type?: PhoneNumberRequestPhoneNumberType.Raw | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/ats/types/PhoneNumberRequestPhoneNumberType.ts b/src/serialization/resources/ats/types/PhoneNumberRequestPhoneNumberType.ts deleted file mode 100644 index 9d28bcbca..000000000 --- a/src/serialization/resources/ats/types/PhoneNumberRequestPhoneNumberType.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 { PhoneNumberTypeEnum } from "./PhoneNumberTypeEnum"; - -export const PhoneNumberRequestPhoneNumberType: core.serialization.Schema< - serializers.ats.PhoneNumberRequestPhoneNumberType.Raw, - Merge.ats.PhoneNumberRequestPhoneNumberType -> = core.serialization.undiscriminatedUnion([PhoneNumberTypeEnum, core.serialization.string()]); - -export declare namespace PhoneNumberRequestPhoneNumberType { - export type Raw = PhoneNumberTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/PhoneNumberTypeEnum.ts b/src/serialization/resources/ats/types/PhoneNumberTypeEnum.ts deleted file mode 100644 index c0b507c84..000000000 --- a/src/serialization/resources/ats/types/PhoneNumberTypeEnum.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 PhoneNumberTypeEnum: core.serialization.Schema< - serializers.ats.PhoneNumberTypeEnum.Raw, - Merge.ats.PhoneNumberTypeEnum -> = core.serialization.enum_(["HOME", "WORK", "MOBILE", "SKYPE", "OTHER"]); - -export declare namespace PhoneNumberTypeEnum { - export type Raw = "HOME" | "WORK" | "MOBILE" | "SKYPE" | "OTHER"; -} diff --git a/src/serialization/resources/ats/types/RaceEnum.ts b/src/serialization/resources/ats/types/RaceEnum.ts deleted file mode 100644 index 3f36f3d70..000000000 --- a/src/serialization/resources/ats/types/RaceEnum.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 RaceEnum: core.serialization.Schema = - core.serialization.enum_([ - "AMERICAN_INDIAN_OR_ALASKAN_NATIVE", - "ASIAN", - "BLACK_OR_AFRICAN_AMERICAN", - "HISPANIC_OR_LATINO", - "WHITE", - "NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER", - "TWO_OR_MORE_RACES", - "DECLINE_TO_SELF_IDENTIFY", - ]); - -export declare namespace RaceEnum { - export type Raw = - | "AMERICAN_INDIAN_OR_ALASKAN_NATIVE" - | "ASIAN" - | "BLACK_OR_AFRICAN_AMERICAN" - | "HISPANIC_OR_LATINO" - | "WHITE" - | "NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER" - | "TWO_OR_MORE_RACES" - | "DECLINE_TO_SELF_IDENTIFY"; -} diff --git a/src/serialization/resources/ats/types/ReasonEnum.ts b/src/serialization/resources/ats/types/ReasonEnum.ts deleted file mode 100644 index f4b92aa71..000000000 --- a/src/serialization/resources/ats/types/ReasonEnum.ts +++ /dev/null @@ -1,12 +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 ReasonEnum: core.serialization.Schema = - core.serialization.enum_(["GENERAL_CUSTOMER_REQUEST", "GDPR", "OTHER"]); - -export declare namespace ReasonEnum { - export type Raw = "GENERAL_CUSTOMER_REQUEST" | "GDPR" | "OTHER"; -} diff --git a/src/serialization/resources/ats/types/RejectReason.ts b/src/serialization/resources/ats/types/RejectReason.ts deleted file mode 100644 index 617ec47d7..000000000 --- a/src/serialization/resources/ats/types/RejectReason.ts +++ /dev/null @@ -1,34 +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 { RemoteData } from "./RemoteData"; - -export const RejectReason: core.serialization.ObjectSchema = - 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()), - name: core.serialization.string().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()), - }); - -export declare namespace RejectReason { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/RemoteData.ts b/src/serialization/resources/ats/types/RemoteData.ts deleted file mode 100644 index c1caf0d6b..000000000 --- a/src/serialization/resources/ats/types/RemoteData.ts +++ /dev/null @@ -1,18 +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 RemoteData: core.serialization.ObjectSchema = - core.serialization.object({ - path: core.serialization.string(), - data: core.serialization.unknown().optional(), - }); - -export declare namespace RemoteData { - export interface Raw { - path: string; - data?: unknown | null; - } -} diff --git a/src/serialization/resources/ats/types/RemoteEndpointInfo.ts b/src/serialization/resources/ats/types/RemoteEndpointInfo.ts deleted file mode 100644 index 24c4f7b22..000000000 --- a/src/serialization/resources/ats/types/RemoteEndpointInfo.ts +++ /dev/null @@ -1,25 +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 RemoteEndpointInfo: core.serialization.ObjectSchema< - serializers.ats.RemoteEndpointInfo.Raw, - Merge.ats.RemoteEndpointInfo -> = core.serialization.object({ - method: core.serialization.string(), - urlPath: core.serialization.property("url_path", core.serialization.string()), - fieldTraversalPath: core.serialization.property( - "field_traversal_path", - core.serialization.list(core.serialization.unknown()), - ), -}); - -export declare namespace RemoteEndpointInfo { - export interface Raw { - method: string; - url_path: string; - field_traversal_path: unknown[]; - } -} diff --git a/src/serialization/resources/ats/types/RemoteFieldApi.ts b/src/serialization/resources/ats/types/RemoteFieldApi.ts deleted file mode 100644 index b2c43c657..000000000 --- a/src/serialization/resources/ats/types/RemoteFieldApi.ts +++ /dev/null @@ -1,34 +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 { AdvancedMetadata } from "./AdvancedMetadata"; -import { RemoteEndpointInfo } from "./RemoteEndpointInfo"; -import { RemoteFieldApiCoverage } from "./RemoteFieldApiCoverage"; - -export const RemoteFieldApi: core.serialization.ObjectSchema< - serializers.ats.RemoteFieldApi.Raw, - Merge.ats.RemoteFieldApi -> = core.serialization.object({ - schema: core.serialization.record(core.serialization.string(), core.serialization.unknown()), - remoteKeyName: core.serialization.property("remote_key_name", core.serialization.string()), - remoteEndpointInfo: core.serialization.property("remote_endpoint_info", RemoteEndpointInfo), - exampleValues: core.serialization.property( - "example_values", - core.serialization.list(core.serialization.unknown()).optional(), - ), - advancedMetadata: core.serialization.property("advanced_metadata", AdvancedMetadata.optional()), - coverage: RemoteFieldApiCoverage.optional(), -}); - -export declare namespace RemoteFieldApi { - export interface Raw { - schema: Record; - remote_key_name: string; - remote_endpoint_info: RemoteEndpointInfo.Raw; - example_values?: unknown[] | null; - advanced_metadata?: AdvancedMetadata.Raw | null; - coverage?: RemoteFieldApiCoverage.Raw | null; - } -} diff --git a/src/serialization/resources/ats/types/RemoteFieldApiCoverage.ts b/src/serialization/resources/ats/types/RemoteFieldApiCoverage.ts deleted file mode 100644 index ce1c9e1c4..000000000 --- a/src/serialization/resources/ats/types/RemoteFieldApiCoverage.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 RemoteFieldApiCoverage: core.serialization.Schema< - serializers.ats.RemoteFieldApiCoverage.Raw, - Merge.ats.RemoteFieldApiCoverage -> = core.serialization.undiscriminatedUnion([core.serialization.number(), core.serialization.number()]); - -export declare namespace RemoteFieldApiCoverage { - export type Raw = number | number; -} diff --git a/src/serialization/resources/ats/types/RemoteFieldApiResponse.ts b/src/serialization/resources/ats/types/RemoteFieldApiResponse.ts deleted file mode 100644 index 99904c6e2..000000000 --- a/src/serialization/resources/ats/types/RemoteFieldApiResponse.ts +++ /dev/null @@ -1,55 +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 { RemoteFieldApi } from "./RemoteFieldApi"; - -export const RemoteFieldApiResponse: core.serialization.ObjectSchema< - serializers.ats.RemoteFieldApiResponse.Raw, - Merge.ats.RemoteFieldApiResponse -> = core.serialization.object({ - activity: core.serialization.property("Activity", core.serialization.list(RemoteFieldApi).optional()), - application: core.serialization.property("Application", core.serialization.list(RemoteFieldApi).optional()), - attachment: core.serialization.property("Attachment", core.serialization.list(RemoteFieldApi).optional()), - candidate: core.serialization.property("Candidate", core.serialization.list(RemoteFieldApi).optional()), - department: core.serialization.property("Department", core.serialization.list(RemoteFieldApi).optional()), - eeoc: core.serialization.property("EEOC", core.serialization.list(RemoteFieldApi).optional()), - scheduledInterview: core.serialization.property( - "ScheduledInterview", - core.serialization.list(RemoteFieldApi).optional(), - ), - job: core.serialization.property("Job", core.serialization.list(RemoteFieldApi).optional()), - jobPosting: core.serialization.property("JobPosting", core.serialization.list(RemoteFieldApi).optional()), - jobInterviewStage: core.serialization.property( - "JobInterviewStage", - core.serialization.list(RemoteFieldApi).optional(), - ), - offer: core.serialization.property("Offer", core.serialization.list(RemoteFieldApi).optional()), - office: core.serialization.property("Office", core.serialization.list(RemoteFieldApi).optional()), - rejectReason: core.serialization.property("RejectReason", core.serialization.list(RemoteFieldApi).optional()), - scorecard: core.serialization.property("Scorecard", core.serialization.list(RemoteFieldApi).optional()), - tag: core.serialization.property("Tag", core.serialization.list(RemoteFieldApi).optional()), - remoteUser: core.serialization.property("RemoteUser", core.serialization.list(RemoteFieldApi).optional()), -}); - -export declare namespace RemoteFieldApiResponse { - export interface Raw { - Activity?: RemoteFieldApi.Raw[] | null; - Application?: RemoteFieldApi.Raw[] | null; - Attachment?: RemoteFieldApi.Raw[] | null; - Candidate?: RemoteFieldApi.Raw[] | null; - Department?: RemoteFieldApi.Raw[] | null; - EEOC?: RemoteFieldApi.Raw[] | null; - ScheduledInterview?: RemoteFieldApi.Raw[] | null; - Job?: RemoteFieldApi.Raw[] | null; - JobPosting?: RemoteFieldApi.Raw[] | null; - JobInterviewStage?: RemoteFieldApi.Raw[] | null; - Offer?: RemoteFieldApi.Raw[] | null; - Office?: RemoteFieldApi.Raw[] | null; - RejectReason?: RemoteFieldApi.Raw[] | null; - Scorecard?: RemoteFieldApi.Raw[] | null; - Tag?: RemoteFieldApi.Raw[] | null; - RemoteUser?: RemoteFieldApi.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/RemoteKey.ts b/src/serialization/resources/ats/types/RemoteKey.ts deleted file mode 100644 index 6ff2f71c9..000000000 --- a/src/serialization/resources/ats/types/RemoteKey.ts +++ /dev/null @@ -1,18 +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 RemoteKey: core.serialization.ObjectSchema = - core.serialization.object({ - name: core.serialization.string(), - key: core.serialization.string(), - }); - -export declare namespace RemoteKey { - export interface Raw { - name: string; - key: string; - } -} diff --git a/src/serialization/resources/ats/types/RemoteResponse.ts b/src/serialization/resources/ats/types/RemoteResponse.ts deleted file mode 100644 index 2e8a5c50a..000000000 --- a/src/serialization/resources/ats/types/RemoteResponse.ts +++ /dev/null @@ -1,34 +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 { RemoteResponseResponseType } from "./RemoteResponseResponseType"; - -export const RemoteResponse: core.serialization.ObjectSchema< - serializers.ats.RemoteResponse.Raw, - Merge.ats.RemoteResponse -> = core.serialization.object({ - method: core.serialization.string(), - path: core.serialization.string(), - status: core.serialization.number(), - response: core.serialization.unknown(), - responseHeaders: core.serialization.property( - "response_headers", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - responseType: core.serialization.property("response_type", RemoteResponseResponseType.optional()), - headers: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), -}); - -export declare namespace RemoteResponse { - export interface Raw { - method: string; - path: string; - status: number; - response?: unknown; - response_headers?: Record | null; - response_type?: RemoteResponseResponseType.Raw | null; - headers?: Record | null; - } -} diff --git a/src/serialization/resources/ats/types/RemoteResponseResponseType.ts b/src/serialization/resources/ats/types/RemoteResponseResponseType.ts deleted file mode 100644 index fde8fdb99..000000000 --- a/src/serialization/resources/ats/types/RemoteResponseResponseType.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 { ResponseTypeEnum } from "./ResponseTypeEnum"; - -export const RemoteResponseResponseType: core.serialization.Schema< - serializers.ats.RemoteResponseResponseType.Raw, - Merge.ats.RemoteResponseResponseType -> = core.serialization.undiscriminatedUnion([ResponseTypeEnum, core.serialization.string()]); - -export declare namespace RemoteResponseResponseType { - export type Raw = ResponseTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/RemoteUser.ts b/src/serialization/resources/ats/types/RemoteUser.ts deleted file mode 100644 index 2e8aa4c8e..000000000 --- a/src/serialization/resources/ats/types/RemoteUser.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"; -import { RemoteData } from "./RemoteData"; -import { RemoteUserAccessRole } from "./RemoteUserAccessRole"; - -export const RemoteUser: core.serialization.ObjectSchema = - 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()), - firstName: core.serialization.property("first_name", core.serialization.string().optional()), - lastName: core.serialization.property("last_name", core.serialization.string().optional()), - email: core.serialization.string().optional(), - disabled: core.serialization.boolean().optional(), - remoteCreatedAt: core.serialization.property("remote_created_at", core.serialization.date().optional()), - accessRole: core.serialization.property("access_role", RemoteUserAccessRole.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()), - }); - -export declare namespace RemoteUser { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - first_name?: string | null; - last_name?: string | null; - email?: string | null; - disabled?: boolean | null; - remote_created_at?: string | null; - access_role?: RemoteUserAccessRole.Raw | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/RemoteUserAccessRole.ts b/src/serialization/resources/ats/types/RemoteUserAccessRole.ts deleted file mode 100644 index 6643fa66c..000000000 --- a/src/serialization/resources/ats/types/RemoteUserAccessRole.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 { AccessRoleEnum } from "./AccessRoleEnum"; - -export const RemoteUserAccessRole: core.serialization.Schema< - serializers.ats.RemoteUserAccessRole.Raw, - Merge.ats.RemoteUserAccessRole -> = core.serialization.undiscriminatedUnion([AccessRoleEnum, core.serialization.string()]); - -export declare namespace RemoteUserAccessRole { - export type Raw = AccessRoleEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/RequestFormatEnum.ts b/src/serialization/resources/ats/types/RequestFormatEnum.ts deleted file mode 100644 index 373bf061f..000000000 --- a/src/serialization/resources/ats/types/RequestFormatEnum.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 RequestFormatEnum: core.serialization.Schema< - serializers.ats.RequestFormatEnum.Raw, - Merge.ats.RequestFormatEnum -> = core.serialization.enum_(["JSON", "XML", "MULTIPART"]); - -export declare namespace RequestFormatEnum { - export type Raw = "JSON" | "XML" | "MULTIPART"; -} diff --git a/src/serialization/resources/ats/types/ResponseTypeEnum.ts b/src/serialization/resources/ats/types/ResponseTypeEnum.ts deleted file mode 100644 index d00733929..000000000 --- a/src/serialization/resources/ats/types/ResponseTypeEnum.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 ResponseTypeEnum: core.serialization.Schema< - serializers.ats.ResponseTypeEnum.Raw, - Merge.ats.ResponseTypeEnum -> = core.serialization.enum_(["JSON", "BASE64_GZIP"]); - -export declare namespace ResponseTypeEnum { - export type Raw = "JSON" | "BASE64_GZIP"; -} diff --git a/src/serialization/resources/ats/types/RoleEnum.ts b/src/serialization/resources/ats/types/RoleEnum.ts deleted file mode 100644 index 7d2356783..000000000 --- a/src/serialization/resources/ats/types/RoleEnum.ts +++ /dev/null @@ -1,12 +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 RoleEnum: core.serialization.Schema = - core.serialization.enum_(["ADMIN", "DEVELOPER", "MEMBER", "API", "SYSTEM", "MERGE_TEAM"]); - -export declare namespace RoleEnum { - export type Raw = "ADMIN" | "DEVELOPER" | "MEMBER" | "API" | "SYSTEM" | "MERGE_TEAM"; -} diff --git a/src/serialization/resources/ats/types/ScheduledInterview.ts b/src/serialization/resources/ats/types/ScheduledInterview.ts deleted file mode 100644 index 5caf2e529..000000000 --- a/src/serialization/resources/ats/types/ScheduledInterview.ts +++ /dev/null @@ -1,62 +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 { RemoteData } from "./RemoteData"; -import { ScheduledInterviewApplication } from "./ScheduledInterviewApplication"; -import { ScheduledInterviewInterviewersItem } from "./ScheduledInterviewInterviewersItem"; -import { ScheduledInterviewJobInterviewStage } from "./ScheduledInterviewJobInterviewStage"; -import { ScheduledInterviewOrganizer } from "./ScheduledInterviewOrganizer"; -import { ScheduledInterviewStatus } from "./ScheduledInterviewStatus"; - -export const ScheduledInterview: core.serialization.ObjectSchema< - serializers.ats.ScheduledInterview.Raw, - Merge.ats.ScheduledInterview -> = 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()), - application: ScheduledInterviewApplication.optional(), - jobInterviewStage: core.serialization.property( - "job_interview_stage", - ScheduledInterviewJobInterviewStage.optional(), - ), - organizer: ScheduledInterviewOrganizer.optional(), - interviewers: core.serialization.list(ScheduledInterviewInterviewersItem.optional()).optional(), - location: core.serialization.string().optional(), - startAt: core.serialization.property("start_at", core.serialization.date().optional()), - endAt: core.serialization.property("end_at", core.serialization.date().optional()), - remoteCreatedAt: core.serialization.property("remote_created_at", core.serialization.date().optional()), - remoteUpdatedAt: core.serialization.property("remote_updated_at", core.serialization.date().optional()), - status: ScheduledInterviewStatus.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()), -}); - -export declare namespace ScheduledInterview { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - application?: ScheduledInterviewApplication.Raw | null; - job_interview_stage?: ScheduledInterviewJobInterviewStage.Raw | null; - organizer?: ScheduledInterviewOrganizer.Raw | null; - interviewers?: (ScheduledInterviewInterviewersItem.Raw | null | undefined)[] | null; - location?: string | null; - start_at?: string | null; - end_at?: string | null; - remote_created_at?: string | null; - remote_updated_at?: string | null; - status?: ScheduledInterviewStatus.Raw | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/ScheduledInterviewApplication.ts b/src/serialization/resources/ats/types/ScheduledInterviewApplication.ts deleted file mode 100644 index ae8fc6a5a..000000000 --- a/src/serialization/resources/ats/types/ScheduledInterviewApplication.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const ScheduledInterviewApplication: core.serialization.Schema< - serializers.ats.ScheduledInterviewApplication.Raw, - Merge.ats.ScheduledInterviewApplication -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.ats.Application), -]); - -export declare namespace ScheduledInterviewApplication { - export type Raw = string | serializers.ats.Application.Raw; -} diff --git a/src/serialization/resources/ats/types/ScheduledInterviewInterviewersItem.ts b/src/serialization/resources/ats/types/ScheduledInterviewInterviewersItem.ts deleted file mode 100644 index e7eb28672..000000000 --- a/src/serialization/resources/ats/types/ScheduledInterviewInterviewersItem.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 { RemoteUser } from "./RemoteUser"; - -export const ScheduledInterviewInterviewersItem: core.serialization.Schema< - serializers.ats.ScheduledInterviewInterviewersItem.Raw, - Merge.ats.ScheduledInterviewInterviewersItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), RemoteUser]); - -export declare namespace ScheduledInterviewInterviewersItem { - export type Raw = string | RemoteUser.Raw; -} diff --git a/src/serialization/resources/ats/types/ScheduledInterviewJobInterviewStage.ts b/src/serialization/resources/ats/types/ScheduledInterviewJobInterviewStage.ts deleted file mode 100644 index 4c7cf2daf..000000000 --- a/src/serialization/resources/ats/types/ScheduledInterviewJobInterviewStage.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 { JobInterviewStage } from "./JobInterviewStage"; - -export const ScheduledInterviewJobInterviewStage: core.serialization.Schema< - serializers.ats.ScheduledInterviewJobInterviewStage.Raw, - Merge.ats.ScheduledInterviewJobInterviewStage -> = core.serialization.undiscriminatedUnion([core.serialization.string(), JobInterviewStage]); - -export declare namespace ScheduledInterviewJobInterviewStage { - export type Raw = string | JobInterviewStage.Raw; -} diff --git a/src/serialization/resources/ats/types/ScheduledInterviewOrganizer.ts b/src/serialization/resources/ats/types/ScheduledInterviewOrganizer.ts deleted file mode 100644 index acbd66d5c..000000000 --- a/src/serialization/resources/ats/types/ScheduledInterviewOrganizer.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 { RemoteUser } from "./RemoteUser"; - -export const ScheduledInterviewOrganizer: core.serialization.Schema< - serializers.ats.ScheduledInterviewOrganizer.Raw, - Merge.ats.ScheduledInterviewOrganizer -> = core.serialization.undiscriminatedUnion([core.serialization.string(), RemoteUser]); - -export declare namespace ScheduledInterviewOrganizer { - export type Raw = string | RemoteUser.Raw; -} diff --git a/src/serialization/resources/ats/types/ScheduledInterviewRequest.ts b/src/serialization/resources/ats/types/ScheduledInterviewRequest.ts deleted file mode 100644 index c80d6a57a..000000000 --- a/src/serialization/resources/ats/types/ScheduledInterviewRequest.ts +++ /dev/null @@ -1,50 +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 { ScheduledInterviewRequestApplication } from "./ScheduledInterviewRequestApplication"; -import { ScheduledInterviewRequestInterviewersItem } from "./ScheduledInterviewRequestInterviewersItem"; -import { ScheduledInterviewRequestJobInterviewStage } from "./ScheduledInterviewRequestJobInterviewStage"; -import { ScheduledInterviewRequestOrganizer } from "./ScheduledInterviewRequestOrganizer"; -import { ScheduledInterviewRequestStatus } from "./ScheduledInterviewRequestStatus"; - -export const ScheduledInterviewRequest: core.serialization.ObjectSchema< - serializers.ats.ScheduledInterviewRequest.Raw, - Merge.ats.ScheduledInterviewRequest -> = core.serialization.object({ - application: ScheduledInterviewRequestApplication.optional(), - jobInterviewStage: core.serialization.property( - "job_interview_stage", - ScheduledInterviewRequestJobInterviewStage.optional(), - ), - organizer: ScheduledInterviewRequestOrganizer.optional(), - interviewers: core.serialization.list(ScheduledInterviewRequestInterviewersItem.optional()).optional(), - location: core.serialization.string().optional(), - startAt: core.serialization.property("start_at", core.serialization.date().optional()), - endAt: core.serialization.property("end_at", core.serialization.date().optional()), - status: ScheduledInterviewRequestStatus.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 ScheduledInterviewRequest { - export interface Raw { - application?: ScheduledInterviewRequestApplication.Raw | null; - job_interview_stage?: ScheduledInterviewRequestJobInterviewStage.Raw | null; - organizer?: ScheduledInterviewRequestOrganizer.Raw | null; - interviewers?: (ScheduledInterviewRequestInterviewersItem.Raw | null | undefined)[] | null; - location?: string | null; - start_at?: string | null; - end_at?: string | null; - status?: ScheduledInterviewRequestStatus.Raw | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/ats/types/ScheduledInterviewRequestApplication.ts b/src/serialization/resources/ats/types/ScheduledInterviewRequestApplication.ts deleted file mode 100644 index fc68c546c..000000000 --- a/src/serialization/resources/ats/types/ScheduledInterviewRequestApplication.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const ScheduledInterviewRequestApplication: core.serialization.Schema< - serializers.ats.ScheduledInterviewRequestApplication.Raw, - Merge.ats.ScheduledInterviewRequestApplication -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.ats.Application), -]); - -export declare namespace ScheduledInterviewRequestApplication { - export type Raw = string | serializers.ats.Application.Raw; -} diff --git a/src/serialization/resources/ats/types/ScheduledInterviewRequestInterviewersItem.ts b/src/serialization/resources/ats/types/ScheduledInterviewRequestInterviewersItem.ts deleted file mode 100644 index a0ec3c0e7..000000000 --- a/src/serialization/resources/ats/types/ScheduledInterviewRequestInterviewersItem.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 { RemoteUser } from "./RemoteUser"; - -export const ScheduledInterviewRequestInterviewersItem: core.serialization.Schema< - serializers.ats.ScheduledInterviewRequestInterviewersItem.Raw, - Merge.ats.ScheduledInterviewRequestInterviewersItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), RemoteUser]); - -export declare namespace ScheduledInterviewRequestInterviewersItem { - export type Raw = string | RemoteUser.Raw; -} diff --git a/src/serialization/resources/ats/types/ScheduledInterviewRequestJobInterviewStage.ts b/src/serialization/resources/ats/types/ScheduledInterviewRequestJobInterviewStage.ts deleted file mode 100644 index b706fceb6..000000000 --- a/src/serialization/resources/ats/types/ScheduledInterviewRequestJobInterviewStage.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 { JobInterviewStage } from "./JobInterviewStage"; - -export const ScheduledInterviewRequestJobInterviewStage: core.serialization.Schema< - serializers.ats.ScheduledInterviewRequestJobInterviewStage.Raw, - Merge.ats.ScheduledInterviewRequestJobInterviewStage -> = core.serialization.undiscriminatedUnion([core.serialization.string(), JobInterviewStage]); - -export declare namespace ScheduledInterviewRequestJobInterviewStage { - export type Raw = string | JobInterviewStage.Raw; -} diff --git a/src/serialization/resources/ats/types/ScheduledInterviewRequestOrganizer.ts b/src/serialization/resources/ats/types/ScheduledInterviewRequestOrganizer.ts deleted file mode 100644 index be411dece..000000000 --- a/src/serialization/resources/ats/types/ScheduledInterviewRequestOrganizer.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 { RemoteUser } from "./RemoteUser"; - -export const ScheduledInterviewRequestOrganizer: core.serialization.Schema< - serializers.ats.ScheduledInterviewRequestOrganizer.Raw, - Merge.ats.ScheduledInterviewRequestOrganizer -> = core.serialization.undiscriminatedUnion([core.serialization.string(), RemoteUser]); - -export declare namespace ScheduledInterviewRequestOrganizer { - export type Raw = string | RemoteUser.Raw; -} diff --git a/src/serialization/resources/ats/types/ScheduledInterviewRequestStatus.ts b/src/serialization/resources/ats/types/ScheduledInterviewRequestStatus.ts deleted file mode 100644 index 1fead49f3..000000000 --- a/src/serialization/resources/ats/types/ScheduledInterviewRequestStatus.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 { ScheduledInterviewStatusEnum } from "./ScheduledInterviewStatusEnum"; - -export const ScheduledInterviewRequestStatus: core.serialization.Schema< - serializers.ats.ScheduledInterviewRequestStatus.Raw, - Merge.ats.ScheduledInterviewRequestStatus -> = core.serialization.undiscriminatedUnion([ScheduledInterviewStatusEnum, core.serialization.string()]); - -export declare namespace ScheduledInterviewRequestStatus { - export type Raw = ScheduledInterviewStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/ScheduledInterviewResponse.ts b/src/serialization/resources/ats/types/ScheduledInterviewResponse.ts deleted file mode 100644 index 19a423627..000000000 --- a/src/serialization/resources/ats/types/ScheduledInterviewResponse.ts +++ /dev/null @@ -1,28 +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 { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { ScheduledInterview } from "./ScheduledInterview"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const ScheduledInterviewResponse: core.serialization.ObjectSchema< - serializers.ats.ScheduledInterviewResponse.Raw, - Merge.ats.ScheduledInterviewResponse -> = core.serialization.object({ - model: ScheduledInterview, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace ScheduledInterviewResponse { - export interface Raw { - model: ScheduledInterview.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/ScheduledInterviewStatus.ts b/src/serialization/resources/ats/types/ScheduledInterviewStatus.ts deleted file mode 100644 index dc475dc74..000000000 --- a/src/serialization/resources/ats/types/ScheduledInterviewStatus.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 { ScheduledInterviewStatusEnum } from "./ScheduledInterviewStatusEnum"; - -export const ScheduledInterviewStatus: core.serialization.Schema< - serializers.ats.ScheduledInterviewStatus.Raw, - Merge.ats.ScheduledInterviewStatus -> = core.serialization.undiscriminatedUnion([ScheduledInterviewStatusEnum, core.serialization.string()]); - -export declare namespace ScheduledInterviewStatus { - export type Raw = ScheduledInterviewStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/ScheduledInterviewStatusEnum.ts b/src/serialization/resources/ats/types/ScheduledInterviewStatusEnum.ts deleted file mode 100644 index 5fb66a6d6..000000000 --- a/src/serialization/resources/ats/types/ScheduledInterviewStatusEnum.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 ScheduledInterviewStatusEnum: core.serialization.Schema< - serializers.ats.ScheduledInterviewStatusEnum.Raw, - Merge.ats.ScheduledInterviewStatusEnum -> = core.serialization.enum_(["SCHEDULED", "AWAITING_FEEDBACK", "COMPLETE"]); - -export declare namespace ScheduledInterviewStatusEnum { - export type Raw = "SCHEDULED" | "AWAITING_FEEDBACK" | "COMPLETE"; -} diff --git a/src/serialization/resources/ats/types/Scorecard.ts b/src/serialization/resources/ats/types/Scorecard.ts deleted file mode 100644 index 9a7eae706..000000000 --- a/src/serialization/resources/ats/types/Scorecard.ts +++ /dev/null @@ -1,51 +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 { RemoteData } from "./RemoteData"; -import { ScorecardApplication } from "./ScorecardApplication"; -import { ScorecardInterview } from "./ScorecardInterview"; -import { ScorecardInterviewer } from "./ScorecardInterviewer"; -import { ScorecardOverallRecommendation } from "./ScorecardOverallRecommendation"; - -export const Scorecard: core.serialization.ObjectSchema = - 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()), - application: ScorecardApplication.optional(), - interview: ScorecardInterview.optional(), - interviewer: ScorecardInterviewer.optional(), - remoteCreatedAt: core.serialization.property("remote_created_at", core.serialization.date().optional()), - submittedAt: core.serialization.property("submitted_at", core.serialization.date().optional()), - overallRecommendation: core.serialization.property( - "overall_recommendation", - ScorecardOverallRecommendation.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()), - }); - -export declare namespace Scorecard { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - application?: ScorecardApplication.Raw | null; - interview?: ScorecardInterview.Raw | null; - interviewer?: ScorecardInterviewer.Raw | null; - remote_created_at?: string | null; - submitted_at?: string | null; - overall_recommendation?: ScorecardOverallRecommendation.Raw | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/ScorecardApplication.ts b/src/serialization/resources/ats/types/ScorecardApplication.ts deleted file mode 100644 index a94918349..000000000 --- a/src/serialization/resources/ats/types/ScorecardApplication.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const ScorecardApplication: core.serialization.Schema< - serializers.ats.ScorecardApplication.Raw, - Merge.ats.ScorecardApplication -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.ats.Application), -]); - -export declare namespace ScorecardApplication { - export type Raw = string | serializers.ats.Application.Raw; -} diff --git a/src/serialization/resources/ats/types/ScorecardInterview.ts b/src/serialization/resources/ats/types/ScorecardInterview.ts deleted file mode 100644 index 420c5d099..000000000 --- a/src/serialization/resources/ats/types/ScorecardInterview.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 { ScheduledInterview } from "./ScheduledInterview"; - -export const ScorecardInterview: core.serialization.Schema< - serializers.ats.ScorecardInterview.Raw, - Merge.ats.ScorecardInterview -> = core.serialization.undiscriminatedUnion([core.serialization.string(), ScheduledInterview]); - -export declare namespace ScorecardInterview { - export type Raw = string | ScheduledInterview.Raw; -} diff --git a/src/serialization/resources/ats/types/ScorecardInterviewer.ts b/src/serialization/resources/ats/types/ScorecardInterviewer.ts deleted file mode 100644 index d67bea7ce..000000000 --- a/src/serialization/resources/ats/types/ScorecardInterviewer.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 { RemoteUser } from "./RemoteUser"; - -export const ScorecardInterviewer: core.serialization.Schema< - serializers.ats.ScorecardInterviewer.Raw, - Merge.ats.ScorecardInterviewer -> = core.serialization.undiscriminatedUnion([core.serialization.string(), RemoteUser]); - -export declare namespace ScorecardInterviewer { - export type Raw = string | RemoteUser.Raw; -} diff --git a/src/serialization/resources/ats/types/ScorecardOverallRecommendation.ts b/src/serialization/resources/ats/types/ScorecardOverallRecommendation.ts deleted file mode 100644 index 4bd04e119..000000000 --- a/src/serialization/resources/ats/types/ScorecardOverallRecommendation.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 { OverallRecommendationEnum } from "./OverallRecommendationEnum"; - -export const ScorecardOverallRecommendation: core.serialization.Schema< - serializers.ats.ScorecardOverallRecommendation.Raw, - Merge.ats.ScorecardOverallRecommendation -> = core.serialization.undiscriminatedUnion([OverallRecommendationEnum, core.serialization.string()]); - -export declare namespace ScorecardOverallRecommendation { - export type Raw = OverallRecommendationEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/ScreeningQuestion.ts b/src/serialization/resources/ats/types/ScreeningQuestion.ts deleted file mode 100644 index dc3d5b55d..000000000 --- a/src/serialization/resources/ats/types/ScreeningQuestion.ts +++ /dev/null @@ -1,40 +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 { ScreeningQuestionJob } from "./ScreeningQuestionJob"; -import { ScreeningQuestionType } from "./ScreeningQuestionType"; - -export const ScreeningQuestion: core.serialization.ObjectSchema< - serializers.ats.ScreeningQuestion.Raw, - Merge.ats.ScreeningQuestion -> = 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()), - job: ScreeningQuestionJob.optional(), - description: core.serialization.string().optional(), - title: core.serialization.string().optional(), - type: ScreeningQuestionType.optional(), - required: core.serialization.boolean().optional(), - options: core.serialization.list(core.serialization.unknown()).optional(), - remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), -}); - -export declare namespace ScreeningQuestion { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - job?: ScreeningQuestionJob.Raw | null; - description?: string | null; - title?: string | null; - type?: ScreeningQuestionType.Raw | null; - required?: boolean | null; - options?: unknown[] | null; - remote_was_deleted?: boolean | null; - } -} diff --git a/src/serialization/resources/ats/types/ScreeningQuestionAnswer.ts b/src/serialization/resources/ats/types/ScreeningQuestionAnswer.ts deleted file mode 100644 index 958ff7958..000000000 --- a/src/serialization/resources/ats/types/ScreeningQuestionAnswer.ts +++ /dev/null @@ -1,31 +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 { ScreeningQuestionAnswerQuestion } from "./ScreeningQuestionAnswerQuestion"; - -export const ScreeningQuestionAnswer: core.serialization.ObjectSchema< - serializers.ats.ScreeningQuestionAnswer.Raw, - Merge.ats.ScreeningQuestionAnswer -> = 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()), - question: ScreeningQuestionAnswerQuestion.optional(), - answer: core.serialization.string().optional(), - remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), -}); - -export declare namespace ScreeningQuestionAnswer { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - question?: ScreeningQuestionAnswerQuestion.Raw | null; - answer?: string | null; - remote_was_deleted?: boolean | null; - } -} diff --git a/src/serialization/resources/ats/types/ScreeningQuestionAnswerQuestion.ts b/src/serialization/resources/ats/types/ScreeningQuestionAnswerQuestion.ts deleted file mode 100644 index 9e17a9d0f..000000000 --- a/src/serialization/resources/ats/types/ScreeningQuestionAnswerQuestion.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 { ScreeningQuestion } from "./ScreeningQuestion"; - -export const ScreeningQuestionAnswerQuestion: core.serialization.Schema< - serializers.ats.ScreeningQuestionAnswerQuestion.Raw, - Merge.ats.ScreeningQuestionAnswerQuestion -> = core.serialization.undiscriminatedUnion([core.serialization.string(), ScreeningQuestion]); - -export declare namespace ScreeningQuestionAnswerQuestion { - export type Raw = string | ScreeningQuestion.Raw; -} diff --git a/src/serialization/resources/ats/types/ScreeningQuestionAnswerRequest.ts b/src/serialization/resources/ats/types/ScreeningQuestionAnswerRequest.ts deleted file mode 100644 index d0989a71a..000000000 --- a/src/serialization/resources/ats/types/ScreeningQuestionAnswerRequest.ts +++ /dev/null @@ -1,33 +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 { ScreeningQuestionAnswerRequestQuestion } from "./ScreeningQuestionAnswerRequestQuestion"; - -export const ScreeningQuestionAnswerRequest: core.serialization.ObjectSchema< - serializers.ats.ScreeningQuestionAnswerRequest.Raw, - Merge.ats.ScreeningQuestionAnswerRequest -> = core.serialization.object({ - remoteId: core.serialization.property("remote_id", core.serialization.string().optional()), - question: ScreeningQuestionAnswerRequestQuestion.optional(), - answer: core.serialization.string().optional(), - integrationParams: core.serialization.property( - "integration_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - linkedAccountParams: core.serialization.property( - "linked_account_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), -}); - -export declare namespace ScreeningQuestionAnswerRequest { - export interface Raw { - remote_id?: string | null; - question?: ScreeningQuestionAnswerRequestQuestion.Raw | null; - answer?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/ats/types/ScreeningQuestionAnswerRequestQuestion.ts b/src/serialization/resources/ats/types/ScreeningQuestionAnswerRequestQuestion.ts deleted file mode 100644 index 02c9a86f4..000000000 --- a/src/serialization/resources/ats/types/ScreeningQuestionAnswerRequestQuestion.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 { ScreeningQuestion } from "./ScreeningQuestion"; - -export const ScreeningQuestionAnswerRequestQuestion: core.serialization.Schema< - serializers.ats.ScreeningQuestionAnswerRequestQuestion.Raw, - Merge.ats.ScreeningQuestionAnswerRequestQuestion -> = core.serialization.undiscriminatedUnion([core.serialization.string(), ScreeningQuestion]); - -export declare namespace ScreeningQuestionAnswerRequestQuestion { - export type Raw = string | ScreeningQuestion.Raw; -} diff --git a/src/serialization/resources/ats/types/ScreeningQuestionJob.ts b/src/serialization/resources/ats/types/ScreeningQuestionJob.ts deleted file mode 100644 index 936274f53..000000000 --- a/src/serialization/resources/ats/types/ScreeningQuestionJob.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 { Job } from "./Job"; - -export const ScreeningQuestionJob: core.serialization.Schema< - serializers.ats.ScreeningQuestionJob.Raw, - Merge.ats.ScreeningQuestionJob -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Job]); - -export declare namespace ScreeningQuestionJob { - export type Raw = string | Job.Raw; -} diff --git a/src/serialization/resources/ats/types/ScreeningQuestionOption.ts b/src/serialization/resources/ats/types/ScreeningQuestionOption.ts deleted file mode 100644 index 6b0fc7d40..000000000 --- a/src/serialization/resources/ats/types/ScreeningQuestionOption.ts +++ /dev/null @@ -1,28 +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 ScreeningQuestionOption: core.serialization.ObjectSchema< - serializers.ats.ScreeningQuestionOption.Raw, - Merge.ats.ScreeningQuestionOption -> = 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()), - label: core.serialization.string().optional(), - remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), -}); - -export declare namespace ScreeningQuestionOption { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - label?: string | null; - remote_was_deleted?: boolean | null; - } -} diff --git a/src/serialization/resources/ats/types/ScreeningQuestionType.ts b/src/serialization/resources/ats/types/ScreeningQuestionType.ts deleted file mode 100644 index c610b8245..000000000 --- a/src/serialization/resources/ats/types/ScreeningQuestionType.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 { ScreeningQuestionTypeEnum } from "./ScreeningQuestionTypeEnum"; - -export const ScreeningQuestionType: core.serialization.Schema< - serializers.ats.ScreeningQuestionType.Raw, - Merge.ats.ScreeningQuestionType -> = core.serialization.undiscriminatedUnion([ScreeningQuestionTypeEnum, core.serialization.string()]); - -export declare namespace ScreeningQuestionType { - export type Raw = ScreeningQuestionTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/ScreeningQuestionTypeEnum.ts b/src/serialization/resources/ats/types/ScreeningQuestionTypeEnum.ts deleted file mode 100644 index 03cc62ebb..000000000 --- a/src/serialization/resources/ats/types/ScreeningQuestionTypeEnum.ts +++ /dev/null @@ -1,31 +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 ScreeningQuestionTypeEnum: core.serialization.Schema< - serializers.ats.ScreeningQuestionTypeEnum.Raw, - Merge.ats.ScreeningQuestionTypeEnum -> = core.serialization.enum_([ - "DATE", - "FILE", - "SINGLE_SELECT", - "MULTI_SELECT", - "SINGLE_LINE_TEXT", - "MULTI_LINE_TEXT", - "NUMERIC", - "BOOLEAN", -]); - -export declare namespace ScreeningQuestionTypeEnum { - export type Raw = - | "DATE" - | "FILE" - | "SINGLE_SELECT" - | "MULTI_SELECT" - | "SINGLE_LINE_TEXT" - | "MULTI_LINE_TEXT" - | "NUMERIC" - | "BOOLEAN"; -} diff --git a/src/serialization/resources/ats/types/SelectiveSyncConfigurationsUsageEnum.ts b/src/serialization/resources/ats/types/SelectiveSyncConfigurationsUsageEnum.ts deleted file mode 100644 index 6fb7d4eee..000000000 --- a/src/serialization/resources/ats/types/SelectiveSyncConfigurationsUsageEnum.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 SelectiveSyncConfigurationsUsageEnum: core.serialization.Schema< - serializers.ats.SelectiveSyncConfigurationsUsageEnum.Raw, - Merge.ats.SelectiveSyncConfigurationsUsageEnum -> = core.serialization.enum_(["IN_NEXT_SYNC", "IN_LAST_SYNC"]); - -export declare namespace SelectiveSyncConfigurationsUsageEnum { - export type Raw = "IN_NEXT_SYNC" | "IN_LAST_SYNC"; -} diff --git a/src/serialization/resources/ats/types/StatusFd5Enum.ts b/src/serialization/resources/ats/types/StatusFd5Enum.ts deleted file mode 100644 index d01f58d9c..000000000 --- a/src/serialization/resources/ats/types/StatusFd5Enum.ts +++ /dev/null @@ -1,12 +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 StatusFd5Enum: core.serialization.Schema = - core.serialization.enum_(["SYNCING", "DONE", "FAILED", "DISABLED", "PAUSED", "PARTIALLY_SYNCED"]); - -export declare namespace StatusFd5Enum { - export type Raw = "SYNCING" | "DONE" | "FAILED" | "DISABLED" | "PAUSED" | "PARTIALLY_SYNCED"; -} diff --git a/src/serialization/resources/ats/types/SyncStatus.ts b/src/serialization/resources/ats/types/SyncStatus.ts deleted file mode 100644 index dd6c513e6..000000000 --- a/src/serialization/resources/ats/types/SyncStatus.ts +++ /dev/null @@ -1,38 +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 { SelectiveSyncConfigurationsUsageEnum } from "./SelectiveSyncConfigurationsUsageEnum"; -import { SyncStatusLastSyncResult } from "./SyncStatusLastSyncResult"; -import { SyncStatusStatus } from "./SyncStatusStatus"; - -export const SyncStatus: core.serialization.ObjectSchema = - core.serialization.object({ - modelName: core.serialization.property("model_name", core.serialization.string()), - 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", 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()), - selectiveSyncConfigurationsUsage: core.serialization.property( - "selective_sync_configurations_usage", - SelectiveSyncConfigurationsUsageEnum.optional(), - ), - }); - -export declare namespace SyncStatus { - export interface Raw { - model_name: string; - model_id: string; - last_sync_start?: string | null; - next_sync_start?: string | null; - last_sync_result?: SyncStatusLastSyncResult.Raw | null; - last_sync_finished?: string | null; - status: SyncStatusStatus.Raw; - is_initial_sync: boolean; - selective_sync_configurations_usage?: SelectiveSyncConfigurationsUsageEnum.Raw | null; - } -} diff --git a/src/serialization/resources/ats/types/SyncStatusLastSyncResult.ts b/src/serialization/resources/ats/types/SyncStatusLastSyncResult.ts deleted file mode 100644 index 74078775f..000000000 --- a/src/serialization/resources/ats/types/SyncStatusLastSyncResult.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 { LastSyncResultEnum } from "./LastSyncResultEnum"; - -export const SyncStatusLastSyncResult: core.serialization.Schema< - serializers.ats.SyncStatusLastSyncResult.Raw, - Merge.ats.SyncStatusLastSyncResult -> = core.serialization.undiscriminatedUnion([LastSyncResultEnum, core.serialization.string()]); - -export declare namespace SyncStatusLastSyncResult { - export type Raw = LastSyncResultEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/SyncStatusStatus.ts b/src/serialization/resources/ats/types/SyncStatusStatus.ts deleted file mode 100644 index 11586eaa6..000000000 --- a/src/serialization/resources/ats/types/SyncStatusStatus.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 { StatusFd5Enum } from "./StatusFd5Enum"; - -export const SyncStatusStatus: core.serialization.Schema< - serializers.ats.SyncStatusStatus.Raw, - Merge.ats.SyncStatusStatus -> = core.serialization.undiscriminatedUnion([StatusFd5Enum, core.serialization.string()]); - -export declare namespace SyncStatusStatus { - export type Raw = StatusFd5Enum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/Tag.ts b/src/serialization/resources/ats/types/Tag.ts deleted file mode 100644 index 08be9590c..000000000 --- a/src/serialization/resources/ats/types/Tag.ts +++ /dev/null @@ -1,35 +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 Tag: core.serialization.ObjectSchema = core.serialization.object({ - 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()), - name: core.serialization.string().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(core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()) - .optional(), - ), -}); - -export declare namespace Tag { - export interface Raw { - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: (Record | null | undefined)[] | null; - } -} diff --git a/src/serialization/resources/ats/types/Url.ts b/src/serialization/resources/ats/types/Url.ts deleted file mode 100644 index bea631aea..000000000 --- a/src/serialization/resources/ats/types/Url.ts +++ /dev/null @@ -1,24 +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 { UrlUrlType } from "./UrlUrlType"; - -export const Url: core.serialization.ObjectSchema = core.serialization.object({ - createdAt: core.serialization.property("created_at", core.serialization.date().optional()), - modifiedAt: core.serialization.property("modified_at", core.serialization.date().optional()), - value: core.serialization.string().optional(), - urlType: core.serialization.property("url_type", UrlUrlType.optional()), - remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), -}); - -export declare namespace Url { - export interface Raw { - created_at?: string | null; - modified_at?: string | null; - value?: string | null; - url_type?: UrlUrlType.Raw | null; - remote_was_deleted?: boolean | null; - } -} diff --git a/src/serialization/resources/ats/types/UrlRequest.ts b/src/serialization/resources/ats/types/UrlRequest.ts deleted file mode 100644 index 23d2aa142..000000000 --- a/src/serialization/resources/ats/types/UrlRequest.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"; -import { UrlRequestUrlType } from "./UrlRequestUrlType"; - -export const UrlRequest: core.serialization.ObjectSchema = - core.serialization.object({ - value: core.serialization.string().optional(), - urlType: core.serialization.property("url_type", UrlRequestUrlType.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 UrlRequest { - export interface Raw { - value?: string | null; - url_type?: UrlRequestUrlType.Raw | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/ats/types/UrlRequestUrlType.ts b/src/serialization/resources/ats/types/UrlRequestUrlType.ts deleted file mode 100644 index 28426db59..000000000 --- a/src/serialization/resources/ats/types/UrlRequestUrlType.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 { UrlTypeEnum } from "./UrlTypeEnum"; - -export const UrlRequestUrlType: core.serialization.Schema< - serializers.ats.UrlRequestUrlType.Raw, - Merge.ats.UrlRequestUrlType -> = core.serialization.undiscriminatedUnion([UrlTypeEnum, core.serialization.string()]); - -export declare namespace UrlRequestUrlType { - export type Raw = UrlTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/UrlTypeEnum.ts b/src/serialization/resources/ats/types/UrlTypeEnum.ts deleted file mode 100644 index e844f3885..000000000 --- a/src/serialization/resources/ats/types/UrlTypeEnum.ts +++ /dev/null @@ -1,12 +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 UrlTypeEnum: core.serialization.Schema = - core.serialization.enum_(["PERSONAL", "COMPANY", "PORTFOLIO", "BLOG", "SOCIAL_MEDIA", "OTHER", "JOB_POSTING"]); - -export declare namespace UrlTypeEnum { - export type Raw = "PERSONAL" | "COMPANY" | "PORTFOLIO" | "BLOG" | "SOCIAL_MEDIA" | "OTHER" | "JOB_POSTING"; -} diff --git a/src/serialization/resources/ats/types/UrlUrlType.ts b/src/serialization/resources/ats/types/UrlUrlType.ts deleted file mode 100644 index e195c3e99..000000000 --- a/src/serialization/resources/ats/types/UrlUrlType.ts +++ /dev/null @@ -1,13 +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 { UrlTypeEnum } from "./UrlTypeEnum"; - -export const UrlUrlType: core.serialization.Schema = - core.serialization.undiscriminatedUnion([UrlTypeEnum, core.serialization.string()]); - -export declare namespace UrlUrlType { - export type Raw = UrlTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/ValidationProblemSource.ts b/src/serialization/resources/ats/types/ValidationProblemSource.ts deleted file mode 100644 index 1cbf0758f..000000000 --- a/src/serialization/resources/ats/types/ValidationProblemSource.ts +++ /dev/null @@ -1,18 +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 ValidationProblemSource: core.serialization.ObjectSchema< - serializers.ats.ValidationProblemSource.Raw, - Merge.ats.ValidationProblemSource -> = core.serialization.object({ - pointer: core.serialization.string(), -}); - -export declare namespace ValidationProblemSource { - export interface Raw { - pointer: string; - } -} diff --git a/src/serialization/resources/ats/types/VeteranStatusEnum.ts b/src/serialization/resources/ats/types/VeteranStatusEnum.ts deleted file mode 100644 index d8b5863d6..000000000 --- a/src/serialization/resources/ats/types/VeteranStatusEnum.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; - -export const VeteranStatusEnum: core.serialization.Schema< - serializers.ats.VeteranStatusEnum.Raw, - Merge.ats.VeteranStatusEnum -> = core.serialization.enum_([ - "I_AM_NOT_A_PROTECTED_VETERAN", - "I_IDENTIFY_AS_ONE_OR_MORE_OF_THE_CLASSIFICATIONS_OF_A_PROTECTED_VETERAN", - "I_DONT_WISH_TO_ANSWER", -]); - -export declare namespace VeteranStatusEnum { - export type Raw = - | "I_AM_NOT_A_PROTECTED_VETERAN" - | "I_IDENTIFY_AS_ONE_OR_MORE_OF_THE_CLASSIFICATIONS_OF_A_PROTECTED_VETERAN" - | "I_DONT_WISH_TO_ANSWER"; -} diff --git a/src/serialization/resources/ats/types/VisibilityEnum.ts b/src/serialization/resources/ats/types/VisibilityEnum.ts deleted file mode 100644 index 45f5f4cbb..000000000 --- a/src/serialization/resources/ats/types/VisibilityEnum.ts +++ /dev/null @@ -1,12 +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 VisibilityEnum: core.serialization.Schema = - core.serialization.enum_(["ADMIN_ONLY", "PUBLIC", "PRIVATE"]); - -export declare namespace VisibilityEnum { - export type Raw = "ADMIN_ONLY" | "PUBLIC" | "PRIVATE"; -} diff --git a/src/serialization/resources/ats/types/WarningValidationProblem.ts b/src/serialization/resources/ats/types/WarningValidationProblem.ts deleted file mode 100644 index 56e644727..000000000 --- a/src/serialization/resources/ats/types/WarningValidationProblem.ts +++ /dev/null @@ -1,25 +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 { ValidationProblemSource } from "./ValidationProblemSource"; - -export const WarningValidationProblem: core.serialization.ObjectSchema< - serializers.ats.WarningValidationProblem.Raw, - Merge.ats.WarningValidationProblem -> = core.serialization.object({ - source: ValidationProblemSource.optional(), - title: core.serialization.string(), - detail: core.serialization.string(), - problemType: core.serialization.property("problem_type", core.serialization.string()), -}); - -export declare namespace WarningValidationProblem { - export interface Raw { - source?: ValidationProblemSource.Raw | null; - title: string; - detail: string; - problem_type: string; - } -} diff --git a/src/serialization/resources/ats/types/WebhookReceiver.ts b/src/serialization/resources/ats/types/WebhookReceiver.ts deleted file mode 100644 index 01e51b1ba..000000000 --- a/src/serialization/resources/ats/types/WebhookReceiver.ts +++ /dev/null @@ -1,22 +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 WebhookReceiver: core.serialization.ObjectSchema< - serializers.ats.WebhookReceiver.Raw, - Merge.ats.WebhookReceiver -> = core.serialization.object({ - event: core.serialization.string(), - isActive: core.serialization.property("is_active", core.serialization.boolean()), - key: core.serialization.string().optional(), -}); - -export declare namespace WebhookReceiver { - export interface Raw { - event: string; - is_active: boolean; - key?: string | null; - } -} diff --git a/src/serialization/resources/ats/types/index.ts b/src/serialization/resources/ats/types/index.ts deleted file mode 100644 index c8264290b..000000000 --- a/src/serialization/resources/ats/types/index.ts +++ /dev/null @@ -1,217 +0,0 @@ -export * from "./AccessRoleEnum"; -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 "./Activity"; -export * from "./ActivityActivityType"; -export * from "./ActivityRequest"; -export * from "./ActivityRequestActivityType"; -export * from "./ActivityRequestUser"; -export * from "./ActivityRequestVisibility"; -export * from "./ActivityResponse"; -export * from "./ActivityTypeEnum"; -export * from "./ActivityUser"; -export * from "./ActivityVisibility"; -export * from "./AdvancedMetadata"; -export * from "./Application"; -export * from "./ApplicationCandidate"; -export * from "./ApplicationCreditedTo"; -export * from "./ApplicationCurrentStage"; -export * from "./ApplicationJob"; -export * from "./ApplicationOffersItem"; -export * from "./ApplicationRejectReason"; -export * from "./ApplicationRequest"; -export * from "./ApplicationRequestCandidate"; -export * from "./ApplicationRequestCreditedTo"; -export * from "./ApplicationRequestCurrentStage"; -export * from "./ApplicationRequestJob"; -export * from "./ApplicationRequestOffersItem"; -export * from "./ApplicationRequestRejectReason"; -export * from "./ApplicationRequestScreeningQuestionAnswersItem"; -export * from "./ApplicationResponse"; -export * from "./ApplicationScreeningQuestionAnswersItem"; -export * from "./AsyncPassthroughReciept"; -export * from "./Attachment"; -export * from "./AttachmentAttachmentType"; -export * from "./AttachmentRequest"; -export * from "./AttachmentRequestAttachmentType"; -export * from "./AttachmentResponse"; -export * from "./AttachmentTypeEnum"; -export * from "./AuditLogEvent"; -export * from "./AuditLogEventEventType"; -export * from "./AuditLogEventRole"; -export * from "./AvailableActions"; -export * from "./Candidate"; -export * from "./CandidateApplicationsItem"; -export * from "./CandidateAttachmentsItem"; -export * from "./CandidateRequest"; -export * from "./CandidateRequestApplicationsItem"; -export * from "./CandidateRequestAttachmentsItem"; -export * from "./CandidateResponse"; -export * from "./CategoriesEnum"; -export * from "./CategoryEnum"; -export * from "./CommonModelScopeApi"; -export * from "./CommonModelScopesBodyRequest"; -export * from "./DataPassthroughRequest"; -export * from "./DebugModeLog"; -export * from "./DebugModelLogSummary"; -export * from "./Department"; -export * from "./DisabilityStatusEnum"; -export * from "./Eeoc"; -export * from "./EeocCandidate"; -export * from "./EeocDisabilityStatus"; -export * from "./EeocGender"; -export * from "./EeocRace"; -export * from "./EeocVeteranStatus"; -export * from "./EmailAddress"; -export * from "./EmailAddressEmailAddressType"; -export * from "./EmailAddressRequest"; -export * from "./EmailAddressRequestEmailAddressType"; -export * from "./EmailAddressTypeEnum"; -export * from "./EnabledActionsEnum"; -export * from "./EncodingEnum"; -export * from "./ErrorValidationProblem"; -export * from "./EventTypeEnum"; -export * from "./ExternalTargetFieldApi"; -export * from "./ExternalTargetFieldApiResponse"; -export * from "./FieldMappingApiInstance"; -export * from "./FieldMappingApiInstanceRemoteField"; -export * from "./FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo"; -export * from "./FieldMappingApiInstanceResponse"; -export * from "./FieldMappingApiInstanceTargetField"; -export * from "./FieldMappingInstanceResponse"; -export * from "./FieldPermissionDeserializer"; -export * from "./FieldPermissionDeserializerRequest"; -export * from "./GenderEnum"; -export * from "./IndividualCommonModelScopeDeserializer"; -export * from "./IndividualCommonModelScopeDeserializerRequest"; -export * from "./Issue"; -export * from "./IssueStatus"; -export * from "./IssueStatusEnum"; -export * from "./Job"; -export * from "./JobDepartmentsItem"; -export * from "./JobHiringManagersItem"; -export * from "./JobInterviewStage"; -export * from "./JobInterviewStageJob"; -export * from "./JobOfficesItem"; -export * from "./JobPosting"; -export * from "./JobPostingJob"; -export * from "./JobPostingJobPostingUrlsItem"; -export * from "./JobPostingStatus"; -export * from "./JobPostingStatusEnum"; -export * from "./JobRecruitersItem"; -export * from "./JobStatus"; -export * from "./JobStatusEnum"; -export * from "./JobType"; -export * from "./JobTypeEnum"; -export * from "./LanguageEnum"; -export * from "./LastSyncResultEnum"; -export * from "./LinkedAccountStatus"; -export * from "./LinkToken"; -export * from "./MetaResponse"; -export * from "./MethodEnum"; -export * from "./ModelOperation"; -export * from "./ModelPermissionDeserializer"; -export * from "./ModelPermissionDeserializerRequest"; -export * from "./MultipartFormFieldRequest"; -export * from "./MultipartFormFieldRequestEncoding"; -export * from "./Offer"; -export * from "./OfferApplication"; -export * from "./OfferCreator"; -export * from "./OfferStatus"; -export * from "./OfferStatusEnum"; -export * from "./Office"; -export * from "./OverallRecommendationEnum"; -export * from "./PaginatedAccountDetailsAndActionsList"; -export * from "./PaginatedActivityList"; -export * from "./PaginatedApplicationList"; -export * from "./PaginatedAttachmentList"; -export * from "./PaginatedAuditLogEventList"; -export * from "./PaginatedCandidateList"; -export * from "./PaginatedDepartmentList"; -export * from "./PaginatedEeocList"; -export * from "./PaginatedIssueList"; -export * from "./PaginatedJobInterviewStageList"; -export * from "./PaginatedJobList"; -export * from "./PaginatedJobPostingList"; -export * from "./PaginatedOfferList"; -export * from "./PaginatedOfficeList"; -export * from "./PaginatedRejectReasonList"; -export * from "./PaginatedRemoteUserList"; -export * from "./PaginatedScheduledInterviewList"; -export * from "./PaginatedScorecardList"; -export * from "./PaginatedScreeningQuestionList"; -export * from "./PaginatedSyncStatusList"; -export * from "./PaginatedTagList"; -export * from "./PatchedCandidateRequest"; -export * from "./PhoneNumber"; -export * from "./PhoneNumberPhoneNumberType"; -export * from "./PhoneNumberRequest"; -export * from "./PhoneNumberRequestPhoneNumberType"; -export * from "./PhoneNumberTypeEnum"; -export * from "./RaceEnum"; -export * from "./ReasonEnum"; -export * from "./RejectReason"; -export * from "./RemoteData"; -export * from "./RemoteEndpointInfo"; -export * from "./RemoteFieldApi"; -export * from "./RemoteFieldApiCoverage"; -export * from "./RemoteFieldApiResponse"; -export * from "./RemoteKey"; -export * from "./RemoteResponse"; -export * from "./RemoteResponseResponseType"; -export * from "./RemoteUser"; -export * from "./RemoteUserAccessRole"; -export * from "./RequestFormatEnum"; -export * from "./ResponseTypeEnum"; -export * from "./RoleEnum"; -export * from "./ScheduledInterview"; -export * from "./ScheduledInterviewApplication"; -export * from "./ScheduledInterviewInterviewersItem"; -export * from "./ScheduledInterviewJobInterviewStage"; -export * from "./ScheduledInterviewOrganizer"; -export * from "./ScheduledInterviewRequest"; -export * from "./ScheduledInterviewRequestApplication"; -export * from "./ScheduledInterviewRequestInterviewersItem"; -export * from "./ScheduledInterviewRequestJobInterviewStage"; -export * from "./ScheduledInterviewRequestOrganizer"; -export * from "./ScheduledInterviewRequestStatus"; -export * from "./ScheduledInterviewResponse"; -export * from "./ScheduledInterviewStatus"; -export * from "./ScheduledInterviewStatusEnum"; -export * from "./Scorecard"; -export * from "./ScorecardApplication"; -export * from "./ScorecardInterview"; -export * from "./ScorecardInterviewer"; -export * from "./ScorecardOverallRecommendation"; -export * from "./ScreeningQuestion"; -export * from "./ScreeningQuestionAnswer"; -export * from "./ScreeningQuestionAnswerQuestion"; -export * from "./ScreeningQuestionAnswerRequest"; -export * from "./ScreeningQuestionAnswerRequestQuestion"; -export * from "./ScreeningQuestionJob"; -export * from "./ScreeningQuestionOption"; -export * from "./ScreeningQuestionType"; -export * from "./ScreeningQuestionTypeEnum"; -export * from "./SelectiveSyncConfigurationsUsageEnum"; -export * from "./StatusFd5Enum"; -export * from "./SyncStatus"; -export * from "./SyncStatusLastSyncResult"; -export * from "./SyncStatusStatus"; -export * from "./Tag"; -export * from "./Url"; -export * from "./UrlRequest"; -export * from "./UrlRequestUrlType"; -export * from "./UrlTypeEnum"; -export * from "./UrlUrlType"; -export * from "./ValidationProblemSource"; -export * from "./VeteranStatusEnum"; -export * from "./VisibilityEnum"; -export * from "./WarningValidationProblem"; -export * from "./WebhookReceiver"; diff --git a/src/serialization/resources/crm/index.ts b/src/serialization/resources/crm/index.ts deleted file mode 100644 index 3e15e2907..000000000 --- a/src/serialization/resources/crm/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./resources"; -export * from "./types"; diff --git a/src/serialization/resources/crm/resources/accounts/client/index.ts b/src/serialization/resources/crm/resources/accounts/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/crm/resources/accounts/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/crm/resources/accounts/client/requests/CrmAccountEndpointRequest.ts b/src/serialization/resources/crm/resources/accounts/client/requests/CrmAccountEndpointRequest.ts deleted file mode 100644 index 388692305..000000000 --- a/src/serialization/resources/crm/resources/accounts/client/requests/CrmAccountEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { AccountRequest } from "../../../../types/AccountRequest"; - -export const CrmAccountEndpointRequest: core.serialization.Schema< - serializers.crm.CrmAccountEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: AccountRequest, -}); - -export declare namespace CrmAccountEndpointRequest { - export interface Raw { - model: AccountRequest.Raw; - } -} diff --git a/src/serialization/resources/crm/resources/accounts/client/requests/PatchedCrmAccountEndpointRequest.ts b/src/serialization/resources/crm/resources/accounts/client/requests/PatchedCrmAccountEndpointRequest.ts deleted file mode 100644 index 05670b31a..000000000 --- a/src/serialization/resources/crm/resources/accounts/client/requests/PatchedCrmAccountEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { PatchedAccountRequest } from "../../../../types/PatchedAccountRequest"; - -export const PatchedCrmAccountEndpointRequest: core.serialization.Schema< - serializers.crm.PatchedCrmAccountEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: PatchedAccountRequest, -}); - -export declare namespace PatchedCrmAccountEndpointRequest { - export interface Raw { - model: PatchedAccountRequest.Raw; - } -} diff --git a/src/serialization/resources/crm/resources/accounts/client/requests/index.ts b/src/serialization/resources/crm/resources/accounts/client/requests/index.ts deleted file mode 100644 index 90e0e50cc..000000000 --- a/src/serialization/resources/crm/resources/accounts/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { CrmAccountEndpointRequest } from "./CrmAccountEndpointRequest"; -export { PatchedCrmAccountEndpointRequest } from "./PatchedCrmAccountEndpointRequest"; diff --git a/src/serialization/resources/crm/resources/accounts/index.ts b/src/serialization/resources/crm/resources/accounts/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/crm/resources/accounts/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/crm/resources/associationTypes/client/index.ts b/src/serialization/resources/crm/resources/associationTypes/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/crm/resources/associationTypes/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/crm/resources/associationTypes/client/requests/CrmAssociationTypeEndpointRequest.ts b/src/serialization/resources/crm/resources/associationTypes/client/requests/CrmAssociationTypeEndpointRequest.ts deleted file mode 100644 index 698b8bfd8..000000000 --- a/src/serialization/resources/crm/resources/associationTypes/client/requests/CrmAssociationTypeEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { AssociationTypeRequestRequest } from "../../../../types/AssociationTypeRequestRequest"; - -export const CrmAssociationTypeEndpointRequest: core.serialization.Schema< - serializers.crm.CrmAssociationTypeEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: AssociationTypeRequestRequest, -}); - -export declare namespace CrmAssociationTypeEndpointRequest { - export interface Raw { - model: AssociationTypeRequestRequest.Raw; - } -} diff --git a/src/serialization/resources/crm/resources/associationTypes/client/requests/index.ts b/src/serialization/resources/crm/resources/associationTypes/client/requests/index.ts deleted file mode 100644 index 3715c6d20..000000000 --- a/src/serialization/resources/crm/resources/associationTypes/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { CrmAssociationTypeEndpointRequest } from "./CrmAssociationTypeEndpointRequest"; diff --git a/src/serialization/resources/crm/resources/associationTypes/index.ts b/src/serialization/resources/crm/resources/associationTypes/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/crm/resources/associationTypes/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/crm/resources/asyncPassthrough/index.ts b/src/serialization/resources/crm/resources/asyncPassthrough/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/crm/resources/asyncPassthrough/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; diff --git a/src/serialization/resources/crm/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.ts b/src/serialization/resources/crm/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.ts deleted file mode 100644 index 01b9e27db..000000000 --- a/src/serialization/resources/crm/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.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 { RemoteResponse } from "../../../types/RemoteResponse"; - -export const AsyncPassthroughRetrieveResponse: core.serialization.Schema< - serializers.crm.AsyncPassthroughRetrieveResponse.Raw, - Merge.crm.AsyncPassthroughRetrieveResponse -> = core.serialization.undiscriminatedUnion([RemoteResponse, core.serialization.string()]); - -export declare namespace AsyncPassthroughRetrieveResponse { - export type Raw = RemoteResponse.Raw | string; -} diff --git a/src/serialization/resources/crm/resources/asyncPassthrough/types/index.ts b/src/serialization/resources/crm/resources/asyncPassthrough/types/index.ts deleted file mode 100644 index f2b2d0e21..000000000 --- a/src/serialization/resources/crm/resources/asyncPassthrough/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./AsyncPassthroughRetrieveResponse"; diff --git a/src/serialization/resources/crm/resources/contacts/client/index.ts b/src/serialization/resources/crm/resources/contacts/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/crm/resources/contacts/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/crm/resources/contacts/client/requests/CrmContactEndpointRequest.ts b/src/serialization/resources/crm/resources/contacts/client/requests/CrmContactEndpointRequest.ts deleted file mode 100644 index 231d85ade..000000000 --- a/src/serialization/resources/crm/resources/contacts/client/requests/CrmContactEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { ContactRequest } from "../../../../types/ContactRequest"; - -export const CrmContactEndpointRequest: core.serialization.Schema< - serializers.crm.CrmContactEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: ContactRequest, -}); - -export declare namespace CrmContactEndpointRequest { - export interface Raw { - model: ContactRequest.Raw; - } -} diff --git a/src/serialization/resources/crm/resources/contacts/client/requests/PatchedCrmContactEndpointRequest.ts b/src/serialization/resources/crm/resources/contacts/client/requests/PatchedCrmContactEndpointRequest.ts deleted file mode 100644 index d605785d8..000000000 --- a/src/serialization/resources/crm/resources/contacts/client/requests/PatchedCrmContactEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { PatchedContactRequest } from "../../../../types/PatchedContactRequest"; - -export const PatchedCrmContactEndpointRequest: core.serialization.Schema< - serializers.crm.PatchedCrmContactEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: PatchedContactRequest, -}); - -export declare namespace PatchedCrmContactEndpointRequest { - export interface Raw { - model: PatchedContactRequest.Raw; - } -} diff --git a/src/serialization/resources/crm/resources/contacts/client/requests/index.ts b/src/serialization/resources/crm/resources/contacts/client/requests/index.ts deleted file mode 100644 index b374ff9f3..000000000 --- a/src/serialization/resources/crm/resources/contacts/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { CrmContactEndpointRequest } from "./CrmContactEndpointRequest"; -export { PatchedCrmContactEndpointRequest } from "./PatchedCrmContactEndpointRequest"; diff --git a/src/serialization/resources/crm/resources/contacts/index.ts b/src/serialization/resources/crm/resources/contacts/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/crm/resources/contacts/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/serialization/resources/crm/resources/contacts/types/index.ts deleted file mode 100644 index 1f8bc8653..000000000 --- a/src/serialization/resources/crm/resources/contacts/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./ContactsListRequestExpand"; -export * from "./ContactsRetrieveRequestExpand"; diff --git a/src/serialization/resources/crm/resources/customObjects/client/index.ts b/src/serialization/resources/crm/resources/customObjects/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/crm/resources/customObjects/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/crm/resources/customObjects/client/requests/CrmCustomObjectEndpointRequest.ts b/src/serialization/resources/crm/resources/customObjects/client/requests/CrmCustomObjectEndpointRequest.ts deleted file mode 100644 index e4703547c..000000000 --- a/src/serialization/resources/crm/resources/customObjects/client/requests/CrmCustomObjectEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { CustomObjectRequest } from "../../../../types/CustomObjectRequest"; - -export const CrmCustomObjectEndpointRequest: core.serialization.Schema< - serializers.crm.CrmCustomObjectEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: CustomObjectRequest, -}); - -export declare namespace CrmCustomObjectEndpointRequest { - export interface Raw { - model: CustomObjectRequest.Raw; - } -} diff --git a/src/serialization/resources/crm/resources/customObjects/client/requests/index.ts b/src/serialization/resources/crm/resources/customObjects/client/requests/index.ts deleted file mode 100644 index 349f88656..000000000 --- a/src/serialization/resources/crm/resources/customObjects/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { CrmCustomObjectEndpointRequest } from "./CrmCustomObjectEndpointRequest"; diff --git a/src/serialization/resources/crm/resources/customObjects/index.ts b/src/serialization/resources/crm/resources/customObjects/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/crm/resources/customObjects/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/crm/resources/engagements/client/index.ts b/src/serialization/resources/crm/resources/engagements/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/crm/resources/engagements/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/crm/resources/engagements/client/requests/EngagementEndpointRequest.ts b/src/serialization/resources/crm/resources/engagements/client/requests/EngagementEndpointRequest.ts deleted file mode 100644 index da19ce61a..000000000 --- a/src/serialization/resources/crm/resources/engagements/client/requests/EngagementEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { EngagementRequest } from "../../../../types/EngagementRequest"; - -export const EngagementEndpointRequest: core.serialization.Schema< - serializers.crm.EngagementEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: EngagementRequest, -}); - -export declare namespace EngagementEndpointRequest { - export interface Raw { - model: EngagementRequest.Raw; - } -} diff --git a/src/serialization/resources/crm/resources/engagements/client/requests/PatchedEngagementEndpointRequest.ts b/src/serialization/resources/crm/resources/engagements/client/requests/PatchedEngagementEndpointRequest.ts deleted file mode 100644 index 4c9bf082f..000000000 --- a/src/serialization/resources/crm/resources/engagements/client/requests/PatchedEngagementEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { PatchedEngagementRequest } from "../../../../types/PatchedEngagementRequest"; - -export const PatchedEngagementEndpointRequest: core.serialization.Schema< - serializers.crm.PatchedEngagementEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: PatchedEngagementRequest, -}); - -export declare namespace PatchedEngagementEndpointRequest { - export interface Raw { - model: PatchedEngagementRequest.Raw; - } -} diff --git a/src/serialization/resources/crm/resources/engagements/client/requests/index.ts b/src/serialization/resources/crm/resources/engagements/client/requests/index.ts deleted file mode 100644 index e56d5ebc4..000000000 --- a/src/serialization/resources/crm/resources/engagements/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { EngagementEndpointRequest } from "./EngagementEndpointRequest"; -export { PatchedEngagementEndpointRequest } from "./PatchedEngagementEndpointRequest"; diff --git a/src/serialization/resources/crm/resources/engagements/index.ts b/src/serialization/resources/crm/resources/engagements/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/crm/resources/engagements/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/serialization/resources/crm/resources/engagements/types/index.ts deleted file mode 100644 index 742b3ef68..000000000 --- a/src/serialization/resources/crm/resources/engagements/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./EngagementsListRequestExpand"; -export * from "./EngagementsRetrieveRequestExpand"; diff --git a/src/serialization/resources/crm/resources/fieldMapping/client/index.ts b/src/serialization/resources/crm/resources/fieldMapping/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/crm/resources/fieldMapping/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/crm/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/serialization/resources/crm/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts deleted file mode 100644 index 830704a17..000000000 --- a/src/serialization/resources/crm/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ /dev/null @@ -1,31 +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 CreateFieldMappingRequest: core.serialization.Schema< - serializers.crm.CreateFieldMappingRequest.Raw, - Omit -> = core.serialization.object({ - targetFieldName: core.serialization.property("target_field_name", core.serialization.string()), - targetFieldDescription: core.serialization.property("target_field_description", core.serialization.string()), - remoteFieldTraversalPath: core.serialization.property( - "remote_field_traversal_path", - core.serialization.list(core.serialization.unknown()), - ), - 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()), -}); - -export declare namespace CreateFieldMappingRequest { - export interface Raw { - target_field_name: string; - target_field_description: string; - remote_field_traversal_path: unknown[]; - remote_method: string; - remote_url_path: string; - common_model_name: string; - } -} diff --git a/src/serialization/resources/crm/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts b/src/serialization/resources/crm/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts deleted file mode 100644 index 2c9e8790b..000000000 --- a/src/serialization/resources/crm/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ /dev/null @@ -1,25 +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 PatchedEditFieldMappingRequest: core.serialization.Schema< - serializers.crm.PatchedEditFieldMappingRequest.Raw, - Merge.crm.PatchedEditFieldMappingRequest -> = core.serialization.object({ - remoteFieldTraversalPath: core.serialization.property( - "remote_field_traversal_path", - core.serialization.list(core.serialization.unknown()).optional(), - ), - remoteMethod: core.serialization.property("remote_method", core.serialization.string().optional()), - remoteUrlPath: core.serialization.property("remote_url_path", core.serialization.string().optional()), -}); - -export declare namespace PatchedEditFieldMappingRequest { - export interface Raw { - remote_field_traversal_path?: unknown[] | null; - remote_method?: string | null; - remote_url_path?: string | null; - } -} diff --git a/src/serialization/resources/crm/resources/fieldMapping/client/requests/index.ts b/src/serialization/resources/crm/resources/fieldMapping/client/requests/index.ts deleted file mode 100644 index 9bb691d70..000000000 --- a/src/serialization/resources/crm/resources/fieldMapping/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { CreateFieldMappingRequest } from "./CreateFieldMappingRequest"; -export { PatchedEditFieldMappingRequest } from "./PatchedEditFieldMappingRequest"; diff --git a/src/serialization/resources/crm/resources/fieldMapping/index.ts b/src/serialization/resources/crm/resources/fieldMapping/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/crm/resources/fieldMapping/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/crm/resources/forceResync/client/index.ts b/src/serialization/resources/crm/resources/forceResync/client/index.ts deleted file mode 100644 index d5680837c..000000000 --- a/src/serialization/resources/crm/resources/forceResync/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * as syncStatusResyncCreate from "./syncStatusResyncCreate"; diff --git a/src/serialization/resources/crm/resources/forceResync/client/syncStatusResyncCreate.ts b/src/serialization/resources/crm/resources/forceResync/client/syncStatusResyncCreate.ts deleted file mode 100644 index a50cd26a3..000000000 --- a/src/serialization/resources/crm/resources/forceResync/client/syncStatusResyncCreate.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 { SyncStatus } from "../../../types/SyncStatus"; - -export const Response: core.serialization.Schema< - serializers.crm.forceResync.syncStatusResyncCreate.Response.Raw, - Merge.crm.SyncStatus[] -> = core.serialization.list(SyncStatus); - -export declare namespace Response { - export type Raw = SyncStatus.Raw[]; -} diff --git a/src/serialization/resources/crm/resources/forceResync/index.ts b/src/serialization/resources/crm/resources/forceResync/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/crm/resources/forceResync/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/crm/resources/generateKey/client/index.ts b/src/serialization/resources/crm/resources/generateKey/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/crm/resources/generateKey/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/crm/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts b/src/serialization/resources/crm/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts deleted file mode 100644 index c68e53fbd..000000000 --- a/src/serialization/resources/crm/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts +++ /dev/null @@ -1,18 +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 GenerateRemoteKeyRequest: core.serialization.Schema< - serializers.crm.GenerateRemoteKeyRequest.Raw, - Merge.crm.GenerateRemoteKeyRequest -> = core.serialization.object({ - name: core.serialization.string(), -}); - -export declare namespace GenerateRemoteKeyRequest { - export interface Raw { - name: string; - } -} diff --git a/src/serialization/resources/crm/resources/generateKey/client/requests/index.ts b/src/serialization/resources/crm/resources/generateKey/client/requests/index.ts deleted file mode 100644 index 0df6e7c8b..000000000 --- a/src/serialization/resources/crm/resources/generateKey/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { GenerateRemoteKeyRequest } from "./GenerateRemoteKeyRequest"; diff --git a/src/serialization/resources/crm/resources/generateKey/index.ts b/src/serialization/resources/crm/resources/generateKey/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/crm/resources/generateKey/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/crm/resources/index.ts b/src/serialization/resources/crm/resources/index.ts deleted file mode 100644 index 674a41b22..000000000 --- a/src/serialization/resources/crm/resources/index.ts +++ /dev/null @@ -1,44 +0,0 @@ -export * as accounts from "./accounts"; -export * from "./accounts/client/requests"; -export * as associationTypes from "./associationTypes"; -export * from "./associationTypes/client/requests"; -export * as asyncPassthrough from "./asyncPassthrough"; -export * from "./asyncPassthrough/types"; -export * as contacts from "./contacts"; -export * from "./contacts/client/requests"; -export * from "./contacts/types"; -export * as customObjects from "./customObjects"; -export * from "./customObjects/client/requests"; -export * as engagements from "./engagements"; -export * from "./engagements/client/requests"; -export * from "./engagements/types"; -export * as fieldMapping from "./fieldMapping"; -export * from "./fieldMapping/client/requests"; -export * as forceResync from "./forceResync"; -export * as generateKey from "./generateKey"; -export * from "./generateKey/client/requests"; -export * as issues from "./issues"; -export * from "./issues/types"; -export * as leads from "./leads"; -export * from "./leads/client/requests"; -export * from "./leads/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 notes from "./notes"; -export * from "./notes/client/requests"; -export * from "./notes/types"; -export * as opportunities from "./opportunities"; -export * from "./opportunities/client/requests"; -export * from "./opportunities/types"; -export * as regenerateKey from "./regenerateKey"; -export * from "./regenerateKey/client/requests"; -export * as scopes from "./scopes"; -export * from "./scopes/client/requests"; -export * as tasks from "./tasks"; -export * from "./tasks/client/requests"; -export * from "./tasks/types"; -export * as webhookReceivers from "./webhookReceivers"; -export * from "./webhookReceivers/client/requests"; diff --git a/src/serialization/resources/crm/resources/issues/index.ts b/src/serialization/resources/crm/resources/issues/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/crm/resources/issues/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; diff --git a/src/serialization/resources/crm/resources/issues/types/IssuesListRequestStatus.ts b/src/serialization/resources/crm/resources/issues/types/IssuesListRequestStatus.ts deleted file mode 100644 index 74aae6cff..000000000 --- a/src/serialization/resources/crm/resources/issues/types/IssuesListRequestStatus.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 IssuesListRequestStatus: core.serialization.Schema< - serializers.crm.IssuesListRequestStatus.Raw, - Merge.crm.IssuesListRequestStatus -> = core.serialization.enum_(["ONGOING", "RESOLVED"]); - -export declare namespace IssuesListRequestStatus { - export type Raw = "ONGOING" | "RESOLVED"; -} diff --git a/src/serialization/resources/crm/resources/issues/types/index.ts b/src/serialization/resources/crm/resources/issues/types/index.ts deleted file mode 100644 index 554cdf48c..000000000 --- a/src/serialization/resources/crm/resources/issues/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./IssuesListRequestStatus"; diff --git a/src/serialization/resources/crm/resources/leads/client/index.ts b/src/serialization/resources/crm/resources/leads/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/crm/resources/leads/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/crm/resources/leads/client/requests/LeadEndpointRequest.ts b/src/serialization/resources/crm/resources/leads/client/requests/LeadEndpointRequest.ts deleted file mode 100644 index c72a8ae86..000000000 --- a/src/serialization/resources/crm/resources/leads/client/requests/LeadEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { LeadRequest } from "../../../../types/LeadRequest"; - -export const LeadEndpointRequest: core.serialization.Schema< - serializers.crm.LeadEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: LeadRequest, -}); - -export declare namespace LeadEndpointRequest { - export interface Raw { - model: LeadRequest.Raw; - } -} diff --git a/src/serialization/resources/crm/resources/leads/client/requests/index.ts b/src/serialization/resources/crm/resources/leads/client/requests/index.ts deleted file mode 100644 index 72af5405d..000000000 --- a/src/serialization/resources/crm/resources/leads/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { LeadEndpointRequest } from "./LeadEndpointRequest"; diff --git a/src/serialization/resources/crm/resources/leads/index.ts b/src/serialization/resources/crm/resources/leads/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/crm/resources/leads/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/serialization/resources/crm/resources/leads/types/index.ts deleted file mode 100644 index 139d390d0..000000000 --- a/src/serialization/resources/crm/resources/leads/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./LeadsListRequestExpand"; -export * from "./LeadsRetrieveRequestExpand"; diff --git a/src/serialization/resources/crm/resources/linkToken/client/index.ts b/src/serialization/resources/crm/resources/linkToken/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/crm/resources/linkToken/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/crm/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/serialization/resources/crm/resources/linkToken/client/requests/EndUserDetailsRequest.ts deleted file mode 100644 index 0a7f193b6..000000000 --- a/src/serialization/resources/crm/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ /dev/null @@ -1,66 +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 { CategoriesEnum } from "../../../../types/CategoriesEnum"; -import { CommonModelScopesBodyRequest } from "../../../../types/CommonModelScopesBodyRequest"; -import { IndividualCommonModelScopeDeserializerRequest } from "../../../../types/IndividualCommonModelScopeDeserializerRequest"; -import { EndUserDetailsRequestLanguage } from "../../types/EndUserDetailsRequestLanguage"; - -export const EndUserDetailsRequest: core.serialization.Schema< - serializers.crm.EndUserDetailsRequest.Raw, - Merge.crm.EndUserDetailsRequest -> = core.serialization.object({ - endUserEmailAddress: core.serialization.property("end_user_email_address", core.serialization.string()), - endUserOrganizationName: core.serialization.property("end_user_organization_name", core.serialization.string()), - endUserOriginId: core.serialization.property("end_user_origin_id", core.serialization.string()), - categories: core.serialization.list(CategoriesEnum), - integration: core.serialization.string().optional(), - linkExpiryMins: core.serialization.property("link_expiry_mins", core.serialization.number().optional()), - shouldCreateMagicLinkUrl: core.serialization.property( - "should_create_magic_link_url", - core.serialization.boolean().optional(), - ), - hideAdminMagicLink: core.serialization.property("hide_admin_magic_link", core.serialization.boolean().optional()), - commonModels: core.serialization.property( - "common_models", - core.serialization.list(CommonModelScopesBodyRequest).optional(), - ), - categoryCommonModelScopes: core.serialization.property( - "category_common_model_scopes", - core.serialization - .record( - core.serialization.string(), - core.serialization.list(IndividualCommonModelScopeDeserializerRequest).optional(), - ) - .optional(), - ), - language: EndUserDetailsRequestLanguage.optional(), - areSyncsDisabled: core.serialization.property("are_syncs_disabled", core.serialization.boolean().optional()), - integrationSpecificConfig: core.serialization.property( - "integration_specific_config", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), -}); - -export declare namespace EndUserDetailsRequest { - export interface Raw { - end_user_email_address: string; - end_user_organization_name: string; - end_user_origin_id: string; - categories: CategoriesEnum.Raw[]; - integration?: string | null; - link_expiry_mins?: number | null; - should_create_magic_link_url?: boolean | null; - hide_admin_magic_link?: boolean | null; - common_models?: CommonModelScopesBodyRequest.Raw[] | null; - category_common_model_scopes?: Record< - string, - IndividualCommonModelScopeDeserializerRequest.Raw[] | null | undefined - > | null; - language?: EndUserDetailsRequestLanguage.Raw | null; - are_syncs_disabled?: boolean | null; - integration_specific_config?: Record | null; - } -} diff --git a/src/serialization/resources/crm/resources/linkToken/client/requests/index.ts b/src/serialization/resources/crm/resources/linkToken/client/requests/index.ts deleted file mode 100644 index d94b44a3e..000000000 --- a/src/serialization/resources/crm/resources/linkToken/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { EndUserDetailsRequest } from "./EndUserDetailsRequest"; diff --git a/src/serialization/resources/crm/resources/linkToken/index.ts b/src/serialization/resources/crm/resources/linkToken/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/crm/resources/linkToken/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/serialization/resources/crm/resources/linkToken/types/EndUserDetailsRequestLanguage.ts b/src/serialization/resources/crm/resources/linkToken/types/EndUserDetailsRequestLanguage.ts deleted file mode 100644 index d107f66ad..000000000 --- a/src/serialization/resources/crm/resources/linkToken/types/EndUserDetailsRequestLanguage.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 { LanguageEnum } from "../../../types/LanguageEnum"; - -export const EndUserDetailsRequestLanguage: core.serialization.Schema< - serializers.crm.EndUserDetailsRequestLanguage.Raw, - Merge.crm.EndUserDetailsRequestLanguage -> = core.serialization.undiscriminatedUnion([LanguageEnum, core.serialization.string()]); - -export declare namespace EndUserDetailsRequestLanguage { - export type Raw = LanguageEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/resources/linkToken/types/index.ts b/src/serialization/resources/crm/resources/linkToken/types/index.ts deleted file mode 100644 index c90e13c37..000000000 --- a/src/serialization/resources/crm/resources/linkToken/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./EndUserDetailsRequestLanguage"; diff --git a/src/serialization/resources/crm/resources/linkedAccounts/index.ts b/src/serialization/resources/crm/resources/linkedAccounts/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/crm/resources/linkedAccounts/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; diff --git a/src/serialization/resources/crm/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts b/src/serialization/resources/crm/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts deleted file mode 100644 index 9629b750e..000000000 --- a/src/serialization/resources/crm/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.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 LinkedAccountsListRequestCategory: core.serialization.Schema< - serializers.crm.LinkedAccountsListRequestCategory.Raw, - Merge.crm.LinkedAccountsListRequestCategory -> = core.serialization.enum_(["accounting", "ats", "crm", "filestorage", "hris", "mktg", "ticketing"]); - -export declare namespace LinkedAccountsListRequestCategory { - export type Raw = "accounting" | "ats" | "crm" | "filestorage" | "hris" | "mktg" | "ticketing"; -} diff --git a/src/serialization/resources/crm/resources/linkedAccounts/types/index.ts b/src/serialization/resources/crm/resources/linkedAccounts/types/index.ts deleted file mode 100644 index 91de6010a..000000000 --- a/src/serialization/resources/crm/resources/linkedAccounts/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./LinkedAccountsListRequestCategory"; diff --git a/src/serialization/resources/crm/resources/notes/client/index.ts b/src/serialization/resources/crm/resources/notes/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/crm/resources/notes/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/crm/resources/notes/client/requests/NoteEndpointRequest.ts b/src/serialization/resources/crm/resources/notes/client/requests/NoteEndpointRequest.ts deleted file mode 100644 index fda520920..000000000 --- a/src/serialization/resources/crm/resources/notes/client/requests/NoteEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { NoteRequest } from "../../../../types/NoteRequest"; - -export const NoteEndpointRequest: core.serialization.Schema< - serializers.crm.NoteEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: NoteRequest, -}); - -export declare namespace NoteEndpointRequest { - export interface Raw { - model: NoteRequest.Raw; - } -} diff --git a/src/serialization/resources/crm/resources/notes/client/requests/index.ts b/src/serialization/resources/crm/resources/notes/client/requests/index.ts deleted file mode 100644 index 32f95f81e..000000000 --- a/src/serialization/resources/crm/resources/notes/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { NoteEndpointRequest } from "./NoteEndpointRequest"; diff --git a/src/serialization/resources/crm/resources/notes/index.ts b/src/serialization/resources/crm/resources/notes/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/crm/resources/notes/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/serialization/resources/crm/resources/notes/types/index.ts deleted file mode 100644 index 619a79b71..000000000 --- a/src/serialization/resources/crm/resources/notes/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./NotesListRequestExpand"; -export * from "./NotesRetrieveRequestExpand"; diff --git a/src/serialization/resources/crm/resources/opportunities/client/index.ts b/src/serialization/resources/crm/resources/opportunities/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/crm/resources/opportunities/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/crm/resources/opportunities/client/requests/OpportunityEndpointRequest.ts b/src/serialization/resources/crm/resources/opportunities/client/requests/OpportunityEndpointRequest.ts deleted file mode 100644 index aeb7169bd..000000000 --- a/src/serialization/resources/crm/resources/opportunities/client/requests/OpportunityEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { OpportunityRequest } from "../../../../types/OpportunityRequest"; - -export const OpportunityEndpointRequest: core.serialization.Schema< - serializers.crm.OpportunityEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: OpportunityRequest, -}); - -export declare namespace OpportunityEndpointRequest { - export interface Raw { - model: OpportunityRequest.Raw; - } -} diff --git a/src/serialization/resources/crm/resources/opportunities/client/requests/PatchedOpportunityEndpointRequest.ts b/src/serialization/resources/crm/resources/opportunities/client/requests/PatchedOpportunityEndpointRequest.ts deleted file mode 100644 index 1b4bde720..000000000 --- a/src/serialization/resources/crm/resources/opportunities/client/requests/PatchedOpportunityEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { PatchedOpportunityRequest } from "../../../../types/PatchedOpportunityRequest"; - -export const PatchedOpportunityEndpointRequest: core.serialization.Schema< - serializers.crm.PatchedOpportunityEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: PatchedOpportunityRequest, -}); - -export declare namespace PatchedOpportunityEndpointRequest { - export interface Raw { - model: PatchedOpportunityRequest.Raw; - } -} diff --git a/src/serialization/resources/crm/resources/opportunities/client/requests/index.ts b/src/serialization/resources/crm/resources/opportunities/client/requests/index.ts deleted file mode 100644 index 8ab9698e2..000000000 --- a/src/serialization/resources/crm/resources/opportunities/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { OpportunityEndpointRequest } from "./OpportunityEndpointRequest"; -export { PatchedOpportunityEndpointRequest } from "./PatchedOpportunityEndpointRequest"; diff --git a/src/serialization/resources/crm/resources/opportunities/index.ts b/src/serialization/resources/crm/resources/opportunities/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/crm/resources/opportunities/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/OpportunitiesListRequestStatus.ts b/src/serialization/resources/crm/resources/opportunities/types/OpportunitiesListRequestStatus.ts deleted file mode 100644 index cc135808d..000000000 --- a/src/serialization/resources/crm/resources/opportunities/types/OpportunitiesListRequestStatus.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 OpportunitiesListRequestStatus: core.serialization.Schema< - serializers.crm.OpportunitiesListRequestStatus.Raw, - Merge.crm.OpportunitiesListRequestStatus -> = core.serialization.enum_(["LOST", "OPEN", "WON"]); - -export declare namespace OpportunitiesListRequestStatus { - export type Raw = "LOST" | "OPEN" | "WON"; -} 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/index.ts b/src/serialization/resources/crm/resources/opportunities/types/index.ts deleted file mode 100644 index 0d6d5b6f1..000000000 --- a/src/serialization/resources/crm/resources/opportunities/types/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./OpportunitiesListRequestExpand"; -export * from "./OpportunitiesListRequestStatus"; -export * from "./OpportunitiesRetrieveRequestExpand"; diff --git a/src/serialization/resources/crm/resources/regenerateKey/client/index.ts b/src/serialization/resources/crm/resources/regenerateKey/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/crm/resources/regenerateKey/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/crm/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts b/src/serialization/resources/crm/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts deleted file mode 100644 index db1698de5..000000000 --- a/src/serialization/resources/crm/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts +++ /dev/null @@ -1,18 +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 RemoteKeyForRegenerationRequest: core.serialization.Schema< - serializers.crm.RemoteKeyForRegenerationRequest.Raw, - Merge.crm.RemoteKeyForRegenerationRequest -> = core.serialization.object({ - name: core.serialization.string(), -}); - -export declare namespace RemoteKeyForRegenerationRequest { - export interface Raw { - name: string; - } -} diff --git a/src/serialization/resources/crm/resources/regenerateKey/client/requests/index.ts b/src/serialization/resources/crm/resources/regenerateKey/client/requests/index.ts deleted file mode 100644 index 2987ef933..000000000 --- a/src/serialization/resources/crm/resources/regenerateKey/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { RemoteKeyForRegenerationRequest } from "./RemoteKeyForRegenerationRequest"; diff --git a/src/serialization/resources/crm/resources/regenerateKey/index.ts b/src/serialization/resources/crm/resources/regenerateKey/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/crm/resources/regenerateKey/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/crm/resources/scopes/client/index.ts b/src/serialization/resources/crm/resources/scopes/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/crm/resources/scopes/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/crm/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts b/src/serialization/resources/crm/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts deleted file mode 100644 index dc5cc1781..000000000 --- a/src/serialization/resources/crm/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts +++ /dev/null @@ -1,22 +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 { IndividualCommonModelScopeDeserializerRequest } from "../../../../types/IndividualCommonModelScopeDeserializerRequest"; - -export const LinkedAccountCommonModelScopeDeserializerRequest: core.serialization.Schema< - serializers.crm.LinkedAccountCommonModelScopeDeserializerRequest.Raw, - Merge.crm.LinkedAccountCommonModelScopeDeserializerRequest -> = core.serialization.object({ - commonModels: core.serialization.property( - "common_models", - core.serialization.list(IndividualCommonModelScopeDeserializerRequest), - ), -}); - -export declare namespace LinkedAccountCommonModelScopeDeserializerRequest { - export interface Raw { - common_models: IndividualCommonModelScopeDeserializerRequest.Raw[]; - } -} diff --git a/src/serialization/resources/crm/resources/scopes/client/requests/index.ts b/src/serialization/resources/crm/resources/scopes/client/requests/index.ts deleted file mode 100644 index 28d8d7974..000000000 --- a/src/serialization/resources/crm/resources/scopes/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { LinkedAccountCommonModelScopeDeserializerRequest } from "./LinkedAccountCommonModelScopeDeserializerRequest"; diff --git a/src/serialization/resources/crm/resources/scopes/index.ts b/src/serialization/resources/crm/resources/scopes/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/crm/resources/scopes/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/crm/resources/tasks/client/index.ts b/src/serialization/resources/crm/resources/tasks/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/crm/resources/tasks/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/crm/resources/tasks/client/requests/PatchedTaskEndpointRequest.ts b/src/serialization/resources/crm/resources/tasks/client/requests/PatchedTaskEndpointRequest.ts deleted file mode 100644 index cbc34df77..000000000 --- a/src/serialization/resources/crm/resources/tasks/client/requests/PatchedTaskEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { PatchedTaskRequest } from "../../../../types/PatchedTaskRequest"; - -export const PatchedTaskEndpointRequest: core.serialization.Schema< - serializers.crm.PatchedTaskEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: PatchedTaskRequest, -}); - -export declare namespace PatchedTaskEndpointRequest { - export interface Raw { - model: PatchedTaskRequest.Raw; - } -} diff --git a/src/serialization/resources/crm/resources/tasks/client/requests/TaskEndpointRequest.ts b/src/serialization/resources/crm/resources/tasks/client/requests/TaskEndpointRequest.ts deleted file mode 100644 index 81aa6e3d0..000000000 --- a/src/serialization/resources/crm/resources/tasks/client/requests/TaskEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { TaskRequest } from "../../../../types/TaskRequest"; - -export const TaskEndpointRequest: core.serialization.Schema< - serializers.crm.TaskEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: TaskRequest, -}); - -export declare namespace TaskEndpointRequest { - export interface Raw { - model: TaskRequest.Raw; - } -} diff --git a/src/serialization/resources/crm/resources/tasks/client/requests/index.ts b/src/serialization/resources/crm/resources/tasks/client/requests/index.ts deleted file mode 100644 index e2daebbce..000000000 --- a/src/serialization/resources/crm/resources/tasks/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { PatchedTaskEndpointRequest } from "./PatchedTaskEndpointRequest"; -export { TaskEndpointRequest } from "./TaskEndpointRequest"; diff --git a/src/serialization/resources/crm/resources/tasks/index.ts b/src/serialization/resources/crm/resources/tasks/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/crm/resources/tasks/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/serialization/resources/crm/resources/tasks/types/index.ts deleted file mode 100644 index 570802a11..000000000 --- a/src/serialization/resources/crm/resources/tasks/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./TasksListRequestExpand"; -export * from "./TasksRetrieveRequestExpand"; diff --git a/src/serialization/resources/crm/resources/webhookReceivers/client/index.ts b/src/serialization/resources/crm/resources/webhookReceivers/client/index.ts deleted file mode 100644 index 257d03e90..000000000 --- a/src/serialization/resources/crm/resources/webhookReceivers/client/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * as list from "./list"; -export * from "./requests"; diff --git a/src/serialization/resources/crm/resources/webhookReceivers/client/list.ts b/src/serialization/resources/crm/resources/webhookReceivers/client/list.ts deleted file mode 100644 index 9ccfbada3..000000000 --- a/src/serialization/resources/crm/resources/webhookReceivers/client/list.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 { WebhookReceiver } from "../../../types/WebhookReceiver"; - -export const Response: core.serialization.Schema< - serializers.crm.webhookReceivers.list.Response.Raw, - Merge.crm.WebhookReceiver[] -> = core.serialization.list(WebhookReceiver); - -export declare namespace Response { - export type Raw = WebhookReceiver.Raw[]; -} diff --git a/src/serialization/resources/crm/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts b/src/serialization/resources/crm/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts deleted file mode 100644 index 05574e012..000000000 --- a/src/serialization/resources/crm/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts +++ /dev/null @@ -1,22 +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 WebhookReceiverRequest: core.serialization.Schema< - serializers.crm.WebhookReceiverRequest.Raw, - Merge.crm.WebhookReceiverRequest -> = core.serialization.object({ - event: core.serialization.string(), - isActive: core.serialization.property("is_active", core.serialization.boolean()), - key: core.serialization.string().optional(), -}); - -export declare namespace WebhookReceiverRequest { - export interface Raw { - event: string; - is_active: boolean; - key?: string | null; - } -} diff --git a/src/serialization/resources/crm/resources/webhookReceivers/client/requests/index.ts b/src/serialization/resources/crm/resources/webhookReceivers/client/requests/index.ts deleted file mode 100644 index 29f534250..000000000 --- a/src/serialization/resources/crm/resources/webhookReceivers/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { WebhookReceiverRequest } from "./WebhookReceiverRequest"; diff --git a/src/serialization/resources/crm/resources/webhookReceivers/index.ts b/src/serialization/resources/crm/resources/webhookReceivers/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/crm/resources/webhookReceivers/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/crm/types/Account.ts b/src/serialization/resources/crm/types/Account.ts deleted file mode 100644 index 6f6134a05..000000000 --- a/src/serialization/resources/crm/types/Account.ts +++ /dev/null @@ -1,60 +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 { AccountOwner } from "./AccountOwner"; -import { Address } from "./Address"; -import { PhoneNumber } from "./PhoneNumber"; -import { RemoteData } from "./RemoteData"; -import { RemoteField } from "./RemoteField"; - -export const Account: core.serialization.ObjectSchema = - 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()), - owner: AccountOwner.optional(), - name: core.serialization.string().optional(), - description: core.serialization.string().optional(), - industry: core.serialization.string().optional(), - website: core.serialization.string().optional(), - numberOfEmployees: core.serialization.property("number_of_employees", core.serialization.number().optional()), - addresses: core.serialization.list(Address).optional(), - phoneNumbers: core.serialization.property("phone_numbers", core.serialization.list(PhoneNumber).optional()), - lastActivityAt: core.serialization.property("last_activity_at", core.serialization.date().optional()), - remoteUpdatedAt: core.serialization.property("remote_updated_at", core.serialization.date().optional()), - remoteCreatedAt: core.serialization.property("remote_created_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 Account { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - owner?: AccountOwner.Raw | null; - name?: string | null; - description?: string | null; - industry?: string | null; - website?: string | null; - number_of_employees?: number | null; - addresses?: Address.Raw[] | null; - phone_numbers?: PhoneNumber.Raw[] | null; - last_activity_at?: string | null; - remote_updated_at?: string | null; - remote_created_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/crm/types/AccountDetails.ts b/src/serialization/resources/crm/types/AccountDetails.ts deleted file mode 100644 index eed255652..000000000 --- a/src/serialization/resources/crm/types/AccountDetails.ts +++ /dev/null @@ -1,44 +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 { AccountDetailsCategory } from "./AccountDetailsCategory"; - -export const AccountDetails: core.serialization.ObjectSchema< - serializers.crm.AccountDetails.Raw, - Merge.crm.AccountDetails -> = core.serialization.object({ - id: core.serialization.string().optional(), - integration: core.serialization.string().optional(), - integrationSlug: core.serialization.property("integration_slug", core.serialization.string().optional()), - category: AccountDetailsCategory.optional(), - endUserOriginId: core.serialization.property("end_user_origin_id", core.serialization.string().optional()), - endUserOrganizationName: core.serialization.property( - "end_user_organization_name", - core.serialization.string().optional(), - ), - endUserEmailAddress: core.serialization.property("end_user_email_address", core.serialization.string().optional()), - status: core.serialization.string().optional(), - webhookListenerUrl: core.serialization.property("webhook_listener_url", core.serialization.string().optional()), - isDuplicate: core.serialization.property("is_duplicate", core.serialization.boolean().optional()), - accountType: core.serialization.property("account_type", core.serialization.string().optional()), - completedAt: core.serialization.property("completed_at", core.serialization.date().optional()), -}); - -export declare namespace AccountDetails { - export interface Raw { - id?: string | null; - integration?: string | null; - integration_slug?: string | null; - category?: AccountDetailsCategory.Raw | null; - end_user_origin_id?: string | null; - end_user_organization_name?: string | null; - end_user_email_address?: string | null; - status?: string | null; - webhook_listener_url?: string | null; - is_duplicate?: boolean | null; - account_type?: string | null; - completed_at?: string | null; - } -} diff --git a/src/serialization/resources/crm/types/AccountDetailsAndActions.ts b/src/serialization/resources/crm/types/AccountDetailsAndActions.ts deleted file mode 100644 index 3487726fc..000000000 --- a/src/serialization/resources/crm/types/AccountDetailsAndActions.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"; -import { AccountDetailsAndActionsCategory } from "./AccountDetailsAndActionsCategory"; -import { AccountDetailsAndActionsIntegration } from "./AccountDetailsAndActionsIntegration"; -import { AccountDetailsAndActionsStatus } from "./AccountDetailsAndActionsStatus"; - -export const AccountDetailsAndActions: core.serialization.ObjectSchema< - serializers.crm.AccountDetailsAndActions.Raw, - Merge.crm.AccountDetailsAndActions -> = core.serialization.object({ - id: core.serialization.string(), - 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()), - endUserEmailAddress: core.serialization.property("end_user_email_address", core.serialization.string()), - subdomain: core.serialization.string().optional(), - webhookListenerUrl: core.serialization.property("webhook_listener_url", core.serialization.string()), - isDuplicate: core.serialization.property("is_duplicate", core.serialization.boolean().optional()), - integration: AccountDetailsAndActionsIntegration.optional(), - accountType: core.serialization.property("account_type", core.serialization.string()), - completedAt: core.serialization.property("completed_at", core.serialization.date()), -}); - -export declare namespace AccountDetailsAndActions { - export interface Raw { - id: string; - category?: AccountDetailsAndActionsCategory.Raw | null; - status: AccountDetailsAndActionsStatus.Raw; - status_detail?: string | null; - end_user_origin_id?: string | null; - end_user_organization_name: string; - end_user_email_address: string; - subdomain?: string | null; - webhook_listener_url: string; - is_duplicate?: boolean | null; - integration?: AccountDetailsAndActionsIntegration.Raw | null; - account_type: string; - completed_at: string; - } -} diff --git a/src/serialization/resources/crm/types/AccountDetailsAndActionsCategory.ts b/src/serialization/resources/crm/types/AccountDetailsAndActionsCategory.ts deleted file mode 100644 index 9f52cecaf..000000000 --- a/src/serialization/resources/crm/types/AccountDetailsAndActionsCategory.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { CategoryEnum } from "./CategoryEnum"; - -export const AccountDetailsAndActionsCategory: core.serialization.Schema< - serializers.crm.AccountDetailsAndActionsCategory.Raw, - Merge.crm.AccountDetailsAndActionsCategory -> = core.serialization.undiscriminatedUnion([CategoryEnum, core.serialization.string()]); - -export declare namespace AccountDetailsAndActionsCategory { - export type Raw = CategoryEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/AccountDetailsAndActionsIntegration.ts b/src/serialization/resources/crm/types/AccountDetailsAndActionsIntegration.ts deleted file mode 100644 index 66765e8b2..000000000 --- a/src/serialization/resources/crm/types/AccountDetailsAndActionsIntegration.ts +++ /dev/null @@ -1,37 +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 { CategoriesEnum } from "./CategoriesEnum"; -import { ModelOperation } from "./ModelOperation"; - -export const AccountDetailsAndActionsIntegration: core.serialization.ObjectSchema< - serializers.crm.AccountDetailsAndActionsIntegration.Raw, - Merge.crm.AccountDetailsAndActionsIntegration -> = core.serialization.object({ - name: core.serialization.string(), - categories: core.serialization.list(CategoriesEnum), - image: core.serialization.string().optional(), - squareImage: core.serialization.property("square_image", core.serialization.string().optional()), - color: core.serialization.string(), - slug: core.serialization.string(), - passthroughAvailable: core.serialization.property("passthrough_available", core.serialization.boolean()), - availableModelOperations: core.serialization.property( - "available_model_operations", - core.serialization.list(ModelOperation).optional(), - ), -}); - -export declare namespace AccountDetailsAndActionsIntegration { - export interface Raw { - name: string; - categories: CategoriesEnum.Raw[]; - image?: string | null; - square_image?: string | null; - color: string; - slug: string; - passthrough_available: boolean; - available_model_operations?: ModelOperation.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/AccountDetailsAndActionsStatus.ts b/src/serialization/resources/crm/types/AccountDetailsAndActionsStatus.ts deleted file mode 100644 index 2a0b99233..000000000 --- a/src/serialization/resources/crm/types/AccountDetailsAndActionsStatus.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 { AccountDetailsAndActionsStatusEnum } from "./AccountDetailsAndActionsStatusEnum"; - -export const AccountDetailsAndActionsStatus: core.serialization.Schema< - serializers.crm.AccountDetailsAndActionsStatus.Raw, - Merge.crm.AccountDetailsAndActionsStatus -> = core.serialization.undiscriminatedUnion([AccountDetailsAndActionsStatusEnum, core.serialization.string()]); - -export declare namespace AccountDetailsAndActionsStatus { - export type Raw = AccountDetailsAndActionsStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/AccountDetailsAndActionsStatusEnum.ts b/src/serialization/resources/crm/types/AccountDetailsAndActionsStatusEnum.ts deleted file mode 100644 index b6cbbfdf4..000000000 --- a/src/serialization/resources/crm/types/AccountDetailsAndActionsStatusEnum.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 AccountDetailsAndActionsStatusEnum: core.serialization.Schema< - serializers.crm.AccountDetailsAndActionsStatusEnum.Raw, - Merge.crm.AccountDetailsAndActionsStatusEnum -> = core.serialization.enum_(["COMPLETE", "INCOMPLETE", "RELINK_NEEDED", "IDLE"]); - -export declare namespace AccountDetailsAndActionsStatusEnum { - export type Raw = "COMPLETE" | "INCOMPLETE" | "RELINK_NEEDED" | "IDLE"; -} diff --git a/src/serialization/resources/crm/types/AccountDetailsCategory.ts b/src/serialization/resources/crm/types/AccountDetailsCategory.ts deleted file mode 100644 index 8e2e74be6..000000000 --- a/src/serialization/resources/crm/types/AccountDetailsCategory.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { CategoryEnum } from "./CategoryEnum"; - -export const AccountDetailsCategory: core.serialization.Schema< - serializers.crm.AccountDetailsCategory.Raw, - Merge.crm.AccountDetailsCategory -> = core.serialization.undiscriminatedUnion([CategoryEnum, core.serialization.string()]); - -export declare namespace AccountDetailsCategory { - export type Raw = CategoryEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/AccountIntegration.ts b/src/serialization/resources/crm/types/AccountIntegration.ts deleted file mode 100644 index afa344aa9..000000000 --- a/src/serialization/resources/crm/types/AccountIntegration.ts +++ /dev/null @@ -1,46 +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 { CategoriesEnum } from "./CategoriesEnum"; - -export const AccountIntegration: core.serialization.ObjectSchema< - serializers.crm.AccountIntegration.Raw, - Merge.crm.AccountIntegration -> = core.serialization.object({ - name: core.serialization.string(), - abbreviatedName: core.serialization.property("abbreviated_name", core.serialization.string().optional()), - categories: core.serialization.list(CategoriesEnum).optional(), - image: core.serialization.string().optional(), - squareImage: core.serialization.property("square_image", core.serialization.string().optional()), - color: core.serialization.string().optional(), - slug: core.serialization.string().optional(), - apiEndpointsToDocumentationUrls: core.serialization.property( - "api_endpoints_to_documentation_urls", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - webhookSetupGuideUrl: core.serialization.property( - "webhook_setup_guide_url", - core.serialization.string().optional(), - ), - categoryBetaStatus: core.serialization.property( - "category_beta_status", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), -}); - -export declare namespace AccountIntegration { - export interface Raw { - name: string; - abbreviated_name?: string | null; - categories?: CategoriesEnum.Raw[] | null; - image?: string | null; - square_image?: string | null; - color?: string | null; - slug?: string | null; - api_endpoints_to_documentation_urls?: Record | null; - webhook_setup_guide_url?: string | null; - category_beta_status?: Record | null; - } -} diff --git a/src/serialization/resources/crm/types/AccountOwner.ts b/src/serialization/resources/crm/types/AccountOwner.ts deleted file mode 100644 index 7b2b0b98f..000000000 --- a/src/serialization/resources/crm/types/AccountOwner.ts +++ /dev/null @@ -1,13 +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 { User } from "./User"; - -export const AccountOwner: core.serialization.Schema = - core.serialization.undiscriminatedUnion([core.serialization.string(), User]); - -export declare namespace AccountOwner { - export type Raw = string | User.Raw; -} diff --git a/src/serialization/resources/crm/types/AccountRequest.ts b/src/serialization/resources/crm/types/AccountRequest.ts deleted file mode 100644 index 2c52c214d..000000000 --- a/src/serialization/resources/crm/types/AccountRequest.ts +++ /dev/null @@ -1,47 +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 { AccountRequestOwner } from "./AccountRequestOwner"; -import { AddressRequest } from "./AddressRequest"; -import { RemoteFieldRequest } from "./RemoteFieldRequest"; - -export const AccountRequest: core.serialization.ObjectSchema< - serializers.crm.AccountRequest.Raw, - Merge.crm.AccountRequest -> = core.serialization.object({ - owner: AccountRequestOwner.optional(), - name: core.serialization.string().optional(), - description: core.serialization.string().optional(), - industry: core.serialization.string().optional(), - website: core.serialization.string().optional(), - numberOfEmployees: core.serialization.property("number_of_employees", core.serialization.number().optional()), - addresses: core.serialization.list(AddressRequest).optional(), - lastActivityAt: core.serialization.property("last_activity_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 AccountRequest { - export interface Raw { - owner?: AccountRequestOwner.Raw | null; - name?: string | null; - description?: string | null; - industry?: string | null; - website?: string | null; - number_of_employees?: number | null; - addresses?: AddressRequest.Raw[] | null; - last_activity_at?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/AccountRequestOwner.ts b/src/serialization/resources/crm/types/AccountRequestOwner.ts deleted file mode 100644 index 092d9eb83..000000000 --- a/src/serialization/resources/crm/types/AccountRequestOwner.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 { User } from "./User"; - -export const AccountRequestOwner: core.serialization.Schema< - serializers.crm.AccountRequestOwner.Raw, - Merge.crm.AccountRequestOwner -> = core.serialization.undiscriminatedUnion([core.serialization.string(), User]); - -export declare namespace AccountRequestOwner { - export type Raw = string | User.Raw; -} diff --git a/src/serialization/resources/crm/types/AccountToken.ts b/src/serialization/resources/crm/types/AccountToken.ts deleted file mode 100644 index 821b406cf..000000000 --- a/src/serialization/resources/crm/types/AccountToken.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { AccountIntegration } from "./AccountIntegration"; - -export const AccountToken: core.serialization.ObjectSchema = - core.serialization.object({ - accountToken: core.serialization.property("account_token", core.serialization.string()), - integration: AccountIntegration, - id: core.serialization.string(), - }); - -export declare namespace AccountToken { - export interface Raw { - account_token: string; - integration: AccountIntegration.Raw; - id: string; - } -} diff --git a/src/serialization/resources/crm/types/ActivityTypeEnum.ts b/src/serialization/resources/crm/types/ActivityTypeEnum.ts deleted file mode 100644 index d725fda2b..000000000 --- a/src/serialization/resources/crm/types/ActivityTypeEnum.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 ActivityTypeEnum: core.serialization.Schema< - serializers.crm.ActivityTypeEnum.Raw, - Merge.crm.ActivityTypeEnum -> = core.serialization.enum_(["CALL", "MEETING", "EMAIL"]); - -export declare namespace ActivityTypeEnum { - export type Raw = "CALL" | "MEETING" | "EMAIL"; -} diff --git a/src/serialization/resources/crm/types/Address.ts b/src/serialization/resources/crm/types/Address.ts deleted file mode 100644 index 1ccde44fb..000000000 --- a/src/serialization/resources/crm/types/Address.ts +++ /dev/null @@ -1,34 +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 { AddressAddressType } from "./AddressAddressType"; -import { AddressCountry } from "./AddressCountry"; - -export const Address: core.serialization.ObjectSchema = - core.serialization.object({ - createdAt: core.serialization.property("created_at", core.serialization.date().optional()), - modifiedAt: core.serialization.property("modified_at", core.serialization.date().optional()), - street1: core.serialization.property("street_1", core.serialization.string().optional()), - street2: core.serialization.property("street_2", core.serialization.string().optional()), - city: core.serialization.string().optional(), - state: core.serialization.string().optional(), - postalCode: core.serialization.property("postal_code", core.serialization.string().optional()), - country: AddressCountry.optional(), - addressType: core.serialization.property("address_type", AddressAddressType.optional()), - }); - -export declare namespace Address { - export interface Raw { - created_at?: string | null; - modified_at?: string | null; - street_1?: string | null; - street_2?: string | null; - city?: string | null; - state?: string | null; - postal_code?: string | null; - country?: AddressCountry.Raw | null; - address_type?: AddressAddressType.Raw | null; - } -} diff --git a/src/serialization/resources/crm/types/AddressAddressType.ts b/src/serialization/resources/crm/types/AddressAddressType.ts deleted file mode 100644 index 344839a81..000000000 --- a/src/serialization/resources/crm/types/AddressAddressType.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 { AddressTypeEnum } from "./AddressTypeEnum"; - -export const AddressAddressType: core.serialization.Schema< - serializers.crm.AddressAddressType.Raw, - Merge.crm.AddressAddressType -> = core.serialization.undiscriminatedUnion([AddressTypeEnum, core.serialization.string()]); - -export declare namespace AddressAddressType { - export type Raw = AddressTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/AddressCountry.ts b/src/serialization/resources/crm/types/AddressCountry.ts deleted file mode 100644 index aacc7c20f..000000000 --- a/src/serialization/resources/crm/types/AddressCountry.ts +++ /dev/null @@ -1,13 +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 { CountryEnum } from "./CountryEnum"; - -export const AddressCountry: core.serialization.Schema = - core.serialization.undiscriminatedUnion([CountryEnum, core.serialization.string()]); - -export declare namespace AddressCountry { - export type Raw = CountryEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/AddressRequest.ts b/src/serialization/resources/crm/types/AddressRequest.ts deleted file mode 100644 index af605777a..000000000 --- a/src/serialization/resources/crm/types/AddressRequest.ts +++ /dev/null @@ -1,42 +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 { AddressRequestAddressType } from "./AddressRequestAddressType"; -import { AddressRequestCountry } from "./AddressRequestCountry"; - -export const AddressRequest: core.serialization.ObjectSchema< - serializers.crm.AddressRequest.Raw, - Merge.crm.AddressRequest -> = core.serialization.object({ - street1: core.serialization.property("street_1", core.serialization.string().optional()), - street2: core.serialization.property("street_2", core.serialization.string().optional()), - city: core.serialization.string().optional(), - state: core.serialization.string().optional(), - postalCode: core.serialization.property("postal_code", core.serialization.string().optional()), - country: AddressRequestCountry.optional(), - addressType: core.serialization.property("address_type", AddressRequestAddressType.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 AddressRequest { - export interface Raw { - street_1?: string | null; - street_2?: string | null; - city?: string | null; - state?: string | null; - postal_code?: string | null; - country?: AddressRequestCountry.Raw | null; - address_type?: AddressRequestAddressType.Raw | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/crm/types/AddressRequestAddressType.ts b/src/serialization/resources/crm/types/AddressRequestAddressType.ts deleted file mode 100644 index 200830e6e..000000000 --- a/src/serialization/resources/crm/types/AddressRequestAddressType.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 { AddressTypeEnum } from "./AddressTypeEnum"; - -export const AddressRequestAddressType: core.serialization.Schema< - serializers.crm.AddressRequestAddressType.Raw, - Merge.crm.AddressRequestAddressType -> = core.serialization.undiscriminatedUnion([AddressTypeEnum, core.serialization.string()]); - -export declare namespace AddressRequestAddressType { - export type Raw = AddressTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/AddressRequestCountry.ts b/src/serialization/resources/crm/types/AddressRequestCountry.ts deleted file mode 100644 index 8b523443f..000000000 --- a/src/serialization/resources/crm/types/AddressRequestCountry.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 { CountryEnum } from "./CountryEnum"; - -export const AddressRequestCountry: core.serialization.Schema< - serializers.crm.AddressRequestCountry.Raw, - Merge.crm.AddressRequestCountry -> = core.serialization.undiscriminatedUnion([CountryEnum, core.serialization.string()]); - -export declare namespace AddressRequestCountry { - export type Raw = CountryEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/AddressTypeEnum.ts b/src/serialization/resources/crm/types/AddressTypeEnum.ts deleted file mode 100644 index 7f5436806..000000000 --- a/src/serialization/resources/crm/types/AddressTypeEnum.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 AddressTypeEnum: core.serialization.Schema< - serializers.crm.AddressTypeEnum.Raw, - Merge.crm.AddressTypeEnum -> = core.serialization.enum_(["BILLING", "SHIPPING"]); - -export declare namespace AddressTypeEnum { - export type Raw = "BILLING" | "SHIPPING"; -} diff --git a/src/serialization/resources/crm/types/AdvancedMetadata.ts b/src/serialization/resources/crm/types/AdvancedMetadata.ts deleted file mode 100644 index 5c6e0eede..000000000 --- a/src/serialization/resources/crm/types/AdvancedMetadata.ts +++ /dev/null @@ -1,31 +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 AdvancedMetadata: core.serialization.ObjectSchema< - serializers.crm.AdvancedMetadata.Raw, - Merge.crm.AdvancedMetadata -> = core.serialization.object({ - id: core.serialization.string(), - displayName: core.serialization.property("display_name", core.serialization.string().optional()), - description: core.serialization.string().optional(), - isRequired: core.serialization.property("is_required", core.serialization.boolean().optional()), - isCustom: core.serialization.property("is_custom", core.serialization.boolean().optional()), - fieldChoices: core.serialization.property( - "field_choices", - core.serialization.list(core.serialization.unknown()).optional(), - ), -}); - -export declare namespace AdvancedMetadata { - export interface Raw { - id: string; - display_name?: string | null; - description?: string | null; - is_required?: boolean | null; - is_custom?: boolean | null; - field_choices?: unknown[] | null; - } -} diff --git a/src/serialization/resources/crm/types/Association.ts b/src/serialization/resources/crm/types/Association.ts deleted file mode 100644 index 538a7198d..000000000 --- a/src/serialization/resources/crm/types/Association.ts +++ /dev/null @@ -1,25 +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 { AssociationAssociationType } from "./AssociationAssociationType"; - -export const Association: core.serialization.ObjectSchema = - core.serialization.object({ - createdAt: core.serialization.property("created_at", core.serialization.date().optional()), - modifiedAt: core.serialization.property("modified_at", core.serialization.date().optional()), - sourceObject: core.serialization.property("source_object", core.serialization.string().optional()), - targetObject: core.serialization.property("target_object", core.serialization.string().optional()), - associationType: core.serialization.property("association_type", AssociationAssociationType.optional()), - }); - -export declare namespace Association { - export interface Raw { - created_at?: string | null; - modified_at?: string | null; - source_object?: string | null; - target_object?: string | null; - association_type?: AssociationAssociationType.Raw | null; - } -} diff --git a/src/serialization/resources/crm/types/AssociationAssociationType.ts b/src/serialization/resources/crm/types/AssociationAssociationType.ts deleted file mode 100644 index d35965c29..000000000 --- a/src/serialization/resources/crm/types/AssociationAssociationType.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 { AssociationType } from "./AssociationType"; - -export const AssociationAssociationType: core.serialization.Schema< - serializers.crm.AssociationAssociationType.Raw, - Merge.crm.AssociationAssociationType -> = core.serialization.undiscriminatedUnion([core.serialization.string(), AssociationType]); - -export declare namespace AssociationAssociationType { - export type Raw = string | AssociationType.Raw; -} diff --git a/src/serialization/resources/crm/types/AssociationSubType.ts b/src/serialization/resources/crm/types/AssociationSubType.ts deleted file mode 100644 index c8b2a67b7..000000000 --- a/src/serialization/resources/crm/types/AssociationSubType.ts +++ /dev/null @@ -1,24 +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 AssociationSubType: core.serialization.ObjectSchema< - serializers.crm.AssociationSubType.Raw, - Merge.crm.AssociationSubType -> = core.serialization.object({ - 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()), - originType: core.serialization.property("origin_type", core.serialization.string().optional()), -}); - -export declare namespace AssociationSubType { - export interface Raw { - id?: string | null; - created_at?: string | null; - modified_at?: string | null; - origin_type?: string | null; - } -} diff --git a/src/serialization/resources/crm/types/AssociationType.ts b/src/serialization/resources/crm/types/AssociationType.ts deleted file mode 100644 index 5d1e5323a..000000000 --- a/src/serialization/resources/crm/types/AssociationType.ts +++ /dev/null @@ -1,44 +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 { AssociationSubType } from "./AssociationSubType"; -import { AssociationTypeCardinality } from "./AssociationTypeCardinality"; - -export const AssociationType: core.serialization.ObjectSchema< - serializers.crm.AssociationType.Raw, - Merge.crm.AssociationType -> = 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()), - sourceObjectClass: core.serialization.property( - "source_object_class", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - targetObjectClasses: core.serialization.property( - "target_object_classes", - core.serialization.list(AssociationSubType).optional(), - ), - remoteKeyName: core.serialization.property("remote_key_name", core.serialization.string().optional()), - displayName: core.serialization.property("display_name", core.serialization.string().optional()), - cardinality: AssociationTypeCardinality.optional(), - isRequired: core.serialization.property("is_required", core.serialization.boolean().optional()), -}); - -export declare namespace AssociationType { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - source_object_class?: Record | null; - target_object_classes?: AssociationSubType.Raw[] | null; - remote_key_name?: string | null; - display_name?: string | null; - cardinality?: AssociationTypeCardinality.Raw | null; - is_required?: boolean | null; - } -} diff --git a/src/serialization/resources/crm/types/AssociationTypeCardinality.ts b/src/serialization/resources/crm/types/AssociationTypeCardinality.ts deleted file mode 100644 index d8001b620..000000000 --- a/src/serialization/resources/crm/types/AssociationTypeCardinality.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 { CardinalityEnum } from "./CardinalityEnum"; - -export const AssociationTypeCardinality: core.serialization.Schema< - serializers.crm.AssociationTypeCardinality.Raw, - Merge.crm.AssociationTypeCardinality -> = core.serialization.undiscriminatedUnion([CardinalityEnum, core.serialization.string()]); - -export declare namespace AssociationTypeCardinality { - export type Raw = CardinalityEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/AssociationTypeRequestRequest.ts b/src/serialization/resources/crm/types/AssociationTypeRequestRequest.ts deleted file mode 100644 index 3ab230d44..000000000 --- a/src/serialization/resources/crm/types/AssociationTypeRequestRequest.ts +++ /dev/null @@ -1,33 +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 { CardinalityEnum } from "./CardinalityEnum"; -import { ObjectClassDescriptionRequest } from "./ObjectClassDescriptionRequest"; - -export const AssociationTypeRequestRequest: core.serialization.ObjectSchema< - serializers.crm.AssociationTypeRequestRequest.Raw, - Merge.crm.AssociationTypeRequestRequest -> = core.serialization.object({ - sourceObjectClass: core.serialization.property("source_object_class", ObjectClassDescriptionRequest), - targetObjectClasses: core.serialization.property( - "target_object_classes", - core.serialization.list(ObjectClassDescriptionRequest), - ), - remoteKeyName: core.serialization.property("remote_key_name", core.serialization.string()), - displayName: core.serialization.property("display_name", core.serialization.string().optional()), - cardinality: CardinalityEnum.optional(), - isRequired: core.serialization.property("is_required", core.serialization.boolean().optional()), -}); - -export declare namespace AssociationTypeRequestRequest { - export interface Raw { - source_object_class: ObjectClassDescriptionRequest.Raw; - target_object_classes: ObjectClassDescriptionRequest.Raw[]; - remote_key_name: string; - display_name?: string | null; - cardinality?: CardinalityEnum.Raw | null; - is_required?: boolean | null; - } -} diff --git a/src/serialization/resources/crm/types/AsyncPassthroughReciept.ts b/src/serialization/resources/crm/types/AsyncPassthroughReciept.ts deleted file mode 100644 index 202e84c5a..000000000 --- a/src/serialization/resources/crm/types/AsyncPassthroughReciept.ts +++ /dev/null @@ -1,18 +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 AsyncPassthroughReciept: core.serialization.ObjectSchema< - serializers.crm.AsyncPassthroughReciept.Raw, - Merge.crm.AsyncPassthroughReciept -> = core.serialization.object({ - asyncPassthroughReceiptId: core.serialization.property("async_passthrough_receipt_id", core.serialization.string()), -}); - -export declare namespace AsyncPassthroughReciept { - export interface Raw { - async_passthrough_receipt_id: string; - } -} diff --git a/src/serialization/resources/crm/types/AuditLogEvent.ts b/src/serialization/resources/crm/types/AuditLogEvent.ts deleted file mode 100644 index 3a4b5aed3..000000000 --- a/src/serialization/resources/crm/types/AuditLogEvent.ts +++ /dev/null @@ -1,34 +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 { AuditLogEventEventType } from "./AuditLogEventEventType"; -import { AuditLogEventRole } from "./AuditLogEventRole"; - -export const AuditLogEvent: core.serialization.ObjectSchema< - serializers.crm.AuditLogEvent.Raw, - Merge.crm.AuditLogEvent -> = core.serialization.object({ - id: core.serialization.string().optional(), - userName: core.serialization.property("user_name", core.serialization.string().optional()), - userEmail: core.serialization.property("user_email", core.serialization.string().optional()), - role: AuditLogEventRole, - ipAddress: core.serialization.property("ip_address", core.serialization.string()), - eventType: core.serialization.property("event_type", AuditLogEventEventType), - eventDescription: core.serialization.property("event_description", core.serialization.string()), - createdAt: core.serialization.property("created_at", core.serialization.date().optional()), -}); - -export declare namespace AuditLogEvent { - export interface Raw { - id?: string | null; - user_name?: string | null; - user_email?: string | null; - role: AuditLogEventRole.Raw; - ip_address: string; - event_type: AuditLogEventEventType.Raw; - event_description: string; - created_at?: string | null; - } -} diff --git a/src/serialization/resources/crm/types/AuditLogEventEventType.ts b/src/serialization/resources/crm/types/AuditLogEventEventType.ts deleted file mode 100644 index 838340244..000000000 --- a/src/serialization/resources/crm/types/AuditLogEventEventType.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 { EventTypeEnum } from "./EventTypeEnum"; - -export const AuditLogEventEventType: core.serialization.Schema< - serializers.crm.AuditLogEventEventType.Raw, - Merge.crm.AuditLogEventEventType -> = core.serialization.undiscriminatedUnion([EventTypeEnum, core.serialization.string()]); - -export declare namespace AuditLogEventEventType { - export type Raw = EventTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/AuditLogEventRole.ts b/src/serialization/resources/crm/types/AuditLogEventRole.ts deleted file mode 100644 index 14999ec94..000000000 --- a/src/serialization/resources/crm/types/AuditLogEventRole.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 { RoleEnum } from "./RoleEnum"; - -export const AuditLogEventRole: core.serialization.Schema< - serializers.crm.AuditLogEventRole.Raw, - Merge.crm.AuditLogEventRole -> = core.serialization.undiscriminatedUnion([RoleEnum, core.serialization.string()]); - -export declare namespace AuditLogEventRole { - export type Raw = RoleEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/AvailableActions.ts b/src/serialization/resources/crm/types/AvailableActions.ts deleted file mode 100644 index 55174b35d..000000000 --- a/src/serialization/resources/crm/types/AvailableActions.ts +++ /dev/null @@ -1,27 +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 { AccountIntegration } from "./AccountIntegration"; -import { ModelOperation } from "./ModelOperation"; - -export const AvailableActions: core.serialization.ObjectSchema< - serializers.crm.AvailableActions.Raw, - Merge.crm.AvailableActions -> = core.serialization.object({ - integration: AccountIntegration, - passthroughAvailable: core.serialization.property("passthrough_available", core.serialization.boolean()), - availableModelOperations: core.serialization.property( - "available_model_operations", - core.serialization.list(ModelOperation).optional(), - ), -}); - -export declare namespace AvailableActions { - export interface Raw { - integration: AccountIntegration.Raw; - passthrough_available: boolean; - available_model_operations?: ModelOperation.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/CardinalityEnum.ts b/src/serialization/resources/crm/types/CardinalityEnum.ts deleted file mode 100644 index 3cecf8d31..000000000 --- a/src/serialization/resources/crm/types/CardinalityEnum.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 CardinalityEnum: core.serialization.Schema< - serializers.crm.CardinalityEnum.Raw, - Merge.crm.CardinalityEnum -> = core.serialization.enum_(["ONE_TO_ONE", "MANY_TO_ONE", "MANY_TO_MANY", "ONE_TO_MANY"]); - -export declare namespace CardinalityEnum { - export type Raw = "ONE_TO_ONE" | "MANY_TO_ONE" | "MANY_TO_MANY" | "ONE_TO_MANY"; -} diff --git a/src/serialization/resources/crm/types/CategoriesEnum.ts b/src/serialization/resources/crm/types/CategoriesEnum.ts deleted file mode 100644 index 2822f734d..000000000 --- a/src/serialization/resources/crm/types/CategoriesEnum.ts +++ /dev/null @@ -1,12 +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 CategoriesEnum: core.serialization.Schema = - core.serialization.enum_(["hris", "ats", "accounting", "ticketing", "crm", "mktg", "filestorage"]); - -export declare namespace CategoriesEnum { - export type Raw = "hris" | "ats" | "accounting" | "ticketing" | "crm" | "mktg" | "filestorage"; -} diff --git a/src/serialization/resources/crm/types/CategoryEnum.ts b/src/serialization/resources/crm/types/CategoryEnum.ts deleted file mode 100644 index 6d93d4307..000000000 --- a/src/serialization/resources/crm/types/CategoryEnum.ts +++ /dev/null @@ -1,12 +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 CategoryEnum: core.serialization.Schema = - core.serialization.enum_(["hris", "ats", "accounting", "ticketing", "crm", "mktg", "filestorage"]); - -export declare namespace CategoryEnum { - export type Raw = "hris" | "ats" | "accounting" | "ticketing" | "crm" | "mktg" | "filestorage"; -} diff --git a/src/serialization/resources/crm/types/CommonModelScopeApi.ts b/src/serialization/resources/crm/types/CommonModelScopeApi.ts deleted file mode 100644 index b63498a4e..000000000 --- a/src/serialization/resources/crm/types/CommonModelScopeApi.ts +++ /dev/null @@ -1,22 +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 { IndividualCommonModelScopeDeserializer } from "./IndividualCommonModelScopeDeserializer"; - -export const CommonModelScopeApi: core.serialization.ObjectSchema< - serializers.crm.CommonModelScopeApi.Raw, - Merge.crm.CommonModelScopeApi -> = core.serialization.object({ - commonModels: core.serialization.property( - "common_models", - core.serialization.list(IndividualCommonModelScopeDeserializer), - ), -}); - -export declare namespace CommonModelScopeApi { - export interface Raw { - common_models: IndividualCommonModelScopeDeserializer.Raw[]; - } -} diff --git a/src/serialization/resources/crm/types/CommonModelScopesBodyRequest.ts b/src/serialization/resources/crm/types/CommonModelScopesBodyRequest.ts deleted file mode 100644 index 68592e509..000000000 --- a/src/serialization/resources/crm/types/CommonModelScopesBodyRequest.ts +++ /dev/null @@ -1,26 +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 { EnabledActionsEnum } from "./EnabledActionsEnum"; - -export const CommonModelScopesBodyRequest: core.serialization.ObjectSchema< - serializers.crm.CommonModelScopesBodyRequest.Raw, - Merge.crm.CommonModelScopesBodyRequest -> = core.serialization.object({ - modelId: core.serialization.property("model_id", core.serialization.string()), - enabledActions: core.serialization.property("enabled_actions", core.serialization.list(EnabledActionsEnum)), - disabledFields: core.serialization.property( - "disabled_fields", - core.serialization.list(core.serialization.string()), - ), -}); - -export declare namespace CommonModelScopesBodyRequest { - export interface Raw { - model_id: string; - enabled_actions: EnabledActionsEnum.Raw[]; - disabled_fields: string[]; - } -} diff --git a/src/serialization/resources/crm/types/Contact.ts b/src/serialization/resources/crm/types/Contact.ts deleted file mode 100644 index 1ee4b568d..000000000 --- a/src/serialization/resources/crm/types/Contact.ts +++ /dev/null @@ -1,61 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { Address } from "./Address"; -import { ContactAccount } from "./ContactAccount"; -import { ContactOwner } from "./ContactOwner"; -import { EmailAddress } from "./EmailAddress"; -import { PhoneNumber } from "./PhoneNumber"; -import { RemoteData } from "./RemoteData"; -import { RemoteField } from "./RemoteField"; - -export const Contact: core.serialization.ObjectSchema = - 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()), - firstName: core.serialization.property("first_name", core.serialization.string().optional()), - lastName: core.serialization.property("last_name", core.serialization.string().optional()), - account: ContactAccount.optional(), - owner: ContactOwner.optional(), - addresses: core.serialization.list(Address).optional(), - emailAddresses: core.serialization.property( - "email_addresses", - core.serialization.list(EmailAddress).optional(), - ), - phoneNumbers: core.serialization.property("phone_numbers", core.serialization.list(PhoneNumber).optional()), - lastActivityAt: core.serialization.property("last_activity_at", core.serialization.date().optional()), - remoteCreatedAt: core.serialization.property("remote_created_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 Contact { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - first_name?: string | null; - last_name?: string | null; - account?: ContactAccount.Raw | null; - owner?: ContactOwner.Raw | null; - addresses?: Address.Raw[] | null; - email_addresses?: EmailAddress.Raw[] | null; - phone_numbers?: PhoneNumber.Raw[] | null; - last_activity_at?: string | null; - remote_created_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/crm/types/ContactAccount.ts b/src/serialization/resources/crm/types/ContactAccount.ts deleted file mode 100644 index aa1a20e0c..000000000 --- a/src/serialization/resources/crm/types/ContactAccount.ts +++ /dev/null @@ -1,13 +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 ContactAccount: core.serialization.Schema = - core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace ContactAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/crm/types/ContactOwner.ts b/src/serialization/resources/crm/types/ContactOwner.ts deleted file mode 100644 index f87ffcc37..000000000 --- a/src/serialization/resources/crm/types/ContactOwner.ts +++ /dev/null @@ -1,13 +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 { User } from "./User"; - -export const ContactOwner: core.serialization.Schema = - core.serialization.undiscriminatedUnion([core.serialization.string(), User]); - -export declare namespace ContactOwner { - export type Raw = string | User.Raw; -} diff --git a/src/serialization/resources/crm/types/ContactRequest.ts b/src/serialization/resources/crm/types/ContactRequest.ts deleted file mode 100644 index 3fd8b3f71..000000000 --- a/src/serialization/resources/crm/types/ContactRequest.ts +++ /dev/null @@ -1,53 +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 { AddressRequest } from "./AddressRequest"; -import { ContactRequestAccount } from "./ContactRequestAccount"; -import { ContactRequestOwner } from "./ContactRequestOwner"; -import { EmailAddressRequest } from "./EmailAddressRequest"; -import { PhoneNumberRequest } from "./PhoneNumberRequest"; -import { RemoteFieldRequest } from "./RemoteFieldRequest"; - -export const ContactRequest: core.serialization.ObjectSchema< - serializers.crm.ContactRequest.Raw, - Merge.crm.ContactRequest -> = core.serialization.object({ - firstName: core.serialization.property("first_name", core.serialization.string().optional()), - lastName: core.serialization.property("last_name", core.serialization.string().optional()), - account: ContactRequestAccount.optional(), - owner: ContactRequestOwner.optional(), - addresses: core.serialization.list(AddressRequest).optional(), - emailAddresses: core.serialization.property( - "email_addresses", - core.serialization.list(EmailAddressRequest).optional(), - ), - phoneNumbers: core.serialization.property("phone_numbers", core.serialization.list(PhoneNumberRequest).optional()), - lastActivityAt: core.serialization.property("last_activity_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 ContactRequest { - export interface Raw { - first_name?: string | null; - last_name?: string | null; - account?: ContactRequestAccount.Raw | null; - owner?: ContactRequestOwner.Raw | null; - addresses?: AddressRequest.Raw[] | null; - email_addresses?: EmailAddressRequest.Raw[] | null; - phone_numbers?: PhoneNumberRequest.Raw[] | null; - last_activity_at?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/ContactRequestAccount.ts b/src/serialization/resources/crm/types/ContactRequestAccount.ts deleted file mode 100644 index b282be84b..000000000 --- a/src/serialization/resources/crm/types/ContactRequestAccount.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 ContactRequestAccount: core.serialization.Schema< - serializers.crm.ContactRequestAccount.Raw, - Merge.crm.ContactRequestAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace ContactRequestAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/crm/types/ContactRequestOwner.ts b/src/serialization/resources/crm/types/ContactRequestOwner.ts deleted file mode 100644 index 96670a3ae..000000000 --- a/src/serialization/resources/crm/types/ContactRequestOwner.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 { User } from "./User"; - -export const ContactRequestOwner: core.serialization.Schema< - serializers.crm.ContactRequestOwner.Raw, - Merge.crm.ContactRequestOwner -> = core.serialization.undiscriminatedUnion([core.serialization.string(), User]); - -export declare namespace ContactRequestOwner { - export type Raw = string | User.Raw; -} diff --git a/src/serialization/resources/crm/types/CountryEnum.ts b/src/serialization/resources/crm/types/CountryEnum.ts deleted file mode 100644 index a909f1b08..000000000 --- a/src/serialization/resources/crm/types/CountryEnum.ts +++ /dev/null @@ -1,511 +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 CountryEnum: core.serialization.Schema = - core.serialization.enum_([ - "AF", - "AX", - "AL", - "DZ", - "AS", - "AD", - "AO", - "AI", - "AQ", - "AG", - "AR", - "AM", - "AW", - "AU", - "AT", - "AZ", - "BS", - "BH", - "BD", - "BB", - "BY", - "BE", - "BZ", - "BJ", - "BM", - "BT", - "BO", - "BQ", - "BA", - "BW", - "BV", - "BR", - "IO", - "BN", - "BG", - "BF", - "BI", - "CV", - "KH", - "CM", - "CA", - "KY", - "CF", - "TD", - "CL", - "CN", - "CX", - "CC", - "CO", - "KM", - "CG", - "CD", - "CK", - "CR", - "CI", - "HR", - "CU", - "CW", - "CY", - "CZ", - "DK", - "DJ", - "DM", - "DO", - "EC", - "EG", - "SV", - "GQ", - "ER", - "EE", - "SZ", - "ET", - "FK", - "FO", - "FJ", - "FI", - "FR", - "GF", - "PF", - "TF", - "GA", - "GM", - "GE", - "DE", - "GH", - "GI", - "GR", - "GL", - "GD", - "GP", - "GU", - "GT", - "GG", - "GN", - "GW", - "GY", - "HT", - "HM", - "VA", - "HN", - "HK", - "HU", - "IS", - "IN", - "ID", - "IR", - "IQ", - "IE", - "IM", - "IL", - "IT", - "JM", - "JP", - "JE", - "JO", - "KZ", - "KE", - "KI", - "KW", - "KG", - "LA", - "LV", - "LB", - "LS", - "LR", - "LY", - "LI", - "LT", - "LU", - "MO", - "MG", - "MW", - "MY", - "MV", - "ML", - "MT", - "MH", - "MQ", - "MR", - "MU", - "YT", - "MX", - "FM", - "MD", - "MC", - "MN", - "ME", - "MS", - "MA", - "MZ", - "MM", - "NA", - "NR", - "NP", - "NL", - "NC", - "NZ", - "NI", - "NE", - "NG", - "NU", - "NF", - "KP", - "MK", - "MP", - "NO", - "OM", - "PK", - "PW", - "PS", - "PA", - "PG", - "PY", - "PE", - "PH", - "PN", - "PL", - "PT", - "PR", - "QA", - "RE", - "RO", - "RU", - "RW", - "BL", - "SH", - "KN", - "LC", - "MF", - "PM", - "VC", - "WS", - "SM", - "ST", - "SA", - "SN", - "RS", - "SC", - "SL", - "SG", - "SX", - "SK", - "SI", - "SB", - "SO", - "ZA", - "GS", - "KR", - "SS", - "ES", - "LK", - "SD", - "SR", - "SJ", - "SE", - "CH", - "SY", - "TW", - "TJ", - "TZ", - "TH", - "TL", - "TG", - "TK", - "TO", - "TT", - "TN", - "TR", - "TM", - "TC", - "TV", - "UG", - "UA", - "AE", - "GB", - "UM", - "US", - "UY", - "UZ", - "VU", - "VE", - "VN", - "VG", - "VI", - "WF", - "EH", - "YE", - "ZM", - "ZW", - ]); - -export declare namespace CountryEnum { - export type Raw = - | "AF" - | "AX" - | "AL" - | "DZ" - | "AS" - | "AD" - | "AO" - | "AI" - | "AQ" - | "AG" - | "AR" - | "AM" - | "AW" - | "AU" - | "AT" - | "AZ" - | "BS" - | "BH" - | "BD" - | "BB" - | "BY" - | "BE" - | "BZ" - | "BJ" - | "BM" - | "BT" - | "BO" - | "BQ" - | "BA" - | "BW" - | "BV" - | "BR" - | "IO" - | "BN" - | "BG" - | "BF" - | "BI" - | "CV" - | "KH" - | "CM" - | "CA" - | "KY" - | "CF" - | "TD" - | "CL" - | "CN" - | "CX" - | "CC" - | "CO" - | "KM" - | "CG" - | "CD" - | "CK" - | "CR" - | "CI" - | "HR" - | "CU" - | "CW" - | "CY" - | "CZ" - | "DK" - | "DJ" - | "DM" - | "DO" - | "EC" - | "EG" - | "SV" - | "GQ" - | "ER" - | "EE" - | "SZ" - | "ET" - | "FK" - | "FO" - | "FJ" - | "FI" - | "FR" - | "GF" - | "PF" - | "TF" - | "GA" - | "GM" - | "GE" - | "DE" - | "GH" - | "GI" - | "GR" - | "GL" - | "GD" - | "GP" - | "GU" - | "GT" - | "GG" - | "GN" - | "GW" - | "GY" - | "HT" - | "HM" - | "VA" - | "HN" - | "HK" - | "HU" - | "IS" - | "IN" - | "ID" - | "IR" - | "IQ" - | "IE" - | "IM" - | "IL" - | "IT" - | "JM" - | "JP" - | "JE" - | "JO" - | "KZ" - | "KE" - | "KI" - | "KW" - | "KG" - | "LA" - | "LV" - | "LB" - | "LS" - | "LR" - | "LY" - | "LI" - | "LT" - | "LU" - | "MO" - | "MG" - | "MW" - | "MY" - | "MV" - | "ML" - | "MT" - | "MH" - | "MQ" - | "MR" - | "MU" - | "YT" - | "MX" - | "FM" - | "MD" - | "MC" - | "MN" - | "ME" - | "MS" - | "MA" - | "MZ" - | "MM" - | "NA" - | "NR" - | "NP" - | "NL" - | "NC" - | "NZ" - | "NI" - | "NE" - | "NG" - | "NU" - | "NF" - | "KP" - | "MK" - | "MP" - | "NO" - | "OM" - | "PK" - | "PW" - | "PS" - | "PA" - | "PG" - | "PY" - | "PE" - | "PH" - | "PN" - | "PL" - | "PT" - | "PR" - | "QA" - | "RE" - | "RO" - | "RU" - | "RW" - | "BL" - | "SH" - | "KN" - | "LC" - | "MF" - | "PM" - | "VC" - | "WS" - | "SM" - | "ST" - | "SA" - | "SN" - | "RS" - | "SC" - | "SL" - | "SG" - | "SX" - | "SK" - | "SI" - | "SB" - | "SO" - | "ZA" - | "GS" - | "KR" - | "SS" - | "ES" - | "LK" - | "SD" - | "SR" - | "SJ" - | "SE" - | "CH" - | "SY" - | "TW" - | "TJ" - | "TZ" - | "TH" - | "TL" - | "TG" - | "TK" - | "TO" - | "TT" - | "TN" - | "TR" - | "TM" - | "TC" - | "TV" - | "UG" - | "UA" - | "AE" - | "GB" - | "UM" - | "US" - | "UY" - | "UZ" - | "VU" - | "VE" - | "VN" - | "VG" - | "VI" - | "WF" - | "EH" - | "YE" - | "ZM" - | "ZW"; -} diff --git a/src/serialization/resources/crm/types/CrmAccountResponse.ts b/src/serialization/resources/crm/types/CrmAccountResponse.ts deleted file mode 100644 index 56e596cfc..000000000 --- a/src/serialization/resources/crm/types/CrmAccountResponse.ts +++ /dev/null @@ -1,28 +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"; -import { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const CrmAccountResponse: core.serialization.ObjectSchema< - serializers.crm.CrmAccountResponse.Raw, - Merge.crm.CrmAccountResponse -> = core.serialization.object({ - model: Account, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace CrmAccountResponse { - export interface Raw { - model: Account.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/CrmAssociationTypeResponse.ts b/src/serialization/resources/crm/types/CrmAssociationTypeResponse.ts deleted file mode 100644 index 546b305a6..000000000 --- a/src/serialization/resources/crm/types/CrmAssociationTypeResponse.ts +++ /dev/null @@ -1,28 +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 { AssociationType } from "./AssociationType"; -import { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const CrmAssociationTypeResponse: core.serialization.ObjectSchema< - serializers.crm.CrmAssociationTypeResponse.Raw, - Merge.crm.CrmAssociationTypeResponse -> = core.serialization.object({ - model: AssociationType, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace CrmAssociationTypeResponse { - export interface Raw { - model: AssociationType.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/CrmContactResponse.ts b/src/serialization/resources/crm/types/CrmContactResponse.ts deleted file mode 100644 index a6c1cb16d..000000000 --- a/src/serialization/resources/crm/types/CrmContactResponse.ts +++ /dev/null @@ -1,28 +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 { Contact } from "./Contact"; -import { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const CrmContactResponse: core.serialization.ObjectSchema< - serializers.crm.CrmContactResponse.Raw, - Merge.crm.CrmContactResponse -> = core.serialization.object({ - model: Contact, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace CrmContactResponse { - export interface Raw { - model: Contact.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/CrmCustomObjectResponse.ts b/src/serialization/resources/crm/types/CrmCustomObjectResponse.ts deleted file mode 100644 index 8da400a77..000000000 --- a/src/serialization/resources/crm/types/CrmCustomObjectResponse.ts +++ /dev/null @@ -1,28 +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 { CustomObject } from "./CustomObject"; -import { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const CrmCustomObjectResponse: core.serialization.ObjectSchema< - serializers.crm.CrmCustomObjectResponse.Raw, - Merge.crm.CrmCustomObjectResponse -> = core.serialization.object({ - model: CustomObject, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace CrmCustomObjectResponse { - export interface Raw { - model: CustomObject.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/CustomObject.ts b/src/serialization/resources/crm/types/CustomObject.ts deleted file mode 100644 index e6202e573..000000000 --- a/src/serialization/resources/crm/types/CustomObject.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"; -import { RemoteField } from "./RemoteField"; - -export const CustomObject: core.serialization.ObjectSchema = - 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()), - objectClass: core.serialization.property("object_class", core.serialization.string().optional()), - fields: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - remoteFields: core.serialization.property("remote_fields", core.serialization.list(RemoteField).optional()), - }); - -export declare namespace CustomObject { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - object_class?: string | null; - fields?: Record | null; - remote_fields?: RemoteField.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/CustomObjectClass.ts b/src/serialization/resources/crm/types/CustomObjectClass.ts deleted file mode 100644 index f4eac6799..000000000 --- a/src/serialization/resources/crm/types/CustomObjectClass.ts +++ /dev/null @@ -1,40 +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 { RemoteFieldClassForCustomObjectClass } from "./RemoteFieldClassForCustomObjectClass"; - -export const CustomObjectClass: core.serialization.ObjectSchema< - serializers.crm.CustomObjectClass.Raw, - Merge.crm.CustomObjectClass -> = 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()), - name: core.serialization.string().optional(), - description: core.serialization.string().optional(), - labels: core.serialization.record(core.serialization.string(), core.serialization.string().optional()).optional(), - fields: core.serialization.list(RemoteFieldClassForCustomObjectClass).optional(), - associationTypes: core.serialization.property( - "association_types", - core.serialization - .list(core.serialization.record(core.serialization.string(), core.serialization.unknown())) - .optional(), - ), -}); - -export declare namespace CustomObjectClass { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - description?: string | null; - labels?: Record | null; - fields?: RemoteFieldClassForCustomObjectClass.Raw[] | null; - association_types?: Record[] | null; - } -} diff --git a/src/serialization/resources/crm/types/CustomObjectRequest.ts b/src/serialization/resources/crm/types/CustomObjectRequest.ts deleted file mode 100644 index c8811ffa9..000000000 --- a/src/serialization/resources/crm/types/CustomObjectRequest.ts +++ /dev/null @@ -1,28 +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 CustomObjectRequest: core.serialization.ObjectSchema< - serializers.crm.CustomObjectRequest.Raw, - Merge.crm.CustomObjectRequest -> = core.serialization.object({ - fields: core.serialization.record(core.serialization.string(), core.serialization.unknown()), - 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 CustomObjectRequest { - export interface Raw { - fields: Record; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/crm/types/DataPassthroughRequest.ts b/src/serialization/resources/crm/types/DataPassthroughRequest.ts deleted file mode 100644 index 4d43ece42..000000000 --- a/src/serialization/resources/crm/types/DataPassthroughRequest.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { MethodEnum } from "./MethodEnum"; -import { MultipartFormFieldRequest } from "./MultipartFormFieldRequest"; -import { RequestFormatEnum } from "./RequestFormatEnum"; - -export const DataPassthroughRequest: core.serialization.ObjectSchema< - serializers.crm.DataPassthroughRequest.Raw, - Merge.crm.DataPassthroughRequest -> = core.serialization.object({ - method: MethodEnum, - path: core.serialization.string(), - baseUrlOverride: core.serialization.property("base_url_override", core.serialization.string().optional()), - data: core.serialization.string().optional(), - multipartFormData: core.serialization.property( - "multipart_form_data", - core.serialization.list(MultipartFormFieldRequest).optional(), - ), - headers: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - requestFormat: core.serialization.property("request_format", RequestFormatEnum.optional()), - normalizeResponse: core.serialization.property("normalize_response", core.serialization.boolean().optional()), -}); - -export declare namespace DataPassthroughRequest { - export interface Raw { - method: MethodEnum.Raw; - path: string; - base_url_override?: string | null; - data?: string | null; - multipart_form_data?: MultipartFormFieldRequest.Raw[] | null; - headers?: Record | null; - request_format?: RequestFormatEnum.Raw | null; - normalize_response?: boolean | null; - } -} diff --git a/src/serialization/resources/crm/types/DebugModeLog.ts b/src/serialization/resources/crm/types/DebugModeLog.ts deleted file mode 100644 index 7bacbc645..000000000 --- a/src/serialization/resources/crm/types/DebugModeLog.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { DebugModelLogSummary } from "./DebugModelLogSummary"; - -export const DebugModeLog: core.serialization.ObjectSchema = - core.serialization.object({ - logId: core.serialization.property("log_id", core.serialization.string()), - dashboardView: core.serialization.property("dashboard_view", core.serialization.string()), - logSummary: core.serialization.property("log_summary", DebugModelLogSummary), - }); - -export declare namespace DebugModeLog { - export interface Raw { - log_id: string; - dashboard_view: string; - log_summary: DebugModelLogSummary.Raw; - } -} diff --git a/src/serialization/resources/crm/types/DebugModelLogSummary.ts b/src/serialization/resources/crm/types/DebugModelLogSummary.ts deleted file mode 100644 index 2239f26dc..000000000 --- a/src/serialization/resources/crm/types/DebugModelLogSummary.ts +++ /dev/null @@ -1,22 +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 DebugModelLogSummary: core.serialization.ObjectSchema< - serializers.crm.DebugModelLogSummary.Raw, - Merge.crm.DebugModelLogSummary -> = core.serialization.object({ - url: core.serialization.string(), - method: core.serialization.string(), - statusCode: core.serialization.property("status_code", core.serialization.number()), -}); - -export declare namespace DebugModelLogSummary { - export interface Raw { - url: string; - method: string; - status_code: number; - } -} diff --git a/src/serialization/resources/crm/types/DirectionEnum.ts b/src/serialization/resources/crm/types/DirectionEnum.ts deleted file mode 100644 index 04bb6804c..000000000 --- a/src/serialization/resources/crm/types/DirectionEnum.ts +++ /dev/null @@ -1,12 +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 DirectionEnum: core.serialization.Schema = - core.serialization.enum_(["INBOUND", "OUTBOUND"]); - -export declare namespace DirectionEnum { - export type Raw = "INBOUND" | "OUTBOUND"; -} diff --git a/src/serialization/resources/crm/types/EmailAddress.ts b/src/serialization/resources/crm/types/EmailAddress.ts deleted file mode 100644 index 54d193d95..000000000 --- a/src/serialization/resources/crm/types/EmailAddress.ts +++ /dev/null @@ -1,22 +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 EmailAddress: core.serialization.ObjectSchema = - core.serialization.object({ - createdAt: core.serialization.property("created_at", core.serialization.date().optional()), - modifiedAt: core.serialization.property("modified_at", core.serialization.date().optional()), - emailAddress: core.serialization.property("email_address", core.serialization.string().optional()), - emailAddressType: core.serialization.property("email_address_type", core.serialization.string().optional()), - }); - -export declare namespace EmailAddress { - export interface Raw { - created_at?: string | null; - modified_at?: string | null; - email_address?: string | null; - email_address_type?: string | null; - } -} diff --git a/src/serialization/resources/crm/types/EmailAddressRequest.ts b/src/serialization/resources/crm/types/EmailAddressRequest.ts deleted file mode 100644 index 7cbda37c2..000000000 --- a/src/serialization/resources/crm/types/EmailAddressRequest.ts +++ /dev/null @@ -1,30 +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 EmailAddressRequest: core.serialization.ObjectSchema< - serializers.crm.EmailAddressRequest.Raw, - Merge.crm.EmailAddressRequest -> = core.serialization.object({ - emailAddress: core.serialization.property("email_address", core.serialization.string().optional()), - emailAddressType: core.serialization.property("email_address_type", core.serialization.string().optional()), - integrationParams: core.serialization.property( - "integration_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - linkedAccountParams: core.serialization.property( - "linked_account_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), -}); - -export declare namespace EmailAddressRequest { - export interface Raw { - email_address?: string | null; - email_address_type?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/crm/types/EnabledActionsEnum.ts b/src/serialization/resources/crm/types/EnabledActionsEnum.ts deleted file mode 100644 index 2b5308f40..000000000 --- a/src/serialization/resources/crm/types/EnabledActionsEnum.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 EnabledActionsEnum: core.serialization.Schema< - serializers.crm.EnabledActionsEnum.Raw, - Merge.crm.EnabledActionsEnum -> = core.serialization.enum_(["READ", "WRITE"]); - -export declare namespace EnabledActionsEnum { - export type Raw = "READ" | "WRITE"; -} diff --git a/src/serialization/resources/crm/types/EncodingEnum.ts b/src/serialization/resources/crm/types/EncodingEnum.ts deleted file mode 100644 index bfc837a54..000000000 --- a/src/serialization/resources/crm/types/EncodingEnum.ts +++ /dev/null @@ -1,12 +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 EncodingEnum: core.serialization.Schema = - core.serialization.enum_(["RAW", "BASE64", "GZIP_BASE64"]); - -export declare namespace EncodingEnum { - export type Raw = "RAW" | "BASE64" | "GZIP_BASE64"; -} diff --git a/src/serialization/resources/crm/types/Engagement.ts b/src/serialization/resources/crm/types/Engagement.ts deleted file mode 100644 index ca0d5332c..000000000 --- a/src/serialization/resources/crm/types/Engagement.ts +++ /dev/null @@ -1,58 +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 { EngagementAccount } from "./EngagementAccount"; -import { EngagementContactsItem } from "./EngagementContactsItem"; -import { EngagementDirection } from "./EngagementDirection"; -import { EngagementEngagementType } from "./EngagementEngagementType"; -import { EngagementOwner } from "./EngagementOwner"; -import { RemoteData } from "./RemoteData"; -import { RemoteField } from "./RemoteField"; - -export const Engagement: core.serialization.ObjectSchema = - 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()), - owner: EngagementOwner.optional(), - content: core.serialization.string().optional(), - subject: core.serialization.string().optional(), - direction: EngagementDirection.optional(), - engagementType: core.serialization.property("engagement_type", EngagementEngagementType.optional()), - startTime: core.serialization.property("start_time", core.serialization.date().optional()), - endTime: core.serialization.property("end_time", core.serialization.date().optional()), - account: EngagementAccount.optional(), - contacts: core.serialization.list(EngagementContactsItem.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(), - ), - 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 Engagement { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - owner?: EngagementOwner.Raw | null; - content?: string | null; - subject?: string | null; - direction?: EngagementDirection.Raw | null; - engagement_type?: EngagementEngagementType.Raw | null; - start_time?: string | null; - end_time?: string | null; - account?: EngagementAccount.Raw | null; - contacts?: (EngagementContactsItem.Raw | null | undefined)[] | 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/crm/types/EngagementAccount.ts b/src/serialization/resources/crm/types/EngagementAccount.ts deleted file mode 100644 index b8cc97e30..000000000 --- a/src/serialization/resources/crm/types/EngagementAccount.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 EngagementAccount: core.serialization.Schema< - serializers.crm.EngagementAccount.Raw, - Merge.crm.EngagementAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace EngagementAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/crm/types/EngagementContactsItem.ts b/src/serialization/resources/crm/types/EngagementContactsItem.ts deleted file mode 100644 index aa1f31945..000000000 --- a/src/serialization/resources/crm/types/EngagementContactsItem.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 { Contact } from "./Contact"; - -export const EngagementContactsItem: core.serialization.Schema< - serializers.crm.EngagementContactsItem.Raw, - Merge.crm.EngagementContactsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace EngagementContactsItem { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/crm/types/EngagementDirection.ts b/src/serialization/resources/crm/types/EngagementDirection.ts deleted file mode 100644 index fbc8be480..000000000 --- a/src/serialization/resources/crm/types/EngagementDirection.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 { DirectionEnum } from "./DirectionEnum"; - -export const EngagementDirection: core.serialization.Schema< - serializers.crm.EngagementDirection.Raw, - Merge.crm.EngagementDirection -> = core.serialization.undiscriminatedUnion([DirectionEnum, core.serialization.string()]); - -export declare namespace EngagementDirection { - export type Raw = DirectionEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/EngagementEngagementType.ts b/src/serialization/resources/crm/types/EngagementEngagementType.ts deleted file mode 100644 index 3eefe2385..000000000 --- a/src/serialization/resources/crm/types/EngagementEngagementType.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 { EngagementType } from "./EngagementType"; - -export const EngagementEngagementType: core.serialization.Schema< - serializers.crm.EngagementEngagementType.Raw, - Merge.crm.EngagementEngagementType -> = core.serialization.undiscriminatedUnion([core.serialization.string(), EngagementType]); - -export declare namespace EngagementEngagementType { - export type Raw = string | EngagementType.Raw; -} diff --git a/src/serialization/resources/crm/types/EngagementOwner.ts b/src/serialization/resources/crm/types/EngagementOwner.ts deleted file mode 100644 index a7d0f39e0..000000000 --- a/src/serialization/resources/crm/types/EngagementOwner.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 { User } from "./User"; - -export const EngagementOwner: core.serialization.Schema< - serializers.crm.EngagementOwner.Raw, - Merge.crm.EngagementOwner -> = core.serialization.undiscriminatedUnion([core.serialization.string(), User]); - -export declare namespace EngagementOwner { - export type Raw = string | User.Raw; -} diff --git a/src/serialization/resources/crm/types/EngagementRequest.ts b/src/serialization/resources/crm/types/EngagementRequest.ts deleted file mode 100644 index ddc8b71f5..000000000 --- a/src/serialization/resources/crm/types/EngagementRequest.ts +++ /dev/null @@ -1,52 +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 { EngagementRequestAccount } from "./EngagementRequestAccount"; -import { EngagementRequestContactsItem } from "./EngagementRequestContactsItem"; -import { EngagementRequestDirection } from "./EngagementRequestDirection"; -import { EngagementRequestEngagementType } from "./EngagementRequestEngagementType"; -import { EngagementRequestOwner } from "./EngagementRequestOwner"; -import { RemoteFieldRequest } from "./RemoteFieldRequest"; - -export const EngagementRequest: core.serialization.ObjectSchema< - serializers.crm.EngagementRequest.Raw, - Merge.crm.EngagementRequest -> = core.serialization.object({ - owner: EngagementRequestOwner.optional(), - content: core.serialization.string().optional(), - subject: core.serialization.string().optional(), - direction: EngagementRequestDirection.optional(), - engagementType: core.serialization.property("engagement_type", EngagementRequestEngagementType.optional()), - startTime: core.serialization.property("start_time", core.serialization.date().optional()), - endTime: core.serialization.property("end_time", core.serialization.date().optional()), - account: EngagementRequestAccount.optional(), - contacts: core.serialization.list(EngagementRequestContactsItem.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(), - ), - remoteFields: core.serialization.property("remote_fields", core.serialization.list(RemoteFieldRequest).optional()), -}); - -export declare namespace EngagementRequest { - export interface Raw { - owner?: EngagementRequestOwner.Raw | null; - content?: string | null; - subject?: string | null; - direction?: EngagementRequestDirection.Raw | null; - engagement_type?: EngagementRequestEngagementType.Raw | null; - start_time?: string | null; - end_time?: string | null; - account?: EngagementRequestAccount.Raw | null; - contacts?: (EngagementRequestContactsItem.Raw | null | undefined)[] | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/EngagementRequestAccount.ts b/src/serialization/resources/crm/types/EngagementRequestAccount.ts deleted file mode 100644 index d07ac3c10..000000000 --- a/src/serialization/resources/crm/types/EngagementRequestAccount.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 EngagementRequestAccount: core.serialization.Schema< - serializers.crm.EngagementRequestAccount.Raw, - Merge.crm.EngagementRequestAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace EngagementRequestAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/crm/types/EngagementRequestContactsItem.ts b/src/serialization/resources/crm/types/EngagementRequestContactsItem.ts deleted file mode 100644 index 6c70c469e..000000000 --- a/src/serialization/resources/crm/types/EngagementRequestContactsItem.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 { Contact } from "./Contact"; - -export const EngagementRequestContactsItem: core.serialization.Schema< - serializers.crm.EngagementRequestContactsItem.Raw, - Merge.crm.EngagementRequestContactsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace EngagementRequestContactsItem { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/crm/types/EngagementRequestDirection.ts b/src/serialization/resources/crm/types/EngagementRequestDirection.ts deleted file mode 100644 index 24fb6ac5f..000000000 --- a/src/serialization/resources/crm/types/EngagementRequestDirection.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 { DirectionEnum } from "./DirectionEnum"; - -export const EngagementRequestDirection: core.serialization.Schema< - serializers.crm.EngagementRequestDirection.Raw, - Merge.crm.EngagementRequestDirection -> = core.serialization.undiscriminatedUnion([DirectionEnum, core.serialization.string()]); - -export declare namespace EngagementRequestDirection { - export type Raw = DirectionEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/EngagementRequestEngagementType.ts b/src/serialization/resources/crm/types/EngagementRequestEngagementType.ts deleted file mode 100644 index e43aff3ce..000000000 --- a/src/serialization/resources/crm/types/EngagementRequestEngagementType.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 { EngagementType } from "./EngagementType"; - -export const EngagementRequestEngagementType: core.serialization.Schema< - serializers.crm.EngagementRequestEngagementType.Raw, - Merge.crm.EngagementRequestEngagementType -> = core.serialization.undiscriminatedUnion([core.serialization.string(), EngagementType]); - -export declare namespace EngagementRequestEngagementType { - export type Raw = string | EngagementType.Raw; -} diff --git a/src/serialization/resources/crm/types/EngagementRequestOwner.ts b/src/serialization/resources/crm/types/EngagementRequestOwner.ts deleted file mode 100644 index 076ac875e..000000000 --- a/src/serialization/resources/crm/types/EngagementRequestOwner.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 { User } from "./User"; - -export const EngagementRequestOwner: core.serialization.Schema< - serializers.crm.EngagementRequestOwner.Raw, - Merge.crm.EngagementRequestOwner -> = core.serialization.undiscriminatedUnion([core.serialization.string(), User]); - -export declare namespace EngagementRequestOwner { - export type Raw = string | User.Raw; -} diff --git a/src/serialization/resources/crm/types/EngagementResponse.ts b/src/serialization/resources/crm/types/EngagementResponse.ts deleted file mode 100644 index 06bda1ec4..000000000 --- a/src/serialization/resources/crm/types/EngagementResponse.ts +++ /dev/null @@ -1,28 +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 { DebugModeLog } from "./DebugModeLog"; -import { Engagement } from "./Engagement"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const EngagementResponse: core.serialization.ObjectSchema< - serializers.crm.EngagementResponse.Raw, - Merge.crm.EngagementResponse -> = core.serialization.object({ - model: Engagement, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace EngagementResponse { - export interface Raw { - model: Engagement.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/EngagementType.ts b/src/serialization/resources/crm/types/EngagementType.ts deleted file mode 100644 index 54665190d..000000000 --- a/src/serialization/resources/crm/types/EngagementType.ts +++ /dev/null @@ -1,32 +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 { EngagementTypeActivityType } from "./EngagementTypeActivityType"; -import { RemoteField } from "./RemoteField"; - -export const EngagementType: core.serialization.ObjectSchema< - serializers.crm.EngagementType.Raw, - Merge.crm.EngagementType -> = 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()), - activityType: core.serialization.property("activity_type", EngagementTypeActivityType.optional()), - name: core.serialization.string().optional(), - remoteFields: core.serialization.property("remote_fields", core.serialization.list(RemoteField).optional()), -}); - -export declare namespace EngagementType { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - activity_type?: EngagementTypeActivityType.Raw | null; - name?: string | null; - remote_fields?: RemoteField.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/EngagementTypeActivityType.ts b/src/serialization/resources/crm/types/EngagementTypeActivityType.ts deleted file mode 100644 index 2b84c6805..000000000 --- a/src/serialization/resources/crm/types/EngagementTypeActivityType.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 EngagementTypeActivityType: core.serialization.Schema< - serializers.crm.EngagementTypeActivityType.Raw, - Merge.crm.EngagementTypeActivityType -> = core.serialization.undiscriminatedUnion([ActivityTypeEnum, core.serialization.string()]); - -export declare namespace EngagementTypeActivityType { - export type Raw = ActivityTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/ErrorValidationProblem.ts b/src/serialization/resources/crm/types/ErrorValidationProblem.ts deleted file mode 100644 index 373f25542..000000000 --- a/src/serialization/resources/crm/types/ErrorValidationProblem.ts +++ /dev/null @@ -1,25 +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 { ValidationProblemSource } from "./ValidationProblemSource"; - -export const ErrorValidationProblem: core.serialization.ObjectSchema< - serializers.crm.ErrorValidationProblem.Raw, - Merge.crm.ErrorValidationProblem -> = core.serialization.object({ - source: ValidationProblemSource.optional(), - title: core.serialization.string(), - detail: core.serialization.string(), - problemType: core.serialization.property("problem_type", core.serialization.string()), -}); - -export declare namespace ErrorValidationProblem { - export interface Raw { - source?: ValidationProblemSource.Raw | null; - title: string; - detail: string; - problem_type: string; - } -} diff --git a/src/serialization/resources/crm/types/EventTypeEnum.ts b/src/serialization/resources/crm/types/EventTypeEnum.ts deleted file mode 100644 index afac74363..000000000 --- a/src/serialization/resources/crm/types/EventTypeEnum.ts +++ /dev/null @@ -1,99 +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 EventTypeEnum: core.serialization.Schema = - core.serialization.enum_([ - "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", - ]); - -export declare namespace EventTypeEnum { - export type Raw = - | "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"; -} diff --git a/src/serialization/resources/crm/types/ExternalTargetFieldApi.ts b/src/serialization/resources/crm/types/ExternalTargetFieldApi.ts deleted file mode 100644 index 55af0ff67..000000000 --- a/src/serialization/resources/crm/types/ExternalTargetFieldApi.ts +++ /dev/null @@ -1,22 +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 ExternalTargetFieldApi: core.serialization.ObjectSchema< - serializers.crm.ExternalTargetFieldApi.Raw, - Merge.crm.ExternalTargetFieldApi -> = core.serialization.object({ - name: core.serialization.string().optional(), - description: core.serialization.string().optional(), - isMapped: core.serialization.property("is_mapped", core.serialization.string().optional()), -}); - -export declare namespace ExternalTargetFieldApi { - export interface Raw { - name?: string | null; - description?: string | null; - is_mapped?: string | null; - } -} diff --git a/src/serialization/resources/crm/types/ExternalTargetFieldApiResponse.ts b/src/serialization/resources/crm/types/ExternalTargetFieldApiResponse.ts deleted file mode 100644 index 090e2e1d7..000000000 --- a/src/serialization/resources/crm/types/ExternalTargetFieldApiResponse.ts +++ /dev/null @@ -1,35 +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 { ExternalTargetFieldApi } from "./ExternalTargetFieldApi"; - -export const ExternalTargetFieldApiResponse: core.serialization.ObjectSchema< - serializers.crm.ExternalTargetFieldApiResponse.Raw, - Merge.crm.ExternalTargetFieldApiResponse -> = core.serialization.object({ - account: core.serialization.property("Account", core.serialization.list(ExternalTargetFieldApi).optional()), - contact: core.serialization.property("Contact", core.serialization.list(ExternalTargetFieldApi).optional()), - lead: core.serialization.property("Lead", core.serialization.list(ExternalTargetFieldApi).optional()), - note: core.serialization.property("Note", core.serialization.list(ExternalTargetFieldApi).optional()), - opportunity: core.serialization.property("Opportunity", core.serialization.list(ExternalTargetFieldApi).optional()), - stage: core.serialization.property("Stage", core.serialization.list(ExternalTargetFieldApi).optional()), - user: core.serialization.property("User", core.serialization.list(ExternalTargetFieldApi).optional()), - task: core.serialization.property("Task", core.serialization.list(ExternalTargetFieldApi).optional()), - engagement: core.serialization.property("Engagement", core.serialization.list(ExternalTargetFieldApi).optional()), -}); - -export declare namespace ExternalTargetFieldApiResponse { - export interface Raw { - Account?: ExternalTargetFieldApi.Raw[] | null; - Contact?: ExternalTargetFieldApi.Raw[] | null; - Lead?: ExternalTargetFieldApi.Raw[] | null; - Note?: ExternalTargetFieldApi.Raw[] | null; - Opportunity?: ExternalTargetFieldApi.Raw[] | null; - Stage?: ExternalTargetFieldApi.Raw[] | null; - User?: ExternalTargetFieldApi.Raw[] | null; - Task?: ExternalTargetFieldApi.Raw[] | null; - Engagement?: ExternalTargetFieldApi.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/FieldFormatEnum.ts b/src/serialization/resources/crm/types/FieldFormatEnum.ts deleted file mode 100644 index d9fe3951a..000000000 --- a/src/serialization/resources/crm/types/FieldFormatEnum.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 FieldFormatEnum: core.serialization.Schema< - serializers.crm.FieldFormatEnum.Raw, - Merge.crm.FieldFormatEnum -> = core.serialization.enum_(["string", "number", "date", "datetime", "bool", "list"]); - -export declare namespace FieldFormatEnum { - export type Raw = "string" | "number" | "date" | "datetime" | "bool" | "list"; -} diff --git a/src/serialization/resources/crm/types/FieldMappingApiInstance.ts b/src/serialization/resources/crm/types/FieldMappingApiInstance.ts deleted file mode 100644 index 7ca31370b..000000000 --- a/src/serialization/resources/crm/types/FieldMappingApiInstance.ts +++ /dev/null @@ -1,26 +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 { FieldMappingApiInstanceRemoteField } from "./FieldMappingApiInstanceRemoteField"; -import { FieldMappingApiInstanceTargetField } from "./FieldMappingApiInstanceTargetField"; - -export const FieldMappingApiInstance: core.serialization.ObjectSchema< - serializers.crm.FieldMappingApiInstance.Raw, - Merge.crm.FieldMappingApiInstance -> = core.serialization.object({ - id: core.serialization.string().optional(), - 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()), -}); - -export declare namespace FieldMappingApiInstance { - export interface Raw { - id?: string | null; - is_integration_wide?: boolean | null; - target_field?: FieldMappingApiInstanceTargetField.Raw | null; - remote_field?: FieldMappingApiInstanceRemoteField.Raw | null; - } -} diff --git a/src/serialization/resources/crm/types/FieldMappingApiInstanceRemoteField.ts b/src/serialization/resources/crm/types/FieldMappingApiInstanceRemoteField.ts deleted file mode 100644 index 37a359b69..000000000 --- a/src/serialization/resources/crm/types/FieldMappingApiInstanceRemoteField.ts +++ /dev/null @@ -1,26 +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 { FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo } from "./FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo"; - -export const FieldMappingApiInstanceRemoteField: core.serialization.ObjectSchema< - serializers.crm.FieldMappingApiInstanceRemoteField.Raw, - Merge.crm.FieldMappingApiInstanceRemoteField -> = core.serialization.object({ - remoteKeyName: core.serialization.property("remote_key_name", core.serialization.string().optional()), - schema: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - remoteEndpointInfo: core.serialization.property( - "remote_endpoint_info", - FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo, - ), -}); - -export declare namespace FieldMappingApiInstanceRemoteField { - export interface Raw { - remote_key_name?: string | null; - schema?: Record | null; - remote_endpoint_info: FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.Raw; - } -} diff --git a/src/serialization/resources/crm/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts b/src/serialization/resources/crm/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts deleted file mode 100644 index cb5fe6d78..000000000 --- a/src/serialization/resources/crm/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts +++ /dev/null @@ -1,25 +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 FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo: core.serialization.ObjectSchema< - serializers.crm.FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.Raw, - Merge.crm.FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo -> = core.serialization.object({ - method: core.serialization.string().optional(), - urlPath: core.serialization.property("url_path", core.serialization.string().optional()), - fieldTraversalPath: core.serialization.property( - "field_traversal_path", - core.serialization.list(core.serialization.string()).optional(), - ), -}); - -export declare namespace FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo { - export interface Raw { - method?: string | null; - url_path?: string | null; - field_traversal_path?: string[] | null; - } -} diff --git a/src/serialization/resources/crm/types/FieldMappingApiInstanceResponse.ts b/src/serialization/resources/crm/types/FieldMappingApiInstanceResponse.ts deleted file mode 100644 index 9a4fb60c0..000000000 --- a/src/serialization/resources/crm/types/FieldMappingApiInstanceResponse.ts +++ /dev/null @@ -1,38 +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 { FieldMappingApiInstance } from "./FieldMappingApiInstance"; - -export const FieldMappingApiInstanceResponse: core.serialization.ObjectSchema< - serializers.crm.FieldMappingApiInstanceResponse.Raw, - Merge.crm.FieldMappingApiInstanceResponse -> = core.serialization.object({ - account: core.serialization.property("Account", core.serialization.list(FieldMappingApiInstance).optional()), - contact: core.serialization.property("Contact", core.serialization.list(FieldMappingApiInstance).optional()), - lead: core.serialization.property("Lead", core.serialization.list(FieldMappingApiInstance).optional()), - note: core.serialization.property("Note", core.serialization.list(FieldMappingApiInstance).optional()), - opportunity: core.serialization.property( - "Opportunity", - core.serialization.list(FieldMappingApiInstance).optional(), - ), - stage: core.serialization.property("Stage", core.serialization.list(FieldMappingApiInstance).optional()), - user: core.serialization.property("User", core.serialization.list(FieldMappingApiInstance).optional()), - task: core.serialization.property("Task", core.serialization.list(FieldMappingApiInstance).optional()), - engagement: core.serialization.property("Engagement", core.serialization.list(FieldMappingApiInstance).optional()), -}); - -export declare namespace FieldMappingApiInstanceResponse { - export interface Raw { - Account?: FieldMappingApiInstance.Raw[] | null; - Contact?: FieldMappingApiInstance.Raw[] | null; - Lead?: FieldMappingApiInstance.Raw[] | null; - Note?: FieldMappingApiInstance.Raw[] | null; - Opportunity?: FieldMappingApiInstance.Raw[] | null; - Stage?: FieldMappingApiInstance.Raw[] | null; - User?: FieldMappingApiInstance.Raw[] | null; - Task?: FieldMappingApiInstance.Raw[] | null; - Engagement?: FieldMappingApiInstance.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/FieldMappingApiInstanceTargetField.ts b/src/serialization/resources/crm/types/FieldMappingApiInstanceTargetField.ts deleted file mode 100644 index 5a7ad806d..000000000 --- a/src/serialization/resources/crm/types/FieldMappingApiInstanceTargetField.ts +++ /dev/null @@ -1,22 +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 FieldMappingApiInstanceTargetField: core.serialization.ObjectSchema< - serializers.crm.FieldMappingApiInstanceTargetField.Raw, - Merge.crm.FieldMappingApiInstanceTargetField -> = core.serialization.object({ - name: core.serialization.string(), - description: core.serialization.string(), - isOrganizationWide: core.serialization.property("is_organization_wide", core.serialization.boolean()), -}); - -export declare namespace FieldMappingApiInstanceTargetField { - export interface Raw { - name: string; - description: string; - is_organization_wide: boolean; - } -} diff --git a/src/serialization/resources/crm/types/FieldMappingInstanceResponse.ts b/src/serialization/resources/crm/types/FieldMappingInstanceResponse.ts deleted file mode 100644 index 268157a6c..000000000 --- a/src/serialization/resources/crm/types/FieldMappingInstanceResponse.ts +++ /dev/null @@ -1,28 +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 { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { FieldMappingApiInstance } from "./FieldMappingApiInstance"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const FieldMappingInstanceResponse: core.serialization.ObjectSchema< - serializers.crm.FieldMappingInstanceResponse.Raw, - Merge.crm.FieldMappingInstanceResponse -> = core.serialization.object({ - model: FieldMappingApiInstance, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace FieldMappingInstanceResponse { - export interface Raw { - model: FieldMappingApiInstance.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/FieldPermissionDeserializer.ts b/src/serialization/resources/crm/types/FieldPermissionDeserializer.ts deleted file mode 100644 index f66a93594..000000000 --- a/src/serialization/resources/crm/types/FieldPermissionDeserializer.ts +++ /dev/null @@ -1,26 +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 FieldPermissionDeserializer: core.serialization.ObjectSchema< - serializers.crm.FieldPermissionDeserializer.Raw, - Merge.crm.FieldPermissionDeserializer -> = core.serialization.object({ - enabledFields: core.serialization.property( - "enabled_fields", - core.serialization.list(core.serialization.unknown()).optional(), - ), - disabledFields: core.serialization.property( - "disabled_fields", - core.serialization.list(core.serialization.unknown()).optional(), - ), -}); - -export declare namespace FieldPermissionDeserializer { - export interface Raw { - enabled_fields?: unknown[] | null; - disabled_fields?: unknown[] | null; - } -} diff --git a/src/serialization/resources/crm/types/FieldPermissionDeserializerRequest.ts b/src/serialization/resources/crm/types/FieldPermissionDeserializerRequest.ts deleted file mode 100644 index e8f28e960..000000000 --- a/src/serialization/resources/crm/types/FieldPermissionDeserializerRequest.ts +++ /dev/null @@ -1,26 +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 FieldPermissionDeserializerRequest: core.serialization.ObjectSchema< - serializers.crm.FieldPermissionDeserializerRequest.Raw, - Merge.crm.FieldPermissionDeserializerRequest -> = core.serialization.object({ - enabledFields: core.serialization.property( - "enabled_fields", - core.serialization.list(core.serialization.unknown()).optional(), - ), - disabledFields: core.serialization.property( - "disabled_fields", - core.serialization.list(core.serialization.unknown()).optional(), - ), -}); - -export declare namespace FieldPermissionDeserializerRequest { - export interface Raw { - enabled_fields?: unknown[] | null; - disabled_fields?: unknown[] | null; - } -} diff --git a/src/serialization/resources/crm/types/FieldTypeEnum.ts b/src/serialization/resources/crm/types/FieldTypeEnum.ts deleted file mode 100644 index 40abe7f3e..000000000 --- a/src/serialization/resources/crm/types/FieldTypeEnum.ts +++ /dev/null @@ -1,12 +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 FieldTypeEnum: core.serialization.Schema = - core.serialization.enum_(["string", "number", "date", "datetime", "bool", "list"]); - -export declare namespace FieldTypeEnum { - export type Raw = "string" | "number" | "date" | "datetime" | "bool" | "list"; -} diff --git a/src/serialization/resources/crm/types/IgnoreCommonModelRequest.ts b/src/serialization/resources/crm/types/IgnoreCommonModelRequest.ts deleted file mode 100644 index cef204fe6..000000000 --- a/src/serialization/resources/crm/types/IgnoreCommonModelRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { IgnoreCommonModelRequestReason } from "./IgnoreCommonModelRequestReason"; - -export const IgnoreCommonModelRequest: core.serialization.ObjectSchema< - serializers.crm.IgnoreCommonModelRequest.Raw, - Merge.crm.IgnoreCommonModelRequest -> = core.serialization.object({ - reason: IgnoreCommonModelRequestReason, - message: core.serialization.string().optional(), -}); - -export declare namespace IgnoreCommonModelRequest { - export interface Raw { - reason: IgnoreCommonModelRequestReason.Raw; - message?: string | null; - } -} diff --git a/src/serialization/resources/crm/types/IgnoreCommonModelRequestReason.ts b/src/serialization/resources/crm/types/IgnoreCommonModelRequestReason.ts deleted file mode 100644 index 446ea52b2..000000000 --- a/src/serialization/resources/crm/types/IgnoreCommonModelRequestReason.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { ReasonEnum } from "./ReasonEnum"; - -export const IgnoreCommonModelRequestReason: core.serialization.Schema< - serializers.crm.IgnoreCommonModelRequestReason.Raw, - Merge.crm.IgnoreCommonModelRequestReason -> = core.serialization.undiscriminatedUnion([ReasonEnum, core.serialization.string()]); - -export declare namespace IgnoreCommonModelRequestReason { - export type Raw = ReasonEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/IndividualCommonModelScopeDeserializer.ts b/src/serialization/resources/crm/types/IndividualCommonModelScopeDeserializer.ts deleted file mode 100644 index c223fe7ea..000000000 --- a/src/serialization/resources/crm/types/IndividualCommonModelScopeDeserializer.ts +++ /dev/null @@ -1,27 +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 { FieldPermissionDeserializer } from "./FieldPermissionDeserializer"; -import { ModelPermissionDeserializer } from "./ModelPermissionDeserializer"; - -export const IndividualCommonModelScopeDeserializer: core.serialization.ObjectSchema< - serializers.crm.IndividualCommonModelScopeDeserializer.Raw, - Merge.crm.IndividualCommonModelScopeDeserializer -> = core.serialization.object({ - modelName: core.serialization.property("model_name", core.serialization.string()), - modelPermissions: core.serialization.property( - "model_permissions", - core.serialization.record(core.serialization.string(), ModelPermissionDeserializer).optional(), - ), - fieldPermissions: core.serialization.property("field_permissions", FieldPermissionDeserializer.optional()), -}); - -export declare namespace IndividualCommonModelScopeDeserializer { - export interface Raw { - model_name: string; - model_permissions?: Record | null; - field_permissions?: FieldPermissionDeserializer.Raw | null; - } -} diff --git a/src/serialization/resources/crm/types/IndividualCommonModelScopeDeserializerRequest.ts b/src/serialization/resources/crm/types/IndividualCommonModelScopeDeserializerRequest.ts deleted file mode 100644 index 53e53a778..000000000 --- a/src/serialization/resources/crm/types/IndividualCommonModelScopeDeserializerRequest.ts +++ /dev/null @@ -1,27 +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 { FieldPermissionDeserializerRequest } from "./FieldPermissionDeserializerRequest"; -import { ModelPermissionDeserializerRequest } from "./ModelPermissionDeserializerRequest"; - -export const IndividualCommonModelScopeDeserializerRequest: core.serialization.ObjectSchema< - serializers.crm.IndividualCommonModelScopeDeserializerRequest.Raw, - Merge.crm.IndividualCommonModelScopeDeserializerRequest -> = core.serialization.object({ - modelName: core.serialization.property("model_name", core.serialization.string()), - modelPermissions: core.serialization.property( - "model_permissions", - core.serialization.record(core.serialization.string(), ModelPermissionDeserializerRequest).optional(), - ), - fieldPermissions: core.serialization.property("field_permissions", FieldPermissionDeserializerRequest.optional()), -}); - -export declare namespace IndividualCommonModelScopeDeserializerRequest { - export interface Raw { - model_name: string; - model_permissions?: Record | null; - field_permissions?: FieldPermissionDeserializerRequest.Raw | null; - } -} diff --git a/src/serialization/resources/crm/types/Issue.ts b/src/serialization/resources/crm/types/Issue.ts deleted file mode 100644 index e3b54877a..000000000 --- a/src/serialization/resources/crm/types/Issue.ts +++ /dev/null @@ -1,37 +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 { IssueStatus } from "./IssueStatus"; - -export const Issue: core.serialization.ObjectSchema = - core.serialization.object({ - id: core.serialization.string().optional(), - status: IssueStatus.optional(), - errorDescription: core.serialization.property("error_description", core.serialization.string()), - endUser: core.serialization.property( - "end_user", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - firstIncidentTime: core.serialization.property("first_incident_time", core.serialization.date().optional()), - lastIncidentTime: core.serialization.property("last_incident_time", core.serialization.date().optional()), - isMuted: core.serialization.property("is_muted", core.serialization.boolean().optional()), - errorDetails: core.serialization.property( - "error_details", - core.serialization.list(core.serialization.string()).optional(), - ), - }); - -export declare namespace Issue { - export interface Raw { - id?: string | null; - status?: IssueStatus.Raw | null; - error_description: string; - end_user?: Record | null; - first_incident_time?: string | null; - last_incident_time?: string | null; - is_muted?: boolean | null; - error_details?: string[] | null; - } -} diff --git a/src/serialization/resources/crm/types/IssueStatus.ts b/src/serialization/resources/crm/types/IssueStatus.ts deleted file mode 100644 index b2f1981ef..000000000 --- a/src/serialization/resources/crm/types/IssueStatus.ts +++ /dev/null @@ -1,13 +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 { IssueStatusEnum } from "./IssueStatusEnum"; - -export const IssueStatus: core.serialization.Schema = - core.serialization.undiscriminatedUnion([IssueStatusEnum, core.serialization.string()]); - -export declare namespace IssueStatus { - export type Raw = IssueStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/IssueStatusEnum.ts b/src/serialization/resources/crm/types/IssueStatusEnum.ts deleted file mode 100644 index 453491352..000000000 --- a/src/serialization/resources/crm/types/IssueStatusEnum.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 IssueStatusEnum: core.serialization.Schema< - serializers.crm.IssueStatusEnum.Raw, - Merge.crm.IssueStatusEnum -> = core.serialization.enum_(["ONGOING", "RESOLVED"]); - -export declare namespace IssueStatusEnum { - export type Raw = "ONGOING" | "RESOLVED"; -} diff --git a/src/serialization/resources/crm/types/ItemFormatEnum.ts b/src/serialization/resources/crm/types/ItemFormatEnum.ts deleted file mode 100644 index 1b5548bd8..000000000 --- a/src/serialization/resources/crm/types/ItemFormatEnum.ts +++ /dev/null @@ -1,12 +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 ItemFormatEnum: core.serialization.Schema = - core.serialization.enum_(["string", "number", "date", "datetime", "bool", "list"]); - -export declare namespace ItemFormatEnum { - export type Raw = "string" | "number" | "date" | "datetime" | "bool" | "list"; -} diff --git a/src/serialization/resources/crm/types/ItemSchema.ts b/src/serialization/resources/crm/types/ItemSchema.ts deleted file mode 100644 index 773885689..000000000 --- a/src/serialization/resources/crm/types/ItemSchema.ts +++ /dev/null @@ -1,25 +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 { ItemFormatEnum } from "./ItemFormatEnum"; -import { ItemTypeEnum } from "./ItemTypeEnum"; - -export const ItemSchema: core.serialization.ObjectSchema = - core.serialization.object({ - itemType: core.serialization.property("item_type", ItemTypeEnum.optional()), - itemFormat: core.serialization.property("item_format", ItemFormatEnum.optional()), - itemChoices: core.serialization.property( - "item_choices", - core.serialization.list(core.serialization.string()).optional(), - ), - }); - -export declare namespace ItemSchema { - export interface Raw { - item_type?: ItemTypeEnum.Raw | null; - item_format?: ItemFormatEnum.Raw | null; - item_choices?: string[] | null; - } -} diff --git a/src/serialization/resources/crm/types/ItemTypeEnum.ts b/src/serialization/resources/crm/types/ItemTypeEnum.ts deleted file mode 100644 index 28212222e..000000000 --- a/src/serialization/resources/crm/types/ItemTypeEnum.ts +++ /dev/null @@ -1,12 +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 ItemTypeEnum: core.serialization.Schema = - core.serialization.enum_(["string", "number", "date", "datetime", "bool", "list"]); - -export declare namespace ItemTypeEnum { - export type Raw = "string" | "number" | "date" | "datetime" | "bool" | "list"; -} diff --git a/src/serialization/resources/crm/types/LanguageEnum.ts b/src/serialization/resources/crm/types/LanguageEnum.ts deleted file mode 100644 index 1044f2434..000000000 --- a/src/serialization/resources/crm/types/LanguageEnum.ts +++ /dev/null @@ -1,12 +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 LanguageEnum: core.serialization.Schema = - core.serialization.enum_(["en", "de"]); - -export declare namespace LanguageEnum { - export type Raw = "en" | "de"; -} diff --git a/src/serialization/resources/crm/types/LastSyncResultEnum.ts b/src/serialization/resources/crm/types/LastSyncResultEnum.ts deleted file mode 100644 index 1772a310a..000000000 --- a/src/serialization/resources/crm/types/LastSyncResultEnum.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 LastSyncResultEnum: core.serialization.Schema< - serializers.crm.LastSyncResultEnum.Raw, - Merge.crm.LastSyncResultEnum -> = core.serialization.enum_(["SYNCING", "DONE", "FAILED", "DISABLED", "PAUSED", "PARTIALLY_SYNCED"]); - -export declare namespace LastSyncResultEnum { - export type Raw = "SYNCING" | "DONE" | "FAILED" | "DISABLED" | "PAUSED" | "PARTIALLY_SYNCED"; -} diff --git a/src/serialization/resources/crm/types/Lead.ts b/src/serialization/resources/crm/types/Lead.ts deleted file mode 100644 index 8d01938a7..000000000 --- a/src/serialization/resources/crm/types/Lead.ts +++ /dev/null @@ -1,72 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { Address } from "./Address"; -import { EmailAddress } from "./EmailAddress"; -import { LeadConvertedAccount } from "./LeadConvertedAccount"; -import { LeadConvertedContact } from "./LeadConvertedContact"; -import { LeadOwner } from "./LeadOwner"; -import { PhoneNumber } from "./PhoneNumber"; -import { RemoteData } from "./RemoteData"; -import { RemoteField } from "./RemoteField"; - -export const Lead: core.serialization.ObjectSchema = - 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()), - owner: LeadOwner.optional(), - leadSource: core.serialization.property("lead_source", core.serialization.string().optional()), - title: core.serialization.string().optional(), - company: core.serialization.string().optional(), - firstName: core.serialization.property("first_name", core.serialization.string().optional()), - lastName: core.serialization.property("last_name", core.serialization.string().optional()), - addresses: core.serialization.list(Address).optional(), - emailAddresses: core.serialization.property( - "email_addresses", - core.serialization.list(EmailAddress).optional(), - ), - phoneNumbers: core.serialization.property("phone_numbers", core.serialization.list(PhoneNumber).optional()), - remoteUpdatedAt: core.serialization.property("remote_updated_at", core.serialization.date().optional()), - remoteCreatedAt: core.serialization.property("remote_created_at", core.serialization.date().optional()), - convertedDate: core.serialization.property("converted_date", core.serialization.date().optional()), - convertedContact: core.serialization.property("converted_contact", LeadConvertedContact.optional()), - convertedAccount: core.serialization.property("converted_account", LeadConvertedAccount.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 Lead { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - owner?: LeadOwner.Raw | null; - lead_source?: string | null; - title?: string | null; - company?: string | null; - first_name?: string | null; - last_name?: string | null; - addresses?: Address.Raw[] | null; - email_addresses?: EmailAddress.Raw[] | null; - phone_numbers?: PhoneNumber.Raw[] | null; - remote_updated_at?: string | null; - remote_created_at?: string | null; - converted_date?: string | null; - converted_contact?: LeadConvertedContact.Raw | null; - converted_account?: LeadConvertedAccount.Raw | 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/crm/types/LeadConvertedAccount.ts b/src/serialization/resources/crm/types/LeadConvertedAccount.ts deleted file mode 100644 index 3f23cbd80..000000000 --- a/src/serialization/resources/crm/types/LeadConvertedAccount.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 LeadConvertedAccount: core.serialization.Schema< - serializers.crm.LeadConvertedAccount.Raw, - Merge.crm.LeadConvertedAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace LeadConvertedAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/crm/types/LeadConvertedContact.ts b/src/serialization/resources/crm/types/LeadConvertedContact.ts deleted file mode 100644 index acaeb147f..000000000 --- a/src/serialization/resources/crm/types/LeadConvertedContact.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 { Contact } from "./Contact"; - -export const LeadConvertedContact: core.serialization.Schema< - serializers.crm.LeadConvertedContact.Raw, - Merge.crm.LeadConvertedContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace LeadConvertedContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/crm/types/LeadOwner.ts b/src/serialization/resources/crm/types/LeadOwner.ts deleted file mode 100644 index 02959fb80..000000000 --- a/src/serialization/resources/crm/types/LeadOwner.ts +++ /dev/null @@ -1,13 +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 { User } from "./User"; - -export const LeadOwner: core.serialization.Schema = - core.serialization.undiscriminatedUnion([core.serialization.string(), User]); - -export declare namespace LeadOwner { - export type Raw = string | User.Raw; -} diff --git a/src/serialization/resources/crm/types/LeadRequest.ts b/src/serialization/resources/crm/types/LeadRequest.ts deleted file mode 100644 index 5f157b538..000000000 --- a/src/serialization/resources/crm/types/LeadRequest.ts +++ /dev/null @@ -1,66 +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 { AddressRequest } from "./AddressRequest"; -import { EmailAddressRequest } from "./EmailAddressRequest"; -import { LeadRequestConvertedAccount } from "./LeadRequestConvertedAccount"; -import { LeadRequestConvertedContact } from "./LeadRequestConvertedContact"; -import { LeadRequestOwner } from "./LeadRequestOwner"; -import { PhoneNumberRequest } from "./PhoneNumberRequest"; -import { RemoteFieldRequest } from "./RemoteFieldRequest"; - -export const LeadRequest: core.serialization.ObjectSchema = - core.serialization.object({ - owner: LeadRequestOwner.optional(), - leadSource: core.serialization.property("lead_source", core.serialization.string().optional()), - title: core.serialization.string().optional(), - company: core.serialization.string().optional(), - firstName: core.serialization.property("first_name", core.serialization.string().optional()), - lastName: core.serialization.property("last_name", core.serialization.string().optional()), - addresses: core.serialization.list(AddressRequest).optional(), - emailAddresses: core.serialization.property( - "email_addresses", - core.serialization.list(EmailAddressRequest).optional(), - ), - phoneNumbers: core.serialization.property( - "phone_numbers", - core.serialization.list(PhoneNumberRequest).optional(), - ), - convertedDate: core.serialization.property("converted_date", core.serialization.date().optional()), - convertedContact: core.serialization.property("converted_contact", LeadRequestConvertedContact.optional()), - convertedAccount: core.serialization.property("converted_account", LeadRequestConvertedAccount.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 LeadRequest { - export interface Raw { - owner?: LeadRequestOwner.Raw | null; - lead_source?: string | null; - title?: string | null; - company?: string | null; - first_name?: string | null; - last_name?: string | null; - addresses?: AddressRequest.Raw[] | null; - email_addresses?: EmailAddressRequest.Raw[] | null; - phone_numbers?: PhoneNumberRequest.Raw[] | null; - converted_date?: string | null; - converted_contact?: LeadRequestConvertedContact.Raw | null; - converted_account?: LeadRequestConvertedAccount.Raw | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/LeadRequestConvertedAccount.ts b/src/serialization/resources/crm/types/LeadRequestConvertedAccount.ts deleted file mode 100644 index a47948cf3..000000000 --- a/src/serialization/resources/crm/types/LeadRequestConvertedAccount.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 LeadRequestConvertedAccount: core.serialization.Schema< - serializers.crm.LeadRequestConvertedAccount.Raw, - Merge.crm.LeadRequestConvertedAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace LeadRequestConvertedAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/crm/types/LeadRequestConvertedContact.ts b/src/serialization/resources/crm/types/LeadRequestConvertedContact.ts deleted file mode 100644 index 5a957d20c..000000000 --- a/src/serialization/resources/crm/types/LeadRequestConvertedContact.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 { Contact } from "./Contact"; - -export const LeadRequestConvertedContact: core.serialization.Schema< - serializers.crm.LeadRequestConvertedContact.Raw, - Merge.crm.LeadRequestConvertedContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace LeadRequestConvertedContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/crm/types/LeadRequestOwner.ts b/src/serialization/resources/crm/types/LeadRequestOwner.ts deleted file mode 100644 index d875a8bef..000000000 --- a/src/serialization/resources/crm/types/LeadRequestOwner.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 { User } from "./User"; - -export const LeadRequestOwner: core.serialization.Schema< - serializers.crm.LeadRequestOwner.Raw, - Merge.crm.LeadRequestOwner -> = core.serialization.undiscriminatedUnion([core.serialization.string(), User]); - -export declare namespace LeadRequestOwner { - export type Raw = string | User.Raw; -} diff --git a/src/serialization/resources/crm/types/LeadResponse.ts b/src/serialization/resources/crm/types/LeadResponse.ts deleted file mode 100644 index 92cec19c6..000000000 --- a/src/serialization/resources/crm/types/LeadResponse.ts +++ /dev/null @@ -1,26 +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 { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { Lead } from "./Lead"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const LeadResponse: core.serialization.ObjectSchema = - core.serialization.object({ - model: Lead, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), - }); - -export declare namespace LeadResponse { - export interface Raw { - model: Lead.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/LinkToken.ts b/src/serialization/resources/crm/types/LinkToken.ts deleted file mode 100644 index 2d29db092..000000000 --- a/src/serialization/resources/crm/types/LinkToken.ts +++ /dev/null @@ -1,20 +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 LinkToken: core.serialization.ObjectSchema = - core.serialization.object({ - linkToken: core.serialization.property("link_token", core.serialization.string()), - integrationName: core.serialization.property("integration_name", core.serialization.string().optional()), - magicLinkUrl: core.serialization.property("magic_link_url", core.serialization.string().optional()), - }); - -export declare namespace LinkToken { - export interface Raw { - link_token: string; - integration_name?: string | null; - magic_link_url?: string | null; - } -} diff --git a/src/serialization/resources/crm/types/LinkedAccountStatus.ts b/src/serialization/resources/crm/types/LinkedAccountStatus.ts deleted file mode 100644 index 4274b0313..000000000 --- a/src/serialization/resources/crm/types/LinkedAccountStatus.ts +++ /dev/null @@ -1,20 +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 LinkedAccountStatus: core.serialization.ObjectSchema< - serializers.crm.LinkedAccountStatus.Raw, - Merge.crm.LinkedAccountStatus -> = core.serialization.object({ - linkedAccountStatus: core.serialization.property("linked_account_status", core.serialization.string()), - canMakeRequest: core.serialization.property("can_make_request", core.serialization.boolean()), -}); - -export declare namespace LinkedAccountStatus { - export interface Raw { - linked_account_status: string; - can_make_request: boolean; - } -} diff --git a/src/serialization/resources/crm/types/MetaResponse.ts b/src/serialization/resources/crm/types/MetaResponse.ts deleted file mode 100644 index 7591c8ae8..000000000 --- a/src/serialization/resources/crm/types/MetaResponse.ts +++ /dev/null @@ -1,34 +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 { LinkedAccountStatus } from "./LinkedAccountStatus"; - -export const MetaResponse: core.serialization.ObjectSchema = - core.serialization.object({ - requestSchema: core.serialization.property( - "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(), - ), - }); - -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; - } -} diff --git a/src/serialization/resources/crm/types/MethodEnum.ts b/src/serialization/resources/crm/types/MethodEnum.ts deleted file mode 100644 index 158107611..000000000 --- a/src/serialization/resources/crm/types/MethodEnum.ts +++ /dev/null @@ -1,12 +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 MethodEnum: core.serialization.Schema = - core.serialization.enum_(["GET", "OPTIONS", "HEAD", "POST", "PUT", "PATCH", "DELETE"]); - -export declare namespace MethodEnum { - export type Raw = "GET" | "OPTIONS" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE"; -} diff --git a/src/serialization/resources/crm/types/ModelOperation.ts b/src/serialization/resources/crm/types/ModelOperation.ts deleted file mode 100644 index 1e3d81dce..000000000 --- a/src/serialization/resources/crm/types/ModelOperation.ts +++ /dev/null @@ -1,33 +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 ModelOperation: core.serialization.ObjectSchema< - serializers.crm.ModelOperation.Raw, - Merge.crm.ModelOperation -> = core.serialization.object({ - modelName: core.serialization.property("model_name", core.serialization.string()), - availableOperations: core.serialization.property( - "available_operations", - core.serialization.list(core.serialization.string()), - ), - requiredPostParameters: core.serialization.property( - "required_post_parameters", - core.serialization.list(core.serialization.string()), - ), - supportedFields: core.serialization.property( - "supported_fields", - core.serialization.list(core.serialization.string()), - ), -}); - -export declare namespace ModelOperation { - export interface Raw { - model_name: string; - available_operations: string[]; - required_post_parameters: string[]; - supported_fields: string[]; - } -} diff --git a/src/serialization/resources/crm/types/ModelPermissionDeserializer.ts b/src/serialization/resources/crm/types/ModelPermissionDeserializer.ts deleted file mode 100644 index f97ad003f..000000000 --- a/src/serialization/resources/crm/types/ModelPermissionDeserializer.ts +++ /dev/null @@ -1,18 +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 ModelPermissionDeserializer: core.serialization.ObjectSchema< - serializers.crm.ModelPermissionDeserializer.Raw, - Merge.crm.ModelPermissionDeserializer -> = core.serialization.object({ - isEnabled: core.serialization.property("is_enabled", core.serialization.boolean().optional()), -}); - -export declare namespace ModelPermissionDeserializer { - export interface Raw { - is_enabled?: boolean | null; - } -} diff --git a/src/serialization/resources/crm/types/ModelPermissionDeserializerRequest.ts b/src/serialization/resources/crm/types/ModelPermissionDeserializerRequest.ts deleted file mode 100644 index d417e6ee5..000000000 --- a/src/serialization/resources/crm/types/ModelPermissionDeserializerRequest.ts +++ /dev/null @@ -1,18 +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 ModelPermissionDeserializerRequest: core.serialization.ObjectSchema< - serializers.crm.ModelPermissionDeserializerRequest.Raw, - Merge.crm.ModelPermissionDeserializerRequest -> = core.serialization.object({ - isEnabled: core.serialization.property("is_enabled", core.serialization.boolean().optional()), -}); - -export declare namespace ModelPermissionDeserializerRequest { - export interface Raw { - is_enabled?: boolean | null; - } -} diff --git a/src/serialization/resources/crm/types/MultipartFormFieldRequest.ts b/src/serialization/resources/crm/types/MultipartFormFieldRequest.ts deleted file mode 100644 index 8b9ed8367..000000000 --- a/src/serialization/resources/crm/types/MultipartFormFieldRequest.ts +++ /dev/null @@ -1,27 +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 { MultipartFormFieldRequestEncoding } from "./MultipartFormFieldRequestEncoding"; - -export const MultipartFormFieldRequest: core.serialization.ObjectSchema< - serializers.crm.MultipartFormFieldRequest.Raw, - Merge.crm.MultipartFormFieldRequest -> = core.serialization.object({ - name: core.serialization.string(), - data: core.serialization.string(), - encoding: MultipartFormFieldRequestEncoding.optional(), - fileName: core.serialization.property("file_name", core.serialization.string().optional()), - contentType: core.serialization.property("content_type", core.serialization.string().optional()), -}); - -export declare namespace MultipartFormFieldRequest { - export interface Raw { - name: string; - data: string; - encoding?: MultipartFormFieldRequestEncoding.Raw | null; - file_name?: string | null; - content_type?: string | null; - } -} diff --git a/src/serialization/resources/crm/types/MultipartFormFieldRequestEncoding.ts b/src/serialization/resources/crm/types/MultipartFormFieldRequestEncoding.ts deleted file mode 100644 index cb5e2ea48..000000000 --- a/src/serialization/resources/crm/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.crm.MultipartFormFieldRequestEncoding.Raw, - Merge.crm.MultipartFormFieldRequestEncoding -> = core.serialization.undiscriminatedUnion([EncodingEnum, core.serialization.string()]); - -export declare namespace MultipartFormFieldRequestEncoding { - export type Raw = EncodingEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/Note.ts b/src/serialization/resources/crm/types/Note.ts deleted file mode 100644 index 5aab0e151..000000000 --- a/src/serialization/resources/crm/types/Note.ts +++ /dev/null @@ -1,53 +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 { NoteAccount } from "./NoteAccount"; -import { NoteContact } from "./NoteContact"; -import { NoteOpportunity } from "./NoteOpportunity"; -import { NoteOwner } from "./NoteOwner"; -import { RemoteData } from "./RemoteData"; -import { RemoteField } from "./RemoteField"; - -export const Note: core.serialization.ObjectSchema = - 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()), - owner: NoteOwner.optional(), - content: core.serialization.string().optional(), - contact: NoteContact.optional(), - account: NoteAccount.optional(), - opportunity: NoteOpportunity.optional(), - remoteUpdatedAt: core.serialization.property("remote_updated_at", core.serialization.date().optional()), - remoteCreatedAt: core.serialization.property("remote_created_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 Note { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - owner?: NoteOwner.Raw | null; - content?: string | null; - contact?: NoteContact.Raw | null; - account?: NoteAccount.Raw | null; - opportunity?: NoteOpportunity.Raw | null; - remote_updated_at?: string | null; - remote_created_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/crm/types/NoteAccount.ts b/src/serialization/resources/crm/types/NoteAccount.ts deleted file mode 100644 index 3f6f4806f..000000000 --- a/src/serialization/resources/crm/types/NoteAccount.ts +++ /dev/null @@ -1,13 +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 NoteAccount: core.serialization.Schema = - core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace NoteAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/crm/types/NoteContact.ts b/src/serialization/resources/crm/types/NoteContact.ts deleted file mode 100644 index e6b3448a0..000000000 --- a/src/serialization/resources/crm/types/NoteContact.ts +++ /dev/null @@ -1,13 +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 { Contact } from "./Contact"; - -export const NoteContact: core.serialization.Schema = - core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace NoteContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/crm/types/NoteOpportunity.ts b/src/serialization/resources/crm/types/NoteOpportunity.ts deleted file mode 100644 index d47b7cd2b..000000000 --- a/src/serialization/resources/crm/types/NoteOpportunity.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 { Opportunity } from "./Opportunity"; - -export const NoteOpportunity: core.serialization.Schema< - serializers.crm.NoteOpportunity.Raw, - Merge.crm.NoteOpportunity -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Opportunity]); - -export declare namespace NoteOpportunity { - export type Raw = string | Opportunity.Raw; -} diff --git a/src/serialization/resources/crm/types/NoteOwner.ts b/src/serialization/resources/crm/types/NoteOwner.ts deleted file mode 100644 index 34357bdbb..000000000 --- a/src/serialization/resources/crm/types/NoteOwner.ts +++ /dev/null @@ -1,13 +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 { User } from "./User"; - -export const NoteOwner: core.serialization.Schema = - core.serialization.undiscriminatedUnion([core.serialization.string(), User]); - -export declare namespace NoteOwner { - export type Raw = string | User.Raw; -} diff --git a/src/serialization/resources/crm/types/NoteRequest.ts b/src/serialization/resources/crm/types/NoteRequest.ts deleted file mode 100644 index 514e13bc6..000000000 --- a/src/serialization/resources/crm/types/NoteRequest.ts +++ /dev/null @@ -1,44 +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 { NoteRequestAccount } from "./NoteRequestAccount"; -import { NoteRequestContact } from "./NoteRequestContact"; -import { NoteRequestOpportunity } from "./NoteRequestOpportunity"; -import { NoteRequestOwner } from "./NoteRequestOwner"; -import { RemoteFieldRequest } from "./RemoteFieldRequest"; - -export const NoteRequest: core.serialization.ObjectSchema = - core.serialization.object({ - owner: NoteRequestOwner.optional(), - content: core.serialization.string().optional(), - contact: NoteRequestContact.optional(), - account: NoteRequestAccount.optional(), - opportunity: NoteRequestOpportunity.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 NoteRequest { - export interface Raw { - owner?: NoteRequestOwner.Raw | null; - content?: string | null; - contact?: NoteRequestContact.Raw | null; - account?: NoteRequestAccount.Raw | null; - opportunity?: NoteRequestOpportunity.Raw | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/NoteRequestAccount.ts b/src/serialization/resources/crm/types/NoteRequestAccount.ts deleted file mode 100644 index dc0917fe3..000000000 --- a/src/serialization/resources/crm/types/NoteRequestAccount.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 NoteRequestAccount: core.serialization.Schema< - serializers.crm.NoteRequestAccount.Raw, - Merge.crm.NoteRequestAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace NoteRequestAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/crm/types/NoteRequestContact.ts b/src/serialization/resources/crm/types/NoteRequestContact.ts deleted file mode 100644 index 023f8d3cd..000000000 --- a/src/serialization/resources/crm/types/NoteRequestContact.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 { Contact } from "./Contact"; - -export const NoteRequestContact: core.serialization.Schema< - serializers.crm.NoteRequestContact.Raw, - Merge.crm.NoteRequestContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace NoteRequestContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/crm/types/NoteRequestOpportunity.ts b/src/serialization/resources/crm/types/NoteRequestOpportunity.ts deleted file mode 100644 index b88d491d1..000000000 --- a/src/serialization/resources/crm/types/NoteRequestOpportunity.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 { Opportunity } from "./Opportunity"; - -export const NoteRequestOpportunity: core.serialization.Schema< - serializers.crm.NoteRequestOpportunity.Raw, - Merge.crm.NoteRequestOpportunity -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Opportunity]); - -export declare namespace NoteRequestOpportunity { - export type Raw = string | Opportunity.Raw; -} diff --git a/src/serialization/resources/crm/types/NoteRequestOwner.ts b/src/serialization/resources/crm/types/NoteRequestOwner.ts deleted file mode 100644 index d117f9321..000000000 --- a/src/serialization/resources/crm/types/NoteRequestOwner.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 { User } from "./User"; - -export const NoteRequestOwner: core.serialization.Schema< - serializers.crm.NoteRequestOwner.Raw, - Merge.crm.NoteRequestOwner -> = core.serialization.undiscriminatedUnion([core.serialization.string(), User]); - -export declare namespace NoteRequestOwner { - export type Raw = string | User.Raw; -} diff --git a/src/serialization/resources/crm/types/NoteResponse.ts b/src/serialization/resources/crm/types/NoteResponse.ts deleted file mode 100644 index 26918e358..000000000 --- a/src/serialization/resources/crm/types/NoteResponse.ts +++ /dev/null @@ -1,26 +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 { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { Note } from "./Note"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const NoteResponse: core.serialization.ObjectSchema = - core.serialization.object({ - model: Note, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), - }); - -export declare namespace NoteResponse { - export interface Raw { - model: Note.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/ObjectClassDescriptionRequest.ts b/src/serialization/resources/crm/types/ObjectClassDescriptionRequest.ts deleted file mode 100644 index 11760aec4..000000000 --- a/src/serialization/resources/crm/types/ObjectClassDescriptionRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { OriginTypeEnum } from "./OriginTypeEnum"; - -export const ObjectClassDescriptionRequest: core.serialization.ObjectSchema< - serializers.crm.ObjectClassDescriptionRequest.Raw, - Merge.crm.ObjectClassDescriptionRequest -> = core.serialization.object({ - id: core.serialization.string(), - originType: core.serialization.property("origin_type", OriginTypeEnum), -}); - -export declare namespace ObjectClassDescriptionRequest { - export interface Raw { - id: string; - origin_type: OriginTypeEnum.Raw; - } -} diff --git a/src/serialization/resources/crm/types/Opportunity.ts b/src/serialization/resources/crm/types/Opportunity.ts deleted file mode 100644 index 40930f8a3..000000000 --- a/src/serialization/resources/crm/types/Opportunity.ts +++ /dev/null @@ -1,59 +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 { OpportunityAccount } from "./OpportunityAccount"; -import { OpportunityOwner } from "./OpportunityOwner"; -import { OpportunityStage } from "./OpportunityStage"; -import { OpportunityStatus } from "./OpportunityStatus"; -import { RemoteData } from "./RemoteData"; -import { RemoteField } from "./RemoteField"; - -export const Opportunity: core.serialization.ObjectSchema = - 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()), - name: core.serialization.string().optional(), - description: core.serialization.string().optional(), - amount: core.serialization.number().optional(), - owner: OpportunityOwner.optional(), - account: OpportunityAccount.optional(), - stage: OpportunityStage.optional(), - status: OpportunityStatus.optional(), - lastActivityAt: core.serialization.property("last_activity_at", core.serialization.date().optional()), - closeDate: core.serialization.property("close_date", core.serialization.date().optional()), - remoteCreatedAt: core.serialization.property("remote_created_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 Opportunity { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - description?: string | null; - amount?: number | null; - owner?: OpportunityOwner.Raw | null; - account?: OpportunityAccount.Raw | null; - stage?: OpportunityStage.Raw | null; - status?: OpportunityStatus.Raw | null; - last_activity_at?: string | null; - close_date?: string | null; - remote_created_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/crm/types/OpportunityAccount.ts b/src/serialization/resources/crm/types/OpportunityAccount.ts deleted file mode 100644 index 863dcdaa3..000000000 --- a/src/serialization/resources/crm/types/OpportunityAccount.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 OpportunityAccount: core.serialization.Schema< - serializers.crm.OpportunityAccount.Raw, - Merge.crm.OpportunityAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace OpportunityAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/crm/types/OpportunityOwner.ts b/src/serialization/resources/crm/types/OpportunityOwner.ts deleted file mode 100644 index 745a39326..000000000 --- a/src/serialization/resources/crm/types/OpportunityOwner.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 { User } from "./User"; - -export const OpportunityOwner: core.serialization.Schema< - serializers.crm.OpportunityOwner.Raw, - Merge.crm.OpportunityOwner -> = core.serialization.undiscriminatedUnion([core.serialization.string(), User]); - -export declare namespace OpportunityOwner { - export type Raw = string | User.Raw; -} diff --git a/src/serialization/resources/crm/types/OpportunityRequest.ts b/src/serialization/resources/crm/types/OpportunityRequest.ts deleted file mode 100644 index 0f00e5146..000000000 --- a/src/serialization/resources/crm/types/OpportunityRequest.ts +++ /dev/null @@ -1,51 +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 { OpportunityRequestAccount } from "./OpportunityRequestAccount"; -import { OpportunityRequestOwner } from "./OpportunityRequestOwner"; -import { OpportunityRequestStage } from "./OpportunityRequestStage"; -import { OpportunityRequestStatus } from "./OpportunityRequestStatus"; -import { RemoteFieldRequest } from "./RemoteFieldRequest"; - -export const OpportunityRequest: core.serialization.ObjectSchema< - serializers.crm.OpportunityRequest.Raw, - Merge.crm.OpportunityRequest -> = core.serialization.object({ - name: core.serialization.string().optional(), - description: core.serialization.string().optional(), - amount: core.serialization.number().optional(), - owner: OpportunityRequestOwner.optional(), - account: OpportunityRequestAccount.optional(), - stage: OpportunityRequestStage.optional(), - status: OpportunityRequestStatus.optional(), - lastActivityAt: core.serialization.property("last_activity_at", core.serialization.date().optional()), - closeDate: core.serialization.property("close_date", 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 OpportunityRequest { - export interface Raw { - name?: string | null; - description?: string | null; - amount?: number | null; - owner?: OpportunityRequestOwner.Raw | null; - account?: OpportunityRequestAccount.Raw | null; - stage?: OpportunityRequestStage.Raw | null; - status?: OpportunityRequestStatus.Raw | null; - last_activity_at?: string | null; - close_date?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/OpportunityRequestAccount.ts b/src/serialization/resources/crm/types/OpportunityRequestAccount.ts deleted file mode 100644 index 5d9fdd65b..000000000 --- a/src/serialization/resources/crm/types/OpportunityRequestAccount.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 OpportunityRequestAccount: core.serialization.Schema< - serializers.crm.OpportunityRequestAccount.Raw, - Merge.crm.OpportunityRequestAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace OpportunityRequestAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/crm/types/OpportunityRequestOwner.ts b/src/serialization/resources/crm/types/OpportunityRequestOwner.ts deleted file mode 100644 index 6e20db2c6..000000000 --- a/src/serialization/resources/crm/types/OpportunityRequestOwner.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 { User } from "./User"; - -export const OpportunityRequestOwner: core.serialization.Schema< - serializers.crm.OpportunityRequestOwner.Raw, - Merge.crm.OpportunityRequestOwner -> = core.serialization.undiscriminatedUnion([core.serialization.string(), User]); - -export declare namespace OpportunityRequestOwner { - export type Raw = string | User.Raw; -} diff --git a/src/serialization/resources/crm/types/OpportunityRequestStage.ts b/src/serialization/resources/crm/types/OpportunityRequestStage.ts deleted file mode 100644 index b5fb48c33..000000000 --- a/src/serialization/resources/crm/types/OpportunityRequestStage.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 { Stage } from "./Stage"; - -export const OpportunityRequestStage: core.serialization.Schema< - serializers.crm.OpportunityRequestStage.Raw, - Merge.crm.OpportunityRequestStage -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Stage]); - -export declare namespace OpportunityRequestStage { - export type Raw = string | Stage.Raw; -} diff --git a/src/serialization/resources/crm/types/OpportunityRequestStatus.ts b/src/serialization/resources/crm/types/OpportunityRequestStatus.ts deleted file mode 100644 index ffee65b3c..000000000 --- a/src/serialization/resources/crm/types/OpportunityRequestStatus.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 { OpportunityStatusEnum } from "./OpportunityStatusEnum"; - -export const OpportunityRequestStatus: core.serialization.Schema< - serializers.crm.OpportunityRequestStatus.Raw, - Merge.crm.OpportunityRequestStatus -> = core.serialization.undiscriminatedUnion([OpportunityStatusEnum, core.serialization.string()]); - -export declare namespace OpportunityRequestStatus { - export type Raw = OpportunityStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/OpportunityResponse.ts b/src/serialization/resources/crm/types/OpportunityResponse.ts deleted file mode 100644 index 8be4081be..000000000 --- a/src/serialization/resources/crm/types/OpportunityResponse.ts +++ /dev/null @@ -1,28 +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 { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { Opportunity } from "./Opportunity"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const OpportunityResponse: core.serialization.ObjectSchema< - serializers.crm.OpportunityResponse.Raw, - Merge.crm.OpportunityResponse -> = core.serialization.object({ - model: Opportunity, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace OpportunityResponse { - export interface Raw { - model: Opportunity.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/OpportunityStage.ts b/src/serialization/resources/crm/types/OpportunityStage.ts deleted file mode 100644 index bad791591..000000000 --- a/src/serialization/resources/crm/types/OpportunityStage.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 { Stage } from "./Stage"; - -export const OpportunityStage: core.serialization.Schema< - serializers.crm.OpportunityStage.Raw, - Merge.crm.OpportunityStage -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Stage]); - -export declare namespace OpportunityStage { - export type Raw = string | Stage.Raw; -} diff --git a/src/serialization/resources/crm/types/OpportunityStatus.ts b/src/serialization/resources/crm/types/OpportunityStatus.ts deleted file mode 100644 index 90e81cf17..000000000 --- a/src/serialization/resources/crm/types/OpportunityStatus.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 { OpportunityStatusEnum } from "./OpportunityStatusEnum"; - -export const OpportunityStatus: core.serialization.Schema< - serializers.crm.OpportunityStatus.Raw, - Merge.crm.OpportunityStatus -> = core.serialization.undiscriminatedUnion([OpportunityStatusEnum, core.serialization.string()]); - -export declare namespace OpportunityStatus { - export type Raw = OpportunityStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/OpportunityStatusEnum.ts b/src/serialization/resources/crm/types/OpportunityStatusEnum.ts deleted file mode 100644 index 3366cf417..000000000 --- a/src/serialization/resources/crm/types/OpportunityStatusEnum.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 OpportunityStatusEnum: core.serialization.Schema< - serializers.crm.OpportunityStatusEnum.Raw, - Merge.crm.OpportunityStatusEnum -> = core.serialization.enum_(["OPEN", "WON", "LOST"]); - -export declare namespace OpportunityStatusEnum { - export type Raw = "OPEN" | "WON" | "LOST"; -} diff --git a/src/serialization/resources/crm/types/OriginTypeEnum.ts b/src/serialization/resources/crm/types/OriginTypeEnum.ts deleted file mode 100644 index d542795c1..000000000 --- a/src/serialization/resources/crm/types/OriginTypeEnum.ts +++ /dev/null @@ -1,12 +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 OriginTypeEnum: core.serialization.Schema = - core.serialization.enum_(["CUSTOM_OBJECT", "COMMON_MODEL", "REMOTE_ONLY_MODEL"]); - -export declare namespace OriginTypeEnum { - export type Raw = "CUSTOM_OBJECT" | "COMMON_MODEL" | "REMOTE_ONLY_MODEL"; -} diff --git a/src/serialization/resources/crm/types/PaginatedAccountDetailsAndActionsList.ts b/src/serialization/resources/crm/types/PaginatedAccountDetailsAndActionsList.ts deleted file mode 100644 index 83ef9738b..000000000 --- a/src/serialization/resources/crm/types/PaginatedAccountDetailsAndActionsList.ts +++ /dev/null @@ -1,23 +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 { AccountDetailsAndActions } from "./AccountDetailsAndActions"; - -export const PaginatedAccountDetailsAndActionsList: core.serialization.ObjectSchema< - serializers.crm.PaginatedAccountDetailsAndActionsList.Raw, - Merge.crm.PaginatedAccountDetailsAndActionsList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(AccountDetailsAndActions).optional(), -}); - -export declare namespace PaginatedAccountDetailsAndActionsList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: AccountDetailsAndActions.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/PaginatedAccountList.ts b/src/serialization/resources/crm/types/PaginatedAccountList.ts deleted file mode 100644 index 277aec69a..000000000 --- a/src/serialization/resources/crm/types/PaginatedAccountList.ts +++ /dev/null @@ -1,23 +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 PaginatedAccountList: core.serialization.ObjectSchema< - serializers.crm.PaginatedAccountList.Raw, - Merge.crm.PaginatedAccountList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Account).optional(), -}); - -export declare namespace PaginatedAccountList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Account.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/PaginatedAssociationList.ts b/src/serialization/resources/crm/types/PaginatedAssociationList.ts deleted file mode 100644 index 7376ea672..000000000 --- a/src/serialization/resources/crm/types/PaginatedAssociationList.ts +++ /dev/null @@ -1,23 +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 { Association } from "./Association"; - -export const PaginatedAssociationList: core.serialization.ObjectSchema< - serializers.crm.PaginatedAssociationList.Raw, - Merge.crm.PaginatedAssociationList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Association).optional(), -}); - -export declare namespace PaginatedAssociationList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Association.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/PaginatedAssociationTypeList.ts b/src/serialization/resources/crm/types/PaginatedAssociationTypeList.ts deleted file mode 100644 index 260ede3e3..000000000 --- a/src/serialization/resources/crm/types/PaginatedAssociationTypeList.ts +++ /dev/null @@ -1,23 +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 { AssociationType } from "./AssociationType"; - -export const PaginatedAssociationTypeList: core.serialization.ObjectSchema< - serializers.crm.PaginatedAssociationTypeList.Raw, - Merge.crm.PaginatedAssociationTypeList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(AssociationType).optional(), -}); - -export declare namespace PaginatedAssociationTypeList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: AssociationType.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/PaginatedAuditLogEventList.ts b/src/serialization/resources/crm/types/PaginatedAuditLogEventList.ts deleted file mode 100644 index ff715325b..000000000 --- a/src/serialization/resources/crm/types/PaginatedAuditLogEventList.ts +++ /dev/null @@ -1,23 +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 { AuditLogEvent } from "./AuditLogEvent"; - -export const PaginatedAuditLogEventList: core.serialization.ObjectSchema< - serializers.crm.PaginatedAuditLogEventList.Raw, - Merge.crm.PaginatedAuditLogEventList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(AuditLogEvent).optional(), -}); - -export declare namespace PaginatedAuditLogEventList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: AuditLogEvent.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/PaginatedContactList.ts b/src/serialization/resources/crm/types/PaginatedContactList.ts deleted file mode 100644 index aaeccb0d1..000000000 --- a/src/serialization/resources/crm/types/PaginatedContactList.ts +++ /dev/null @@ -1,23 +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 { Contact } from "./Contact"; - -export const PaginatedContactList: core.serialization.ObjectSchema< - serializers.crm.PaginatedContactList.Raw, - Merge.crm.PaginatedContactList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Contact).optional(), -}); - -export declare namespace PaginatedContactList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Contact.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/PaginatedCustomObjectClassList.ts b/src/serialization/resources/crm/types/PaginatedCustomObjectClassList.ts deleted file mode 100644 index dc7abd29a..000000000 --- a/src/serialization/resources/crm/types/PaginatedCustomObjectClassList.ts +++ /dev/null @@ -1,23 +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 { CustomObjectClass } from "./CustomObjectClass"; - -export const PaginatedCustomObjectClassList: core.serialization.ObjectSchema< - serializers.crm.PaginatedCustomObjectClassList.Raw, - Merge.crm.PaginatedCustomObjectClassList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(CustomObjectClass).optional(), -}); - -export declare namespace PaginatedCustomObjectClassList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: CustomObjectClass.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/PaginatedCustomObjectList.ts b/src/serialization/resources/crm/types/PaginatedCustomObjectList.ts deleted file mode 100644 index f29398285..000000000 --- a/src/serialization/resources/crm/types/PaginatedCustomObjectList.ts +++ /dev/null @@ -1,23 +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 { CustomObject } from "./CustomObject"; - -export const PaginatedCustomObjectList: core.serialization.ObjectSchema< - serializers.crm.PaginatedCustomObjectList.Raw, - Merge.crm.PaginatedCustomObjectList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(CustomObject).optional(), -}); - -export declare namespace PaginatedCustomObjectList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: CustomObject.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/PaginatedEngagementList.ts b/src/serialization/resources/crm/types/PaginatedEngagementList.ts deleted file mode 100644 index ff7d16734..000000000 --- a/src/serialization/resources/crm/types/PaginatedEngagementList.ts +++ /dev/null @@ -1,23 +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 { Engagement } from "./Engagement"; - -export const PaginatedEngagementList: core.serialization.ObjectSchema< - serializers.crm.PaginatedEngagementList.Raw, - Merge.crm.PaginatedEngagementList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Engagement).optional(), -}); - -export declare namespace PaginatedEngagementList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Engagement.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/PaginatedEngagementTypeList.ts b/src/serialization/resources/crm/types/PaginatedEngagementTypeList.ts deleted file mode 100644 index 604525b8d..000000000 --- a/src/serialization/resources/crm/types/PaginatedEngagementTypeList.ts +++ /dev/null @@ -1,23 +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 { EngagementType } from "./EngagementType"; - -export const PaginatedEngagementTypeList: core.serialization.ObjectSchema< - serializers.crm.PaginatedEngagementTypeList.Raw, - Merge.crm.PaginatedEngagementTypeList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(EngagementType).optional(), -}); - -export declare namespace PaginatedEngagementTypeList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: EngagementType.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/PaginatedIssueList.ts b/src/serialization/resources/crm/types/PaginatedIssueList.ts deleted file mode 100644 index fd327d6d5..000000000 --- a/src/serialization/resources/crm/types/PaginatedIssueList.ts +++ /dev/null @@ -1,23 +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 { Issue } from "./Issue"; - -export const PaginatedIssueList: core.serialization.ObjectSchema< - serializers.crm.PaginatedIssueList.Raw, - Merge.crm.PaginatedIssueList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Issue).optional(), -}); - -export declare namespace PaginatedIssueList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Issue.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/PaginatedLeadList.ts b/src/serialization/resources/crm/types/PaginatedLeadList.ts deleted file mode 100644 index 38b00a088..000000000 --- a/src/serialization/resources/crm/types/PaginatedLeadList.ts +++ /dev/null @@ -1,23 +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 { Lead } from "./Lead"; - -export const PaginatedLeadList: core.serialization.ObjectSchema< - serializers.crm.PaginatedLeadList.Raw, - Merge.crm.PaginatedLeadList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Lead).optional(), -}); - -export declare namespace PaginatedLeadList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Lead.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/PaginatedNoteList.ts b/src/serialization/resources/crm/types/PaginatedNoteList.ts deleted file mode 100644 index 3c2534c7d..000000000 --- a/src/serialization/resources/crm/types/PaginatedNoteList.ts +++ /dev/null @@ -1,23 +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 { Note } from "./Note"; - -export const PaginatedNoteList: core.serialization.ObjectSchema< - serializers.crm.PaginatedNoteList.Raw, - Merge.crm.PaginatedNoteList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Note).optional(), -}); - -export declare namespace PaginatedNoteList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Note.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/PaginatedOpportunityList.ts b/src/serialization/resources/crm/types/PaginatedOpportunityList.ts deleted file mode 100644 index 43d6b6885..000000000 --- a/src/serialization/resources/crm/types/PaginatedOpportunityList.ts +++ /dev/null @@ -1,23 +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 { Opportunity } from "./Opportunity"; - -export const PaginatedOpportunityList: core.serialization.ObjectSchema< - serializers.crm.PaginatedOpportunityList.Raw, - Merge.crm.PaginatedOpportunityList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Opportunity).optional(), -}); - -export declare namespace PaginatedOpportunityList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Opportunity.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/PaginatedRemoteFieldClassList.ts b/src/serialization/resources/crm/types/PaginatedRemoteFieldClassList.ts deleted file mode 100644 index 4d6d197fd..000000000 --- a/src/serialization/resources/crm/types/PaginatedRemoteFieldClassList.ts +++ /dev/null @@ -1,23 +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 PaginatedRemoteFieldClassList: core.serialization.ObjectSchema< - serializers.crm.PaginatedRemoteFieldClassList.Raw, - Merge.crm.PaginatedRemoteFieldClassList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(RemoteFieldClass).optional(), -}); - -export declare namespace PaginatedRemoteFieldClassList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: RemoteFieldClass.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/PaginatedStageList.ts b/src/serialization/resources/crm/types/PaginatedStageList.ts deleted file mode 100644 index 1ad325fec..000000000 --- a/src/serialization/resources/crm/types/PaginatedStageList.ts +++ /dev/null @@ -1,23 +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 { Stage } from "./Stage"; - -export const PaginatedStageList: core.serialization.ObjectSchema< - serializers.crm.PaginatedStageList.Raw, - Merge.crm.PaginatedStageList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Stage).optional(), -}); - -export declare namespace PaginatedStageList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Stage.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/PaginatedSyncStatusList.ts b/src/serialization/resources/crm/types/PaginatedSyncStatusList.ts deleted file mode 100644 index 8adf9f224..000000000 --- a/src/serialization/resources/crm/types/PaginatedSyncStatusList.ts +++ /dev/null @@ -1,23 +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 { SyncStatus } from "./SyncStatus"; - -export const PaginatedSyncStatusList: core.serialization.ObjectSchema< - serializers.crm.PaginatedSyncStatusList.Raw, - Merge.crm.PaginatedSyncStatusList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(SyncStatus).optional(), -}); - -export declare namespace PaginatedSyncStatusList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: SyncStatus.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/PaginatedTaskList.ts b/src/serialization/resources/crm/types/PaginatedTaskList.ts deleted file mode 100644 index 3b44e7331..000000000 --- a/src/serialization/resources/crm/types/PaginatedTaskList.ts +++ /dev/null @@ -1,23 +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 { Task } from "./Task"; - -export const PaginatedTaskList: core.serialization.ObjectSchema< - serializers.crm.PaginatedTaskList.Raw, - Merge.crm.PaginatedTaskList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Task).optional(), -}); - -export declare namespace PaginatedTaskList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Task.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/PaginatedUserList.ts b/src/serialization/resources/crm/types/PaginatedUserList.ts deleted file mode 100644 index 6a3ddb9d8..000000000 --- a/src/serialization/resources/crm/types/PaginatedUserList.ts +++ /dev/null @@ -1,23 +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 { User } from "./User"; - -export const PaginatedUserList: core.serialization.ObjectSchema< - serializers.crm.PaginatedUserList.Raw, - Merge.crm.PaginatedUserList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(User).optional(), -}); - -export declare namespace PaginatedUserList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: User.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/PatchedAccountRequest.ts b/src/serialization/resources/crm/types/PatchedAccountRequest.ts deleted file mode 100644 index 873664ce4..000000000 --- a/src/serialization/resources/crm/types/PatchedAccountRequest.ts +++ /dev/null @@ -1,46 +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 { AddressRequest } from "./AddressRequest"; -import { RemoteFieldRequest } from "./RemoteFieldRequest"; - -export const PatchedAccountRequest: core.serialization.ObjectSchema< - serializers.crm.PatchedAccountRequest.Raw, - Merge.crm.PatchedAccountRequest -> = core.serialization.object({ - owner: core.serialization.string().optional(), - name: core.serialization.string().optional(), - description: core.serialization.string().optional(), - industry: core.serialization.string().optional(), - website: core.serialization.string().optional(), - numberOfEmployees: core.serialization.property("number_of_employees", core.serialization.number().optional()), - addresses: core.serialization.list(AddressRequest).optional(), - lastActivityAt: core.serialization.property("last_activity_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 PatchedAccountRequest { - export interface Raw { - owner?: string | null; - name?: string | null; - description?: string | null; - industry?: string | null; - website?: string | null; - number_of_employees?: number | null; - addresses?: AddressRequest.Raw[] | null; - last_activity_at?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/PatchedContactRequest.ts b/src/serialization/resources/crm/types/PatchedContactRequest.ts deleted file mode 100644 index f39c8fed1..000000000 --- a/src/serialization/resources/crm/types/PatchedContactRequest.ts +++ /dev/null @@ -1,52 +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 { AddressRequest } from "./AddressRequest"; -import { EmailAddressRequest } from "./EmailAddressRequest"; -import { PatchedContactRequestOwner } from "./PatchedContactRequestOwner"; -import { PhoneNumberRequest } from "./PhoneNumberRequest"; -import { RemoteFieldRequest } from "./RemoteFieldRequest"; - -export const PatchedContactRequest: core.serialization.ObjectSchema< - serializers.crm.PatchedContactRequest.Raw, - Merge.crm.PatchedContactRequest -> = core.serialization.object({ - firstName: core.serialization.property("first_name", core.serialization.string().optional()), - lastName: core.serialization.property("last_name", core.serialization.string().optional()), - account: core.serialization.string().optional(), - owner: PatchedContactRequestOwner.optional(), - addresses: core.serialization.list(AddressRequest).optional(), - emailAddresses: core.serialization.property( - "email_addresses", - core.serialization.list(EmailAddressRequest).optional(), - ), - phoneNumbers: core.serialization.property("phone_numbers", core.serialization.list(PhoneNumberRequest).optional()), - lastActivityAt: core.serialization.property("last_activity_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 PatchedContactRequest { - export interface Raw { - first_name?: string | null; - last_name?: string | null; - account?: string | null; - owner?: PatchedContactRequestOwner.Raw | null; - addresses?: AddressRequest.Raw[] | null; - email_addresses?: EmailAddressRequest.Raw[] | null; - phone_numbers?: PhoneNumberRequest.Raw[] | null; - last_activity_at?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/PatchedContactRequestOwner.ts b/src/serialization/resources/crm/types/PatchedContactRequestOwner.ts deleted file mode 100644 index ee7f34b24..000000000 --- a/src/serialization/resources/crm/types/PatchedContactRequestOwner.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 { User } from "./User"; - -export const PatchedContactRequestOwner: core.serialization.Schema< - serializers.crm.PatchedContactRequestOwner.Raw, - Merge.crm.PatchedContactRequestOwner -> = core.serialization.undiscriminatedUnion([core.serialization.string(), User]); - -export declare namespace PatchedContactRequestOwner { - export type Raw = string | User.Raw; -} diff --git a/src/serialization/resources/crm/types/PatchedEngagementRequest.ts b/src/serialization/resources/crm/types/PatchedEngagementRequest.ts deleted file mode 100644 index 2ef7a64c9..000000000 --- a/src/serialization/resources/crm/types/PatchedEngagementRequest.ts +++ /dev/null @@ -1,48 +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 { PatchedEngagementRequestDirection } from "./PatchedEngagementRequestDirection"; -import { RemoteFieldRequest } from "./RemoteFieldRequest"; - -export const PatchedEngagementRequest: core.serialization.ObjectSchema< - serializers.crm.PatchedEngagementRequest.Raw, - Merge.crm.PatchedEngagementRequest -> = core.serialization.object({ - owner: core.serialization.string().optional(), - content: core.serialization.string().optional(), - subject: core.serialization.string().optional(), - direction: PatchedEngagementRequestDirection.optional(), - engagementType: core.serialization.property("engagement_type", core.serialization.string().optional()), - startTime: core.serialization.property("start_time", core.serialization.date().optional()), - endTime: core.serialization.property("end_time", core.serialization.date().optional()), - account: core.serialization.string().optional(), - contacts: 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(), - ), - remoteFields: core.serialization.property("remote_fields", core.serialization.list(RemoteFieldRequest).optional()), -}); - -export declare namespace PatchedEngagementRequest { - export interface Raw { - owner?: string | null; - content?: string | null; - subject?: string | null; - direction?: PatchedEngagementRequestDirection.Raw | null; - engagement_type?: string | null; - start_time?: string | null; - end_time?: string | null; - account?: string | null; - contacts?: (string | null | undefined)[] | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/PatchedEngagementRequestDirection.ts b/src/serialization/resources/crm/types/PatchedEngagementRequestDirection.ts deleted file mode 100644 index 617b9596d..000000000 --- a/src/serialization/resources/crm/types/PatchedEngagementRequestDirection.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 { DirectionEnum } from "./DirectionEnum"; - -export const PatchedEngagementRequestDirection: core.serialization.Schema< - serializers.crm.PatchedEngagementRequestDirection.Raw, - Merge.crm.PatchedEngagementRequestDirection -> = core.serialization.undiscriminatedUnion([DirectionEnum, core.serialization.string()]); - -export declare namespace PatchedEngagementRequestDirection { - export type Raw = DirectionEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/PatchedOpportunityRequest.ts b/src/serialization/resources/crm/types/PatchedOpportunityRequest.ts deleted file mode 100644 index b56c32d25..000000000 --- a/src/serialization/resources/crm/types/PatchedOpportunityRequest.ts +++ /dev/null @@ -1,48 +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 { PatchedOpportunityRequestStatus } from "./PatchedOpportunityRequestStatus"; -import { RemoteFieldRequest } from "./RemoteFieldRequest"; - -export const PatchedOpportunityRequest: core.serialization.ObjectSchema< - serializers.crm.PatchedOpportunityRequest.Raw, - Merge.crm.PatchedOpportunityRequest -> = core.serialization.object({ - name: core.serialization.string().optional(), - description: core.serialization.string().optional(), - amount: core.serialization.number().optional(), - owner: core.serialization.string().optional(), - account: core.serialization.string().optional(), - stage: core.serialization.string().optional(), - status: PatchedOpportunityRequestStatus.optional(), - lastActivityAt: core.serialization.property("last_activity_at", core.serialization.date().optional()), - closeDate: core.serialization.property("close_date", 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 PatchedOpportunityRequest { - export interface Raw { - name?: string | null; - description?: string | null; - amount?: number | null; - owner?: string | null; - account?: string | null; - stage?: string | null; - status?: PatchedOpportunityRequestStatus.Raw | null; - last_activity_at?: string | null; - close_date?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/PatchedOpportunityRequestStatus.ts b/src/serialization/resources/crm/types/PatchedOpportunityRequestStatus.ts deleted file mode 100644 index ee30b3916..000000000 --- a/src/serialization/resources/crm/types/PatchedOpportunityRequestStatus.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 { OpportunityStatusEnum } from "./OpportunityStatusEnum"; - -export const PatchedOpportunityRequestStatus: core.serialization.Schema< - serializers.crm.PatchedOpportunityRequestStatus.Raw, - Merge.crm.PatchedOpportunityRequestStatus -> = core.serialization.undiscriminatedUnion([OpportunityStatusEnum, core.serialization.string()]); - -export declare namespace PatchedOpportunityRequestStatus { - export type Raw = OpportunityStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/PatchedTaskRequest.ts b/src/serialization/resources/crm/types/PatchedTaskRequest.ts deleted file mode 100644 index b5f358b11..000000000 --- a/src/serialization/resources/crm/types/PatchedTaskRequest.ts +++ /dev/null @@ -1,46 +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 { PatchedTaskRequestStatus } from "./PatchedTaskRequestStatus"; -import { RemoteFieldRequest } from "./RemoteFieldRequest"; - -export const PatchedTaskRequest: core.serialization.ObjectSchema< - serializers.crm.PatchedTaskRequest.Raw, - Merge.crm.PatchedTaskRequest -> = core.serialization.object({ - subject: core.serialization.string().optional(), - content: core.serialization.string().optional(), - owner: core.serialization.string().optional(), - account: core.serialization.string().optional(), - opportunity: 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(), - 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 PatchedTaskRequest { - export interface Raw { - subject?: string | null; - content?: string | null; - owner?: string | null; - account?: string | null; - opportunity?: string | null; - completed_date?: string | null; - due_date?: string | null; - status?: PatchedTaskRequestStatus.Raw | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/PatchedTaskRequestStatus.ts b/src/serialization/resources/crm/types/PatchedTaskRequestStatus.ts deleted file mode 100644 index 83873fd46..000000000 --- a/src/serialization/resources/crm/types/PatchedTaskRequestStatus.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 { TaskStatusEnum } from "./TaskStatusEnum"; - -export const PatchedTaskRequestStatus: core.serialization.Schema< - serializers.crm.PatchedTaskRequestStatus.Raw, - Merge.crm.PatchedTaskRequestStatus -> = core.serialization.undiscriminatedUnion([TaskStatusEnum, core.serialization.string()]); - -export declare namespace PatchedTaskRequestStatus { - export type Raw = TaskStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/PhoneNumber.ts b/src/serialization/resources/crm/types/PhoneNumber.ts deleted file mode 100644 index 2e8608993..000000000 --- a/src/serialization/resources/crm/types/PhoneNumber.ts +++ /dev/null @@ -1,22 +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 PhoneNumber: core.serialization.ObjectSchema = - core.serialization.object({ - createdAt: core.serialization.property("created_at", core.serialization.date().optional()), - modifiedAt: core.serialization.property("modified_at", core.serialization.date().optional()), - phoneNumber: core.serialization.property("phone_number", core.serialization.string().optional()), - phoneNumberType: core.serialization.property("phone_number_type", core.serialization.string().optional()), - }); - -export declare namespace PhoneNumber { - export interface Raw { - created_at?: string | null; - modified_at?: string | null; - phone_number?: string | null; - phone_number_type?: string | null; - } -} diff --git a/src/serialization/resources/crm/types/PhoneNumberRequest.ts b/src/serialization/resources/crm/types/PhoneNumberRequest.ts deleted file mode 100644 index 37d73baf3..000000000 --- a/src/serialization/resources/crm/types/PhoneNumberRequest.ts +++ /dev/null @@ -1,30 +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 PhoneNumberRequest: core.serialization.ObjectSchema< - serializers.crm.PhoneNumberRequest.Raw, - Merge.crm.PhoneNumberRequest -> = core.serialization.object({ - phoneNumber: core.serialization.property("phone_number", core.serialization.string().optional()), - phoneNumberType: core.serialization.property("phone_number_type", core.serialization.string().optional()), - integrationParams: core.serialization.property( - "integration_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - linkedAccountParams: core.serialization.property( - "linked_account_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), -}); - -export declare namespace PhoneNumberRequest { - export interface Raw { - phone_number?: string | null; - phone_number_type?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/crm/types/ReasonEnum.ts b/src/serialization/resources/crm/types/ReasonEnum.ts deleted file mode 100644 index 29a7157f4..000000000 --- a/src/serialization/resources/crm/types/ReasonEnum.ts +++ /dev/null @@ -1,12 +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 ReasonEnum: core.serialization.Schema = - core.serialization.enum_(["GENERAL_CUSTOMER_REQUEST", "GDPR", "OTHER"]); - -export declare namespace ReasonEnum { - export type Raw = "GENERAL_CUSTOMER_REQUEST" | "GDPR" | "OTHER"; -} diff --git a/src/serialization/resources/crm/types/RemoteData.ts b/src/serialization/resources/crm/types/RemoteData.ts deleted file mode 100644 index e40d1de92..000000000 --- a/src/serialization/resources/crm/types/RemoteData.ts +++ /dev/null @@ -1,18 +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 RemoteData: core.serialization.ObjectSchema = - core.serialization.object({ - path: core.serialization.string(), - data: core.serialization.unknown().optional(), - }); - -export declare namespace RemoteData { - export interface Raw { - path: string; - data?: unknown | null; - } -} diff --git a/src/serialization/resources/crm/types/RemoteEndpointInfo.ts b/src/serialization/resources/crm/types/RemoteEndpointInfo.ts deleted file mode 100644 index 387837a0a..000000000 --- a/src/serialization/resources/crm/types/RemoteEndpointInfo.ts +++ /dev/null @@ -1,25 +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 RemoteEndpointInfo: core.serialization.ObjectSchema< - serializers.crm.RemoteEndpointInfo.Raw, - Merge.crm.RemoteEndpointInfo -> = core.serialization.object({ - method: core.serialization.string(), - urlPath: core.serialization.property("url_path", core.serialization.string()), - fieldTraversalPath: core.serialization.property( - "field_traversal_path", - core.serialization.list(core.serialization.unknown()), - ), -}); - -export declare namespace RemoteEndpointInfo { - export interface Raw { - method: string; - url_path: string; - field_traversal_path: unknown[]; - } -} diff --git a/src/serialization/resources/crm/types/RemoteField.ts b/src/serialization/resources/crm/types/RemoteField.ts deleted file mode 100644 index 554bc00f6..000000000 --- a/src/serialization/resources/crm/types/RemoteField.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { RemoteFieldRemoteFieldClass } from "./RemoteFieldRemoteFieldClass"; - -export const RemoteField: core.serialization.ObjectSchema = - core.serialization.object({ - remoteFieldClass: core.serialization.property("remote_field_class", RemoteFieldRemoteFieldClass), - value: core.serialization.unknown().optional(), - }); - -export declare namespace RemoteField { - export interface Raw { - remote_field_class: RemoteFieldRemoteFieldClass.Raw; - value?: unknown | null; - } -} diff --git a/src/serialization/resources/crm/types/RemoteFieldApi.ts b/src/serialization/resources/crm/types/RemoteFieldApi.ts deleted file mode 100644 index 1092648b7..000000000 --- a/src/serialization/resources/crm/types/RemoteFieldApi.ts +++ /dev/null @@ -1,34 +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 { AdvancedMetadata } from "./AdvancedMetadata"; -import { RemoteEndpointInfo } from "./RemoteEndpointInfo"; -import { RemoteFieldApiCoverage } from "./RemoteFieldApiCoverage"; - -export const RemoteFieldApi: core.serialization.ObjectSchema< - serializers.crm.RemoteFieldApi.Raw, - Merge.crm.RemoteFieldApi -> = core.serialization.object({ - schema: core.serialization.record(core.serialization.string(), core.serialization.unknown()), - remoteKeyName: core.serialization.property("remote_key_name", core.serialization.string()), - remoteEndpointInfo: core.serialization.property("remote_endpoint_info", RemoteEndpointInfo), - exampleValues: core.serialization.property( - "example_values", - core.serialization.list(core.serialization.unknown()).optional(), - ), - advancedMetadata: core.serialization.property("advanced_metadata", AdvancedMetadata.optional()), - coverage: RemoteFieldApiCoverage.optional(), -}); - -export declare namespace RemoteFieldApi { - export interface Raw { - schema: Record; - remote_key_name: string; - remote_endpoint_info: RemoteEndpointInfo.Raw; - example_values?: unknown[] | null; - advanced_metadata?: AdvancedMetadata.Raw | null; - coverage?: RemoteFieldApiCoverage.Raw | null; - } -} diff --git a/src/serialization/resources/crm/types/RemoteFieldApiCoverage.ts b/src/serialization/resources/crm/types/RemoteFieldApiCoverage.ts deleted file mode 100644 index fe19d6f07..000000000 --- a/src/serialization/resources/crm/types/RemoteFieldApiCoverage.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 RemoteFieldApiCoverage: core.serialization.Schema< - serializers.crm.RemoteFieldApiCoverage.Raw, - Merge.crm.RemoteFieldApiCoverage -> = core.serialization.undiscriminatedUnion([core.serialization.number(), core.serialization.number()]); - -export declare namespace RemoteFieldApiCoverage { - export type Raw = number | number; -} diff --git a/src/serialization/resources/crm/types/RemoteFieldApiResponse.ts b/src/serialization/resources/crm/types/RemoteFieldApiResponse.ts deleted file mode 100644 index b1724160f..000000000 --- a/src/serialization/resources/crm/types/RemoteFieldApiResponse.ts +++ /dev/null @@ -1,35 +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 { RemoteFieldApi } from "./RemoteFieldApi"; - -export const RemoteFieldApiResponse: core.serialization.ObjectSchema< - serializers.crm.RemoteFieldApiResponse.Raw, - Merge.crm.RemoteFieldApiResponse -> = core.serialization.object({ - account: core.serialization.property("Account", core.serialization.list(RemoteFieldApi).optional()), - contact: core.serialization.property("Contact", core.serialization.list(RemoteFieldApi).optional()), - lead: core.serialization.property("Lead", core.serialization.list(RemoteFieldApi).optional()), - note: core.serialization.property("Note", core.serialization.list(RemoteFieldApi).optional()), - opportunity: core.serialization.property("Opportunity", core.serialization.list(RemoteFieldApi).optional()), - stage: core.serialization.property("Stage", core.serialization.list(RemoteFieldApi).optional()), - user: core.serialization.property("User", core.serialization.list(RemoteFieldApi).optional()), - task: core.serialization.property("Task", core.serialization.list(RemoteFieldApi).optional()), - engagement: core.serialization.property("Engagement", core.serialization.list(RemoteFieldApi).optional()), -}); - -export declare namespace RemoteFieldApiResponse { - export interface Raw { - Account?: RemoteFieldApi.Raw[] | null; - Contact?: RemoteFieldApi.Raw[] | null; - Lead?: RemoteFieldApi.Raw[] | null; - Note?: RemoteFieldApi.Raw[] | null; - Opportunity?: RemoteFieldApi.Raw[] | null; - Stage?: RemoteFieldApi.Raw[] | null; - User?: RemoteFieldApi.Raw[] | null; - Task?: RemoteFieldApi.Raw[] | null; - Engagement?: RemoteFieldApi.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/RemoteFieldClass.ts b/src/serialization/resources/crm/types/RemoteFieldClass.ts deleted file mode 100644 index e4324da5f..000000000 --- a/src/serialization/resources/crm/types/RemoteFieldClass.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"; -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, - Merge.crm.RemoteFieldClass -> = core.serialization.object({ - id: core.serialization.string().optional(), - displayName: core.serialization.property("display_name", core.serialization.string().optional()), - remoteKeyName: core.serialization.property("remote_key_name", core.serialization.string().optional()), - description: core.serialization.string().optional(), - 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()), - fieldChoices: core.serialization.property( - "field_choices", - core.serialization.list(RemoteFieldClassFieldChoicesItem).optional(), - ), - itemSchema: core.serialization.property("item_schema", ItemSchema.optional()), -}); - -export declare namespace RemoteFieldClass { - export interface Raw { - id?: string | null; - display_name?: string | null; - remote_key_name?: string | null; - description?: string | null; - 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_choices?: RemoteFieldClassFieldChoicesItem.Raw[] | null; - item_schema?: ItemSchema.Raw | null; - } -} diff --git a/src/serialization/resources/crm/types/RemoteFieldClassFieldChoicesItem.ts b/src/serialization/resources/crm/types/RemoteFieldClassFieldChoicesItem.ts deleted file mode 100644 index 9de0406a6..000000000 --- a/src/serialization/resources/crm/types/RemoteFieldClassFieldChoicesItem.ts +++ /dev/null @@ -1,20 +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 RemoteFieldClassFieldChoicesItem: core.serialization.ObjectSchema< - serializers.crm.RemoteFieldClassFieldChoicesItem.Raw, - Merge.crm.RemoteFieldClassFieldChoicesItem -> = core.serialization.object({ - value: core.serialization.unknown().optional(), - displayName: core.serialization.property("display_name", core.serialization.string().optional()), -}); - -export declare namespace RemoteFieldClassFieldChoicesItem { - export interface Raw { - value?: unknown | null; - display_name?: string | 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/RemoteFieldClassForCustomObjectClass.ts b/src/serialization/resources/crm/types/RemoteFieldClassForCustomObjectClass.ts deleted file mode 100644 index 05df9d592..000000000 --- a/src/serialization/resources/crm/types/RemoteFieldClassForCustomObjectClass.ts +++ /dev/null @@ -1,46 +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 { RemoteFieldClassForCustomObjectClassFieldChoicesItem } from "./RemoteFieldClassForCustomObjectClassFieldChoicesItem"; -import { RemoteFieldClassForCustomObjectClassFieldFormat } from "./RemoteFieldClassForCustomObjectClassFieldFormat"; -import { RemoteFieldClassForCustomObjectClassFieldType } from "./RemoteFieldClassForCustomObjectClassFieldType"; -import { RemoteFieldClassForCustomObjectClassItemSchema } from "./RemoteFieldClassForCustomObjectClassItemSchema"; - -export const RemoteFieldClassForCustomObjectClass: core.serialization.ObjectSchema< - serializers.crm.RemoteFieldClassForCustomObjectClass.Raw, - Merge.crm.RemoteFieldClassForCustomObjectClass -> = core.serialization.object({ - createdAt: core.serialization.property("created_at", core.serialization.date().optional()), - modifiedAt: core.serialization.property("modified_at", core.serialization.date().optional()), - displayName: core.serialization.property("display_name", core.serialization.string().optional()), - remoteKeyName: core.serialization.property("remote_key_name", core.serialization.string().optional()), - description: core.serialization.string().optional(), - isRequired: core.serialization.property("is_required", core.serialization.boolean().optional()), - fieldType: core.serialization.property("field_type", RemoteFieldClassForCustomObjectClassFieldType.optional()), - fieldFormat: core.serialization.property( - "field_format", - RemoteFieldClassForCustomObjectClassFieldFormat.optional(), - ), - fieldChoices: core.serialization.property( - "field_choices", - core.serialization.list(RemoteFieldClassForCustomObjectClassFieldChoicesItem).optional(), - ), - itemSchema: core.serialization.property("item_schema", RemoteFieldClassForCustomObjectClassItemSchema.optional()), -}); - -export declare namespace RemoteFieldClassForCustomObjectClass { - export interface Raw { - created_at?: string | null; - modified_at?: string | null; - display_name?: string | null; - remote_key_name?: string | null; - description?: string | null; - is_required?: boolean | null; - field_type?: RemoteFieldClassForCustomObjectClassFieldType.Raw | null; - field_format?: RemoteFieldClassForCustomObjectClassFieldFormat.Raw | null; - field_choices?: RemoteFieldClassForCustomObjectClassFieldChoicesItem.Raw[] | null; - item_schema?: RemoteFieldClassForCustomObjectClassItemSchema.Raw | null; - } -} diff --git a/src/serialization/resources/crm/types/RemoteFieldClassForCustomObjectClassFieldChoicesItem.ts b/src/serialization/resources/crm/types/RemoteFieldClassForCustomObjectClassFieldChoicesItem.ts deleted file mode 100644 index d347c5ea3..000000000 --- a/src/serialization/resources/crm/types/RemoteFieldClassForCustomObjectClassFieldChoicesItem.ts +++ /dev/null @@ -1,20 +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 RemoteFieldClassForCustomObjectClassFieldChoicesItem: core.serialization.ObjectSchema< - serializers.crm.RemoteFieldClassForCustomObjectClassFieldChoicesItem.Raw, - Merge.crm.RemoteFieldClassForCustomObjectClassFieldChoicesItem -> = core.serialization.object({ - value: core.serialization.unknown().optional(), - displayName: core.serialization.property("display_name", core.serialization.string().optional()), -}); - -export declare namespace RemoteFieldClassForCustomObjectClassFieldChoicesItem { - export interface Raw { - value?: unknown | null; - display_name?: string | null; - } -} diff --git a/src/serialization/resources/crm/types/RemoteFieldClassForCustomObjectClassFieldFormat.ts b/src/serialization/resources/crm/types/RemoteFieldClassForCustomObjectClassFieldFormat.ts deleted file mode 100644 index 3491606d0..000000000 --- a/src/serialization/resources/crm/types/RemoteFieldClassForCustomObjectClassFieldFormat.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 RemoteFieldClassForCustomObjectClassFieldFormat: core.serialization.Schema< - serializers.crm.RemoteFieldClassForCustomObjectClassFieldFormat.Raw, - Merge.crm.RemoteFieldClassForCustomObjectClassFieldFormat -> = core.serialization.undiscriminatedUnion([FieldFormatEnum, core.serialization.string()]); - -export declare namespace RemoteFieldClassForCustomObjectClassFieldFormat { - export type Raw = FieldFormatEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/RemoteFieldClassForCustomObjectClassFieldType.ts b/src/serialization/resources/crm/types/RemoteFieldClassForCustomObjectClassFieldType.ts deleted file mode 100644 index 626277079..000000000 --- a/src/serialization/resources/crm/types/RemoteFieldClassForCustomObjectClassFieldType.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 RemoteFieldClassForCustomObjectClassFieldType: core.serialization.Schema< - serializers.crm.RemoteFieldClassForCustomObjectClassFieldType.Raw, - Merge.crm.RemoteFieldClassForCustomObjectClassFieldType -> = core.serialization.undiscriminatedUnion([FieldTypeEnum, core.serialization.string()]); - -export declare namespace RemoteFieldClassForCustomObjectClassFieldType { - export type Raw = FieldTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/RemoteFieldClassForCustomObjectClassItemSchema.ts b/src/serialization/resources/crm/types/RemoteFieldClassForCustomObjectClassItemSchema.ts deleted file mode 100644 index 2524c3258..000000000 --- a/src/serialization/resources/crm/types/RemoteFieldClassForCustomObjectClassItemSchema.ts +++ /dev/null @@ -1,25 +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 RemoteFieldClassForCustomObjectClassItemSchema: core.serialization.ObjectSchema< - serializers.crm.RemoteFieldClassForCustomObjectClassItemSchema.Raw, - Merge.crm.RemoteFieldClassForCustomObjectClassItemSchema -> = core.serialization.object({ - itemType: core.serialization.property("item_type", core.serialization.string().optional()), - itemFormat: core.serialization.property("item_format", core.serialization.string().optional()), - itemChoices: core.serialization.property( - "item_choices", - core.serialization.list(core.serialization.string().optional()).optional(), - ), -}); - -export declare namespace RemoteFieldClassForCustomObjectClassItemSchema { - export interface Raw { - item_type?: string | null; - item_format?: string | null; - item_choices?: (string | null | undefined)[] | null; - } -} diff --git a/src/serialization/resources/crm/types/RemoteFieldRemoteFieldClass.ts b/src/serialization/resources/crm/types/RemoteFieldRemoteFieldClass.ts deleted file mode 100644 index 8020bfc9a..000000000 --- a/src/serialization/resources/crm/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.crm.RemoteFieldRemoteFieldClass.Raw, - Merge.crm.RemoteFieldRemoteFieldClass -> = core.serialization.undiscriminatedUnion([core.serialization.string(), RemoteFieldClass]); - -export declare namespace RemoteFieldRemoteFieldClass { - export type Raw = string | RemoteFieldClass.Raw; -} diff --git a/src/serialization/resources/crm/types/RemoteFieldRequest.ts b/src/serialization/resources/crm/types/RemoteFieldRequest.ts deleted file mode 100644 index ebaddda51..000000000 --- a/src/serialization/resources/crm/types/RemoteFieldRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { RemoteFieldRequestRemoteFieldClass } from "./RemoteFieldRequestRemoteFieldClass"; - -export const RemoteFieldRequest: core.serialization.ObjectSchema< - serializers.crm.RemoteFieldRequest.Raw, - Merge.crm.RemoteFieldRequest -> = core.serialization.object({ - remoteFieldClass: core.serialization.property("remote_field_class", RemoteFieldRequestRemoteFieldClass), - value: core.serialization.unknown().optional(), -}); - -export declare namespace RemoteFieldRequest { - export interface Raw { - remote_field_class: RemoteFieldRequestRemoteFieldClass.Raw; - value?: unknown | null; - } -} diff --git a/src/serialization/resources/crm/types/RemoteFieldRequestRemoteFieldClass.ts b/src/serialization/resources/crm/types/RemoteFieldRequestRemoteFieldClass.ts deleted file mode 100644 index c5d37e031..000000000 --- a/src/serialization/resources/crm/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.crm.RemoteFieldRequestRemoteFieldClass.Raw, - Merge.crm.RemoteFieldRequestRemoteFieldClass -> = core.serialization.undiscriminatedUnion([core.serialization.string(), RemoteFieldClass]); - -export declare namespace RemoteFieldRequestRemoteFieldClass { - export type Raw = string | RemoteFieldClass.Raw; -} diff --git a/src/serialization/resources/crm/types/RemoteKey.ts b/src/serialization/resources/crm/types/RemoteKey.ts deleted file mode 100644 index 6a723a9a9..000000000 --- a/src/serialization/resources/crm/types/RemoteKey.ts +++ /dev/null @@ -1,18 +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 RemoteKey: core.serialization.ObjectSchema = - core.serialization.object({ - name: core.serialization.string(), - key: core.serialization.string(), - }); - -export declare namespace RemoteKey { - export interface Raw { - name: string; - key: string; - } -} diff --git a/src/serialization/resources/crm/types/RemoteResponse.ts b/src/serialization/resources/crm/types/RemoteResponse.ts deleted file mode 100644 index a2daf6066..000000000 --- a/src/serialization/resources/crm/types/RemoteResponse.ts +++ /dev/null @@ -1,34 +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 { ResponseTypeEnum } from "./ResponseTypeEnum"; - -export const RemoteResponse: core.serialization.ObjectSchema< - serializers.crm.RemoteResponse.Raw, - Merge.crm.RemoteResponse -> = core.serialization.object({ - method: core.serialization.string(), - path: core.serialization.string(), - status: core.serialization.number(), - response: core.serialization.unknown(), - responseHeaders: core.serialization.property( - "response_headers", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - responseType: core.serialization.property("response_type", ResponseTypeEnum.optional()), - headers: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), -}); - -export declare namespace RemoteResponse { - export interface Raw { - method: string; - path: string; - status: number; - response?: unknown; - response_headers?: Record | null; - response_type?: ResponseTypeEnum.Raw | null; - headers?: Record | null; - } -} diff --git a/src/serialization/resources/crm/types/RequestFormatEnum.ts b/src/serialization/resources/crm/types/RequestFormatEnum.ts deleted file mode 100644 index 79829ebef..000000000 --- a/src/serialization/resources/crm/types/RequestFormatEnum.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 RequestFormatEnum: core.serialization.Schema< - serializers.crm.RequestFormatEnum.Raw, - Merge.crm.RequestFormatEnum -> = core.serialization.enum_(["JSON", "XML", "MULTIPART"]); - -export declare namespace RequestFormatEnum { - export type Raw = "JSON" | "XML" | "MULTIPART"; -} diff --git a/src/serialization/resources/crm/types/ResponseTypeEnum.ts b/src/serialization/resources/crm/types/ResponseTypeEnum.ts deleted file mode 100644 index a08a00865..000000000 --- a/src/serialization/resources/crm/types/ResponseTypeEnum.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 ResponseTypeEnum: core.serialization.Schema< - serializers.crm.ResponseTypeEnum.Raw, - Merge.crm.ResponseTypeEnum -> = core.serialization.enum_(["JSON", "BASE64_GZIP"]); - -export declare namespace ResponseTypeEnum { - export type Raw = "JSON" | "BASE64_GZIP"; -} diff --git a/src/serialization/resources/crm/types/RoleEnum.ts b/src/serialization/resources/crm/types/RoleEnum.ts deleted file mode 100644 index 301589280..000000000 --- a/src/serialization/resources/crm/types/RoleEnum.ts +++ /dev/null @@ -1,12 +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 RoleEnum: core.serialization.Schema = - core.serialization.enum_(["ADMIN", "DEVELOPER", "MEMBER", "API", "SYSTEM", "MERGE_TEAM"]); - -export declare namespace RoleEnum { - export type Raw = "ADMIN" | "DEVELOPER" | "MEMBER" | "API" | "SYSTEM" | "MERGE_TEAM"; -} diff --git a/src/serialization/resources/crm/types/SelectiveSyncConfigurationsUsageEnum.ts b/src/serialization/resources/crm/types/SelectiveSyncConfigurationsUsageEnum.ts deleted file mode 100644 index f76c22dbf..000000000 --- a/src/serialization/resources/crm/types/SelectiveSyncConfigurationsUsageEnum.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 SelectiveSyncConfigurationsUsageEnum: core.serialization.Schema< - serializers.crm.SelectiveSyncConfigurationsUsageEnum.Raw, - Merge.crm.SelectiveSyncConfigurationsUsageEnum -> = core.serialization.enum_(["IN_NEXT_SYNC", "IN_LAST_SYNC"]); - -export declare namespace SelectiveSyncConfigurationsUsageEnum { - export type Raw = "IN_NEXT_SYNC" | "IN_LAST_SYNC"; -} diff --git a/src/serialization/resources/crm/types/Stage.ts b/src/serialization/resources/crm/types/Stage.ts deleted file mode 100644 index c194a76e0..000000000 --- a/src/serialization/resources/crm/types/Stage.ts +++ /dev/null @@ -1,37 +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 { RemoteData } from "./RemoteData"; -import { RemoteField } from "./RemoteField"; - -export const Stage: core.serialization.ObjectSchema = - 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()), - name: core.serialization.string().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 Stage { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: 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/crm/types/StatusFd5Enum.ts b/src/serialization/resources/crm/types/StatusFd5Enum.ts deleted file mode 100644 index 0d8e3259e..000000000 --- a/src/serialization/resources/crm/types/StatusFd5Enum.ts +++ /dev/null @@ -1,12 +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 StatusFd5Enum: core.serialization.Schema = - core.serialization.enum_(["SYNCING", "DONE", "FAILED", "DISABLED", "PAUSED", "PARTIALLY_SYNCED"]); - -export declare namespace StatusFd5Enum { - export type Raw = "SYNCING" | "DONE" | "FAILED" | "DISABLED" | "PAUSED" | "PARTIALLY_SYNCED"; -} diff --git a/src/serialization/resources/crm/types/SyncStatus.ts b/src/serialization/resources/crm/types/SyncStatus.ts deleted file mode 100644 index b17e29bd3..000000000 --- a/src/serialization/resources/crm/types/SyncStatus.ts +++ /dev/null @@ -1,38 +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 { SelectiveSyncConfigurationsUsageEnum } from "./SelectiveSyncConfigurationsUsageEnum"; -import { SyncStatusLastSyncResult } from "./SyncStatusLastSyncResult"; -import { SyncStatusStatus } from "./SyncStatusStatus"; - -export const SyncStatus: core.serialization.ObjectSchema = - core.serialization.object({ - modelName: core.serialization.property("model_name", core.serialization.string()), - 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", 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()), - selectiveSyncConfigurationsUsage: core.serialization.property( - "selective_sync_configurations_usage", - SelectiveSyncConfigurationsUsageEnum.optional(), - ), - }); - -export declare namespace SyncStatus { - export interface Raw { - model_name: string; - model_id: string; - last_sync_start?: string | null; - next_sync_start?: string | null; - last_sync_result?: SyncStatusLastSyncResult.Raw | null; - last_sync_finished?: string | null; - status: SyncStatusStatus.Raw; - is_initial_sync: boolean; - selective_sync_configurations_usage?: SelectiveSyncConfigurationsUsageEnum.Raw | null; - } -} diff --git a/src/serialization/resources/crm/types/SyncStatusLastSyncResult.ts b/src/serialization/resources/crm/types/SyncStatusLastSyncResult.ts deleted file mode 100644 index 65dd2536a..000000000 --- a/src/serialization/resources/crm/types/SyncStatusLastSyncResult.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 { LastSyncResultEnum } from "./LastSyncResultEnum"; - -export const SyncStatusLastSyncResult: core.serialization.Schema< - serializers.crm.SyncStatusLastSyncResult.Raw, - Merge.crm.SyncStatusLastSyncResult -> = core.serialization.undiscriminatedUnion([LastSyncResultEnum, core.serialization.string()]); - -export declare namespace SyncStatusLastSyncResult { - export type Raw = LastSyncResultEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/SyncStatusStatus.ts b/src/serialization/resources/crm/types/SyncStatusStatus.ts deleted file mode 100644 index e07c0bf74..000000000 --- a/src/serialization/resources/crm/types/SyncStatusStatus.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 { StatusFd5Enum } from "./StatusFd5Enum"; - -export const SyncStatusStatus: core.serialization.Schema< - serializers.crm.SyncStatusStatus.Raw, - Merge.crm.SyncStatusStatus -> = core.serialization.undiscriminatedUnion([StatusFd5Enum, core.serialization.string()]); - -export declare namespace SyncStatusStatus { - export type Raw = StatusFd5Enum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/Task.ts b/src/serialization/resources/crm/types/Task.ts deleted file mode 100644 index 01a9d712b..000000000 --- a/src/serialization/resources/crm/types/Task.ts +++ /dev/null @@ -1,55 +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 { RemoteData } from "./RemoteData"; -import { RemoteField } from "./RemoteField"; -import { TaskAccount } from "./TaskAccount"; -import { TaskOpportunity } from "./TaskOpportunity"; -import { TaskOwner } from "./TaskOwner"; -import { TaskStatus } from "./TaskStatus"; - -export const Task: core.serialization.ObjectSchema = - 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()), - subject: core.serialization.string().optional(), - content: core.serialization.string().optional(), - owner: TaskOwner.optional(), - account: TaskAccount.optional(), - opportunity: TaskOpportunity.optional(), - completedDate: core.serialization.property("completed_date", core.serialization.date().optional()), - dueDate: core.serialization.property("due_date", core.serialization.date().optional()), - status: TaskStatus.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 Task { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - subject?: string | null; - content?: string | null; - owner?: TaskOwner.Raw | null; - account?: TaskAccount.Raw | null; - opportunity?: TaskOpportunity.Raw | null; - completed_date?: string | null; - due_date?: string | null; - status?: TaskStatus.Raw | 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/crm/types/TaskAccount.ts b/src/serialization/resources/crm/types/TaskAccount.ts deleted file mode 100644 index e12115823..000000000 --- a/src/serialization/resources/crm/types/TaskAccount.ts +++ /dev/null @@ -1,13 +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 TaskAccount: core.serialization.Schema = - core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace TaskAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/crm/types/TaskOpportunity.ts b/src/serialization/resources/crm/types/TaskOpportunity.ts deleted file mode 100644 index f933fb8aa..000000000 --- a/src/serialization/resources/crm/types/TaskOpportunity.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 { Opportunity } from "./Opportunity"; - -export const TaskOpportunity: core.serialization.Schema< - serializers.crm.TaskOpportunity.Raw, - Merge.crm.TaskOpportunity -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Opportunity]); - -export declare namespace TaskOpportunity { - export type Raw = string | Opportunity.Raw; -} diff --git a/src/serialization/resources/crm/types/TaskOwner.ts b/src/serialization/resources/crm/types/TaskOwner.ts deleted file mode 100644 index 1e964f61a..000000000 --- a/src/serialization/resources/crm/types/TaskOwner.ts +++ /dev/null @@ -1,13 +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 { User } from "./User"; - -export const TaskOwner: core.serialization.Schema = - core.serialization.undiscriminatedUnion([core.serialization.string(), User]); - -export declare namespace TaskOwner { - export type Raw = string | User.Raw; -} diff --git a/src/serialization/resources/crm/types/TaskRequest.ts b/src/serialization/resources/crm/types/TaskRequest.ts deleted file mode 100644 index 69d8049a7..000000000 --- a/src/serialization/resources/crm/types/TaskRequest.ts +++ /dev/null @@ -1,50 +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 { RemoteFieldRequest } from "./RemoteFieldRequest"; -import { TaskRequestAccount } from "./TaskRequestAccount"; -import { TaskRequestOpportunity } from "./TaskRequestOpportunity"; -import { TaskRequestOwner } from "./TaskRequestOwner"; -import { TaskRequestStatus } from "./TaskRequestStatus"; - -export const TaskRequest: core.serialization.ObjectSchema = - core.serialization.object({ - subject: core.serialization.string().optional(), - content: core.serialization.string().optional(), - owner: TaskRequestOwner.optional(), - account: TaskRequestAccount.optional(), - opportunity: TaskRequestOpportunity.optional(), - completedDate: core.serialization.property("completed_date", core.serialization.date().optional()), - dueDate: core.serialization.property("due_date", core.serialization.date().optional()), - status: TaskRequestStatus.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 TaskRequest { - export interface Raw { - subject?: string | null; - content?: string | null; - owner?: TaskRequestOwner.Raw | null; - account?: TaskRequestAccount.Raw | null; - opportunity?: TaskRequestOpportunity.Raw | null; - completed_date?: string | null; - due_date?: string | null; - status?: TaskRequestStatus.Raw | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/TaskRequestAccount.ts b/src/serialization/resources/crm/types/TaskRequestAccount.ts deleted file mode 100644 index c36a61297..000000000 --- a/src/serialization/resources/crm/types/TaskRequestAccount.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 TaskRequestAccount: core.serialization.Schema< - serializers.crm.TaskRequestAccount.Raw, - Merge.crm.TaskRequestAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace TaskRequestAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/crm/types/TaskRequestOpportunity.ts b/src/serialization/resources/crm/types/TaskRequestOpportunity.ts deleted file mode 100644 index 1db2ac477..000000000 --- a/src/serialization/resources/crm/types/TaskRequestOpportunity.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 { Opportunity } from "./Opportunity"; - -export const TaskRequestOpportunity: core.serialization.Schema< - serializers.crm.TaskRequestOpportunity.Raw, - Merge.crm.TaskRequestOpportunity -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Opportunity]); - -export declare namespace TaskRequestOpportunity { - export type Raw = string | Opportunity.Raw; -} diff --git a/src/serialization/resources/crm/types/TaskRequestOwner.ts b/src/serialization/resources/crm/types/TaskRequestOwner.ts deleted file mode 100644 index dc87f32ca..000000000 --- a/src/serialization/resources/crm/types/TaskRequestOwner.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 { User } from "./User"; - -export const TaskRequestOwner: core.serialization.Schema< - serializers.crm.TaskRequestOwner.Raw, - Merge.crm.TaskRequestOwner -> = core.serialization.undiscriminatedUnion([core.serialization.string(), User]); - -export declare namespace TaskRequestOwner { - export type Raw = string | User.Raw; -} diff --git a/src/serialization/resources/crm/types/TaskRequestStatus.ts b/src/serialization/resources/crm/types/TaskRequestStatus.ts deleted file mode 100644 index d1078cd6c..000000000 --- a/src/serialization/resources/crm/types/TaskRequestStatus.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 { TaskStatusEnum } from "./TaskStatusEnum"; - -export const TaskRequestStatus: core.serialization.Schema< - serializers.crm.TaskRequestStatus.Raw, - Merge.crm.TaskRequestStatus -> = core.serialization.undiscriminatedUnion([TaskStatusEnum, core.serialization.string()]); - -export declare namespace TaskRequestStatus { - export type Raw = TaskStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/TaskResponse.ts b/src/serialization/resources/crm/types/TaskResponse.ts deleted file mode 100644 index ea5218257..000000000 --- a/src/serialization/resources/crm/types/TaskResponse.ts +++ /dev/null @@ -1,26 +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 { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { Task } from "./Task"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const TaskResponse: core.serialization.ObjectSchema = - core.serialization.object({ - model: Task, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), - }); - -export declare namespace TaskResponse { - export interface Raw { - model: Task.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/TaskStatus.ts b/src/serialization/resources/crm/types/TaskStatus.ts deleted file mode 100644 index 54dbf8481..000000000 --- a/src/serialization/resources/crm/types/TaskStatus.ts +++ /dev/null @@ -1,13 +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 { TaskStatusEnum } from "./TaskStatusEnum"; - -export const TaskStatus: core.serialization.Schema = - core.serialization.undiscriminatedUnion([TaskStatusEnum, core.serialization.string()]); - -export declare namespace TaskStatus { - export type Raw = TaskStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/TaskStatusEnum.ts b/src/serialization/resources/crm/types/TaskStatusEnum.ts deleted file mode 100644 index 28115fc55..000000000 --- a/src/serialization/resources/crm/types/TaskStatusEnum.ts +++ /dev/null @@ -1,12 +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 TaskStatusEnum: core.serialization.Schema = - core.serialization.enum_(["OPEN", "CLOSED"]); - -export declare namespace TaskStatusEnum { - export type Raw = "OPEN" | "CLOSED"; -} diff --git a/src/serialization/resources/crm/types/User.ts b/src/serialization/resources/crm/types/User.ts deleted file mode 100644 index 62db18a85..000000000 --- a/src/serialization/resources/crm/types/User.ts +++ /dev/null @@ -1,41 +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 { RemoteData } from "./RemoteData"; -import { RemoteField } from "./RemoteField"; - -export const User: core.serialization.ObjectSchema = - 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()), - name: core.serialization.string().optional(), - email: core.serialization.string().optional(), - isActive: core.serialization.property("is_active", core.serialization.boolean().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 User { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - email?: string | null; - is_active?: boolean | 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/crm/types/ValidationProblemSource.ts b/src/serialization/resources/crm/types/ValidationProblemSource.ts deleted file mode 100644 index 21e323794..000000000 --- a/src/serialization/resources/crm/types/ValidationProblemSource.ts +++ /dev/null @@ -1,18 +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 ValidationProblemSource: core.serialization.ObjectSchema< - serializers.crm.ValidationProblemSource.Raw, - Merge.crm.ValidationProblemSource -> = core.serialization.object({ - pointer: core.serialization.string(), -}); - -export declare namespace ValidationProblemSource { - export interface Raw { - pointer: string; - } -} diff --git a/src/serialization/resources/crm/types/WarningValidationProblem.ts b/src/serialization/resources/crm/types/WarningValidationProblem.ts deleted file mode 100644 index 6b3f4b70a..000000000 --- a/src/serialization/resources/crm/types/WarningValidationProblem.ts +++ /dev/null @@ -1,25 +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 { ValidationProblemSource } from "./ValidationProblemSource"; - -export const WarningValidationProblem: core.serialization.ObjectSchema< - serializers.crm.WarningValidationProblem.Raw, - Merge.crm.WarningValidationProblem -> = core.serialization.object({ - source: ValidationProblemSource.optional(), - title: core.serialization.string(), - detail: core.serialization.string(), - problemType: core.serialization.property("problem_type", core.serialization.string()), -}); - -export declare namespace WarningValidationProblem { - export interface Raw { - source?: ValidationProblemSource.Raw | null; - title: string; - detail: string; - problem_type: string; - } -} diff --git a/src/serialization/resources/crm/types/WebhookReceiver.ts b/src/serialization/resources/crm/types/WebhookReceiver.ts deleted file mode 100644 index ca39955c7..000000000 --- a/src/serialization/resources/crm/types/WebhookReceiver.ts +++ /dev/null @@ -1,22 +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 WebhookReceiver: core.serialization.ObjectSchema< - serializers.crm.WebhookReceiver.Raw, - Merge.crm.WebhookReceiver -> = core.serialization.object({ - event: core.serialization.string(), - isActive: core.serialization.property("is_active", core.serialization.boolean()), - key: core.serialization.string().optional(), -}); - -export declare namespace WebhookReceiver { - export interface Raw { - event: string; - is_active: boolean; - key?: string | null; - } -} diff --git a/src/serialization/resources/crm/types/index.ts b/src/serialization/resources/crm/types/index.ts deleted file mode 100644 index d5c268b4d..000000000 --- a/src/serialization/resources/crm/types/index.ts +++ /dev/null @@ -1,220 +0,0 @@ -export * from "./Account"; -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 "./AccountOwner"; -export * from "./AccountRequest"; -export * from "./AccountRequestOwner"; -export * from "./AccountToken"; -export * from "./ActivityTypeEnum"; -export * from "./Address"; -export * from "./AddressAddressType"; -export * from "./AddressCountry"; -export * from "./AddressRequest"; -export * from "./AddressRequestAddressType"; -export * from "./AddressRequestCountry"; -export * from "./AddressTypeEnum"; -export * from "./AdvancedMetadata"; -export * from "./Association"; -export * from "./AssociationAssociationType"; -export * from "./AssociationSubType"; -export * from "./AssociationType"; -export * from "./AssociationTypeCardinality"; -export * from "./AssociationTypeRequestRequest"; -export * from "./AsyncPassthroughReciept"; -export * from "./AuditLogEvent"; -export * from "./AuditLogEventEventType"; -export * from "./AuditLogEventRole"; -export * from "./AvailableActions"; -export * from "./CardinalityEnum"; -export * from "./CategoriesEnum"; -export * from "./CategoryEnum"; -export * from "./CommonModelScopeApi"; -export * from "./CommonModelScopesBodyRequest"; -export * from "./Contact"; -export * from "./ContactAccount"; -export * from "./ContactOwner"; -export * from "./ContactRequest"; -export * from "./ContactRequestAccount"; -export * from "./ContactRequestOwner"; -export * from "./CountryEnum"; -export * from "./CrmAccountResponse"; -export * from "./CrmAssociationTypeResponse"; -export * from "./CrmContactResponse"; -export * from "./CrmCustomObjectResponse"; -export * from "./CustomObject"; -export * from "./CustomObjectClass"; -export * from "./CustomObjectRequest"; -export * from "./DataPassthroughRequest"; -export * from "./DebugModeLog"; -export * from "./DebugModelLogSummary"; -export * from "./DirectionEnum"; -export * from "./EmailAddress"; -export * from "./EmailAddressRequest"; -export * from "./EnabledActionsEnum"; -export * from "./EncodingEnum"; -export * from "./Engagement"; -export * from "./EngagementAccount"; -export * from "./EngagementContactsItem"; -export * from "./EngagementDirection"; -export * from "./EngagementEngagementType"; -export * from "./EngagementOwner"; -export * from "./EngagementRequest"; -export * from "./EngagementRequestAccount"; -export * from "./EngagementRequestContactsItem"; -export * from "./EngagementRequestDirection"; -export * from "./EngagementRequestEngagementType"; -export * from "./EngagementRequestOwner"; -export * from "./EngagementResponse"; -export * from "./EngagementType"; -export * from "./EngagementTypeActivityType"; -export * from "./ErrorValidationProblem"; -export * from "./EventTypeEnum"; -export * from "./ExternalTargetFieldApi"; -export * from "./ExternalTargetFieldApiResponse"; -export * from "./FieldFormatEnum"; -export * from "./FieldMappingApiInstance"; -export * from "./FieldMappingApiInstanceRemoteField"; -export * from "./FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo"; -export * from "./FieldMappingApiInstanceResponse"; -export * from "./FieldMappingApiInstanceTargetField"; -export * from "./FieldMappingInstanceResponse"; -export * from "./FieldPermissionDeserializer"; -export * from "./FieldPermissionDeserializerRequest"; -export * from "./FieldTypeEnum"; -export * from "./IgnoreCommonModelRequest"; -export * from "./IgnoreCommonModelRequestReason"; -export * from "./IndividualCommonModelScopeDeserializer"; -export * from "./IndividualCommonModelScopeDeserializerRequest"; -export * from "./Issue"; -export * from "./IssueStatus"; -export * from "./IssueStatusEnum"; -export * from "./ItemFormatEnum"; -export * from "./ItemSchema"; -export * from "./ItemTypeEnum"; -export * from "./LanguageEnum"; -export * from "./LastSyncResultEnum"; -export * from "./Lead"; -export * from "./LeadConvertedAccount"; -export * from "./LeadConvertedContact"; -export * from "./LeadOwner"; -export * from "./LeadRequest"; -export * from "./LeadRequestConvertedAccount"; -export * from "./LeadRequestConvertedContact"; -export * from "./LeadRequestOwner"; -export * from "./LeadResponse"; -export * from "./LinkedAccountStatus"; -export * from "./LinkToken"; -export * from "./MetaResponse"; -export * from "./MethodEnum"; -export * from "./ModelOperation"; -export * from "./ModelPermissionDeserializer"; -export * from "./ModelPermissionDeserializerRequest"; -export * from "./MultipartFormFieldRequest"; -export * from "./MultipartFormFieldRequestEncoding"; -export * from "./Note"; -export * from "./NoteAccount"; -export * from "./NoteContact"; -export * from "./NoteOpportunity"; -export * from "./NoteOwner"; -export * from "./NoteRequest"; -export * from "./NoteRequestAccount"; -export * from "./NoteRequestContact"; -export * from "./NoteRequestOpportunity"; -export * from "./NoteRequestOwner"; -export * from "./NoteResponse"; -export * from "./ObjectClassDescriptionRequest"; -export * from "./Opportunity"; -export * from "./OpportunityAccount"; -export * from "./OpportunityOwner"; -export * from "./OpportunityRequest"; -export * from "./OpportunityRequestAccount"; -export * from "./OpportunityRequestOwner"; -export * from "./OpportunityRequestStage"; -export * from "./OpportunityRequestStatus"; -export * from "./OpportunityResponse"; -export * from "./OpportunityStage"; -export * from "./OpportunityStatus"; -export * from "./OpportunityStatusEnum"; -export * from "./OriginTypeEnum"; -export * from "./PaginatedAccountDetailsAndActionsList"; -export * from "./PaginatedAccountList"; -export * from "./PaginatedAssociationList"; -export * from "./PaginatedAssociationTypeList"; -export * from "./PaginatedAuditLogEventList"; -export * from "./PaginatedContactList"; -export * from "./PaginatedCustomObjectClassList"; -export * from "./PaginatedCustomObjectList"; -export * from "./PaginatedEngagementList"; -export * from "./PaginatedEngagementTypeList"; -export * from "./PaginatedIssueList"; -export * from "./PaginatedLeadList"; -export * from "./PaginatedNoteList"; -export * from "./PaginatedOpportunityList"; -export * from "./PaginatedRemoteFieldClassList"; -export * from "./PaginatedStageList"; -export * from "./PaginatedSyncStatusList"; -export * from "./PaginatedTaskList"; -export * from "./PaginatedUserList"; -export * from "./PatchedAccountRequest"; -export * from "./PatchedContactRequest"; -export * from "./PatchedContactRequestOwner"; -export * from "./PatchedEngagementRequest"; -export * from "./PatchedEngagementRequestDirection"; -export * from "./PatchedOpportunityRequest"; -export * from "./PatchedOpportunityRequestStatus"; -export * from "./PatchedTaskRequest"; -export * from "./PatchedTaskRequestStatus"; -export * from "./PhoneNumber"; -export * from "./PhoneNumberRequest"; -export * from "./ReasonEnum"; -export * from "./RemoteData"; -export * from "./RemoteEndpointInfo"; -export * from "./RemoteField"; -export * from "./RemoteFieldApi"; -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"; -export * from "./RemoteFieldClassForCustomObjectClassFieldType"; -export * from "./RemoteFieldClassForCustomObjectClassItemSchema"; -export * from "./RemoteFieldRemoteFieldClass"; -export * from "./RemoteFieldRequest"; -export * from "./RemoteFieldRequestRemoteFieldClass"; -export * from "./RemoteKey"; -export * from "./RemoteResponse"; -export * from "./RequestFormatEnum"; -export * from "./ResponseTypeEnum"; -export * from "./RoleEnum"; -export * from "./SelectiveSyncConfigurationsUsageEnum"; -export * from "./Stage"; -export * from "./StatusFd5Enum"; -export * from "./SyncStatus"; -export * from "./SyncStatusLastSyncResult"; -export * from "./SyncStatusStatus"; -export * from "./Task"; -export * from "./TaskAccount"; -export * from "./TaskOpportunity"; -export * from "./TaskOwner"; -export * from "./TaskRequest"; -export * from "./TaskRequestAccount"; -export * from "./TaskRequestOpportunity"; -export * from "./TaskRequestOwner"; -export * from "./TaskRequestStatus"; -export * from "./TaskResponse"; -export * from "./TaskStatus"; -export * from "./TaskStatusEnum"; -export * from "./User"; -export * from "./ValidationProblemSource"; -export * from "./WarningValidationProblem"; -export * from "./WebhookReceiver"; 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/accounting/resources/asyncPassthrough/index.ts b/src/serialization/resources/filestorage/resources/groups/index.ts similarity index 100% rename from src/serialization/resources/accounting/resources/asyncPassthrough/index.ts rename to src/serialization/resources/filestorage/resources/groups/index.ts 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/api/resources/ats/resources/linkToken/types/index.ts b/src/serialization/resources/filestorage/resources/linkToken/types/index.ts similarity index 100% rename from src/api/resources/ats/resources/linkToken/types/index.ts rename to src/serialization/resources/filestorage/resources/linkToken/types/index.ts 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/index.ts b/src/serialization/resources/hris/index.ts deleted file mode 100644 index 3e15e2907..000000000 --- a/src/serialization/resources/hris/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./resources"; -export * from "./types"; diff --git a/src/serialization/resources/hris/resources/asyncPassthrough/index.ts b/src/serialization/resources/hris/resources/asyncPassthrough/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/hris/resources/asyncPassthrough/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; diff --git a/src/serialization/resources/hris/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.ts b/src/serialization/resources/hris/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.ts deleted file mode 100644 index 83b614e8f..000000000 --- a/src/serialization/resources/hris/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.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 { RemoteResponse } from "../../../types/RemoteResponse"; - -export const AsyncPassthroughRetrieveResponse: core.serialization.Schema< - serializers.hris.AsyncPassthroughRetrieveResponse.Raw, - Merge.hris.AsyncPassthroughRetrieveResponse -> = core.serialization.undiscriminatedUnion([RemoteResponse, core.serialization.string()]); - -export declare namespace AsyncPassthroughRetrieveResponse { - export type Raw = RemoteResponse.Raw | string; -} diff --git a/src/serialization/resources/hris/resources/asyncPassthrough/types/index.ts b/src/serialization/resources/hris/resources/asyncPassthrough/types/index.ts deleted file mode 100644 index f2b2d0e21..000000000 --- a/src/serialization/resources/hris/resources/asyncPassthrough/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./AsyncPassthroughRetrieveResponse"; diff --git a/src/serialization/resources/hris/resources/bankInfo/index.ts b/src/serialization/resources/hris/resources/bankInfo/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/hris/resources/bankInfo/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; diff --git a/src/serialization/resources/hris/resources/bankInfo/types/BankInfoListRequestAccountType.ts b/src/serialization/resources/hris/resources/bankInfo/types/BankInfoListRequestAccountType.ts deleted file mode 100644 index a1b398279..000000000 --- a/src/serialization/resources/hris/resources/bankInfo/types/BankInfoListRequestAccountType.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 BankInfoListRequestAccountType: core.serialization.Schema< - serializers.hris.BankInfoListRequestAccountType.Raw, - Merge.hris.BankInfoListRequestAccountType -> = core.serialization.enum_(["CHECKING", "SAVINGS"]); - -export declare namespace BankInfoListRequestAccountType { - export type Raw = "CHECKING" | "SAVINGS"; -} diff --git a/src/serialization/resources/hris/resources/bankInfo/types/BankInfoListRequestOrderBy.ts b/src/serialization/resources/hris/resources/bankInfo/types/BankInfoListRequestOrderBy.ts deleted file mode 100644 index 0bdad6de5..000000000 --- a/src/serialization/resources/hris/resources/bankInfo/types/BankInfoListRequestOrderBy.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 BankInfoListRequestOrderBy: core.serialization.Schema< - serializers.hris.BankInfoListRequestOrderBy.Raw, - Merge.hris.BankInfoListRequestOrderBy -> = core.serialization.enum_(["-remote_created_at", "remote_created_at"]); - -export declare namespace BankInfoListRequestOrderBy { - export type Raw = "-remote_created_at" | "remote_created_at"; -} diff --git a/src/serialization/resources/hris/resources/bankInfo/types/index.ts b/src/serialization/resources/hris/resources/bankInfo/types/index.ts deleted file mode 100644 index 37136ecc9..000000000 --- a/src/serialization/resources/hris/resources/bankInfo/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./BankInfoListRequestAccountType"; -export * from "./BankInfoListRequestOrderBy"; diff --git a/src/serialization/resources/hris/resources/employeePayrollRuns/index.ts b/src/serialization/resources/hris/resources/employeePayrollRuns/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/hris/resources/employeePayrollRuns/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; 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/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/index.ts b/src/serialization/resources/hris/resources/employeePayrollRuns/types/index.ts deleted file mode 100644 index 7adf16728..000000000 --- a/src/serialization/resources/hris/resources/employeePayrollRuns/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./EmployeePayrollRunsListRequestExpand"; -export * from "./EmployeePayrollRunsRetrieveRequestExpand"; diff --git a/src/serialization/resources/hris/resources/employees/client/index.ts b/src/serialization/resources/hris/resources/employees/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/hris/resources/employees/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/hris/resources/employees/client/requests/EmployeeEndpointRequest.ts b/src/serialization/resources/hris/resources/employees/client/requests/EmployeeEndpointRequest.ts deleted file mode 100644 index ce2eccd3d..000000000 --- a/src/serialization/resources/hris/resources/employees/client/requests/EmployeeEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { EmployeeRequest } from "../../../../types/EmployeeRequest"; - -export const EmployeeEndpointRequest: core.serialization.Schema< - serializers.hris.EmployeeEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: EmployeeRequest, -}); - -export declare namespace EmployeeEndpointRequest { - export interface Raw { - model: EmployeeRequest.Raw; - } -} diff --git a/src/serialization/resources/hris/resources/employees/client/requests/IgnoreCommonModelRequest.ts b/src/serialization/resources/hris/resources/employees/client/requests/IgnoreCommonModelRequest.ts deleted file mode 100644 index dc99f68b3..000000000 --- a/src/serialization/resources/hris/resources/employees/client/requests/IgnoreCommonModelRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { IgnoreCommonModelRequestReason } from "../../types/IgnoreCommonModelRequestReason"; - -export const IgnoreCommonModelRequest: core.serialization.Schema< - serializers.hris.IgnoreCommonModelRequest.Raw, - Merge.hris.IgnoreCommonModelRequest -> = core.serialization.object({ - reason: IgnoreCommonModelRequestReason, - message: core.serialization.string().optional(), -}); - -export declare namespace IgnoreCommonModelRequest { - export interface Raw { - reason: IgnoreCommonModelRequestReason.Raw; - message?: string | null; - } -} diff --git a/src/serialization/resources/hris/resources/employees/client/requests/index.ts b/src/serialization/resources/hris/resources/employees/client/requests/index.ts deleted file mode 100644 index 276232eee..000000000 --- a/src/serialization/resources/hris/resources/employees/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { EmployeeEndpointRequest } from "./EmployeeEndpointRequest"; -export { IgnoreCommonModelRequest } from "./IgnoreCommonModelRequest"; diff --git a/src/serialization/resources/hris/resources/employees/index.ts b/src/serialization/resources/hris/resources/employees/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/hris/resources/employees/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/serialization/resources/hris/resources/employees/types/EmployeesListRequestEmploymentStatus.ts b/src/serialization/resources/hris/resources/employees/types/EmployeesListRequestEmploymentStatus.ts deleted file mode 100644 index 65fb07a1d..000000000 --- a/src/serialization/resources/hris/resources/employees/types/EmployeesListRequestEmploymentStatus.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 EmployeesListRequestEmploymentStatus: core.serialization.Schema< - serializers.hris.EmployeesListRequestEmploymentStatus.Raw, - Merge.hris.EmployeesListRequestEmploymentStatus -> = core.serialization.enum_(["ACTIVE", "INACTIVE", "PENDING"]); - -export declare namespace EmployeesListRequestEmploymentStatus { - export type Raw = "ACTIVE" | "INACTIVE" | "PENDING"; -} 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/EmployeesListRequestRemoteFields.ts b/src/serialization/resources/hris/resources/employees/types/EmployeesListRequestRemoteFields.ts deleted file mode 100644 index deb323def..000000000 --- a/src/serialization/resources/hris/resources/employees/types/EmployeesListRequestRemoteFields.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 EmployeesListRequestRemoteFields: core.serialization.Schema< - serializers.hris.EmployeesListRequestRemoteFields.Raw, - Merge.hris.EmployeesListRequestRemoteFields -> = core.serialization.enum_([ - "employment_status", - "employment_status,ethnicity", - "employment_status,ethnicity,gender", - "employment_status,ethnicity,gender,marital_status", - "employment_status,ethnicity,marital_status", - "employment_status,gender", - "employment_status,gender,marital_status", - "employment_status,marital_status", - "ethnicity", - "ethnicity,gender", - "ethnicity,gender,marital_status", - "ethnicity,marital_status", - "gender", - "gender,marital_status", - "marital_status", -]); - -export declare namespace EmployeesListRequestRemoteFields { - export type Raw = - | "employment_status" - | "employment_status,ethnicity" - | "employment_status,ethnicity,gender" - | "employment_status,ethnicity,gender,marital_status" - | "employment_status,ethnicity,marital_status" - | "employment_status,gender" - | "employment_status,gender,marital_status" - | "employment_status,marital_status" - | "ethnicity" - | "ethnicity,gender" - | "ethnicity,gender,marital_status" - | "ethnicity,marital_status" - | "gender" - | "gender,marital_status" - | "marital_status"; -} diff --git a/src/serialization/resources/hris/resources/employees/types/EmployeesListRequestShowEnumOrigins.ts b/src/serialization/resources/hris/resources/employees/types/EmployeesListRequestShowEnumOrigins.ts deleted file mode 100644 index 7f18a0504..000000000 --- a/src/serialization/resources/hris/resources/employees/types/EmployeesListRequestShowEnumOrigins.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 EmployeesListRequestShowEnumOrigins: core.serialization.Schema< - serializers.hris.EmployeesListRequestShowEnumOrigins.Raw, - Merge.hris.EmployeesListRequestShowEnumOrigins -> = core.serialization.enum_([ - "employment_status", - "employment_status,ethnicity", - "employment_status,ethnicity,gender", - "employment_status,ethnicity,gender,marital_status", - "employment_status,ethnicity,marital_status", - "employment_status,gender", - "employment_status,gender,marital_status", - "employment_status,marital_status", - "ethnicity", - "ethnicity,gender", - "ethnicity,gender,marital_status", - "ethnicity,marital_status", - "gender", - "gender,marital_status", - "marital_status", -]); - -export declare namespace EmployeesListRequestShowEnumOrigins { - export type Raw = - | "employment_status" - | "employment_status,ethnicity" - | "employment_status,ethnicity,gender" - | "employment_status,ethnicity,gender,marital_status" - | "employment_status,ethnicity,marital_status" - | "employment_status,gender" - | "employment_status,gender,marital_status" - | "employment_status,marital_status" - | "ethnicity" - | "ethnicity,gender" - | "ethnicity,gender,marital_status" - | "ethnicity,marital_status" - | "gender" - | "gender,marital_status" - | "marital_status"; -} 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/EmployeesRetrieveRequestRemoteFields.ts b/src/serialization/resources/hris/resources/employees/types/EmployeesRetrieveRequestRemoteFields.ts deleted file mode 100644 index 6d80c01c5..000000000 --- a/src/serialization/resources/hris/resources/employees/types/EmployeesRetrieveRequestRemoteFields.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 EmployeesRetrieveRequestRemoteFields: core.serialization.Schema< - serializers.hris.EmployeesRetrieveRequestRemoteFields.Raw, - Merge.hris.EmployeesRetrieveRequestRemoteFields -> = core.serialization.enum_([ - "employment_status", - "employment_status,ethnicity", - "employment_status,ethnicity,gender", - "employment_status,ethnicity,gender,marital_status", - "employment_status,ethnicity,marital_status", - "employment_status,gender", - "employment_status,gender,marital_status", - "employment_status,marital_status", - "ethnicity", - "ethnicity,gender", - "ethnicity,gender,marital_status", - "ethnicity,marital_status", - "gender", - "gender,marital_status", - "marital_status", -]); - -export declare namespace EmployeesRetrieveRequestRemoteFields { - export type Raw = - | "employment_status" - | "employment_status,ethnicity" - | "employment_status,ethnicity,gender" - | "employment_status,ethnicity,gender,marital_status" - | "employment_status,ethnicity,marital_status" - | "employment_status,gender" - | "employment_status,gender,marital_status" - | "employment_status,marital_status" - | "ethnicity" - | "ethnicity,gender" - | "ethnicity,gender,marital_status" - | "ethnicity,marital_status" - | "gender" - | "gender,marital_status" - | "marital_status"; -} diff --git a/src/serialization/resources/hris/resources/employees/types/EmployeesRetrieveRequestShowEnumOrigins.ts b/src/serialization/resources/hris/resources/employees/types/EmployeesRetrieveRequestShowEnumOrigins.ts deleted file mode 100644 index 8d124039d..000000000 --- a/src/serialization/resources/hris/resources/employees/types/EmployeesRetrieveRequestShowEnumOrigins.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 EmployeesRetrieveRequestShowEnumOrigins: core.serialization.Schema< - serializers.hris.EmployeesRetrieveRequestShowEnumOrigins.Raw, - Merge.hris.EmployeesRetrieveRequestShowEnumOrigins -> = core.serialization.enum_([ - "employment_status", - "employment_status,ethnicity", - "employment_status,ethnicity,gender", - "employment_status,ethnicity,gender,marital_status", - "employment_status,ethnicity,marital_status", - "employment_status,gender", - "employment_status,gender,marital_status", - "employment_status,marital_status", - "ethnicity", - "ethnicity,gender", - "ethnicity,gender,marital_status", - "ethnicity,marital_status", - "gender", - "gender,marital_status", - "marital_status", -]); - -export declare namespace EmployeesRetrieveRequestShowEnumOrigins { - export type Raw = - | "employment_status" - | "employment_status,ethnicity" - | "employment_status,ethnicity,gender" - | "employment_status,ethnicity,gender,marital_status" - | "employment_status,ethnicity,marital_status" - | "employment_status,gender" - | "employment_status,gender,marital_status" - | "employment_status,marital_status" - | "ethnicity" - | "ethnicity,gender" - | "ethnicity,gender,marital_status" - | "ethnicity,marital_status" - | "gender" - | "gender,marital_status" - | "marital_status"; -} diff --git a/src/serialization/resources/hris/resources/employees/types/IgnoreCommonModelRequestReason.ts b/src/serialization/resources/hris/resources/employees/types/IgnoreCommonModelRequestReason.ts deleted file mode 100644 index 7fb38d081..000000000 --- a/src/serialization/resources/hris/resources/employees/types/IgnoreCommonModelRequestReason.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; -import { ReasonEnum } from "../../../types/ReasonEnum"; - -export const IgnoreCommonModelRequestReason: core.serialization.Schema< - serializers.hris.IgnoreCommonModelRequestReason.Raw, - Merge.hris.IgnoreCommonModelRequestReason -> = core.serialization.undiscriminatedUnion([ReasonEnum, core.serialization.string()]); - -export declare namespace IgnoreCommonModelRequestReason { - export type Raw = ReasonEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/resources/employees/types/index.ts b/src/serialization/resources/hris/resources/employees/types/index.ts deleted file mode 100644 index 86b6c6805..000000000 --- a/src/serialization/resources/hris/resources/employees/types/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -export * from "./EmployeesListRequestEmploymentStatus"; -export * from "./EmployeesListRequestExpand"; -export * from "./EmployeesListRequestRemoteFields"; -export * from "./EmployeesListRequestShowEnumOrigins"; -export * from "./EmployeesRetrieveRequestExpand"; -export * from "./EmployeesRetrieveRequestRemoteFields"; -export * from "./EmployeesRetrieveRequestShowEnumOrigins"; -export * from "./IgnoreCommonModelRequestReason"; diff --git a/src/serialization/resources/hris/resources/employments/index.ts b/src/serialization/resources/hris/resources/employments/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/hris/resources/employments/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; 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/EmploymentsListRequestOrderBy.ts b/src/serialization/resources/hris/resources/employments/types/EmploymentsListRequestOrderBy.ts deleted file mode 100644 index a2a409070..000000000 --- a/src/serialization/resources/hris/resources/employments/types/EmploymentsListRequestOrderBy.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 EmploymentsListRequestOrderBy: core.serialization.Schema< - serializers.hris.EmploymentsListRequestOrderBy.Raw, - Merge.hris.EmploymentsListRequestOrderBy -> = core.serialization.enum_(["-effective_date", "effective_date"]); - -export declare namespace EmploymentsListRequestOrderBy { - export type Raw = "-effective_date" | "effective_date"; -} diff --git a/src/serialization/resources/hris/resources/employments/types/EmploymentsListRequestRemoteFields.ts b/src/serialization/resources/hris/resources/employments/types/EmploymentsListRequestRemoteFields.ts deleted file mode 100644 index 8d1af7f0e..000000000 --- a/src/serialization/resources/hris/resources/employments/types/EmploymentsListRequestRemoteFields.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 EmploymentsListRequestRemoteFields: core.serialization.Schema< - serializers.hris.EmploymentsListRequestRemoteFields.Raw, - Merge.hris.EmploymentsListRequestRemoteFields -> = core.serialization.enum_([ - "employment_type", - "employment_type,flsa_status", - "employment_type,flsa_status,pay_frequency", - "employment_type,flsa_status,pay_frequency,pay_period", - "employment_type,flsa_status,pay_period", - "employment_type,pay_frequency", - "employment_type,pay_frequency,pay_period", - "employment_type,pay_period", - "flsa_status", - "flsa_status,pay_frequency", - "flsa_status,pay_frequency,pay_period", - "flsa_status,pay_period", - "pay_frequency", - "pay_frequency,pay_period", - "pay_period", -]); - -export declare namespace EmploymentsListRequestRemoteFields { - export type Raw = - | "employment_type" - | "employment_type,flsa_status" - | "employment_type,flsa_status,pay_frequency" - | "employment_type,flsa_status,pay_frequency,pay_period" - | "employment_type,flsa_status,pay_period" - | "employment_type,pay_frequency" - | "employment_type,pay_frequency,pay_period" - | "employment_type,pay_period" - | "flsa_status" - | "flsa_status,pay_frequency" - | "flsa_status,pay_frequency,pay_period" - | "flsa_status,pay_period" - | "pay_frequency" - | "pay_frequency,pay_period" - | "pay_period"; -} diff --git a/src/serialization/resources/hris/resources/employments/types/EmploymentsListRequestShowEnumOrigins.ts b/src/serialization/resources/hris/resources/employments/types/EmploymentsListRequestShowEnumOrigins.ts deleted file mode 100644 index 039d45ad1..000000000 --- a/src/serialization/resources/hris/resources/employments/types/EmploymentsListRequestShowEnumOrigins.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 EmploymentsListRequestShowEnumOrigins: core.serialization.Schema< - serializers.hris.EmploymentsListRequestShowEnumOrigins.Raw, - Merge.hris.EmploymentsListRequestShowEnumOrigins -> = core.serialization.enum_([ - "employment_type", - "employment_type,flsa_status", - "employment_type,flsa_status,pay_frequency", - "employment_type,flsa_status,pay_frequency,pay_period", - "employment_type,flsa_status,pay_period", - "employment_type,pay_frequency", - "employment_type,pay_frequency,pay_period", - "employment_type,pay_period", - "flsa_status", - "flsa_status,pay_frequency", - "flsa_status,pay_frequency,pay_period", - "flsa_status,pay_period", - "pay_frequency", - "pay_frequency,pay_period", - "pay_period", -]); - -export declare namespace EmploymentsListRequestShowEnumOrigins { - export type Raw = - | "employment_type" - | "employment_type,flsa_status" - | "employment_type,flsa_status,pay_frequency" - | "employment_type,flsa_status,pay_frequency,pay_period" - | "employment_type,flsa_status,pay_period" - | "employment_type,pay_frequency" - | "employment_type,pay_frequency,pay_period" - | "employment_type,pay_period" - | "flsa_status" - | "flsa_status,pay_frequency" - | "flsa_status,pay_frequency,pay_period" - | "flsa_status,pay_period" - | "pay_frequency" - | "pay_frequency,pay_period" - | "pay_period"; -} 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/EmploymentsRetrieveRequestRemoteFields.ts b/src/serialization/resources/hris/resources/employments/types/EmploymentsRetrieveRequestRemoteFields.ts deleted file mode 100644 index 835ab6d5d..000000000 --- a/src/serialization/resources/hris/resources/employments/types/EmploymentsRetrieveRequestRemoteFields.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 EmploymentsRetrieveRequestRemoteFields: core.serialization.Schema< - serializers.hris.EmploymentsRetrieveRequestRemoteFields.Raw, - Merge.hris.EmploymentsRetrieveRequestRemoteFields -> = core.serialization.enum_([ - "employment_type", - "employment_type,flsa_status", - "employment_type,flsa_status,pay_frequency", - "employment_type,flsa_status,pay_frequency,pay_period", - "employment_type,flsa_status,pay_period", - "employment_type,pay_frequency", - "employment_type,pay_frequency,pay_period", - "employment_type,pay_period", - "flsa_status", - "flsa_status,pay_frequency", - "flsa_status,pay_frequency,pay_period", - "flsa_status,pay_period", - "pay_frequency", - "pay_frequency,pay_period", - "pay_period", -]); - -export declare namespace EmploymentsRetrieveRequestRemoteFields { - export type Raw = - | "employment_type" - | "employment_type,flsa_status" - | "employment_type,flsa_status,pay_frequency" - | "employment_type,flsa_status,pay_frequency,pay_period" - | "employment_type,flsa_status,pay_period" - | "employment_type,pay_frequency" - | "employment_type,pay_frequency,pay_period" - | "employment_type,pay_period" - | "flsa_status" - | "flsa_status,pay_frequency" - | "flsa_status,pay_frequency,pay_period" - | "flsa_status,pay_period" - | "pay_frequency" - | "pay_frequency,pay_period" - | "pay_period"; -} diff --git a/src/serialization/resources/hris/resources/employments/types/EmploymentsRetrieveRequestShowEnumOrigins.ts b/src/serialization/resources/hris/resources/employments/types/EmploymentsRetrieveRequestShowEnumOrigins.ts deleted file mode 100644 index 35fe045d1..000000000 --- a/src/serialization/resources/hris/resources/employments/types/EmploymentsRetrieveRequestShowEnumOrigins.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 EmploymentsRetrieveRequestShowEnumOrigins: core.serialization.Schema< - serializers.hris.EmploymentsRetrieveRequestShowEnumOrigins.Raw, - Merge.hris.EmploymentsRetrieveRequestShowEnumOrigins -> = core.serialization.enum_([ - "employment_type", - "employment_type,flsa_status", - "employment_type,flsa_status,pay_frequency", - "employment_type,flsa_status,pay_frequency,pay_period", - "employment_type,flsa_status,pay_period", - "employment_type,pay_frequency", - "employment_type,pay_frequency,pay_period", - "employment_type,pay_period", - "flsa_status", - "flsa_status,pay_frequency", - "flsa_status,pay_frequency,pay_period", - "flsa_status,pay_period", - "pay_frequency", - "pay_frequency,pay_period", - "pay_period", -]); - -export declare namespace EmploymentsRetrieveRequestShowEnumOrigins { - export type Raw = - | "employment_type" - | "employment_type,flsa_status" - | "employment_type,flsa_status,pay_frequency" - | "employment_type,flsa_status,pay_frequency,pay_period" - | "employment_type,flsa_status,pay_period" - | "employment_type,pay_frequency" - | "employment_type,pay_frequency,pay_period" - | "employment_type,pay_period" - | "flsa_status" - | "flsa_status,pay_frequency" - | "flsa_status,pay_frequency,pay_period" - | "flsa_status,pay_period" - | "pay_frequency" - | "pay_frequency,pay_period" - | "pay_period"; -} diff --git a/src/serialization/resources/hris/resources/employments/types/index.ts b/src/serialization/resources/hris/resources/employments/types/index.ts deleted file mode 100644 index 4d767a4f5..000000000 --- a/src/serialization/resources/hris/resources/employments/types/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./EmploymentsListRequestExpand"; -export * from "./EmploymentsListRequestOrderBy"; -export * from "./EmploymentsListRequestRemoteFields"; -export * from "./EmploymentsListRequestShowEnumOrigins"; -export * from "./EmploymentsRetrieveRequestExpand"; -export * from "./EmploymentsRetrieveRequestRemoteFields"; -export * from "./EmploymentsRetrieveRequestShowEnumOrigins"; diff --git a/src/serialization/resources/hris/resources/fieldMapping/client/index.ts b/src/serialization/resources/hris/resources/fieldMapping/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/hris/resources/fieldMapping/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/hris/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/serialization/resources/hris/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts deleted file mode 100644 index 144399f85..000000000 --- a/src/serialization/resources/hris/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ /dev/null @@ -1,33 +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 CreateFieldMappingRequest: core.serialization.Schema< - serializers.hris.CreateFieldMappingRequest.Raw, - Omit -> = core.serialization.object({ - targetFieldName: core.serialization.property("target_field_name", core.serialization.string()), - targetFieldDescription: core.serialization.property("target_field_description", core.serialization.string()), - remoteFieldTraversalPath: core.serialization.property( - "remote_field_traversal_path", - core.serialization.list(core.serialization.unknown()), - ), - 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 { - export interface Raw { - target_field_name: string; - target_field_description: string; - remote_field_traversal_path: unknown[]; - remote_method: string; - remote_url_path: string; - common_model_name: string; - jmes_path?: string | null; - } -} diff --git a/src/serialization/resources/hris/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts b/src/serialization/resources/hris/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts deleted file mode 100644 index d7ab015fc..000000000 --- a/src/serialization/resources/hris/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ /dev/null @@ -1,27 +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 PatchedEditFieldMappingRequest: core.serialization.Schema< - serializers.hris.PatchedEditFieldMappingRequest.Raw, - Merge.hris.PatchedEditFieldMappingRequest -> = core.serialization.object({ - remoteFieldTraversalPath: core.serialization.property( - "remote_field_traversal_path", - core.serialization.list(core.serialization.unknown()).optional(), - ), - 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 { - export interface Raw { - 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/hris/resources/fieldMapping/client/requests/index.ts b/src/serialization/resources/hris/resources/fieldMapping/client/requests/index.ts deleted file mode 100644 index 9bb691d70..000000000 --- a/src/serialization/resources/hris/resources/fieldMapping/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { CreateFieldMappingRequest } from "./CreateFieldMappingRequest"; -export { PatchedEditFieldMappingRequest } from "./PatchedEditFieldMappingRequest"; diff --git a/src/serialization/resources/hris/resources/fieldMapping/index.ts b/src/serialization/resources/hris/resources/fieldMapping/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/hris/resources/fieldMapping/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/hris/resources/forceResync/client/index.ts b/src/serialization/resources/hris/resources/forceResync/client/index.ts deleted file mode 100644 index d5680837c..000000000 --- a/src/serialization/resources/hris/resources/forceResync/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * as syncStatusResyncCreate from "./syncStatusResyncCreate"; diff --git a/src/serialization/resources/hris/resources/forceResync/client/syncStatusResyncCreate.ts b/src/serialization/resources/hris/resources/forceResync/client/syncStatusResyncCreate.ts deleted file mode 100644 index 89cb09b22..000000000 --- a/src/serialization/resources/hris/resources/forceResync/client/syncStatusResyncCreate.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 { SyncStatus } from "../../../types/SyncStatus"; - -export const Response: core.serialization.Schema< - serializers.hris.forceResync.syncStatusResyncCreate.Response.Raw, - Merge.hris.SyncStatus[] -> = core.serialization.list(SyncStatus); - -export declare namespace Response { - export type Raw = SyncStatus.Raw[]; -} diff --git a/src/serialization/resources/hris/resources/forceResync/index.ts b/src/serialization/resources/hris/resources/forceResync/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/hris/resources/forceResync/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/hris/resources/generateKey/client/index.ts b/src/serialization/resources/hris/resources/generateKey/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/hris/resources/generateKey/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/hris/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts b/src/serialization/resources/hris/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts deleted file mode 100644 index 9097f497a..000000000 --- a/src/serialization/resources/hris/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts +++ /dev/null @@ -1,18 +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 GenerateRemoteKeyRequest: core.serialization.Schema< - serializers.hris.GenerateRemoteKeyRequest.Raw, - Merge.hris.GenerateRemoteKeyRequest -> = core.serialization.object({ - name: core.serialization.string(), -}); - -export declare namespace GenerateRemoteKeyRequest { - export interface Raw { - name: string; - } -} diff --git a/src/serialization/resources/hris/resources/generateKey/client/requests/index.ts b/src/serialization/resources/hris/resources/generateKey/client/requests/index.ts deleted file mode 100644 index 0df6e7c8b..000000000 --- a/src/serialization/resources/hris/resources/generateKey/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { GenerateRemoteKeyRequest } from "./GenerateRemoteKeyRequest"; diff --git a/src/serialization/resources/hris/resources/generateKey/index.ts b/src/serialization/resources/hris/resources/generateKey/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/hris/resources/generateKey/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/hris/resources/index.ts b/src/serialization/resources/hris/resources/index.ts deleted file mode 100644 index 86152a1cf..000000000 --- a/src/serialization/resources/hris/resources/index.ts +++ /dev/null @@ -1,41 +0,0 @@ -export * as asyncPassthrough from "./asyncPassthrough"; -export * from "./asyncPassthrough/types"; -export * as bankInfo from "./bankInfo"; -export * from "./bankInfo/types"; -export * as employeePayrollRuns from "./employeePayrollRuns"; -export * from "./employeePayrollRuns/types"; -export * as employees from "./employees"; -export * from "./employees/client/requests"; -export * from "./employees/types"; -export * as employments from "./employments"; -export * from "./employments/types"; -export * as fieldMapping from "./fieldMapping"; -export * from "./fieldMapping/client/requests"; -export * as forceResync from "./forceResync"; -export * as generateKey from "./generateKey"; -export * from "./generateKey/client/requests"; -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 locations from "./locations"; -export * from "./locations/types"; -export * as payrollRuns from "./payrollRuns"; -export * from "./payrollRuns/types"; -export * as regenerateKey from "./regenerateKey"; -export * from "./regenerateKey/client/requests"; -export * as scopes from "./scopes"; -export * from "./scopes/client/requests"; -export * as timeOff from "./timeOff"; -export * from "./timeOff/client/requests"; -export * from "./timeOff/types"; -export * as timeOffBalances from "./timeOffBalances"; -export * from "./timeOffBalances/types"; -export * as timesheetEntries from "./timesheetEntries"; -export * from "./timesheetEntries/client/requests"; -export * from "./timesheetEntries/types"; -export * as webhookReceivers from "./webhookReceivers"; -export * from "./webhookReceivers/client/requests"; diff --git a/src/serialization/resources/hris/resources/issues/index.ts b/src/serialization/resources/hris/resources/issues/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/hris/resources/issues/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; diff --git a/src/serialization/resources/hris/resources/issues/types/IssuesListRequestStatus.ts b/src/serialization/resources/hris/resources/issues/types/IssuesListRequestStatus.ts deleted file mode 100644 index c4fa958c9..000000000 --- a/src/serialization/resources/hris/resources/issues/types/IssuesListRequestStatus.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 IssuesListRequestStatus: core.serialization.Schema< - serializers.hris.IssuesListRequestStatus.Raw, - Merge.hris.IssuesListRequestStatus -> = core.serialization.enum_(["ONGOING", "RESOLVED"]); - -export declare namespace IssuesListRequestStatus { - export type Raw = "ONGOING" | "RESOLVED"; -} diff --git a/src/serialization/resources/hris/resources/issues/types/index.ts b/src/serialization/resources/hris/resources/issues/types/index.ts deleted file mode 100644 index 554cdf48c..000000000 --- a/src/serialization/resources/hris/resources/issues/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./IssuesListRequestStatus"; diff --git a/src/serialization/resources/hris/resources/linkToken/client/index.ts b/src/serialization/resources/hris/resources/linkToken/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/hris/resources/linkToken/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/serialization/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.ts deleted file mode 100644 index 87edec772..000000000 --- a/src/serialization/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ /dev/null @@ -1,72 +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 { 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< - serializers.hris.EndUserDetailsRequest.Raw, - Merge.hris.EndUserDetailsRequest -> = core.serialization.object({ - endUserEmailAddress: core.serialization.property("end_user_email_address", core.serialization.string()), - endUserOrganizationName: core.serialization.property("end_user_organization_name", core.serialization.string()), - endUserOriginId: core.serialization.property("end_user_origin_id", core.serialization.string()), - categories: core.serialization.list(CategoriesEnum), - integration: core.serialization.string().optional(), - linkExpiryMins: core.serialization.property("link_expiry_mins", core.serialization.number().optional()), - shouldCreateMagicLinkUrl: core.serialization.property( - "should_create_magic_link_url", - core.serialization.boolean().optional(), - ), - hideAdminMagicLink: core.serialization.property("hide_admin_magic_link", core.serialization.boolean().optional()), - commonModels: core.serialization.property( - "common_models", - core.serialization.list(CommonModelScopesBodyRequest).optional(), - ), - categoryCommonModelScopes: core.serialization.property( - "category_common_model_scopes", - core.serialization - .record( - core.serialization.string(), - core.serialization.list(IndividualCommonModelScopeDeserializerRequest).optional(), - ) - .optional(), - ), - language: EndUserDetailsRequestLanguage.optional(), - areSyncsDisabled: core.serialization.property("are_syncs_disabled", core.serialization.boolean().optional()), - integrationSpecificConfig: core.serialization.property( - "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 { - export interface Raw { - end_user_email_address: string; - end_user_organization_name: string; - end_user_origin_id: string; - categories: CategoriesEnum.Raw[]; - integration?: string | null; - link_expiry_mins?: number | null; - should_create_magic_link_url?: boolean | null; - hide_admin_magic_link?: boolean | null; - common_models?: CommonModelScopesBodyRequest.Raw[] | null; - category_common_model_scopes?: Record< - string, - IndividualCommonModelScopeDeserializerRequest.Raw[] | null | undefined - > | null; - 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/client/requests/index.ts b/src/serialization/resources/hris/resources/linkToken/client/requests/index.ts deleted file mode 100644 index d94b44a3e..000000000 --- a/src/serialization/resources/hris/resources/linkToken/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { EndUserDetailsRequest } from "./EndUserDetailsRequest"; diff --git a/src/serialization/resources/hris/resources/linkToken/index.ts b/src/serialization/resources/hris/resources/linkToken/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/hris/resources/linkToken/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/serialization/resources/hris/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts b/src/serialization/resources/hris/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts deleted file mode 100644 index 47ba300af..000000000 --- a/src/serialization/resources/hris/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; -import { CompletedAccountInitialScreenEnum } from "../../../types/CompletedAccountInitialScreenEnum"; - -export const EndUserDetailsRequestCompletedAccountInitialScreen: core.serialization.Schema< - serializers.hris.EndUserDetailsRequestCompletedAccountInitialScreen.Raw, - Merge.hris.EndUserDetailsRequestCompletedAccountInitialScreen -> = core.serialization.undiscriminatedUnion([CompletedAccountInitialScreenEnum, core.serialization.string()]); - -export declare namespace EndUserDetailsRequestCompletedAccountInitialScreen { - export type Raw = CompletedAccountInitialScreenEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/resources/linkToken/types/EndUserDetailsRequestLanguage.ts b/src/serialization/resources/hris/resources/linkToken/types/EndUserDetailsRequestLanguage.ts deleted file mode 100644 index fc1cf544d..000000000 --- a/src/serialization/resources/hris/resources/linkToken/types/EndUserDetailsRequestLanguage.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 { LanguageEnum } from "../../../types/LanguageEnum"; - -export const EndUserDetailsRequestLanguage: core.serialization.Schema< - serializers.hris.EndUserDetailsRequestLanguage.Raw, - Merge.hris.EndUserDetailsRequestLanguage -> = core.serialization.undiscriminatedUnion([LanguageEnum, core.serialization.string()]); - -export declare namespace EndUserDetailsRequestLanguage { - export type Raw = LanguageEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/resources/linkToken/types/index.ts b/src/serialization/resources/hris/resources/linkToken/types/index.ts deleted file mode 100644 index 7aed25cb1..000000000 --- a/src/serialization/resources/hris/resources/linkToken/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./EndUserDetailsRequestCompletedAccountInitialScreen"; -export * from "./EndUserDetailsRequestLanguage"; diff --git a/src/serialization/resources/hris/resources/linkedAccounts/index.ts b/src/serialization/resources/hris/resources/linkedAccounts/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/hris/resources/linkedAccounts/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; diff --git a/src/serialization/resources/hris/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts b/src/serialization/resources/hris/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts deleted file mode 100644 index 600163e2a..000000000 --- a/src/serialization/resources/hris/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.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 LinkedAccountsListRequestCategory: core.serialization.Schema< - serializers.hris.LinkedAccountsListRequestCategory.Raw, - Merge.hris.LinkedAccountsListRequestCategory -> = core.serialization.enum_(["accounting", "ats", "crm", "filestorage", "hris", "mktg", "ticketing"]); - -export declare namespace LinkedAccountsListRequestCategory { - export type Raw = "accounting" | "ats" | "crm" | "filestorage" | "hris" | "mktg" | "ticketing"; -} diff --git a/src/serialization/resources/hris/resources/linkedAccounts/types/index.ts b/src/serialization/resources/hris/resources/linkedAccounts/types/index.ts deleted file mode 100644 index 91de6010a..000000000 --- a/src/serialization/resources/hris/resources/linkedAccounts/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./LinkedAccountsListRequestCategory"; diff --git a/src/serialization/resources/hris/resources/locations/index.ts b/src/serialization/resources/hris/resources/locations/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/hris/resources/locations/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; diff --git a/src/serialization/resources/hris/resources/locations/types/LocationsListRequestLocationType.ts b/src/serialization/resources/hris/resources/locations/types/LocationsListRequestLocationType.ts deleted file mode 100644 index 3645e65ba..000000000 --- a/src/serialization/resources/hris/resources/locations/types/LocationsListRequestLocationType.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 LocationsListRequestLocationType: core.serialization.Schema< - serializers.hris.LocationsListRequestLocationType.Raw, - Merge.hris.LocationsListRequestLocationType -> = core.serialization.enum_(["HOME", "WORK"]); - -export declare namespace LocationsListRequestLocationType { - export type Raw = "HOME" | "WORK"; -} diff --git a/src/serialization/resources/hris/resources/locations/types/LocationsListRequestRemoteFields.ts b/src/serialization/resources/hris/resources/locations/types/LocationsListRequestRemoteFields.ts deleted file mode 100644 index 38b6f4219..000000000 --- a/src/serialization/resources/hris/resources/locations/types/LocationsListRequestRemoteFields.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 LocationsListRequestRemoteFields: core.serialization.Schema< - serializers.hris.LocationsListRequestRemoteFields.Raw, - Merge.hris.LocationsListRequestRemoteFields -> = core.serialization.enum_(["country", "country,location_type", "location_type"]); - -export declare namespace LocationsListRequestRemoteFields { - export type Raw = "country" | "country,location_type" | "location_type"; -} diff --git a/src/serialization/resources/hris/resources/locations/types/LocationsListRequestShowEnumOrigins.ts b/src/serialization/resources/hris/resources/locations/types/LocationsListRequestShowEnumOrigins.ts deleted file mode 100644 index 60abfe398..000000000 --- a/src/serialization/resources/hris/resources/locations/types/LocationsListRequestShowEnumOrigins.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 LocationsListRequestShowEnumOrigins: core.serialization.Schema< - serializers.hris.LocationsListRequestShowEnumOrigins.Raw, - Merge.hris.LocationsListRequestShowEnumOrigins -> = core.serialization.enum_(["country", "country,location_type", "location_type"]); - -export declare namespace LocationsListRequestShowEnumOrigins { - export type Raw = "country" | "country,location_type" | "location_type"; -} diff --git a/src/serialization/resources/hris/resources/locations/types/LocationsRetrieveRequestRemoteFields.ts b/src/serialization/resources/hris/resources/locations/types/LocationsRetrieveRequestRemoteFields.ts deleted file mode 100644 index 28c43e648..000000000 --- a/src/serialization/resources/hris/resources/locations/types/LocationsRetrieveRequestRemoteFields.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 LocationsRetrieveRequestRemoteFields: core.serialization.Schema< - serializers.hris.LocationsRetrieveRequestRemoteFields.Raw, - Merge.hris.LocationsRetrieveRequestRemoteFields -> = core.serialization.enum_(["country", "country,location_type", "location_type"]); - -export declare namespace LocationsRetrieveRequestRemoteFields { - export type Raw = "country" | "country,location_type" | "location_type"; -} diff --git a/src/serialization/resources/hris/resources/locations/types/LocationsRetrieveRequestShowEnumOrigins.ts b/src/serialization/resources/hris/resources/locations/types/LocationsRetrieveRequestShowEnumOrigins.ts deleted file mode 100644 index 6b7d29872..000000000 --- a/src/serialization/resources/hris/resources/locations/types/LocationsRetrieveRequestShowEnumOrigins.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 LocationsRetrieveRequestShowEnumOrigins: core.serialization.Schema< - serializers.hris.LocationsRetrieveRequestShowEnumOrigins.Raw, - Merge.hris.LocationsRetrieveRequestShowEnumOrigins -> = core.serialization.enum_(["country", "country,location_type", "location_type"]); - -export declare namespace LocationsRetrieveRequestShowEnumOrigins { - export type Raw = "country" | "country,location_type" | "location_type"; -} diff --git a/src/serialization/resources/hris/resources/locations/types/index.ts b/src/serialization/resources/hris/resources/locations/types/index.ts deleted file mode 100644 index 45bd9980a..000000000 --- a/src/serialization/resources/hris/resources/locations/types/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from "./LocationsListRequestLocationType"; -export * from "./LocationsListRequestRemoteFields"; -export * from "./LocationsListRequestShowEnumOrigins"; -export * from "./LocationsRetrieveRequestRemoteFields"; -export * from "./LocationsRetrieveRequestShowEnumOrigins"; diff --git a/src/serialization/resources/hris/resources/payrollRuns/index.ts b/src/serialization/resources/hris/resources/payrollRuns/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/hris/resources/payrollRuns/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; diff --git a/src/serialization/resources/hris/resources/payrollRuns/types/PayrollRunsListRequestRemoteFields.ts b/src/serialization/resources/hris/resources/payrollRuns/types/PayrollRunsListRequestRemoteFields.ts deleted file mode 100644 index 2efc3f098..000000000 --- a/src/serialization/resources/hris/resources/payrollRuns/types/PayrollRunsListRequestRemoteFields.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 PayrollRunsListRequestRemoteFields: core.serialization.Schema< - serializers.hris.PayrollRunsListRequestRemoteFields.Raw, - Merge.hris.PayrollRunsListRequestRemoteFields -> = core.serialization.enum_(["run_state", "run_state,run_type", "run_type"]); - -export declare namespace PayrollRunsListRequestRemoteFields { - export type Raw = "run_state" | "run_state,run_type" | "run_type"; -} diff --git a/src/serialization/resources/hris/resources/payrollRuns/types/PayrollRunsListRequestRunType.ts b/src/serialization/resources/hris/resources/payrollRuns/types/PayrollRunsListRequestRunType.ts deleted file mode 100644 index 69c86061c..000000000 --- a/src/serialization/resources/hris/resources/payrollRuns/types/PayrollRunsListRequestRunType.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 PayrollRunsListRequestRunType: core.serialization.Schema< - serializers.hris.PayrollRunsListRequestRunType.Raw, - Merge.hris.PayrollRunsListRequestRunType -> = core.serialization.enum_(["CORRECTION", "OFF_CYCLE", "REGULAR", "SIGN_ON_BONUS", "TERMINATION"]); - -export declare namespace PayrollRunsListRequestRunType { - export type Raw = "CORRECTION" | "OFF_CYCLE" | "REGULAR" | "SIGN_ON_BONUS" | "TERMINATION"; -} diff --git a/src/serialization/resources/hris/resources/payrollRuns/types/PayrollRunsListRequestShowEnumOrigins.ts b/src/serialization/resources/hris/resources/payrollRuns/types/PayrollRunsListRequestShowEnumOrigins.ts deleted file mode 100644 index b4d4eba09..000000000 --- a/src/serialization/resources/hris/resources/payrollRuns/types/PayrollRunsListRequestShowEnumOrigins.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 PayrollRunsListRequestShowEnumOrigins: core.serialization.Schema< - serializers.hris.PayrollRunsListRequestShowEnumOrigins.Raw, - Merge.hris.PayrollRunsListRequestShowEnumOrigins -> = core.serialization.enum_(["run_state", "run_state,run_type", "run_type"]); - -export declare namespace PayrollRunsListRequestShowEnumOrigins { - export type Raw = "run_state" | "run_state,run_type" | "run_type"; -} diff --git a/src/serialization/resources/hris/resources/payrollRuns/types/PayrollRunsRetrieveRequestRemoteFields.ts b/src/serialization/resources/hris/resources/payrollRuns/types/PayrollRunsRetrieveRequestRemoteFields.ts deleted file mode 100644 index 1d0034478..000000000 --- a/src/serialization/resources/hris/resources/payrollRuns/types/PayrollRunsRetrieveRequestRemoteFields.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 PayrollRunsRetrieveRequestRemoteFields: core.serialization.Schema< - serializers.hris.PayrollRunsRetrieveRequestRemoteFields.Raw, - Merge.hris.PayrollRunsRetrieveRequestRemoteFields -> = core.serialization.enum_(["run_state", "run_state,run_type", "run_type"]); - -export declare namespace PayrollRunsRetrieveRequestRemoteFields { - export type Raw = "run_state" | "run_state,run_type" | "run_type"; -} diff --git a/src/serialization/resources/hris/resources/payrollRuns/types/PayrollRunsRetrieveRequestShowEnumOrigins.ts b/src/serialization/resources/hris/resources/payrollRuns/types/PayrollRunsRetrieveRequestShowEnumOrigins.ts deleted file mode 100644 index b21fe5af7..000000000 --- a/src/serialization/resources/hris/resources/payrollRuns/types/PayrollRunsRetrieveRequestShowEnumOrigins.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 PayrollRunsRetrieveRequestShowEnumOrigins: core.serialization.Schema< - serializers.hris.PayrollRunsRetrieveRequestShowEnumOrigins.Raw, - Merge.hris.PayrollRunsRetrieveRequestShowEnumOrigins -> = core.serialization.enum_(["run_state", "run_state,run_type", "run_type"]); - -export declare namespace PayrollRunsRetrieveRequestShowEnumOrigins { - export type Raw = "run_state" | "run_state,run_type" | "run_type"; -} diff --git a/src/serialization/resources/hris/resources/payrollRuns/types/index.ts b/src/serialization/resources/hris/resources/payrollRuns/types/index.ts deleted file mode 100644 index 35a5900d8..000000000 --- a/src/serialization/resources/hris/resources/payrollRuns/types/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from "./PayrollRunsListRequestRemoteFields"; -export * from "./PayrollRunsListRequestRunType"; -export * from "./PayrollRunsListRequestShowEnumOrigins"; -export * from "./PayrollRunsRetrieveRequestRemoteFields"; -export * from "./PayrollRunsRetrieveRequestShowEnumOrigins"; diff --git a/src/serialization/resources/hris/resources/regenerateKey/client/index.ts b/src/serialization/resources/hris/resources/regenerateKey/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/hris/resources/regenerateKey/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/hris/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts b/src/serialization/resources/hris/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts deleted file mode 100644 index 95566c8e7..000000000 --- a/src/serialization/resources/hris/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts +++ /dev/null @@ -1,18 +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 RemoteKeyForRegenerationRequest: core.serialization.Schema< - serializers.hris.RemoteKeyForRegenerationRequest.Raw, - Merge.hris.RemoteKeyForRegenerationRequest -> = core.serialization.object({ - name: core.serialization.string(), -}); - -export declare namespace RemoteKeyForRegenerationRequest { - export interface Raw { - name: string; - } -} diff --git a/src/serialization/resources/hris/resources/regenerateKey/client/requests/index.ts b/src/serialization/resources/hris/resources/regenerateKey/client/requests/index.ts deleted file mode 100644 index 2987ef933..000000000 --- a/src/serialization/resources/hris/resources/regenerateKey/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { RemoteKeyForRegenerationRequest } from "./RemoteKeyForRegenerationRequest"; diff --git a/src/serialization/resources/hris/resources/regenerateKey/index.ts b/src/serialization/resources/hris/resources/regenerateKey/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/hris/resources/regenerateKey/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/hris/resources/scopes/client/index.ts b/src/serialization/resources/hris/resources/scopes/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/hris/resources/scopes/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/hris/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts b/src/serialization/resources/hris/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts deleted file mode 100644 index d58a7566d..000000000 --- a/src/serialization/resources/hris/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts +++ /dev/null @@ -1,22 +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 { IndividualCommonModelScopeDeserializerRequest } from "../../../../types/IndividualCommonModelScopeDeserializerRequest"; - -export const LinkedAccountCommonModelScopeDeserializerRequest: core.serialization.Schema< - serializers.hris.LinkedAccountCommonModelScopeDeserializerRequest.Raw, - Merge.hris.LinkedAccountCommonModelScopeDeserializerRequest -> = core.serialization.object({ - commonModels: core.serialization.property( - "common_models", - core.serialization.list(IndividualCommonModelScopeDeserializerRequest), - ), -}); - -export declare namespace LinkedAccountCommonModelScopeDeserializerRequest { - export interface Raw { - common_models: IndividualCommonModelScopeDeserializerRequest.Raw[]; - } -} diff --git a/src/serialization/resources/hris/resources/scopes/client/requests/index.ts b/src/serialization/resources/hris/resources/scopes/client/requests/index.ts deleted file mode 100644 index 28d8d7974..000000000 --- a/src/serialization/resources/hris/resources/scopes/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { LinkedAccountCommonModelScopeDeserializerRequest } from "./LinkedAccountCommonModelScopeDeserializerRequest"; diff --git a/src/serialization/resources/hris/resources/scopes/index.ts b/src/serialization/resources/hris/resources/scopes/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/hris/resources/scopes/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/hris/resources/timeOff/client/index.ts b/src/serialization/resources/hris/resources/timeOff/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/hris/resources/timeOff/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/hris/resources/timeOff/client/requests/TimeOffEndpointRequest.ts b/src/serialization/resources/hris/resources/timeOff/client/requests/TimeOffEndpointRequest.ts deleted file mode 100644 index 53d891473..000000000 --- a/src/serialization/resources/hris/resources/timeOff/client/requests/TimeOffEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { TimeOffRequest } from "../../../../types/TimeOffRequest"; - -export const TimeOffEndpointRequest: core.serialization.Schema< - serializers.hris.TimeOffEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: TimeOffRequest, -}); - -export declare namespace TimeOffEndpointRequest { - export interface Raw { - model: TimeOffRequest.Raw; - } -} diff --git a/src/serialization/resources/hris/resources/timeOff/client/requests/index.ts b/src/serialization/resources/hris/resources/timeOff/client/requests/index.ts deleted file mode 100644 index 41cf9d720..000000000 --- a/src/serialization/resources/hris/resources/timeOff/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { TimeOffEndpointRequest } from "./TimeOffEndpointRequest"; diff --git a/src/serialization/resources/hris/resources/timeOff/index.ts b/src/serialization/resources/hris/resources/timeOff/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/hris/resources/timeOff/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/TimeOffListRequestRemoteFields.ts b/src/serialization/resources/hris/resources/timeOff/types/TimeOffListRequestRemoteFields.ts deleted file mode 100644 index bab8ca0f6..000000000 --- a/src/serialization/resources/hris/resources/timeOff/types/TimeOffListRequestRemoteFields.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 TimeOffListRequestRemoteFields: core.serialization.Schema< - serializers.hris.TimeOffListRequestRemoteFields.Raw, - Merge.hris.TimeOffListRequestRemoteFields -> = core.serialization.enum_([ - "request_type", - "request_type,status", - "request_type,status,units", - "request_type,units", - "status", - "status,units", - "units", -]); - -export declare namespace TimeOffListRequestRemoteFields { - export type Raw = - | "request_type" - | "request_type,status" - | "request_type,status,units" - | "request_type,units" - | "status" - | "status,units" - | "units"; -} diff --git a/src/serialization/resources/hris/resources/timeOff/types/TimeOffListRequestRequestType.ts b/src/serialization/resources/hris/resources/timeOff/types/TimeOffListRequestRequestType.ts deleted file mode 100644 index 38ff37ad2..000000000 --- a/src/serialization/resources/hris/resources/timeOff/types/TimeOffListRequestRequestType.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 TimeOffListRequestRequestType: core.serialization.Schema< - serializers.hris.TimeOffListRequestRequestType.Raw, - Merge.hris.TimeOffListRequestRequestType -> = core.serialization.enum_(["BEREAVEMENT", "JURY_DUTY", "PERSONAL", "SICK", "VACATION", "VOLUNTEER"]); - -export declare namespace TimeOffListRequestRequestType { - export type Raw = "BEREAVEMENT" | "JURY_DUTY" | "PERSONAL" | "SICK" | "VACATION" | "VOLUNTEER"; -} diff --git a/src/serialization/resources/hris/resources/timeOff/types/TimeOffListRequestShowEnumOrigins.ts b/src/serialization/resources/hris/resources/timeOff/types/TimeOffListRequestShowEnumOrigins.ts deleted file mode 100644 index 14e135e90..000000000 --- a/src/serialization/resources/hris/resources/timeOff/types/TimeOffListRequestShowEnumOrigins.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 TimeOffListRequestShowEnumOrigins: core.serialization.Schema< - serializers.hris.TimeOffListRequestShowEnumOrigins.Raw, - Merge.hris.TimeOffListRequestShowEnumOrigins -> = core.serialization.enum_([ - "request_type", - "request_type,status", - "request_type,status,units", - "request_type,units", - "status", - "status,units", - "units", -]); - -export declare namespace TimeOffListRequestShowEnumOrigins { - export type Raw = - | "request_type" - | "request_type,status" - | "request_type,status,units" - | "request_type,units" - | "status" - | "status,units" - | "units"; -} diff --git a/src/serialization/resources/hris/resources/timeOff/types/TimeOffListRequestStatus.ts b/src/serialization/resources/hris/resources/timeOff/types/TimeOffListRequestStatus.ts deleted file mode 100644 index 706f47900..000000000 --- a/src/serialization/resources/hris/resources/timeOff/types/TimeOffListRequestStatus.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 TimeOffListRequestStatus: core.serialization.Schema< - serializers.hris.TimeOffListRequestStatus.Raw, - Merge.hris.TimeOffListRequestStatus -> = core.serialization.enum_(["APPROVED", "CANCELLED", "DECLINED", "DELETED", "REQUESTED"]); - -export declare namespace TimeOffListRequestStatus { - export type Raw = "APPROVED" | "CANCELLED" | "DECLINED" | "DELETED" | "REQUESTED"; -} 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/TimeOffRetrieveRequestRemoteFields.ts b/src/serialization/resources/hris/resources/timeOff/types/TimeOffRetrieveRequestRemoteFields.ts deleted file mode 100644 index 58fa48e53..000000000 --- a/src/serialization/resources/hris/resources/timeOff/types/TimeOffRetrieveRequestRemoteFields.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 TimeOffRetrieveRequestRemoteFields: core.serialization.Schema< - serializers.hris.TimeOffRetrieveRequestRemoteFields.Raw, - Merge.hris.TimeOffRetrieveRequestRemoteFields -> = core.serialization.enum_([ - "request_type", - "request_type,status", - "request_type,status,units", - "request_type,units", - "status", - "status,units", - "units", -]); - -export declare namespace TimeOffRetrieveRequestRemoteFields { - export type Raw = - | "request_type" - | "request_type,status" - | "request_type,status,units" - | "request_type,units" - | "status" - | "status,units" - | "units"; -} diff --git a/src/serialization/resources/hris/resources/timeOff/types/TimeOffRetrieveRequestShowEnumOrigins.ts b/src/serialization/resources/hris/resources/timeOff/types/TimeOffRetrieveRequestShowEnumOrigins.ts deleted file mode 100644 index 14bb776b5..000000000 --- a/src/serialization/resources/hris/resources/timeOff/types/TimeOffRetrieveRequestShowEnumOrigins.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 TimeOffRetrieveRequestShowEnumOrigins: core.serialization.Schema< - serializers.hris.TimeOffRetrieveRequestShowEnumOrigins.Raw, - Merge.hris.TimeOffRetrieveRequestShowEnumOrigins -> = core.serialization.enum_([ - "request_type", - "request_type,status", - "request_type,status,units", - "request_type,units", - "status", - "status,units", - "units", -]); - -export declare namespace TimeOffRetrieveRequestShowEnumOrigins { - export type Raw = - | "request_type" - | "request_type,status" - | "request_type,status,units" - | "request_type,units" - | "status" - | "status,units" - | "units"; -} diff --git a/src/serialization/resources/hris/resources/timeOff/types/index.ts b/src/serialization/resources/hris/resources/timeOff/types/index.ts deleted file mode 100644 index da891165f..000000000 --- a/src/serialization/resources/hris/resources/timeOff/types/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -export * from "./TimeOffListRequestExpand"; -export * from "./TimeOffListRequestRemoteFields"; -export * from "./TimeOffListRequestRequestType"; -export * from "./TimeOffListRequestShowEnumOrigins"; -export * from "./TimeOffListRequestStatus"; -export * from "./TimeOffRetrieveRequestExpand"; -export * from "./TimeOffRetrieveRequestRemoteFields"; -export * from "./TimeOffRetrieveRequestShowEnumOrigins"; diff --git a/src/serialization/resources/hris/resources/timeOffBalances/index.ts b/src/serialization/resources/hris/resources/timeOffBalances/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/hris/resources/timeOffBalances/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; diff --git a/src/serialization/resources/hris/resources/timeOffBalances/types/TimeOffBalancesListRequestPolicyType.ts b/src/serialization/resources/hris/resources/timeOffBalances/types/TimeOffBalancesListRequestPolicyType.ts deleted file mode 100644 index cbe9458bf..000000000 --- a/src/serialization/resources/hris/resources/timeOffBalances/types/TimeOffBalancesListRequestPolicyType.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 TimeOffBalancesListRequestPolicyType: core.serialization.Schema< - serializers.hris.TimeOffBalancesListRequestPolicyType.Raw, - Merge.hris.TimeOffBalancesListRequestPolicyType -> = core.serialization.enum_(["BEREAVEMENT", "JURY_DUTY", "PERSONAL", "SICK", "VACATION", "VOLUNTEER"]); - -export declare namespace TimeOffBalancesListRequestPolicyType { - export type Raw = "BEREAVEMENT" | "JURY_DUTY" | "PERSONAL" | "SICK" | "VACATION" | "VOLUNTEER"; -} diff --git a/src/serialization/resources/hris/resources/timeOffBalances/types/index.ts b/src/serialization/resources/hris/resources/timeOffBalances/types/index.ts deleted file mode 100644 index 14ee2ec5e..000000000 --- a/src/serialization/resources/hris/resources/timeOffBalances/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./TimeOffBalancesListRequestPolicyType"; diff --git a/src/serialization/resources/hris/resources/timesheetEntries/client/index.ts b/src/serialization/resources/hris/resources/timesheetEntries/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/hris/resources/timesheetEntries/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/hris/resources/timesheetEntries/client/requests/TimesheetEntryEndpointRequest.ts b/src/serialization/resources/hris/resources/timesheetEntries/client/requests/TimesheetEntryEndpointRequest.ts deleted file mode 100644 index a5cb04384..000000000 --- a/src/serialization/resources/hris/resources/timesheetEntries/client/requests/TimesheetEntryEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { TimesheetEntryRequest } from "../../../../types/TimesheetEntryRequest"; - -export const TimesheetEntryEndpointRequest: core.serialization.Schema< - serializers.hris.TimesheetEntryEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: TimesheetEntryRequest, -}); - -export declare namespace TimesheetEntryEndpointRequest { - export interface Raw { - model: TimesheetEntryRequest.Raw; - } -} diff --git a/src/serialization/resources/hris/resources/timesheetEntries/client/requests/index.ts b/src/serialization/resources/hris/resources/timesheetEntries/client/requests/index.ts deleted file mode 100644 index 695b927b7..000000000 --- a/src/serialization/resources/hris/resources/timesheetEntries/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { TimesheetEntryEndpointRequest } from "./TimesheetEntryEndpointRequest"; diff --git a/src/serialization/resources/hris/resources/timesheetEntries/index.ts b/src/serialization/resources/hris/resources/timesheetEntries/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/hris/resources/timesheetEntries/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; diff --git a/src/serialization/resources/hris/resources/timesheetEntries/types/TimesheetEntriesListRequestOrderBy.ts b/src/serialization/resources/hris/resources/timesheetEntries/types/TimesheetEntriesListRequestOrderBy.ts deleted file mode 100644 index e5f014b11..000000000 --- a/src/serialization/resources/hris/resources/timesheetEntries/types/TimesheetEntriesListRequestOrderBy.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 TimesheetEntriesListRequestOrderBy: core.serialization.Schema< - serializers.hris.TimesheetEntriesListRequestOrderBy.Raw, - Merge.hris.TimesheetEntriesListRequestOrderBy -> = core.serialization.enum_(["-start_time", "start_time"]); - -export declare namespace TimesheetEntriesListRequestOrderBy { - export type Raw = "-start_time" | "start_time"; -} diff --git a/src/serialization/resources/hris/resources/timesheetEntries/types/index.ts b/src/serialization/resources/hris/resources/timesheetEntries/types/index.ts deleted file mode 100644 index f09ad04a1..000000000 --- a/src/serialization/resources/hris/resources/timesheetEntries/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./TimesheetEntriesListRequestOrderBy"; diff --git a/src/serialization/resources/hris/resources/webhookReceivers/client/index.ts b/src/serialization/resources/hris/resources/webhookReceivers/client/index.ts deleted file mode 100644 index 257d03e90..000000000 --- a/src/serialization/resources/hris/resources/webhookReceivers/client/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * as list from "./list"; -export * from "./requests"; diff --git a/src/serialization/resources/hris/resources/webhookReceivers/client/list.ts b/src/serialization/resources/hris/resources/webhookReceivers/client/list.ts deleted file mode 100644 index 471cc32b3..000000000 --- a/src/serialization/resources/hris/resources/webhookReceivers/client/list.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 { WebhookReceiver } from "../../../types/WebhookReceiver"; - -export const Response: core.serialization.Schema< - serializers.hris.webhookReceivers.list.Response.Raw, - Merge.hris.WebhookReceiver[] -> = core.serialization.list(WebhookReceiver); - -export declare namespace Response { - export type Raw = WebhookReceiver.Raw[]; -} diff --git a/src/serialization/resources/hris/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts b/src/serialization/resources/hris/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts deleted file mode 100644 index e47af1459..000000000 --- a/src/serialization/resources/hris/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts +++ /dev/null @@ -1,22 +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 WebhookReceiverRequest: core.serialization.Schema< - serializers.hris.WebhookReceiverRequest.Raw, - Merge.hris.WebhookReceiverRequest -> = core.serialization.object({ - event: core.serialization.string(), - isActive: core.serialization.property("is_active", core.serialization.boolean()), - key: core.serialization.string().optional(), -}); - -export declare namespace WebhookReceiverRequest { - export interface Raw { - event: string; - is_active: boolean; - key?: string | null; - } -} diff --git a/src/serialization/resources/hris/resources/webhookReceivers/client/requests/index.ts b/src/serialization/resources/hris/resources/webhookReceivers/client/requests/index.ts deleted file mode 100644 index 29f534250..000000000 --- a/src/serialization/resources/hris/resources/webhookReceivers/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { WebhookReceiverRequest } from "./WebhookReceiverRequest"; diff --git a/src/serialization/resources/hris/resources/webhookReceivers/index.ts b/src/serialization/resources/hris/resources/webhookReceivers/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/hris/resources/webhookReceivers/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/hris/types/AccountDetails.ts b/src/serialization/resources/hris/types/AccountDetails.ts deleted file mode 100644 index 3ae432bc5..000000000 --- a/src/serialization/resources/hris/types/AccountDetails.ts +++ /dev/null @@ -1,44 +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 { AccountDetailsCategory } from "./AccountDetailsCategory"; - -export const AccountDetails: core.serialization.ObjectSchema< - serializers.hris.AccountDetails.Raw, - Merge.hris.AccountDetails -> = core.serialization.object({ - id: core.serialization.string().optional(), - integration: core.serialization.string().optional(), - integrationSlug: core.serialization.property("integration_slug", core.serialization.string().optional()), - category: AccountDetailsCategory.optional(), - endUserOriginId: core.serialization.property("end_user_origin_id", core.serialization.string().optional()), - endUserOrganizationName: core.serialization.property( - "end_user_organization_name", - core.serialization.string().optional(), - ), - endUserEmailAddress: core.serialization.property("end_user_email_address", core.serialization.string().optional()), - status: core.serialization.string().optional(), - webhookListenerUrl: core.serialization.property("webhook_listener_url", core.serialization.string().optional()), - isDuplicate: core.serialization.property("is_duplicate", core.serialization.boolean().optional()), - accountType: core.serialization.property("account_type", core.serialization.string().optional()), - completedAt: core.serialization.property("completed_at", core.serialization.date().optional()), -}); - -export declare namespace AccountDetails { - export interface Raw { - id?: string | null; - integration?: string | null; - integration_slug?: string | null; - category?: AccountDetailsCategory.Raw | null; - end_user_origin_id?: string | null; - end_user_organization_name?: string | null; - end_user_email_address?: string | null; - status?: string | null; - webhook_listener_url?: string | null; - is_duplicate?: boolean | null; - account_type?: string | null; - completed_at?: string | null; - } -} diff --git a/src/serialization/resources/hris/types/AccountDetailsAndActions.ts b/src/serialization/resources/hris/types/AccountDetailsAndActions.ts deleted file mode 100644 index 3e69a5db0..000000000 --- a/src/serialization/resources/hris/types/AccountDetailsAndActions.ts +++ /dev/null @@ -1,50 +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 { AccountDetailsAndActionsCategory } from "./AccountDetailsAndActionsCategory"; -import { AccountDetailsAndActionsIntegration } from "./AccountDetailsAndActionsIntegration"; -import { AccountDetailsAndActionsStatus } from "./AccountDetailsAndActionsStatus"; - -export const AccountDetailsAndActions: core.serialization.ObjectSchema< - serializers.hris.AccountDetailsAndActions.Raw, - Merge.hris.AccountDetailsAndActions -> = core.serialization.object({ - id: core.serialization.string(), - 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()), - endUserEmailAddress: core.serialization.property("end_user_email_address", core.serialization.string()), - subdomain: core.serialization.string().optional(), - webhookListenerUrl: core.serialization.property("webhook_listener_url", core.serialization.string()), - isDuplicate: core.serialization.property("is_duplicate", core.serialization.boolean().optional()), - 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 { - export interface Raw { - id: string; - category?: AccountDetailsAndActionsCategory.Raw | null; - status: AccountDetailsAndActionsStatus.Raw; - status_detail?: string | null; - end_user_origin_id?: string | null; - end_user_organization_name: string; - end_user_email_address: string; - subdomain?: string | null; - webhook_listener_url: string; - is_duplicate?: boolean | null; - integration?: AccountDetailsAndActionsIntegration.Raw | null; - account_type: string; - completed_at: string; - integration_specific_fields?: Record | null; - } -} diff --git a/src/serialization/resources/hris/types/AccountDetailsAndActionsCategory.ts b/src/serialization/resources/hris/types/AccountDetailsAndActionsCategory.ts deleted file mode 100644 index 071b3e424..000000000 --- a/src/serialization/resources/hris/types/AccountDetailsAndActionsCategory.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { CategoryEnum } from "./CategoryEnum"; - -export const AccountDetailsAndActionsCategory: core.serialization.Schema< - serializers.hris.AccountDetailsAndActionsCategory.Raw, - Merge.hris.AccountDetailsAndActionsCategory -> = core.serialization.undiscriminatedUnion([CategoryEnum, core.serialization.string()]); - -export declare namespace AccountDetailsAndActionsCategory { - export type Raw = CategoryEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/AccountDetailsAndActionsIntegration.ts b/src/serialization/resources/hris/types/AccountDetailsAndActionsIntegration.ts deleted file mode 100644 index f02a14d25..000000000 --- a/src/serialization/resources/hris/types/AccountDetailsAndActionsIntegration.ts +++ /dev/null @@ -1,37 +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 { CategoriesEnum } from "./CategoriesEnum"; -import { ModelOperation } from "./ModelOperation"; - -export const AccountDetailsAndActionsIntegration: core.serialization.ObjectSchema< - serializers.hris.AccountDetailsAndActionsIntegration.Raw, - Merge.hris.AccountDetailsAndActionsIntegration -> = core.serialization.object({ - name: core.serialization.string(), - categories: core.serialization.list(CategoriesEnum), - image: core.serialization.string().optional(), - squareImage: core.serialization.property("square_image", core.serialization.string().optional()), - color: core.serialization.string(), - slug: core.serialization.string(), - passthroughAvailable: core.serialization.property("passthrough_available", core.serialization.boolean()), - availableModelOperations: core.serialization.property( - "available_model_operations", - core.serialization.list(ModelOperation).optional(), - ), -}); - -export declare namespace AccountDetailsAndActionsIntegration { - export interface Raw { - name: string; - categories: CategoriesEnum.Raw[]; - image?: string | null; - square_image?: string | null; - color: string; - slug: string; - passthrough_available: boolean; - available_model_operations?: ModelOperation.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/AccountDetailsAndActionsStatus.ts b/src/serialization/resources/hris/types/AccountDetailsAndActionsStatus.ts deleted file mode 100644 index e28914e4e..000000000 --- a/src/serialization/resources/hris/types/AccountDetailsAndActionsStatus.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 { AccountDetailsAndActionsStatusEnum } from "./AccountDetailsAndActionsStatusEnum"; - -export const AccountDetailsAndActionsStatus: core.serialization.Schema< - serializers.hris.AccountDetailsAndActionsStatus.Raw, - Merge.hris.AccountDetailsAndActionsStatus -> = core.serialization.undiscriminatedUnion([AccountDetailsAndActionsStatusEnum, core.serialization.string()]); - -export declare namespace AccountDetailsAndActionsStatus { - export type Raw = AccountDetailsAndActionsStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/AccountDetailsAndActionsStatusEnum.ts b/src/serialization/resources/hris/types/AccountDetailsAndActionsStatusEnum.ts deleted file mode 100644 index 94e8ddb87..000000000 --- a/src/serialization/resources/hris/types/AccountDetailsAndActionsStatusEnum.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 AccountDetailsAndActionsStatusEnum: core.serialization.Schema< - serializers.hris.AccountDetailsAndActionsStatusEnum.Raw, - Merge.hris.AccountDetailsAndActionsStatusEnum -> = core.serialization.enum_(["COMPLETE", "INCOMPLETE", "RELINK_NEEDED", "IDLE"]); - -export declare namespace AccountDetailsAndActionsStatusEnum { - export type Raw = "COMPLETE" | "INCOMPLETE" | "RELINK_NEEDED" | "IDLE"; -} diff --git a/src/serialization/resources/hris/types/AccountDetailsCategory.ts b/src/serialization/resources/hris/types/AccountDetailsCategory.ts deleted file mode 100644 index 92b93f371..000000000 --- a/src/serialization/resources/hris/types/AccountDetailsCategory.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { CategoryEnum } from "./CategoryEnum"; - -export const AccountDetailsCategory: core.serialization.Schema< - serializers.hris.AccountDetailsCategory.Raw, - Merge.hris.AccountDetailsCategory -> = core.serialization.undiscriminatedUnion([CategoryEnum, core.serialization.string()]); - -export declare namespace AccountDetailsCategory { - export type Raw = CategoryEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/AccountIntegration.ts b/src/serialization/resources/hris/types/AccountIntegration.ts deleted file mode 100644 index 5fa8d6896..000000000 --- a/src/serialization/resources/hris/types/AccountIntegration.ts +++ /dev/null @@ -1,46 +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 { CategoriesEnum } from "./CategoriesEnum"; - -export const AccountIntegration: core.serialization.ObjectSchema< - serializers.hris.AccountIntegration.Raw, - Merge.hris.AccountIntegration -> = core.serialization.object({ - name: core.serialization.string(), - abbreviatedName: core.serialization.property("abbreviated_name", core.serialization.string().optional()), - categories: core.serialization.list(CategoriesEnum).optional(), - image: core.serialization.string().optional(), - squareImage: core.serialization.property("square_image", core.serialization.string().optional()), - color: core.serialization.string().optional(), - slug: core.serialization.string().optional(), - apiEndpointsToDocumentationUrls: core.serialization.property( - "api_endpoints_to_documentation_urls", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - webhookSetupGuideUrl: core.serialization.property( - "webhook_setup_guide_url", - core.serialization.string().optional(), - ), - categoryBetaStatus: core.serialization.property( - "category_beta_status", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), -}); - -export declare namespace AccountIntegration { - export interface Raw { - name: string; - abbreviated_name?: string | null; - categories?: CategoriesEnum.Raw[] | null; - image?: string | null; - square_image?: string | null; - color?: string | null; - slug?: string | null; - api_endpoints_to_documentation_urls?: Record | null; - webhook_setup_guide_url?: string | null; - category_beta_status?: Record | null; - } -} diff --git a/src/serialization/resources/hris/types/AccountToken.ts b/src/serialization/resources/hris/types/AccountToken.ts deleted file mode 100644 index 98270e440..000000000 --- a/src/serialization/resources/hris/types/AccountToken.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { AccountIntegration } from "./AccountIntegration"; - -export const AccountToken: core.serialization.ObjectSchema = - core.serialization.object({ - accountToken: core.serialization.property("account_token", core.serialization.string()), - integration: AccountIntegration, - id: core.serialization.string(), - }); - -export declare namespace AccountToken { - export interface Raw { - account_token: string; - integration: AccountIntegration.Raw; - id: string; - } -} diff --git a/src/serialization/resources/hris/types/AccountTypeEnum.ts b/src/serialization/resources/hris/types/AccountTypeEnum.ts deleted file mode 100644 index 6911de620..000000000 --- a/src/serialization/resources/hris/types/AccountTypeEnum.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 AccountTypeEnum: core.serialization.Schema< - serializers.hris.AccountTypeEnum.Raw, - Merge.hris.AccountTypeEnum -> = core.serialization.enum_(["SAVINGS", "CHECKING"]); - -export declare namespace AccountTypeEnum { - export type Raw = "SAVINGS" | "CHECKING"; -} diff --git a/src/serialization/resources/hris/types/AdvancedMetadata.ts b/src/serialization/resources/hris/types/AdvancedMetadata.ts deleted file mode 100644 index 9e1dd33f8..000000000 --- a/src/serialization/resources/hris/types/AdvancedMetadata.ts +++ /dev/null @@ -1,31 +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 AdvancedMetadata: core.serialization.ObjectSchema< - serializers.hris.AdvancedMetadata.Raw, - Merge.hris.AdvancedMetadata -> = core.serialization.object({ - id: core.serialization.string(), - displayName: core.serialization.property("display_name", core.serialization.string().optional()), - description: core.serialization.string().optional(), - isRequired: core.serialization.property("is_required", core.serialization.boolean().optional()), - isCustom: core.serialization.property("is_custom", core.serialization.boolean().optional()), - fieldChoices: core.serialization.property( - "field_choices", - core.serialization.list(core.serialization.unknown()).optional(), - ), -}); - -export declare namespace AdvancedMetadata { - export interface Raw { - id: string; - display_name?: string | null; - description?: string | null; - is_required?: boolean | null; - is_custom?: boolean | null; - field_choices?: unknown[] | null; - } -} diff --git a/src/serialization/resources/hris/types/AsyncPassthroughReciept.ts b/src/serialization/resources/hris/types/AsyncPassthroughReciept.ts deleted file mode 100644 index 4249de85d..000000000 --- a/src/serialization/resources/hris/types/AsyncPassthroughReciept.ts +++ /dev/null @@ -1,18 +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 AsyncPassthroughReciept: core.serialization.ObjectSchema< - serializers.hris.AsyncPassthroughReciept.Raw, - Merge.hris.AsyncPassthroughReciept -> = core.serialization.object({ - asyncPassthroughReceiptId: core.serialization.property("async_passthrough_receipt_id", core.serialization.string()), -}); - -export declare namespace AsyncPassthroughReciept { - export interface Raw { - async_passthrough_receipt_id: string; - } -} diff --git a/src/serialization/resources/hris/types/AuditLogEvent.ts b/src/serialization/resources/hris/types/AuditLogEvent.ts deleted file mode 100644 index 549771916..000000000 --- a/src/serialization/resources/hris/types/AuditLogEvent.ts +++ /dev/null @@ -1,34 +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 { AuditLogEventEventType } from "./AuditLogEventEventType"; -import { AuditLogEventRole } from "./AuditLogEventRole"; - -export const AuditLogEvent: core.serialization.ObjectSchema< - serializers.hris.AuditLogEvent.Raw, - Merge.hris.AuditLogEvent -> = core.serialization.object({ - id: core.serialization.string().optional(), - userName: core.serialization.property("user_name", core.serialization.string().optional()), - userEmail: core.serialization.property("user_email", core.serialization.string().optional()), - role: AuditLogEventRole, - ipAddress: core.serialization.property("ip_address", core.serialization.string()), - eventType: core.serialization.property("event_type", AuditLogEventEventType), - eventDescription: core.serialization.property("event_description", core.serialization.string()), - createdAt: core.serialization.property("created_at", core.serialization.date().optional()), -}); - -export declare namespace AuditLogEvent { - export interface Raw { - id?: string | null; - user_name?: string | null; - user_email?: string | null; - role: AuditLogEventRole.Raw; - ip_address: string; - event_type: AuditLogEventEventType.Raw; - event_description: string; - created_at?: string | null; - } -} diff --git a/src/serialization/resources/hris/types/AuditLogEventEventType.ts b/src/serialization/resources/hris/types/AuditLogEventEventType.ts deleted file mode 100644 index cd339042c..000000000 --- a/src/serialization/resources/hris/types/AuditLogEventEventType.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 { EventTypeEnum } from "./EventTypeEnum"; - -export const AuditLogEventEventType: core.serialization.Schema< - serializers.hris.AuditLogEventEventType.Raw, - Merge.hris.AuditLogEventEventType -> = core.serialization.undiscriminatedUnion([EventTypeEnum, core.serialization.string()]); - -export declare namespace AuditLogEventEventType { - export type Raw = EventTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/AuditLogEventRole.ts b/src/serialization/resources/hris/types/AuditLogEventRole.ts deleted file mode 100644 index 818544519..000000000 --- a/src/serialization/resources/hris/types/AuditLogEventRole.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 { RoleEnum } from "./RoleEnum"; - -export const AuditLogEventRole: core.serialization.Schema< - serializers.hris.AuditLogEventRole.Raw, - Merge.hris.AuditLogEventRole -> = core.serialization.undiscriminatedUnion([RoleEnum, core.serialization.string()]); - -export declare namespace AuditLogEventRole { - export type Raw = RoleEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/AvailableActions.ts b/src/serialization/resources/hris/types/AvailableActions.ts deleted file mode 100644 index 17db05a40..000000000 --- a/src/serialization/resources/hris/types/AvailableActions.ts +++ /dev/null @@ -1,27 +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 { AccountIntegration } from "./AccountIntegration"; -import { ModelOperation } from "./ModelOperation"; - -export const AvailableActions: core.serialization.ObjectSchema< - serializers.hris.AvailableActions.Raw, - Merge.hris.AvailableActions -> = core.serialization.object({ - integration: AccountIntegration, - passthroughAvailable: core.serialization.property("passthrough_available", core.serialization.boolean()), - availableModelOperations: core.serialization.property( - "available_model_operations", - core.serialization.list(ModelOperation).optional(), - ), -}); - -export declare namespace AvailableActions { - export interface Raw { - integration: AccountIntegration.Raw; - passthrough_available: boolean; - available_model_operations?: ModelOperation.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/BankInfo.ts b/src/serialization/resources/hris/types/BankInfo.ts deleted file mode 100644 index c5b32f009..000000000 --- a/src/serialization/resources/hris/types/BankInfo.ts +++ /dev/null @@ -1,46 +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 { BankInfoAccountType } from "./BankInfoAccountType"; -import { BankInfoEmployee } from "./BankInfoEmployee"; -import { RemoteData } from "./RemoteData"; - -export const BankInfo: core.serialization.ObjectSchema = - 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()), - employee: BankInfoEmployee.optional(), - accountNumber: core.serialization.property("account_number", core.serialization.string().optional()), - routingNumber: core.serialization.property("routing_number", core.serialization.string().optional()), - bankName: core.serialization.property("bank_name", core.serialization.string().optional()), - accountType: core.serialization.property("account_type", BankInfoAccountType.optional()), - remoteCreatedAt: core.serialization.property("remote_created_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()), - }); - -export declare namespace BankInfo { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - employee?: BankInfoEmployee.Raw | null; - account_number?: string | null; - routing_number?: string | null; - bank_name?: string | null; - account_type?: BankInfoAccountType.Raw | null; - remote_created_at?: string | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/BankInfoAccountType.ts b/src/serialization/resources/hris/types/BankInfoAccountType.ts deleted file mode 100644 index 1a199ccef..000000000 --- a/src/serialization/resources/hris/types/BankInfoAccountType.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 { AccountTypeEnum } from "./AccountTypeEnum"; - -export const BankInfoAccountType: core.serialization.Schema< - serializers.hris.BankInfoAccountType.Raw, - Merge.hris.BankInfoAccountType -> = core.serialization.undiscriminatedUnion([AccountTypeEnum, core.serialization.string()]); - -export declare namespace BankInfoAccountType { - export type Raw = AccountTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/BankInfoEmployee.ts b/src/serialization/resources/hris/types/BankInfoEmployee.ts deleted file mode 100644 index 94898d422..000000000 --- a/src/serialization/resources/hris/types/BankInfoEmployee.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const BankInfoEmployee: core.serialization.Schema< - serializers.hris.BankInfoEmployee.Raw, - Merge.hris.BankInfoEmployee -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.hris.Employee), -]); - -export declare namespace BankInfoEmployee { - export type Raw = string | serializers.hris.Employee.Raw; -} diff --git a/src/serialization/resources/hris/types/Benefit.ts b/src/serialization/resources/hris/types/Benefit.ts deleted file mode 100644 index d29b9eb8a..000000000 --- a/src/serialization/resources/hris/types/Benefit.ts +++ /dev/null @@ -1,55 +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 { BenefitEmployee } from "./BenefitEmployee"; -import { RemoteData } from "./RemoteData"; - -export const Benefit: core.serialization.ObjectSchema = - 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()), - employee: BenefitEmployee.optional(), - providerName: core.serialization.property("provider_name", core.serialization.string().optional()), - benefitPlanType: core.serialization.property("benefit_plan_type", core.serialization.string().optional()), - employeeContribution: core.serialization.property( - "employee_contribution", - core.serialization.number().optional(), - ), - companyContribution: core.serialization.property( - "company_contribution", - core.serialization.number().optional(), - ), - startDate: core.serialization.property("start_date", core.serialization.date().optional()), - endDate: core.serialization.property("end_date", core.serialization.date().optional()), - employerBenefit: core.serialization.property("employer_benefit", core.serialization.string().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()), - }); - -export declare namespace Benefit { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - employee?: BenefitEmployee.Raw | null; - provider_name?: string | null; - benefit_plan_type?: string | null; - employee_contribution?: number | null; - company_contribution?: number | null; - start_date?: string | null; - end_date?: string | null; - employer_benefit?: string | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/BenefitEmployee.ts b/src/serialization/resources/hris/types/BenefitEmployee.ts deleted file mode 100644 index f47c72016..000000000 --- a/src/serialization/resources/hris/types/BenefitEmployee.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const BenefitEmployee: core.serialization.Schema< - serializers.hris.BenefitEmployee.Raw, - Merge.hris.BenefitEmployee -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.hris.Employee), -]); - -export declare namespace BenefitEmployee { - export type Raw = string | serializers.hris.Employee.Raw; -} diff --git a/src/serialization/resources/hris/types/BenefitPlanTypeEnum.ts b/src/serialization/resources/hris/types/BenefitPlanTypeEnum.ts deleted file mode 100644 index 40b24f075..000000000 --- a/src/serialization/resources/hris/types/BenefitPlanTypeEnum.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 BenefitPlanTypeEnum: core.serialization.Schema< - serializers.hris.BenefitPlanTypeEnum.Raw, - Merge.hris.BenefitPlanTypeEnum -> = core.serialization.enum_(["MEDICAL", "HEALTH_SAVINGS", "INSURANCE", "RETIREMENT", "OTHER"]); - -export declare namespace BenefitPlanTypeEnum { - export type Raw = "MEDICAL" | "HEALTH_SAVINGS" | "INSURANCE" | "RETIREMENT" | "OTHER"; -} diff --git a/src/serialization/resources/hris/types/CategoriesEnum.ts b/src/serialization/resources/hris/types/CategoriesEnum.ts deleted file mode 100644 index 5e1a7e936..000000000 --- a/src/serialization/resources/hris/types/CategoriesEnum.ts +++ /dev/null @@ -1,12 +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 CategoriesEnum: core.serialization.Schema = - core.serialization.enum_(["hris", "ats", "accounting", "ticketing", "crm", "mktg", "filestorage"]); - -export declare namespace CategoriesEnum { - export type Raw = "hris" | "ats" | "accounting" | "ticketing" | "crm" | "mktg" | "filestorage"; -} diff --git a/src/serialization/resources/hris/types/CategoryEnum.ts b/src/serialization/resources/hris/types/CategoryEnum.ts deleted file mode 100644 index 0133ff481..000000000 --- a/src/serialization/resources/hris/types/CategoryEnum.ts +++ /dev/null @@ -1,12 +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 CategoryEnum: core.serialization.Schema = - core.serialization.enum_(["hris", "ats", "accounting", "ticketing", "crm", "mktg", "filestorage"]); - -export declare namespace CategoryEnum { - export type Raw = "hris" | "ats" | "accounting" | "ticketing" | "crm" | "mktg" | "filestorage"; -} diff --git a/src/serialization/resources/hris/types/CommonModelScopeApi.ts b/src/serialization/resources/hris/types/CommonModelScopeApi.ts deleted file mode 100644 index f2da8d307..000000000 --- a/src/serialization/resources/hris/types/CommonModelScopeApi.ts +++ /dev/null @@ -1,22 +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 { IndividualCommonModelScopeDeserializer } from "./IndividualCommonModelScopeDeserializer"; - -export const CommonModelScopeApi: core.serialization.ObjectSchema< - serializers.hris.CommonModelScopeApi.Raw, - Merge.hris.CommonModelScopeApi -> = core.serialization.object({ - commonModels: core.serialization.property( - "common_models", - core.serialization.list(IndividualCommonModelScopeDeserializer), - ), -}); - -export declare namespace CommonModelScopeApi { - export interface Raw { - common_models: IndividualCommonModelScopeDeserializer.Raw[]; - } -} diff --git a/src/serialization/resources/hris/types/CommonModelScopesBodyRequest.ts b/src/serialization/resources/hris/types/CommonModelScopesBodyRequest.ts deleted file mode 100644 index 731e36dc0..000000000 --- a/src/serialization/resources/hris/types/CommonModelScopesBodyRequest.ts +++ /dev/null @@ -1,26 +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 { EnabledActionsEnum } from "./EnabledActionsEnum"; - -export const CommonModelScopesBodyRequest: core.serialization.ObjectSchema< - serializers.hris.CommonModelScopesBodyRequest.Raw, - Merge.hris.CommonModelScopesBodyRequest -> = core.serialization.object({ - modelId: core.serialization.property("model_id", core.serialization.string()), - enabledActions: core.serialization.property("enabled_actions", core.serialization.list(EnabledActionsEnum)), - disabledFields: core.serialization.property( - "disabled_fields", - core.serialization.list(core.serialization.string()), - ), -}); - -export declare namespace CommonModelScopesBodyRequest { - export interface Raw { - model_id: string; - enabled_actions: EnabledActionsEnum.Raw[]; - disabled_fields: string[]; - } -} diff --git a/src/serialization/resources/hris/types/Company.ts b/src/serialization/resources/hris/types/Company.ts deleted file mode 100644 index e81d00415..000000000 --- a/src/serialization/resources/hris/types/Company.ts +++ /dev/null @@ -1,38 +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 { RemoteData } from "./RemoteData"; - -export const Company: core.serialization.ObjectSchema = - 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()), - legalName: core.serialization.property("legal_name", core.serialization.string().optional()), - displayName: core.serialization.property("display_name", core.serialization.string().optional()), - eins: 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(), - ), - remoteData: core.serialization.property("remote_data", core.serialization.list(RemoteData).optional()), - }); - -export declare namespace Company { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - legal_name?: string | null; - display_name?: string | null; - eins?: (string | null | undefined)[] | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/CompletedAccountInitialScreenEnum.ts b/src/serialization/resources/hris/types/CompletedAccountInitialScreenEnum.ts deleted file mode 100644 index 5d4d89baf..000000000 --- a/src/serialization/resources/hris/types/CompletedAccountInitialScreenEnum.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; - -export const CompletedAccountInitialScreenEnum: core.serialization.Schema< - serializers.hris.CompletedAccountInitialScreenEnum.Raw, - Merge.hris.CompletedAccountInitialScreenEnum -> = core.serialization.stringLiteral("SELECTIVE_SYNC"); - -export declare namespace CompletedAccountInitialScreenEnum { - export type Raw = "SELECTIVE_SYNC"; -} diff --git a/src/serialization/resources/hris/types/CountryEnum.ts b/src/serialization/resources/hris/types/CountryEnum.ts deleted file mode 100644 index 2e02288a0..000000000 --- a/src/serialization/resources/hris/types/CountryEnum.ts +++ /dev/null @@ -1,511 +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 CountryEnum: core.serialization.Schema = - core.serialization.enum_([ - "AF", - "AX", - "AL", - "DZ", - "AS", - "AD", - "AO", - "AI", - "AQ", - "AG", - "AR", - "AM", - "AW", - "AU", - "AT", - "AZ", - "BS", - "BH", - "BD", - "BB", - "BY", - "BE", - "BZ", - "BJ", - "BM", - "BT", - "BO", - "BQ", - "BA", - "BW", - "BV", - "BR", - "IO", - "BN", - "BG", - "BF", - "BI", - "CV", - "KH", - "CM", - "CA", - "KY", - "CF", - "TD", - "CL", - "CN", - "CX", - "CC", - "CO", - "KM", - "CG", - "CD", - "CK", - "CR", - "CI", - "HR", - "CU", - "CW", - "CY", - "CZ", - "DK", - "DJ", - "DM", - "DO", - "EC", - "EG", - "SV", - "GQ", - "ER", - "EE", - "SZ", - "ET", - "FK", - "FO", - "FJ", - "FI", - "FR", - "GF", - "PF", - "TF", - "GA", - "GM", - "GE", - "DE", - "GH", - "GI", - "GR", - "GL", - "GD", - "GP", - "GU", - "GT", - "GG", - "GN", - "GW", - "GY", - "HT", - "HM", - "VA", - "HN", - "HK", - "HU", - "IS", - "IN", - "ID", - "IR", - "IQ", - "IE", - "IM", - "IL", - "IT", - "JM", - "JP", - "JE", - "JO", - "KZ", - "KE", - "KI", - "KW", - "KG", - "LA", - "LV", - "LB", - "LS", - "LR", - "LY", - "LI", - "LT", - "LU", - "MO", - "MG", - "MW", - "MY", - "MV", - "ML", - "MT", - "MH", - "MQ", - "MR", - "MU", - "YT", - "MX", - "FM", - "MD", - "MC", - "MN", - "ME", - "MS", - "MA", - "MZ", - "MM", - "NA", - "NR", - "NP", - "NL", - "NC", - "NZ", - "NI", - "NE", - "NG", - "NU", - "NF", - "KP", - "MK", - "MP", - "NO", - "OM", - "PK", - "PW", - "PS", - "PA", - "PG", - "PY", - "PE", - "PH", - "PN", - "PL", - "PT", - "PR", - "QA", - "RE", - "RO", - "RU", - "RW", - "BL", - "SH", - "KN", - "LC", - "MF", - "PM", - "VC", - "WS", - "SM", - "ST", - "SA", - "SN", - "RS", - "SC", - "SL", - "SG", - "SX", - "SK", - "SI", - "SB", - "SO", - "ZA", - "GS", - "KR", - "SS", - "ES", - "LK", - "SD", - "SR", - "SJ", - "SE", - "CH", - "SY", - "TW", - "TJ", - "TZ", - "TH", - "TL", - "TG", - "TK", - "TO", - "TT", - "TN", - "TR", - "TM", - "TC", - "TV", - "UG", - "UA", - "AE", - "GB", - "UM", - "US", - "UY", - "UZ", - "VU", - "VE", - "VN", - "VG", - "VI", - "WF", - "EH", - "YE", - "ZM", - "ZW", - ]); - -export declare namespace CountryEnum { - export type Raw = - | "AF" - | "AX" - | "AL" - | "DZ" - | "AS" - | "AD" - | "AO" - | "AI" - | "AQ" - | "AG" - | "AR" - | "AM" - | "AW" - | "AU" - | "AT" - | "AZ" - | "BS" - | "BH" - | "BD" - | "BB" - | "BY" - | "BE" - | "BZ" - | "BJ" - | "BM" - | "BT" - | "BO" - | "BQ" - | "BA" - | "BW" - | "BV" - | "BR" - | "IO" - | "BN" - | "BG" - | "BF" - | "BI" - | "CV" - | "KH" - | "CM" - | "CA" - | "KY" - | "CF" - | "TD" - | "CL" - | "CN" - | "CX" - | "CC" - | "CO" - | "KM" - | "CG" - | "CD" - | "CK" - | "CR" - | "CI" - | "HR" - | "CU" - | "CW" - | "CY" - | "CZ" - | "DK" - | "DJ" - | "DM" - | "DO" - | "EC" - | "EG" - | "SV" - | "GQ" - | "ER" - | "EE" - | "SZ" - | "ET" - | "FK" - | "FO" - | "FJ" - | "FI" - | "FR" - | "GF" - | "PF" - | "TF" - | "GA" - | "GM" - | "GE" - | "DE" - | "GH" - | "GI" - | "GR" - | "GL" - | "GD" - | "GP" - | "GU" - | "GT" - | "GG" - | "GN" - | "GW" - | "GY" - | "HT" - | "HM" - | "VA" - | "HN" - | "HK" - | "HU" - | "IS" - | "IN" - | "ID" - | "IR" - | "IQ" - | "IE" - | "IM" - | "IL" - | "IT" - | "JM" - | "JP" - | "JE" - | "JO" - | "KZ" - | "KE" - | "KI" - | "KW" - | "KG" - | "LA" - | "LV" - | "LB" - | "LS" - | "LR" - | "LY" - | "LI" - | "LT" - | "LU" - | "MO" - | "MG" - | "MW" - | "MY" - | "MV" - | "ML" - | "MT" - | "MH" - | "MQ" - | "MR" - | "MU" - | "YT" - | "MX" - | "FM" - | "MD" - | "MC" - | "MN" - | "ME" - | "MS" - | "MA" - | "MZ" - | "MM" - | "NA" - | "NR" - | "NP" - | "NL" - | "NC" - | "NZ" - | "NI" - | "NE" - | "NG" - | "NU" - | "NF" - | "KP" - | "MK" - | "MP" - | "NO" - | "OM" - | "PK" - | "PW" - | "PS" - | "PA" - | "PG" - | "PY" - | "PE" - | "PH" - | "PN" - | "PL" - | "PT" - | "PR" - | "QA" - | "RE" - | "RO" - | "RU" - | "RW" - | "BL" - | "SH" - | "KN" - | "LC" - | "MF" - | "PM" - | "VC" - | "WS" - | "SM" - | "ST" - | "SA" - | "SN" - | "RS" - | "SC" - | "SL" - | "SG" - | "SX" - | "SK" - | "SI" - | "SB" - | "SO" - | "ZA" - | "GS" - | "KR" - | "SS" - | "ES" - | "LK" - | "SD" - | "SR" - | "SJ" - | "SE" - | "CH" - | "SY" - | "TW" - | "TJ" - | "TZ" - | "TH" - | "TL" - | "TG" - | "TK" - | "TO" - | "TT" - | "TN" - | "TR" - | "TM" - | "TC" - | "TV" - | "UG" - | "UA" - | "AE" - | "GB" - | "UM" - | "US" - | "UY" - | "UZ" - | "VU" - | "VE" - | "VN" - | "VG" - | "VI" - | "WF" - | "EH" - | "YE" - | "ZM" - | "ZW"; -} diff --git a/src/serialization/resources/hris/types/DataPassthroughRequest.ts b/src/serialization/resources/hris/types/DataPassthroughRequest.ts deleted file mode 100644 index 7b970a87e..000000000 --- a/src/serialization/resources/hris/types/DataPassthroughRequest.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { MethodEnum } from "./MethodEnum"; -import { MultipartFormFieldRequest } from "./MultipartFormFieldRequest"; -import { RequestFormatEnum } from "./RequestFormatEnum"; - -export const DataPassthroughRequest: core.serialization.ObjectSchema< - serializers.hris.DataPassthroughRequest.Raw, - Merge.hris.DataPassthroughRequest -> = core.serialization.object({ - method: MethodEnum, - path: core.serialization.string(), - baseUrlOverride: core.serialization.property("base_url_override", core.serialization.string().optional()), - data: core.serialization.string().optional(), - multipartFormData: core.serialization.property( - "multipart_form_data", - core.serialization.list(MultipartFormFieldRequest).optional(), - ), - headers: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - requestFormat: core.serialization.property("request_format", RequestFormatEnum.optional()), - normalizeResponse: core.serialization.property("normalize_response", core.serialization.boolean().optional()), -}); - -export declare namespace DataPassthroughRequest { - export interface Raw { - method: MethodEnum.Raw; - path: string; - base_url_override?: string | null; - data?: string | null; - multipart_form_data?: MultipartFormFieldRequest.Raw[] | null; - headers?: Record | null; - request_format?: RequestFormatEnum.Raw | null; - normalize_response?: boolean | null; - } -} diff --git a/src/serialization/resources/hris/types/DebugModeLog.ts b/src/serialization/resources/hris/types/DebugModeLog.ts deleted file mode 100644 index 40d13678e..000000000 --- a/src/serialization/resources/hris/types/DebugModeLog.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { DebugModelLogSummary } from "./DebugModelLogSummary"; - -export const DebugModeLog: core.serialization.ObjectSchema = - core.serialization.object({ - logId: core.serialization.property("log_id", core.serialization.string()), - dashboardView: core.serialization.property("dashboard_view", core.serialization.string()), - logSummary: core.serialization.property("log_summary", DebugModelLogSummary), - }); - -export declare namespace DebugModeLog { - export interface Raw { - log_id: string; - dashboard_view: string; - log_summary: DebugModelLogSummary.Raw; - } -} diff --git a/src/serialization/resources/hris/types/DebugModelLogSummary.ts b/src/serialization/resources/hris/types/DebugModelLogSummary.ts deleted file mode 100644 index 2ac2e44ec..000000000 --- a/src/serialization/resources/hris/types/DebugModelLogSummary.ts +++ /dev/null @@ -1,22 +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 DebugModelLogSummary: core.serialization.ObjectSchema< - serializers.hris.DebugModelLogSummary.Raw, - Merge.hris.DebugModelLogSummary -> = core.serialization.object({ - url: core.serialization.string(), - method: core.serialization.string(), - statusCode: core.serialization.property("status_code", core.serialization.number()), -}); - -export declare namespace DebugModelLogSummary { - export interface Raw { - url: string; - method: string; - status_code: number; - } -} diff --git a/src/serialization/resources/hris/types/Deduction.ts b/src/serialization/resources/hris/types/Deduction.ts deleted file mode 100644 index 08ad0f252..000000000 --- a/src/serialization/resources/hris/types/Deduction.ts +++ /dev/null @@ -1,40 +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 { RemoteData } from "./RemoteData"; - -export const Deduction: core.serialization.ObjectSchema = - 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()), - employeePayrollRun: core.serialization.property("employee_payroll_run", core.serialization.string().optional()), - name: core.serialization.string().optional(), - employeeDeduction: core.serialization.property("employee_deduction", core.serialization.number().optional()), - companyDeduction: core.serialization.property("company_deduction", core.serialization.number().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()), - }); - -export declare namespace Deduction { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - employee_payroll_run?: string | null; - name?: string | null; - employee_deduction?: number | null; - company_deduction?: number | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/Dependent.ts b/src/serialization/resources/hris/types/Dependent.ts deleted file mode 100644 index c285e32c2..000000000 --- a/src/serialization/resources/hris/types/Dependent.ts +++ /dev/null @@ -1,56 +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 { DependentGender } from "./DependentGender"; -import { DependentRelationship } from "./DependentRelationship"; -import { RemoteData } from "./RemoteData"; - -export const Dependent: core.serialization.ObjectSchema = - 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()), - firstName: core.serialization.property("first_name", core.serialization.string().optional()), - middleName: core.serialization.property("middle_name", core.serialization.string().optional()), - lastName: core.serialization.property("last_name", core.serialization.string().optional()), - relationship: DependentRelationship.optional(), - employee: core.serialization.string().optional(), - dateOfBirth: core.serialization.property("date_of_birth", core.serialization.date().optional()), - gender: DependentGender.optional(), - phoneNumber: core.serialization.property("phone_number", core.serialization.string().optional()), - homeLocation: core.serialization.property("home_location", core.serialization.string().optional()), - isStudent: core.serialization.property("is_student", core.serialization.boolean().optional()), - ssn: core.serialization.string().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()), - }); - -export declare namespace Dependent { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - first_name?: string | null; - middle_name?: string | null; - last_name?: string | null; - relationship?: DependentRelationship.Raw | null; - employee?: string | null; - date_of_birth?: string | null; - gender?: DependentGender.Raw | null; - phone_number?: string | null; - home_location?: string | null; - is_student?: boolean | null; - ssn?: string | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/DependentGender.ts b/src/serialization/resources/hris/types/DependentGender.ts deleted file mode 100644 index 81249b096..000000000 --- a/src/serialization/resources/hris/types/DependentGender.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 { GenderEnum } from "./GenderEnum"; - -export const DependentGender: core.serialization.Schema< - serializers.hris.DependentGender.Raw, - Merge.hris.DependentGender -> = core.serialization.undiscriminatedUnion([GenderEnum, core.serialization.string()]); - -export declare namespace DependentGender { - export type Raw = GenderEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/DependentRelationship.ts b/src/serialization/resources/hris/types/DependentRelationship.ts deleted file mode 100644 index ac3fa77af..000000000 --- a/src/serialization/resources/hris/types/DependentRelationship.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 { RelationshipEnum } from "./RelationshipEnum"; - -export const DependentRelationship: core.serialization.Schema< - serializers.hris.DependentRelationship.Raw, - Merge.hris.DependentRelationship -> = core.serialization.undiscriminatedUnion([RelationshipEnum, core.serialization.string()]); - -export declare namespace DependentRelationship { - export type Raw = RelationshipEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/Earning.ts b/src/serialization/resources/hris/types/Earning.ts deleted file mode 100644 index bb57c6775..000000000 --- a/src/serialization/resources/hris/types/Earning.ts +++ /dev/null @@ -1,39 +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 { EarningType } from "./EarningType"; -import { RemoteData } from "./RemoteData"; - -export const Earning: core.serialization.ObjectSchema = - 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()), - employeePayrollRun: core.serialization.property("employee_payroll_run", core.serialization.string().optional()), - amount: core.serialization.number().optional(), - type: EarningType.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()), - }); - -export declare namespace Earning { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - employee_payroll_run?: string | null; - amount?: number | null; - type?: EarningType.Raw | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/EarningType.ts b/src/serialization/resources/hris/types/EarningType.ts deleted file mode 100644 index e93bfe0ed..000000000 --- a/src/serialization/resources/hris/types/EarningType.ts +++ /dev/null @@ -1,13 +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 { EarningTypeEnum } from "./EarningTypeEnum"; - -export const EarningType: core.serialization.Schema = - core.serialization.undiscriminatedUnion([EarningTypeEnum, core.serialization.string()]); - -export declare namespace EarningType { - export type Raw = EarningTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/EarningTypeEnum.ts b/src/serialization/resources/hris/types/EarningTypeEnum.ts deleted file mode 100644 index 7ef47feb7..000000000 --- a/src/serialization/resources/hris/types/EarningTypeEnum.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 EarningTypeEnum: core.serialization.Schema< - serializers.hris.EarningTypeEnum.Raw, - Merge.hris.EarningTypeEnum -> = core.serialization.enum_(["SALARY", "REIMBURSEMENT", "OVERTIME", "BONUS"]); - -export declare namespace EarningTypeEnum { - export type Raw = "SALARY" | "REIMBURSEMENT" | "OVERTIME" | "BONUS"; -} diff --git a/src/serialization/resources/hris/types/Employee.ts b/src/serialization/resources/hris/types/Employee.ts deleted file mode 100644 index cd351f5fa..000000000 --- a/src/serialization/resources/hris/types/Employee.ts +++ /dev/null @@ -1,105 +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 * as serializers from "../../../index"; -import { EmployeeCompany } from "./EmployeeCompany"; -import { EmployeeEmploymentStatus } from "./EmployeeEmploymentStatus"; -import { EmployeeEthnicity } from "./EmployeeEthnicity"; -import { EmployeeGender } from "./EmployeeGender"; -import { EmployeeGroupsItem } from "./EmployeeGroupsItem"; -import { EmployeeHomeLocation } from "./EmployeeHomeLocation"; -import { EmployeeMaritalStatus } from "./EmployeeMaritalStatus"; -import { EmployeePayGroup } from "./EmployeePayGroup"; -import { EmployeeTeam } from "./EmployeeTeam"; -import { EmployeeWorkLocation } from "./EmployeeWorkLocation"; -import { RemoteData } from "./RemoteData"; - -export const Employee: core.serialization.ObjectSchema = - 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()), - employeeNumber: core.serialization.property("employee_number", core.serialization.string().optional()), - company: EmployeeCompany.optional(), - firstName: core.serialization.property("first_name", core.serialization.string().optional()), - lastName: core.serialization.property("last_name", core.serialization.string().optional()), - preferredName: core.serialization.property("preferred_name", core.serialization.string().optional()), - displayFullName: core.serialization.property("display_full_name", core.serialization.string().optional()), - username: core.serialization.string().optional(), - groups: core.serialization.list(EmployeeGroupsItem.optional()).optional(), - workEmail: core.serialization.property("work_email", core.serialization.string().optional()), - personalEmail: core.serialization.property("personal_email", core.serialization.string().optional()), - mobilePhoneNumber: core.serialization.property("mobile_phone_number", core.serialization.string().optional()), - employments: core.serialization - .list(core.serialization.lazy(() => serializers.hris.EmployeeEmploymentsItem).optional()) - .optional(), - homeLocation: core.serialization.property("home_location", EmployeeHomeLocation.optional()), - workLocation: core.serialization.property("work_location", EmployeeWorkLocation.optional()), - manager: core.serialization.lazy(() => serializers.hris.EmployeeManager).optional(), - team: EmployeeTeam.optional(), - payGroup: core.serialization.property("pay_group", EmployeePayGroup.optional()), - ssn: core.serialization.string().optional(), - gender: EmployeeGender.optional(), - ethnicity: EmployeeEthnicity.optional(), - maritalStatus: core.serialization.property("marital_status", EmployeeMaritalStatus.optional()), - dateOfBirth: core.serialization.property("date_of_birth", core.serialization.date().optional()), - hireDate: core.serialization.property("hire_date", core.serialization.date().optional()), - startDate: core.serialization.property("start_date", core.serialization.date().optional()), - remoteCreatedAt: core.serialization.property("remote_created_at", core.serialization.date().optional()), - employmentStatus: core.serialization.property("employment_status", EmployeeEmploymentStatus.optional()), - terminationDate: core.serialization.property("termination_date", core.serialization.date().optional()), - avatar: core.serialization.string().optional(), - customFields: core.serialization.property( - "custom_fields", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).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()), - }); - -export declare namespace Employee { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - employee_number?: string | null; - company?: EmployeeCompany.Raw | null; - first_name?: string | null; - last_name?: string | null; - preferred_name?: string | null; - display_full_name?: string | null; - username?: string | null; - groups?: (EmployeeGroupsItem.Raw | null | undefined)[] | null; - work_email?: string | null; - personal_email?: string | null; - mobile_phone_number?: string | null; - employments?: (serializers.hris.EmployeeEmploymentsItem.Raw | null | undefined)[] | null; - home_location?: EmployeeHomeLocation.Raw | null; - work_location?: EmployeeWorkLocation.Raw | null; - manager?: serializers.hris.EmployeeManager.Raw | null; - team?: EmployeeTeam.Raw | null; - pay_group?: EmployeePayGroup.Raw | null; - ssn?: string | null; - gender?: EmployeeGender.Raw | null; - ethnicity?: EmployeeEthnicity.Raw | null; - marital_status?: EmployeeMaritalStatus.Raw | null; - date_of_birth?: string | null; - hire_date?: string | null; - start_date?: string | null; - remote_created_at?: string | null; - employment_status?: EmployeeEmploymentStatus.Raw | null; - termination_date?: string | null; - avatar?: string | null; - custom_fields?: Record | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/EmployeeCompany.ts b/src/serialization/resources/hris/types/EmployeeCompany.ts deleted file mode 100644 index 8ada0e336..000000000 --- a/src/serialization/resources/hris/types/EmployeeCompany.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 { Company } from "./Company"; - -export const EmployeeCompany: core.serialization.Schema< - serializers.hris.EmployeeCompany.Raw, - Merge.hris.EmployeeCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Company]); - -export declare namespace EmployeeCompany { - export type Raw = string | Company.Raw; -} diff --git a/src/serialization/resources/hris/types/EmployeeEmploymentStatus.ts b/src/serialization/resources/hris/types/EmployeeEmploymentStatus.ts deleted file mode 100644 index 83a2b9366..000000000 --- a/src/serialization/resources/hris/types/EmployeeEmploymentStatus.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 { EmploymentStatusEnum } from "./EmploymentStatusEnum"; - -export const EmployeeEmploymentStatus: core.serialization.Schema< - serializers.hris.EmployeeEmploymentStatus.Raw, - Merge.hris.EmployeeEmploymentStatus -> = core.serialization.undiscriminatedUnion([EmploymentStatusEnum, core.serialization.string()]); - -export declare namespace EmployeeEmploymentStatus { - export type Raw = EmploymentStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/EmployeeEmploymentsItem.ts b/src/serialization/resources/hris/types/EmployeeEmploymentsItem.ts deleted file mode 100644 index 9af08e09d..000000000 --- a/src/serialization/resources/hris/types/EmployeeEmploymentsItem.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const EmployeeEmploymentsItem: core.serialization.Schema< - serializers.hris.EmployeeEmploymentsItem.Raw, - Merge.hris.EmployeeEmploymentsItem -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.hris.Employment), -]); - -export declare namespace EmployeeEmploymentsItem { - export type Raw = string | serializers.hris.Employment.Raw; -} diff --git a/src/serialization/resources/hris/types/EmployeeEthnicity.ts b/src/serialization/resources/hris/types/EmployeeEthnicity.ts deleted file mode 100644 index f361d789a..000000000 --- a/src/serialization/resources/hris/types/EmployeeEthnicity.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 { EthnicityEnum } from "./EthnicityEnum"; - -export const EmployeeEthnicity: core.serialization.Schema< - serializers.hris.EmployeeEthnicity.Raw, - Merge.hris.EmployeeEthnicity -> = core.serialization.undiscriminatedUnion([EthnicityEnum, core.serialization.string()]); - -export declare namespace EmployeeEthnicity { - export type Raw = EthnicityEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/EmployeeGender.ts b/src/serialization/resources/hris/types/EmployeeGender.ts deleted file mode 100644 index 00409ffc3..000000000 --- a/src/serialization/resources/hris/types/EmployeeGender.ts +++ /dev/null @@ -1,13 +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 { GenderEnum } from "./GenderEnum"; - -export const EmployeeGender: core.serialization.Schema = - core.serialization.undiscriminatedUnion([GenderEnum, core.serialization.string()]); - -export declare namespace EmployeeGender { - export type Raw = GenderEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/EmployeeGroupsItem.ts b/src/serialization/resources/hris/types/EmployeeGroupsItem.ts deleted file mode 100644 index 72f645826..000000000 --- a/src/serialization/resources/hris/types/EmployeeGroupsItem.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 { Group } from "./Group"; - -export const EmployeeGroupsItem: core.serialization.Schema< - serializers.hris.EmployeeGroupsItem.Raw, - Merge.hris.EmployeeGroupsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Group]); - -export declare namespace EmployeeGroupsItem { - export type Raw = string | Group.Raw; -} diff --git a/src/serialization/resources/hris/types/EmployeeHomeLocation.ts b/src/serialization/resources/hris/types/EmployeeHomeLocation.ts deleted file mode 100644 index 88d7ef450..000000000 --- a/src/serialization/resources/hris/types/EmployeeHomeLocation.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 { Location } from "./Location"; - -export const EmployeeHomeLocation: core.serialization.Schema< - serializers.hris.EmployeeHomeLocation.Raw, - Merge.hris.EmployeeHomeLocation -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Location]); - -export declare namespace EmployeeHomeLocation { - export type Raw = string | Location.Raw; -} diff --git a/src/serialization/resources/hris/types/EmployeeManager.ts b/src/serialization/resources/hris/types/EmployeeManager.ts deleted file mode 100644 index 9f512f3d4..000000000 --- a/src/serialization/resources/hris/types/EmployeeManager.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const EmployeeManager: core.serialization.Schema< - serializers.hris.EmployeeManager.Raw, - Merge.hris.EmployeeManager -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.hris.Employee), -]); - -export declare namespace EmployeeManager { - export type Raw = string | serializers.hris.Employee.Raw; -} diff --git a/src/serialization/resources/hris/types/EmployeeMaritalStatus.ts b/src/serialization/resources/hris/types/EmployeeMaritalStatus.ts deleted file mode 100644 index 2071ce5da..000000000 --- a/src/serialization/resources/hris/types/EmployeeMaritalStatus.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 { MaritalStatusEnum } from "./MaritalStatusEnum"; - -export const EmployeeMaritalStatus: core.serialization.Schema< - serializers.hris.EmployeeMaritalStatus.Raw, - Merge.hris.EmployeeMaritalStatus -> = core.serialization.undiscriminatedUnion([MaritalStatusEnum, core.serialization.string()]); - -export declare namespace EmployeeMaritalStatus { - export type Raw = MaritalStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/EmployeePayGroup.ts b/src/serialization/resources/hris/types/EmployeePayGroup.ts deleted file mode 100644 index 197087737..000000000 --- a/src/serialization/resources/hris/types/EmployeePayGroup.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 { PayGroup } from "./PayGroup"; - -export const EmployeePayGroup: core.serialization.Schema< - serializers.hris.EmployeePayGroup.Raw, - Merge.hris.EmployeePayGroup -> = core.serialization.undiscriminatedUnion([core.serialization.string(), PayGroup]); - -export declare namespace EmployeePayGroup { - export type Raw = string | PayGroup.Raw; -} diff --git a/src/serialization/resources/hris/types/EmployeePayrollRun.ts b/src/serialization/resources/hris/types/EmployeePayrollRun.ts deleted file mode 100644 index e82b4c89b..000000000 --- a/src/serialization/resources/hris/types/EmployeePayrollRun.ts +++ /dev/null @@ -1,59 +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 { Deduction } from "./Deduction"; -import { Earning } from "./Earning"; -import { EmployeePayrollRunEmployee } from "./EmployeePayrollRunEmployee"; -import { EmployeePayrollRunPayrollRun } from "./EmployeePayrollRunPayrollRun"; -import { RemoteData } from "./RemoteData"; -import { Tax } from "./Tax"; - -export const EmployeePayrollRun: core.serialization.ObjectSchema< - serializers.hris.EmployeePayrollRun.Raw, - Merge.hris.EmployeePayrollRun -> = 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()), - employee: EmployeePayrollRunEmployee.optional(), - payrollRun: core.serialization.property("payroll_run", EmployeePayrollRunPayrollRun.optional()), - grossPay: core.serialization.property("gross_pay", core.serialization.number().optional()), - netPay: core.serialization.property("net_pay", core.serialization.number().optional()), - startDate: core.serialization.property("start_date", core.serialization.date().optional()), - endDate: core.serialization.property("end_date", core.serialization.date().optional()), - checkDate: core.serialization.property("check_date", core.serialization.date().optional()), - earnings: core.serialization.list(Earning).optional(), - deductions: core.serialization.list(Deduction).optional(), - taxes: core.serialization.list(Tax).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()), -}); - -export declare namespace EmployeePayrollRun { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - employee?: EmployeePayrollRunEmployee.Raw | null; - payroll_run?: EmployeePayrollRunPayrollRun.Raw | null; - gross_pay?: number | null; - net_pay?: number | null; - start_date?: string | null; - end_date?: string | null; - check_date?: string | null; - earnings?: Earning.Raw[] | null; - deductions?: Deduction.Raw[] | null; - taxes?: Tax.Raw[] | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/EmployeePayrollRunEmployee.ts b/src/serialization/resources/hris/types/EmployeePayrollRunEmployee.ts deleted file mode 100644 index 512d913be..000000000 --- a/src/serialization/resources/hris/types/EmployeePayrollRunEmployee.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const EmployeePayrollRunEmployee: core.serialization.Schema< - serializers.hris.EmployeePayrollRunEmployee.Raw, - Merge.hris.EmployeePayrollRunEmployee -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.hris.Employee), -]); - -export declare namespace EmployeePayrollRunEmployee { - export type Raw = string | serializers.hris.Employee.Raw; -} diff --git a/src/serialization/resources/hris/types/EmployeePayrollRunPayrollRun.ts b/src/serialization/resources/hris/types/EmployeePayrollRunPayrollRun.ts deleted file mode 100644 index c3b4589f9..000000000 --- a/src/serialization/resources/hris/types/EmployeePayrollRunPayrollRun.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 { PayrollRun } from "./PayrollRun"; - -export const EmployeePayrollRunPayrollRun: core.serialization.Schema< - serializers.hris.EmployeePayrollRunPayrollRun.Raw, - Merge.hris.EmployeePayrollRunPayrollRun -> = core.serialization.undiscriminatedUnion([core.serialization.string(), PayrollRun]); - -export declare namespace EmployeePayrollRunPayrollRun { - export type Raw = string | PayrollRun.Raw; -} diff --git a/src/serialization/resources/hris/types/EmployeeRequest.ts b/src/serialization/resources/hris/types/EmployeeRequest.ts deleted file mode 100644 index 0392839d1..000000000 --- a/src/serialization/resources/hris/types/EmployeeRequest.ts +++ /dev/null @@ -1,92 +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 { EmployeeRequestCompany } from "./EmployeeRequestCompany"; -import { EmployeeRequestEmploymentStatus } from "./EmployeeRequestEmploymentStatus"; -import { EmployeeRequestEmploymentsItem } from "./EmployeeRequestEmploymentsItem"; -import { EmployeeRequestEthnicity } from "./EmployeeRequestEthnicity"; -import { EmployeeRequestGender } from "./EmployeeRequestGender"; -import { EmployeeRequestGroupsItem } from "./EmployeeRequestGroupsItem"; -import { EmployeeRequestHomeLocation } from "./EmployeeRequestHomeLocation"; -import { EmployeeRequestManager } from "./EmployeeRequestManager"; -import { EmployeeRequestMaritalStatus } from "./EmployeeRequestMaritalStatus"; -import { EmployeeRequestPayGroup } from "./EmployeeRequestPayGroup"; -import { EmployeeRequestTeam } from "./EmployeeRequestTeam"; -import { EmployeeRequestWorkLocation } from "./EmployeeRequestWorkLocation"; - -export const EmployeeRequest: core.serialization.ObjectSchema< - serializers.hris.EmployeeRequest.Raw, - Merge.hris.EmployeeRequest -> = core.serialization.object({ - employeeNumber: core.serialization.property("employee_number", core.serialization.string().optional()), - company: EmployeeRequestCompany.optional(), - firstName: core.serialization.property("first_name", core.serialization.string().optional()), - lastName: core.serialization.property("last_name", core.serialization.string().optional()), - preferredName: core.serialization.property("preferred_name", core.serialization.string().optional()), - displayFullName: core.serialization.property("display_full_name", core.serialization.string().optional()), - username: core.serialization.string().optional(), - groups: core.serialization.list(EmployeeRequestGroupsItem.optional()).optional(), - workEmail: core.serialization.property("work_email", core.serialization.string().optional()), - personalEmail: core.serialization.property("personal_email", core.serialization.string().optional()), - mobilePhoneNumber: core.serialization.property("mobile_phone_number", core.serialization.string().optional()), - employments: core.serialization.list(EmployeeRequestEmploymentsItem.optional()).optional(), - homeLocation: core.serialization.property("home_location", EmployeeRequestHomeLocation.optional()), - workLocation: core.serialization.property("work_location", EmployeeRequestWorkLocation.optional()), - manager: EmployeeRequestManager.optional(), - team: EmployeeRequestTeam.optional(), - payGroup: core.serialization.property("pay_group", EmployeeRequestPayGroup.optional()), - ssn: core.serialization.string().optional(), - gender: EmployeeRequestGender.optional(), - ethnicity: EmployeeRequestEthnicity.optional(), - maritalStatus: core.serialization.property("marital_status", EmployeeRequestMaritalStatus.optional()), - dateOfBirth: core.serialization.property("date_of_birth", core.serialization.date().optional()), - hireDate: core.serialization.property("hire_date", core.serialization.date().optional()), - startDate: core.serialization.property("start_date", core.serialization.date().optional()), - employmentStatus: core.serialization.property("employment_status", EmployeeRequestEmploymentStatus.optional()), - terminationDate: core.serialization.property("termination_date", core.serialization.date().optional()), - avatar: core.serialization.string().optional(), - integrationParams: core.serialization.property( - "integration_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - linkedAccountParams: core.serialization.property( - "linked_account_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), -}); - -export declare namespace EmployeeRequest { - export interface Raw { - employee_number?: string | null; - company?: EmployeeRequestCompany.Raw | null; - first_name?: string | null; - last_name?: string | null; - preferred_name?: string | null; - display_full_name?: string | null; - username?: string | null; - groups?: (EmployeeRequestGroupsItem.Raw | null | undefined)[] | null; - work_email?: string | null; - personal_email?: string | null; - mobile_phone_number?: string | null; - employments?: (EmployeeRequestEmploymentsItem.Raw | null | undefined)[] | null; - home_location?: EmployeeRequestHomeLocation.Raw | null; - work_location?: EmployeeRequestWorkLocation.Raw | null; - manager?: EmployeeRequestManager.Raw | null; - team?: EmployeeRequestTeam.Raw | null; - pay_group?: EmployeeRequestPayGroup.Raw | null; - ssn?: string | null; - gender?: EmployeeRequestGender.Raw | null; - ethnicity?: EmployeeRequestEthnicity.Raw | null; - marital_status?: EmployeeRequestMaritalStatus.Raw | null; - date_of_birth?: string | null; - hire_date?: string | null; - start_date?: string | null; - employment_status?: EmployeeRequestEmploymentStatus.Raw | null; - termination_date?: string | null; - avatar?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/hris/types/EmployeeRequestCompany.ts b/src/serialization/resources/hris/types/EmployeeRequestCompany.ts deleted file mode 100644 index 2ac6865f7..000000000 --- a/src/serialization/resources/hris/types/EmployeeRequestCompany.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 { Company } from "./Company"; - -export const EmployeeRequestCompany: core.serialization.Schema< - serializers.hris.EmployeeRequestCompany.Raw, - Merge.hris.EmployeeRequestCompany -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Company]); - -export declare namespace EmployeeRequestCompany { - export type Raw = string | Company.Raw; -} diff --git a/src/serialization/resources/hris/types/EmployeeRequestEmploymentStatus.ts b/src/serialization/resources/hris/types/EmployeeRequestEmploymentStatus.ts deleted file mode 100644 index e2f2e5a42..000000000 --- a/src/serialization/resources/hris/types/EmployeeRequestEmploymentStatus.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 { EmploymentStatusEnum } from "./EmploymentStatusEnum"; - -export const EmployeeRequestEmploymentStatus: core.serialization.Schema< - serializers.hris.EmployeeRequestEmploymentStatus.Raw, - Merge.hris.EmployeeRequestEmploymentStatus -> = core.serialization.undiscriminatedUnion([EmploymentStatusEnum, core.serialization.string()]); - -export declare namespace EmployeeRequestEmploymentStatus { - export type Raw = EmploymentStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/EmployeeRequestEmploymentsItem.ts b/src/serialization/resources/hris/types/EmployeeRequestEmploymentsItem.ts deleted file mode 100644 index e994a2470..000000000 --- a/src/serialization/resources/hris/types/EmployeeRequestEmploymentsItem.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const EmployeeRequestEmploymentsItem: core.serialization.Schema< - serializers.hris.EmployeeRequestEmploymentsItem.Raw, - Merge.hris.EmployeeRequestEmploymentsItem -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.hris.Employment), -]); - -export declare namespace EmployeeRequestEmploymentsItem { - export type Raw = string | serializers.hris.Employment.Raw; -} diff --git a/src/serialization/resources/hris/types/EmployeeRequestEthnicity.ts b/src/serialization/resources/hris/types/EmployeeRequestEthnicity.ts deleted file mode 100644 index a8769c760..000000000 --- a/src/serialization/resources/hris/types/EmployeeRequestEthnicity.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 { EthnicityEnum } from "./EthnicityEnum"; - -export const EmployeeRequestEthnicity: core.serialization.Schema< - serializers.hris.EmployeeRequestEthnicity.Raw, - Merge.hris.EmployeeRequestEthnicity -> = core.serialization.undiscriminatedUnion([EthnicityEnum, core.serialization.string()]); - -export declare namespace EmployeeRequestEthnicity { - export type Raw = EthnicityEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/EmployeeRequestGender.ts b/src/serialization/resources/hris/types/EmployeeRequestGender.ts deleted file mode 100644 index d3f98a8a5..000000000 --- a/src/serialization/resources/hris/types/EmployeeRequestGender.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 { GenderEnum } from "./GenderEnum"; - -export const EmployeeRequestGender: core.serialization.Schema< - serializers.hris.EmployeeRequestGender.Raw, - Merge.hris.EmployeeRequestGender -> = core.serialization.undiscriminatedUnion([GenderEnum, core.serialization.string()]); - -export declare namespace EmployeeRequestGender { - export type Raw = GenderEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/EmployeeRequestGroupsItem.ts b/src/serialization/resources/hris/types/EmployeeRequestGroupsItem.ts deleted file mode 100644 index 3f2a18f29..000000000 --- a/src/serialization/resources/hris/types/EmployeeRequestGroupsItem.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 { Group } from "./Group"; - -export const EmployeeRequestGroupsItem: core.serialization.Schema< - serializers.hris.EmployeeRequestGroupsItem.Raw, - Merge.hris.EmployeeRequestGroupsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Group]); - -export declare namespace EmployeeRequestGroupsItem { - export type Raw = string | Group.Raw; -} diff --git a/src/serialization/resources/hris/types/EmployeeRequestHomeLocation.ts b/src/serialization/resources/hris/types/EmployeeRequestHomeLocation.ts deleted file mode 100644 index 9b362fdf0..000000000 --- a/src/serialization/resources/hris/types/EmployeeRequestHomeLocation.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 { Location } from "./Location"; - -export const EmployeeRequestHomeLocation: core.serialization.Schema< - serializers.hris.EmployeeRequestHomeLocation.Raw, - Merge.hris.EmployeeRequestHomeLocation -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Location]); - -export declare namespace EmployeeRequestHomeLocation { - export type Raw = string | Location.Raw; -} diff --git a/src/serialization/resources/hris/types/EmployeeRequestManager.ts b/src/serialization/resources/hris/types/EmployeeRequestManager.ts deleted file mode 100644 index 14d8efc82..000000000 --- a/src/serialization/resources/hris/types/EmployeeRequestManager.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const EmployeeRequestManager: core.serialization.Schema< - serializers.hris.EmployeeRequestManager.Raw, - Merge.hris.EmployeeRequestManager -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.hris.Employee), -]); - -export declare namespace EmployeeRequestManager { - export type Raw = string | serializers.hris.Employee.Raw; -} diff --git a/src/serialization/resources/hris/types/EmployeeRequestMaritalStatus.ts b/src/serialization/resources/hris/types/EmployeeRequestMaritalStatus.ts deleted file mode 100644 index 2c3302794..000000000 --- a/src/serialization/resources/hris/types/EmployeeRequestMaritalStatus.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 { MaritalStatusEnum } from "./MaritalStatusEnum"; - -export const EmployeeRequestMaritalStatus: core.serialization.Schema< - serializers.hris.EmployeeRequestMaritalStatus.Raw, - Merge.hris.EmployeeRequestMaritalStatus -> = core.serialization.undiscriminatedUnion([MaritalStatusEnum, core.serialization.string()]); - -export declare namespace EmployeeRequestMaritalStatus { - export type Raw = MaritalStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/EmployeeRequestPayGroup.ts b/src/serialization/resources/hris/types/EmployeeRequestPayGroup.ts deleted file mode 100644 index 6a49a2cdc..000000000 --- a/src/serialization/resources/hris/types/EmployeeRequestPayGroup.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 { PayGroup } from "./PayGroup"; - -export const EmployeeRequestPayGroup: core.serialization.Schema< - serializers.hris.EmployeeRequestPayGroup.Raw, - Merge.hris.EmployeeRequestPayGroup -> = core.serialization.undiscriminatedUnion([core.serialization.string(), PayGroup]); - -export declare namespace EmployeeRequestPayGroup { - export type Raw = string | PayGroup.Raw; -} diff --git a/src/serialization/resources/hris/types/EmployeeRequestTeam.ts b/src/serialization/resources/hris/types/EmployeeRequestTeam.ts deleted file mode 100644 index 5be49035c..000000000 --- a/src/serialization/resources/hris/types/EmployeeRequestTeam.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const EmployeeRequestTeam: core.serialization.Schema< - serializers.hris.EmployeeRequestTeam.Raw, - Merge.hris.EmployeeRequestTeam -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.hris.Team), -]); - -export declare namespace EmployeeRequestTeam { - export type Raw = string | serializers.hris.Team.Raw; -} diff --git a/src/serialization/resources/hris/types/EmployeeRequestWorkLocation.ts b/src/serialization/resources/hris/types/EmployeeRequestWorkLocation.ts deleted file mode 100644 index 951208eb8..000000000 --- a/src/serialization/resources/hris/types/EmployeeRequestWorkLocation.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 { Location } from "./Location"; - -export const EmployeeRequestWorkLocation: core.serialization.Schema< - serializers.hris.EmployeeRequestWorkLocation.Raw, - Merge.hris.EmployeeRequestWorkLocation -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Location]); - -export declare namespace EmployeeRequestWorkLocation { - export type Raw = string | Location.Raw; -} diff --git a/src/serialization/resources/hris/types/EmployeeResponse.ts b/src/serialization/resources/hris/types/EmployeeResponse.ts deleted file mode 100644 index c4dba5f50..000000000 --- a/src/serialization/resources/hris/types/EmployeeResponse.ts +++ /dev/null @@ -1,27 +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 * as serializers from "../../../index"; -import { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const EmployeeResponse: core.serialization.ObjectSchema< - serializers.hris.EmployeeResponse.Raw, - Merge.hris.EmployeeResponse -> = core.serialization.object({ - model: core.serialization.lazyObject(() => serializers.hris.Employee), - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace EmployeeResponse { - export interface Raw { - model: serializers.hris.Employee.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/EmployeeTeam.ts b/src/serialization/resources/hris/types/EmployeeTeam.ts deleted file mode 100644 index 9bb681bfa..000000000 --- a/src/serialization/resources/hris/types/EmployeeTeam.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 * as serializers from "../../../index"; - -export const EmployeeTeam: core.serialization.Schema = - core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.hris.Team), - ]); - -export declare namespace EmployeeTeam { - export type Raw = string | serializers.hris.Team.Raw; -} diff --git a/src/serialization/resources/hris/types/EmployeeWorkLocation.ts b/src/serialization/resources/hris/types/EmployeeWorkLocation.ts deleted file mode 100644 index dd8f1330e..000000000 --- a/src/serialization/resources/hris/types/EmployeeWorkLocation.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 { Location } from "./Location"; - -export const EmployeeWorkLocation: core.serialization.Schema< - serializers.hris.EmployeeWorkLocation.Raw, - Merge.hris.EmployeeWorkLocation -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Location]); - -export declare namespace EmployeeWorkLocation { - export type Raw = string | Location.Raw; -} diff --git a/src/serialization/resources/hris/types/EmployerBenefit.ts b/src/serialization/resources/hris/types/EmployerBenefit.ts deleted file mode 100644 index a2bf6371f..000000000 --- a/src/serialization/resources/hris/types/EmployerBenefit.ts +++ /dev/null @@ -1,43 +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 { EmployerBenefitBenefitPlanType } from "./EmployerBenefitBenefitPlanType"; -import { RemoteData } from "./RemoteData"; - -export const EmployerBenefit: core.serialization.ObjectSchema< - serializers.hris.EmployerBenefit.Raw, - Merge.hris.EmployerBenefit -> = 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()), - benefitPlanType: core.serialization.property("benefit_plan_type", EmployerBenefitBenefitPlanType.optional()), - name: core.serialization.string().optional(), - description: core.serialization.string().optional(), - deductionCode: core.serialization.property("deduction_code", core.serialization.string().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()), -}); - -export declare namespace EmployerBenefit { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - benefit_plan_type?: EmployerBenefitBenefitPlanType.Raw | null; - name?: string | null; - description?: string | null; - deduction_code?: string | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/EmployerBenefitBenefitPlanType.ts b/src/serialization/resources/hris/types/EmployerBenefitBenefitPlanType.ts deleted file mode 100644 index 15a034953..000000000 --- a/src/serialization/resources/hris/types/EmployerBenefitBenefitPlanType.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 { BenefitPlanTypeEnum } from "./BenefitPlanTypeEnum"; - -export const EmployerBenefitBenefitPlanType: core.serialization.Schema< - serializers.hris.EmployerBenefitBenefitPlanType.Raw, - Merge.hris.EmployerBenefitBenefitPlanType -> = core.serialization.undiscriminatedUnion([BenefitPlanTypeEnum, core.serialization.string()]); - -export declare namespace EmployerBenefitBenefitPlanType { - export type Raw = BenefitPlanTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/Employment.ts b/src/serialization/resources/hris/types/Employment.ts deleted file mode 100644 index 1810526af..000000000 --- a/src/serialization/resources/hris/types/Employment.ts +++ /dev/null @@ -1,58 +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 * as serializers from "../../../index"; -import { EmploymentEmploymentType } from "./EmploymentEmploymentType"; -import { EmploymentFlsaStatus } from "./EmploymentFlsaStatus"; -import { EmploymentPayCurrency } from "./EmploymentPayCurrency"; -import { EmploymentPayFrequency } from "./EmploymentPayFrequency"; -import { EmploymentPayGroup } from "./EmploymentPayGroup"; -import { EmploymentPayPeriod } from "./EmploymentPayPeriod"; -import { RemoteData } from "./RemoteData"; - -export const Employment: core.serialization.ObjectSchema = - 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()), - employee: core.serialization.lazy(() => serializers.hris.EmploymentEmployee).optional(), - jobTitle: core.serialization.property("job_title", core.serialization.string().optional()), - payRate: core.serialization.property("pay_rate", core.serialization.number().optional()), - payPeriod: core.serialization.property("pay_period", EmploymentPayPeriod.optional()), - payFrequency: core.serialization.property("pay_frequency", EmploymentPayFrequency.optional()), - payCurrency: core.serialization.property("pay_currency", EmploymentPayCurrency.optional()), - payGroup: core.serialization.property("pay_group", EmploymentPayGroup.optional()), - flsaStatus: core.serialization.property("flsa_status", EmploymentFlsaStatus.optional()), - effectiveDate: core.serialization.property("effective_date", core.serialization.date().optional()), - employmentType: core.serialization.property("employment_type", EmploymentEmploymentType.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()), - }); - -export declare namespace Employment { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - employee?: serializers.hris.EmploymentEmployee.Raw | null; - job_title?: string | null; - pay_rate?: number | null; - pay_period?: EmploymentPayPeriod.Raw | null; - pay_frequency?: EmploymentPayFrequency.Raw | null; - pay_currency?: EmploymentPayCurrency.Raw | null; - pay_group?: EmploymentPayGroup.Raw | null; - flsa_status?: EmploymentFlsaStatus.Raw | null; - effective_date?: string | null; - employment_type?: EmploymentEmploymentType.Raw | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/EmploymentEmployee.ts b/src/serialization/resources/hris/types/EmploymentEmployee.ts deleted file mode 100644 index 48cf439f8..000000000 --- a/src/serialization/resources/hris/types/EmploymentEmployee.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const EmploymentEmployee: core.serialization.Schema< - serializers.hris.EmploymentEmployee.Raw, - Merge.hris.EmploymentEmployee -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.hris.Employee), -]); - -export declare namespace EmploymentEmployee { - export type Raw = string | serializers.hris.Employee.Raw; -} diff --git a/src/serialization/resources/hris/types/EmploymentEmploymentType.ts b/src/serialization/resources/hris/types/EmploymentEmploymentType.ts deleted file mode 100644 index cb6ef7736..000000000 --- a/src/serialization/resources/hris/types/EmploymentEmploymentType.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 { EmploymentTypeEnum } from "./EmploymentTypeEnum"; - -export const EmploymentEmploymentType: core.serialization.Schema< - serializers.hris.EmploymentEmploymentType.Raw, - Merge.hris.EmploymentEmploymentType -> = core.serialization.undiscriminatedUnion([EmploymentTypeEnum, core.serialization.string()]); - -export declare namespace EmploymentEmploymentType { - export type Raw = EmploymentTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/EmploymentFlsaStatus.ts b/src/serialization/resources/hris/types/EmploymentFlsaStatus.ts deleted file mode 100644 index e197db628..000000000 --- a/src/serialization/resources/hris/types/EmploymentFlsaStatus.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 { FlsaStatusEnum } from "./FlsaStatusEnum"; - -export const EmploymentFlsaStatus: core.serialization.Schema< - serializers.hris.EmploymentFlsaStatus.Raw, - Merge.hris.EmploymentFlsaStatus -> = core.serialization.undiscriminatedUnion([FlsaStatusEnum, core.serialization.string()]); - -export declare namespace EmploymentFlsaStatus { - export type Raw = FlsaStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/EmploymentPayCurrency.ts b/src/serialization/resources/hris/types/EmploymentPayCurrency.ts deleted file mode 100644 index 2441c0dfa..000000000 --- a/src/serialization/resources/hris/types/EmploymentPayCurrency.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 { PayCurrencyEnum } from "./PayCurrencyEnum"; - -export const EmploymentPayCurrency: core.serialization.Schema< - serializers.hris.EmploymentPayCurrency.Raw, - Merge.hris.EmploymentPayCurrency -> = core.serialization.undiscriminatedUnion([PayCurrencyEnum, core.serialization.string()]); - -export declare namespace EmploymentPayCurrency { - export type Raw = PayCurrencyEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/EmploymentPayFrequency.ts b/src/serialization/resources/hris/types/EmploymentPayFrequency.ts deleted file mode 100644 index 613302d74..000000000 --- a/src/serialization/resources/hris/types/EmploymentPayFrequency.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 { PayFrequencyEnum } from "./PayFrequencyEnum"; - -export const EmploymentPayFrequency: core.serialization.Schema< - serializers.hris.EmploymentPayFrequency.Raw, - Merge.hris.EmploymentPayFrequency -> = core.serialization.undiscriminatedUnion([PayFrequencyEnum, core.serialization.string()]); - -export declare namespace EmploymentPayFrequency { - export type Raw = PayFrequencyEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/EmploymentPayGroup.ts b/src/serialization/resources/hris/types/EmploymentPayGroup.ts deleted file mode 100644 index 4363b14e2..000000000 --- a/src/serialization/resources/hris/types/EmploymentPayGroup.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 { PayGroup } from "./PayGroup"; - -export const EmploymentPayGroup: core.serialization.Schema< - serializers.hris.EmploymentPayGroup.Raw, - Merge.hris.EmploymentPayGroup -> = core.serialization.undiscriminatedUnion([core.serialization.string(), PayGroup]); - -export declare namespace EmploymentPayGroup { - export type Raw = string | PayGroup.Raw; -} diff --git a/src/serialization/resources/hris/types/EmploymentPayPeriod.ts b/src/serialization/resources/hris/types/EmploymentPayPeriod.ts deleted file mode 100644 index 17e9387eb..000000000 --- a/src/serialization/resources/hris/types/EmploymentPayPeriod.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 { PayPeriodEnum } from "./PayPeriodEnum"; - -export const EmploymentPayPeriod: core.serialization.Schema< - serializers.hris.EmploymentPayPeriod.Raw, - Merge.hris.EmploymentPayPeriod -> = core.serialization.undiscriminatedUnion([PayPeriodEnum, core.serialization.string()]); - -export declare namespace EmploymentPayPeriod { - export type Raw = PayPeriodEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/EmploymentStatusEnum.ts b/src/serialization/resources/hris/types/EmploymentStatusEnum.ts deleted file mode 100644 index 9a3513977..000000000 --- a/src/serialization/resources/hris/types/EmploymentStatusEnum.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 EmploymentStatusEnum: core.serialization.Schema< - serializers.hris.EmploymentStatusEnum.Raw, - Merge.hris.EmploymentStatusEnum -> = core.serialization.enum_(["ACTIVE", "PENDING", "INACTIVE"]); - -export declare namespace EmploymentStatusEnum { - export type Raw = "ACTIVE" | "PENDING" | "INACTIVE"; -} diff --git a/src/serialization/resources/hris/types/EmploymentTypeEnum.ts b/src/serialization/resources/hris/types/EmploymentTypeEnum.ts deleted file mode 100644 index 9bf243455..000000000 --- a/src/serialization/resources/hris/types/EmploymentTypeEnum.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 EmploymentTypeEnum: core.serialization.Schema< - serializers.hris.EmploymentTypeEnum.Raw, - Merge.hris.EmploymentTypeEnum -> = core.serialization.enum_(["FULL_TIME", "PART_TIME", "INTERN", "CONTRACTOR", "FREELANCE"]); - -export declare namespace EmploymentTypeEnum { - export type Raw = "FULL_TIME" | "PART_TIME" | "INTERN" | "CONTRACTOR" | "FREELANCE"; -} diff --git a/src/serialization/resources/hris/types/EnabledActionsEnum.ts b/src/serialization/resources/hris/types/EnabledActionsEnum.ts deleted file mode 100644 index 1ae9e54d6..000000000 --- a/src/serialization/resources/hris/types/EnabledActionsEnum.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 EnabledActionsEnum: core.serialization.Schema< - serializers.hris.EnabledActionsEnum.Raw, - Merge.hris.EnabledActionsEnum -> = core.serialization.enum_(["READ", "WRITE"]); - -export declare namespace EnabledActionsEnum { - export type Raw = "READ" | "WRITE"; -} diff --git a/src/serialization/resources/hris/types/EncodingEnum.ts b/src/serialization/resources/hris/types/EncodingEnum.ts deleted file mode 100644 index ef937237a..000000000 --- a/src/serialization/resources/hris/types/EncodingEnum.ts +++ /dev/null @@ -1,12 +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 EncodingEnum: core.serialization.Schema = - core.serialization.enum_(["RAW", "BASE64", "GZIP_BASE64"]); - -export declare namespace EncodingEnum { - export type Raw = "RAW" | "BASE64" | "GZIP_BASE64"; -} diff --git a/src/serialization/resources/hris/types/ErrorValidationProblem.ts b/src/serialization/resources/hris/types/ErrorValidationProblem.ts deleted file mode 100644 index 2caf68bc2..000000000 --- a/src/serialization/resources/hris/types/ErrorValidationProblem.ts +++ /dev/null @@ -1,25 +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 { ValidationProblemSource } from "./ValidationProblemSource"; - -export const ErrorValidationProblem: core.serialization.ObjectSchema< - serializers.hris.ErrorValidationProblem.Raw, - Merge.hris.ErrorValidationProblem -> = core.serialization.object({ - source: ValidationProblemSource.optional(), - title: core.serialization.string(), - detail: core.serialization.string(), - problemType: core.serialization.property("problem_type", core.serialization.string()), -}); - -export declare namespace ErrorValidationProblem { - export interface Raw { - source?: ValidationProblemSource.Raw | null; - title: string; - detail: string; - problem_type: string; - } -} diff --git a/src/serialization/resources/hris/types/EthnicityEnum.ts b/src/serialization/resources/hris/types/EthnicityEnum.ts deleted file mode 100644 index 08ee980b6..000000000 --- a/src/serialization/resources/hris/types/EthnicityEnum.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 EthnicityEnum: core.serialization.Schema = - core.serialization.enum_([ - "AMERICAN_INDIAN_OR_ALASKA_NATIVE", - "ASIAN_OR_INDIAN_SUBCONTINENT", - "BLACK_OR_AFRICAN_AMERICAN", - "HISPANIC_OR_LATINO", - "NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER", - "TWO_OR_MORE_RACES", - "WHITE", - "PREFER_NOT_TO_DISCLOSE", - ]); - -export declare namespace EthnicityEnum { - export type Raw = - | "AMERICAN_INDIAN_OR_ALASKA_NATIVE" - | "ASIAN_OR_INDIAN_SUBCONTINENT" - | "BLACK_OR_AFRICAN_AMERICAN" - | "HISPANIC_OR_LATINO" - | "NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER" - | "TWO_OR_MORE_RACES" - | "WHITE" - | "PREFER_NOT_TO_DISCLOSE"; -} diff --git a/src/serialization/resources/hris/types/EventTypeEnum.ts b/src/serialization/resources/hris/types/EventTypeEnum.ts deleted file mode 100644 index d53f6abcd..000000000 --- a/src/serialization/resources/hris/types/EventTypeEnum.ts +++ /dev/null @@ -1,99 +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 EventTypeEnum: core.serialization.Schema = - core.serialization.enum_([ - "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", - ]); - -export declare namespace EventTypeEnum { - export type Raw = - | "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"; -} diff --git a/src/serialization/resources/hris/types/ExternalTargetFieldApi.ts b/src/serialization/resources/hris/types/ExternalTargetFieldApi.ts deleted file mode 100644 index 898364ffb..000000000 --- a/src/serialization/resources/hris/types/ExternalTargetFieldApi.ts +++ /dev/null @@ -1,22 +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 ExternalTargetFieldApi: core.serialization.ObjectSchema< - serializers.hris.ExternalTargetFieldApi.Raw, - Merge.hris.ExternalTargetFieldApi -> = core.serialization.object({ - name: core.serialization.string().optional(), - description: core.serialization.string().optional(), - isMapped: core.serialization.property("is_mapped", core.serialization.string().optional()), -}); - -export declare namespace ExternalTargetFieldApi { - export interface Raw { - name?: string | null; - description?: string | null; - is_mapped?: string | null; - } -} diff --git a/src/serialization/resources/hris/types/ExternalTargetFieldApiResponse.ts b/src/serialization/resources/hris/types/ExternalTargetFieldApiResponse.ts deleted file mode 100644 index 362eaf800..000000000 --- a/src/serialization/resources/hris/types/ExternalTargetFieldApiResponse.ts +++ /dev/null @@ -1,61 +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 { ExternalTargetFieldApi } from "./ExternalTargetFieldApi"; - -export const ExternalTargetFieldApiResponse: core.serialization.ObjectSchema< - serializers.hris.ExternalTargetFieldApiResponse.Raw, - Merge.hris.ExternalTargetFieldApiResponse -> = core.serialization.object({ - benefit: core.serialization.property("Benefit", core.serialization.list(ExternalTargetFieldApi).optional()), - employerBenefit: core.serialization.property( - "EmployerBenefit", - core.serialization.list(ExternalTargetFieldApi).optional(), - ), - company: core.serialization.property("Company", core.serialization.list(ExternalTargetFieldApi).optional()), - employeePayrollRun: core.serialization.property( - "EmployeePayrollRun", - core.serialization.list(ExternalTargetFieldApi).optional(), - ), - employee: core.serialization.property("Employee", core.serialization.list(ExternalTargetFieldApi).optional()), - employment: core.serialization.property("Employment", core.serialization.list(ExternalTargetFieldApi).optional()), - location: core.serialization.property("Location", core.serialization.list(ExternalTargetFieldApi).optional()), - payrollRun: core.serialization.property("PayrollRun", core.serialization.list(ExternalTargetFieldApi).optional()), - team: core.serialization.property("Team", core.serialization.list(ExternalTargetFieldApi).optional()), - timeOff: core.serialization.property("TimeOff", core.serialization.list(ExternalTargetFieldApi).optional()), - timeOffBalance: core.serialization.property( - "TimeOffBalance", - core.serialization.list(ExternalTargetFieldApi).optional(), - ), - bankInfo: core.serialization.property("BankInfo", core.serialization.list(ExternalTargetFieldApi).optional()), - payGroup: core.serialization.property("PayGroup", core.serialization.list(ExternalTargetFieldApi).optional()), - group: core.serialization.property("Group", core.serialization.list(ExternalTargetFieldApi).optional()), - dependent: core.serialization.property("Dependent", core.serialization.list(ExternalTargetFieldApi).optional()), - timesheetEntry: core.serialization.property( - "TimesheetEntry", - core.serialization.list(ExternalTargetFieldApi).optional(), - ), -}); - -export declare namespace ExternalTargetFieldApiResponse { - export interface Raw { - Benefit?: ExternalTargetFieldApi.Raw[] | null; - EmployerBenefit?: ExternalTargetFieldApi.Raw[] | null; - Company?: ExternalTargetFieldApi.Raw[] | null; - EmployeePayrollRun?: ExternalTargetFieldApi.Raw[] | null; - Employee?: ExternalTargetFieldApi.Raw[] | null; - Employment?: ExternalTargetFieldApi.Raw[] | null; - Location?: ExternalTargetFieldApi.Raw[] | null; - PayrollRun?: ExternalTargetFieldApi.Raw[] | null; - Team?: ExternalTargetFieldApi.Raw[] | null; - TimeOff?: ExternalTargetFieldApi.Raw[] | null; - TimeOffBalance?: ExternalTargetFieldApi.Raw[] | null; - BankInfo?: ExternalTargetFieldApi.Raw[] | null; - PayGroup?: ExternalTargetFieldApi.Raw[] | null; - Group?: ExternalTargetFieldApi.Raw[] | null; - Dependent?: ExternalTargetFieldApi.Raw[] | null; - TimesheetEntry?: ExternalTargetFieldApi.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/FieldMappingApiInstance.ts b/src/serialization/resources/hris/types/FieldMappingApiInstance.ts deleted file mode 100644 index 7ed4beed7..000000000 --- a/src/serialization/resources/hris/types/FieldMappingApiInstance.ts +++ /dev/null @@ -1,28 +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 { FieldMappingApiInstanceRemoteField } from "./FieldMappingApiInstanceRemoteField"; -import { FieldMappingApiInstanceTargetField } from "./FieldMappingApiInstanceTargetField"; - -export const FieldMappingApiInstance: core.serialization.ObjectSchema< - serializers.hris.FieldMappingApiInstance.Raw, - Merge.hris.FieldMappingApiInstance -> = core.serialization.object({ - id: core.serialization.string().optional(), - 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 { - export interface Raw { - id?: string | null; - 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/hris/types/FieldMappingApiInstanceRemoteField.ts b/src/serialization/resources/hris/types/FieldMappingApiInstanceRemoteField.ts deleted file mode 100644 index 4e24f7484..000000000 --- a/src/serialization/resources/hris/types/FieldMappingApiInstanceRemoteField.ts +++ /dev/null @@ -1,26 +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 { FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo } from "./FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo"; - -export const FieldMappingApiInstanceRemoteField: core.serialization.ObjectSchema< - serializers.hris.FieldMappingApiInstanceRemoteField.Raw, - Merge.hris.FieldMappingApiInstanceRemoteField -> = core.serialization.object({ - remoteKeyName: core.serialization.property("remote_key_name", core.serialization.string().optional()), - schema: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - remoteEndpointInfo: core.serialization.property( - "remote_endpoint_info", - FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo, - ), -}); - -export declare namespace FieldMappingApiInstanceRemoteField { - export interface Raw { - remote_key_name?: string | null; - schema?: Record | null; - remote_endpoint_info: FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.Raw; - } -} diff --git a/src/serialization/resources/hris/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts b/src/serialization/resources/hris/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts deleted file mode 100644 index 02c7a05b8..000000000 --- a/src/serialization/resources/hris/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts +++ /dev/null @@ -1,25 +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 FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo: core.serialization.ObjectSchema< - serializers.hris.FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.Raw, - Merge.hris.FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo -> = core.serialization.object({ - method: core.serialization.string().optional(), - urlPath: core.serialization.property("url_path", core.serialization.string().optional()), - fieldTraversalPath: core.serialization.property( - "field_traversal_path", - core.serialization.list(core.serialization.string()).optional(), - ), -}); - -export declare namespace FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo { - export interface Raw { - method?: string | null; - url_path?: string | null; - field_traversal_path?: string[] | null; - } -} diff --git a/src/serialization/resources/hris/types/FieldMappingApiInstanceResponse.ts b/src/serialization/resources/hris/types/FieldMappingApiInstanceResponse.ts deleted file mode 100644 index bb883cf50..000000000 --- a/src/serialization/resources/hris/types/FieldMappingApiInstanceResponse.ts +++ /dev/null @@ -1,61 +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 { FieldMappingApiInstance } from "./FieldMappingApiInstance"; - -export const FieldMappingApiInstanceResponse: core.serialization.ObjectSchema< - serializers.hris.FieldMappingApiInstanceResponse.Raw, - Merge.hris.FieldMappingApiInstanceResponse -> = core.serialization.object({ - benefit: core.serialization.property("Benefit", core.serialization.list(FieldMappingApiInstance).optional()), - employerBenefit: core.serialization.property( - "EmployerBenefit", - core.serialization.list(FieldMappingApiInstance).optional(), - ), - company: core.serialization.property("Company", core.serialization.list(FieldMappingApiInstance).optional()), - employeePayrollRun: core.serialization.property( - "EmployeePayrollRun", - core.serialization.list(FieldMappingApiInstance).optional(), - ), - employee: core.serialization.property("Employee", core.serialization.list(FieldMappingApiInstance).optional()), - employment: core.serialization.property("Employment", core.serialization.list(FieldMappingApiInstance).optional()), - location: core.serialization.property("Location", core.serialization.list(FieldMappingApiInstance).optional()), - payrollRun: core.serialization.property("PayrollRun", core.serialization.list(FieldMappingApiInstance).optional()), - team: core.serialization.property("Team", core.serialization.list(FieldMappingApiInstance).optional()), - timeOff: core.serialization.property("TimeOff", core.serialization.list(FieldMappingApiInstance).optional()), - timeOffBalance: core.serialization.property( - "TimeOffBalance", - core.serialization.list(FieldMappingApiInstance).optional(), - ), - bankInfo: core.serialization.property("BankInfo", core.serialization.list(FieldMappingApiInstance).optional()), - payGroup: core.serialization.property("PayGroup", core.serialization.list(FieldMappingApiInstance).optional()), - group: core.serialization.property("Group", core.serialization.list(FieldMappingApiInstance).optional()), - dependent: core.serialization.property("Dependent", core.serialization.list(FieldMappingApiInstance).optional()), - timesheetEntry: core.serialization.property( - "TimesheetEntry", - core.serialization.list(FieldMappingApiInstance).optional(), - ), -}); - -export declare namespace FieldMappingApiInstanceResponse { - export interface Raw { - Benefit?: FieldMappingApiInstance.Raw[] | null; - EmployerBenefit?: FieldMappingApiInstance.Raw[] | null; - Company?: FieldMappingApiInstance.Raw[] | null; - EmployeePayrollRun?: FieldMappingApiInstance.Raw[] | null; - Employee?: FieldMappingApiInstance.Raw[] | null; - Employment?: FieldMappingApiInstance.Raw[] | null; - Location?: FieldMappingApiInstance.Raw[] | null; - PayrollRun?: FieldMappingApiInstance.Raw[] | null; - Team?: FieldMappingApiInstance.Raw[] | null; - TimeOff?: FieldMappingApiInstance.Raw[] | null; - TimeOffBalance?: FieldMappingApiInstance.Raw[] | null; - BankInfo?: FieldMappingApiInstance.Raw[] | null; - PayGroup?: FieldMappingApiInstance.Raw[] | null; - Group?: FieldMappingApiInstance.Raw[] | null; - Dependent?: FieldMappingApiInstance.Raw[] | null; - TimesheetEntry?: FieldMappingApiInstance.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/FieldMappingApiInstanceTargetField.ts b/src/serialization/resources/hris/types/FieldMappingApiInstanceTargetField.ts deleted file mode 100644 index f43b11a87..000000000 --- a/src/serialization/resources/hris/types/FieldMappingApiInstanceTargetField.ts +++ /dev/null @@ -1,22 +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 FieldMappingApiInstanceTargetField: core.serialization.ObjectSchema< - serializers.hris.FieldMappingApiInstanceTargetField.Raw, - Merge.hris.FieldMappingApiInstanceTargetField -> = core.serialization.object({ - name: core.serialization.string(), - description: core.serialization.string(), - isOrganizationWide: core.serialization.property("is_organization_wide", core.serialization.boolean()), -}); - -export declare namespace FieldMappingApiInstanceTargetField { - export interface Raw { - name: string; - description: string; - is_organization_wide: boolean; - } -} diff --git a/src/serialization/resources/hris/types/FieldMappingInstanceResponse.ts b/src/serialization/resources/hris/types/FieldMappingInstanceResponse.ts deleted file mode 100644 index 91ed3d491..000000000 --- a/src/serialization/resources/hris/types/FieldMappingInstanceResponse.ts +++ /dev/null @@ -1,28 +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 { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { FieldMappingApiInstance } from "./FieldMappingApiInstance"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const FieldMappingInstanceResponse: core.serialization.ObjectSchema< - serializers.hris.FieldMappingInstanceResponse.Raw, - Merge.hris.FieldMappingInstanceResponse -> = core.serialization.object({ - model: FieldMappingApiInstance, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace FieldMappingInstanceResponse { - export interface Raw { - model: FieldMappingApiInstance.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/FieldPermissionDeserializer.ts b/src/serialization/resources/hris/types/FieldPermissionDeserializer.ts deleted file mode 100644 index d6fd6065c..000000000 --- a/src/serialization/resources/hris/types/FieldPermissionDeserializer.ts +++ /dev/null @@ -1,26 +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 FieldPermissionDeserializer: core.serialization.ObjectSchema< - serializers.hris.FieldPermissionDeserializer.Raw, - Merge.hris.FieldPermissionDeserializer -> = core.serialization.object({ - enabledFields: core.serialization.property( - "enabled_fields", - core.serialization.list(core.serialization.unknown()).optional(), - ), - disabledFields: core.serialization.property( - "disabled_fields", - core.serialization.list(core.serialization.unknown()).optional(), - ), -}); - -export declare namespace FieldPermissionDeserializer { - export interface Raw { - enabled_fields?: unknown[] | null; - disabled_fields?: unknown[] | null; - } -} diff --git a/src/serialization/resources/hris/types/FieldPermissionDeserializerRequest.ts b/src/serialization/resources/hris/types/FieldPermissionDeserializerRequest.ts deleted file mode 100644 index 74f6ab124..000000000 --- a/src/serialization/resources/hris/types/FieldPermissionDeserializerRequest.ts +++ /dev/null @@ -1,26 +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 FieldPermissionDeserializerRequest: core.serialization.ObjectSchema< - serializers.hris.FieldPermissionDeserializerRequest.Raw, - Merge.hris.FieldPermissionDeserializerRequest -> = core.serialization.object({ - enabledFields: core.serialization.property( - "enabled_fields", - core.serialization.list(core.serialization.unknown()).optional(), - ), - disabledFields: core.serialization.property( - "disabled_fields", - core.serialization.list(core.serialization.unknown()).optional(), - ), -}); - -export declare namespace FieldPermissionDeserializerRequest { - export interface Raw { - enabled_fields?: unknown[] | null; - disabled_fields?: unknown[] | null; - } -} diff --git a/src/serialization/resources/hris/types/FlsaStatusEnum.ts b/src/serialization/resources/hris/types/FlsaStatusEnum.ts deleted file mode 100644 index 8b0c739e0..000000000 --- a/src/serialization/resources/hris/types/FlsaStatusEnum.ts +++ /dev/null @@ -1,12 +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 FlsaStatusEnum: core.serialization.Schema = - core.serialization.enum_(["EXEMPT", "SALARIED_NONEXEMPT", "NONEXEMPT", "OWNER"]); - -export declare namespace FlsaStatusEnum { - export type Raw = "EXEMPT" | "SALARIED_NONEXEMPT" | "NONEXEMPT" | "OWNER"; -} diff --git a/src/serialization/resources/hris/types/GenderEnum.ts b/src/serialization/resources/hris/types/GenderEnum.ts deleted file mode 100644 index 6b6461e36..000000000 --- a/src/serialization/resources/hris/types/GenderEnum.ts +++ /dev/null @@ -1,12 +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 GenderEnum: core.serialization.Schema = - core.serialization.enum_(["MALE", "FEMALE", "NON-BINARY", "OTHER", "PREFER_NOT_TO_DISCLOSE"]); - -export declare namespace GenderEnum { - export type Raw = "MALE" | "FEMALE" | "NON-BINARY" | "OTHER" | "PREFER_NOT_TO_DISCLOSE"; -} diff --git a/src/serialization/resources/hris/types/Group.ts b/src/serialization/resources/hris/types/Group.ts deleted file mode 100644 index 5403a0176..000000000 --- a/src/serialization/resources/hris/types/Group.ts +++ /dev/null @@ -1,44 +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 { GroupType } from "./GroupType"; -import { RemoteData } from "./RemoteData"; - -export const Group: core.serialization.ObjectSchema = - 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()), - parentGroup: core.serialization.property("parent_group", core.serialization.string().optional()), - name: core.serialization.string().optional(), - type: GroupType.optional(), - isCommonlyUsedAsTeam: core.serialization.property( - "is_commonly_used_as_team", - core.serialization.boolean().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()), - }); - -export declare namespace Group { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - parent_group?: string | null; - name?: string | null; - type?: GroupType.Raw | null; - is_commonly_used_as_team?: boolean | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/GroupType.ts b/src/serialization/resources/hris/types/GroupType.ts deleted file mode 100644 index 2bb5af242..000000000 --- a/src/serialization/resources/hris/types/GroupType.ts +++ /dev/null @@ -1,13 +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 { GroupTypeEnum } from "./GroupTypeEnum"; - -export const GroupType: core.serialization.Schema = - core.serialization.undiscriminatedUnion([GroupTypeEnum, core.serialization.string()]); - -export declare namespace GroupType { - export type Raw = GroupTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/GroupTypeEnum.ts b/src/serialization/resources/hris/types/GroupTypeEnum.ts deleted file mode 100644 index 8205a8fe5..000000000 --- a/src/serialization/resources/hris/types/GroupTypeEnum.ts +++ /dev/null @@ -1,12 +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 GroupTypeEnum: core.serialization.Schema = - core.serialization.enum_(["TEAM", "DEPARTMENT", "COST_CENTER", "BUSINESS_UNIT", "GROUP"]); - -export declare namespace GroupTypeEnum { - export type Raw = "TEAM" | "DEPARTMENT" | "COST_CENTER" | "BUSINESS_UNIT" | "GROUP"; -} diff --git a/src/serialization/resources/hris/types/IndividualCommonModelScopeDeserializer.ts b/src/serialization/resources/hris/types/IndividualCommonModelScopeDeserializer.ts deleted file mode 100644 index 1e718c06e..000000000 --- a/src/serialization/resources/hris/types/IndividualCommonModelScopeDeserializer.ts +++ /dev/null @@ -1,27 +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 { FieldPermissionDeserializer } from "./FieldPermissionDeserializer"; -import { ModelPermissionDeserializer } from "./ModelPermissionDeserializer"; - -export const IndividualCommonModelScopeDeserializer: core.serialization.ObjectSchema< - serializers.hris.IndividualCommonModelScopeDeserializer.Raw, - Merge.hris.IndividualCommonModelScopeDeserializer -> = core.serialization.object({ - modelName: core.serialization.property("model_name", core.serialization.string()), - modelPermissions: core.serialization.property( - "model_permissions", - core.serialization.record(core.serialization.string(), ModelPermissionDeserializer).optional(), - ), - fieldPermissions: core.serialization.property("field_permissions", FieldPermissionDeserializer.optional()), -}); - -export declare namespace IndividualCommonModelScopeDeserializer { - export interface Raw { - model_name: string; - model_permissions?: Record | null; - field_permissions?: FieldPermissionDeserializer.Raw | null; - } -} diff --git a/src/serialization/resources/hris/types/IndividualCommonModelScopeDeserializerRequest.ts b/src/serialization/resources/hris/types/IndividualCommonModelScopeDeserializerRequest.ts deleted file mode 100644 index a6b507bd7..000000000 --- a/src/serialization/resources/hris/types/IndividualCommonModelScopeDeserializerRequest.ts +++ /dev/null @@ -1,27 +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 { FieldPermissionDeserializerRequest } from "./FieldPermissionDeserializerRequest"; -import { ModelPermissionDeserializerRequest } from "./ModelPermissionDeserializerRequest"; - -export const IndividualCommonModelScopeDeserializerRequest: core.serialization.ObjectSchema< - serializers.hris.IndividualCommonModelScopeDeserializerRequest.Raw, - Merge.hris.IndividualCommonModelScopeDeserializerRequest -> = core.serialization.object({ - modelName: core.serialization.property("model_name", core.serialization.string()), - modelPermissions: core.serialization.property( - "model_permissions", - core.serialization.record(core.serialization.string(), ModelPermissionDeserializerRequest).optional(), - ), - fieldPermissions: core.serialization.property("field_permissions", FieldPermissionDeserializerRequest.optional()), -}); - -export declare namespace IndividualCommonModelScopeDeserializerRequest { - export interface Raw { - model_name: string; - model_permissions?: Record | null; - field_permissions?: FieldPermissionDeserializerRequest.Raw | null; - } -} diff --git a/src/serialization/resources/hris/types/Issue.ts b/src/serialization/resources/hris/types/Issue.ts deleted file mode 100644 index 3e75db13d..000000000 --- a/src/serialization/resources/hris/types/Issue.ts +++ /dev/null @@ -1,37 +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 { IssueStatus } from "./IssueStatus"; - -export const Issue: core.serialization.ObjectSchema = - core.serialization.object({ - id: core.serialization.string().optional(), - status: IssueStatus.optional(), - errorDescription: core.serialization.property("error_description", core.serialization.string()), - endUser: core.serialization.property( - "end_user", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - firstIncidentTime: core.serialization.property("first_incident_time", core.serialization.date().optional()), - lastIncidentTime: core.serialization.property("last_incident_time", core.serialization.date().optional()), - isMuted: core.serialization.property("is_muted", core.serialization.boolean().optional()), - errorDetails: core.serialization.property( - "error_details", - core.serialization.list(core.serialization.string()).optional(), - ), - }); - -export declare namespace Issue { - export interface Raw { - id?: string | null; - status?: IssueStatus.Raw | null; - error_description: string; - end_user?: Record | null; - first_incident_time?: string | null; - last_incident_time?: string | null; - is_muted?: boolean | null; - error_details?: string[] | null; - } -} diff --git a/src/serialization/resources/hris/types/IssueStatus.ts b/src/serialization/resources/hris/types/IssueStatus.ts deleted file mode 100644 index b08a65226..000000000 --- a/src/serialization/resources/hris/types/IssueStatus.ts +++ /dev/null @@ -1,13 +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 { IssueStatusEnum } from "./IssueStatusEnum"; - -export const IssueStatus: core.serialization.Schema = - core.serialization.undiscriminatedUnion([IssueStatusEnum, core.serialization.string()]); - -export declare namespace IssueStatus { - export type Raw = IssueStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/IssueStatusEnum.ts b/src/serialization/resources/hris/types/IssueStatusEnum.ts deleted file mode 100644 index ad2214f62..000000000 --- a/src/serialization/resources/hris/types/IssueStatusEnum.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 IssueStatusEnum: core.serialization.Schema< - serializers.hris.IssueStatusEnum.Raw, - Merge.hris.IssueStatusEnum -> = core.serialization.enum_(["ONGOING", "RESOLVED"]); - -export declare namespace IssueStatusEnum { - export type Raw = "ONGOING" | "RESOLVED"; -} diff --git a/src/serialization/resources/hris/types/LanguageEnum.ts b/src/serialization/resources/hris/types/LanguageEnum.ts deleted file mode 100644 index 91c7b6a0b..000000000 --- a/src/serialization/resources/hris/types/LanguageEnum.ts +++ /dev/null @@ -1,12 +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 LanguageEnum: core.serialization.Schema = - core.serialization.enum_(["en", "de"]); - -export declare namespace LanguageEnum { - export type Raw = "en" | "de"; -} diff --git a/src/serialization/resources/hris/types/LastSyncResultEnum.ts b/src/serialization/resources/hris/types/LastSyncResultEnum.ts deleted file mode 100644 index 35ae95a6a..000000000 --- a/src/serialization/resources/hris/types/LastSyncResultEnum.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 LastSyncResultEnum: core.serialization.Schema< - serializers.hris.LastSyncResultEnum.Raw, - Merge.hris.LastSyncResultEnum -> = core.serialization.enum_(["SYNCING", "DONE", "FAILED", "DISABLED", "PAUSED", "PARTIALLY_SYNCED"]); - -export declare namespace LastSyncResultEnum { - export type Raw = "SYNCING" | "DONE" | "FAILED" | "DISABLED" | "PAUSED" | "PARTIALLY_SYNCED"; -} diff --git a/src/serialization/resources/hris/types/LinkToken.ts b/src/serialization/resources/hris/types/LinkToken.ts deleted file mode 100644 index f466d3af5..000000000 --- a/src/serialization/resources/hris/types/LinkToken.ts +++ /dev/null @@ -1,20 +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 LinkToken: core.serialization.ObjectSchema = - core.serialization.object({ - linkToken: core.serialization.property("link_token", core.serialization.string()), - integrationName: core.serialization.property("integration_name", core.serialization.string().optional()), - magicLinkUrl: core.serialization.property("magic_link_url", core.serialization.string().optional()), - }); - -export declare namespace LinkToken { - export interface Raw { - link_token: string; - integration_name?: string | null; - magic_link_url?: string | null; - } -} diff --git a/src/serialization/resources/hris/types/LinkedAccountStatus.ts b/src/serialization/resources/hris/types/LinkedAccountStatus.ts deleted file mode 100644 index 291159a4a..000000000 --- a/src/serialization/resources/hris/types/LinkedAccountStatus.ts +++ /dev/null @@ -1,20 +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 LinkedAccountStatus: core.serialization.ObjectSchema< - serializers.hris.LinkedAccountStatus.Raw, - Merge.hris.LinkedAccountStatus -> = core.serialization.object({ - linkedAccountStatus: core.serialization.property("linked_account_status", core.serialization.string()), - canMakeRequest: core.serialization.property("can_make_request", core.serialization.boolean()), -}); - -export declare namespace LinkedAccountStatus { - export interface Raw { - linked_account_status: string; - can_make_request: boolean; - } -} diff --git a/src/serialization/resources/hris/types/Location.ts b/src/serialization/resources/hris/types/Location.ts deleted file mode 100644 index 706c62d9e..000000000 --- a/src/serialization/resources/hris/types/Location.ts +++ /dev/null @@ -1,52 +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 { LocationCountry } from "./LocationCountry"; -import { LocationLocationType } from "./LocationLocationType"; -import { RemoteData } from "./RemoteData"; - -export const Location: core.serialization.ObjectSchema = - 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()), - name: core.serialization.string().optional(), - phoneNumber: core.serialization.property("phone_number", core.serialization.string().optional()), - street1: core.serialization.property("street_1", core.serialization.string().optional()), - street2: core.serialization.property("street_2", core.serialization.string().optional()), - city: core.serialization.string().optional(), - state: core.serialization.string().optional(), - zipCode: core.serialization.property("zip_code", core.serialization.string().optional()), - country: LocationCountry.optional(), - locationType: core.serialization.property("location_type", LocationLocationType.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()), - }); - -export declare namespace Location { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - phone_number?: string | null; - street_1?: string | null; - street_2?: string | null; - city?: string | null; - state?: string | null; - zip_code?: string | null; - country?: LocationCountry.Raw | null; - location_type?: LocationLocationType.Raw | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/LocationCountry.ts b/src/serialization/resources/hris/types/LocationCountry.ts deleted file mode 100644 index f5ea26279..000000000 --- a/src/serialization/resources/hris/types/LocationCountry.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 { CountryEnum } from "./CountryEnum"; - -export const LocationCountry: core.serialization.Schema< - serializers.hris.LocationCountry.Raw, - Merge.hris.LocationCountry -> = core.serialization.undiscriminatedUnion([CountryEnum, core.serialization.string()]); - -export declare namespace LocationCountry { - export type Raw = CountryEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/LocationLocationType.ts b/src/serialization/resources/hris/types/LocationLocationType.ts deleted file mode 100644 index 34be6ba91..000000000 --- a/src/serialization/resources/hris/types/LocationLocationType.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 { LocationTypeEnum } from "./LocationTypeEnum"; - -export const LocationLocationType: core.serialization.Schema< - serializers.hris.LocationLocationType.Raw, - Merge.hris.LocationLocationType -> = core.serialization.undiscriminatedUnion([LocationTypeEnum, core.serialization.string()]); - -export declare namespace LocationLocationType { - export type Raw = LocationTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/LocationTypeEnum.ts b/src/serialization/resources/hris/types/LocationTypeEnum.ts deleted file mode 100644 index 549bbb5f7..000000000 --- a/src/serialization/resources/hris/types/LocationTypeEnum.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 LocationTypeEnum: core.serialization.Schema< - serializers.hris.LocationTypeEnum.Raw, - Merge.hris.LocationTypeEnum -> = core.serialization.enum_(["HOME", "WORK"]); - -export declare namespace LocationTypeEnum { - export type Raw = "HOME" | "WORK"; -} diff --git a/src/serialization/resources/hris/types/MaritalStatusEnum.ts b/src/serialization/resources/hris/types/MaritalStatusEnum.ts deleted file mode 100644 index 86b87d4b5..000000000 --- a/src/serialization/resources/hris/types/MaritalStatusEnum.ts +++ /dev/null @@ -1,25 +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 MaritalStatusEnum: core.serialization.Schema< - serializers.hris.MaritalStatusEnum.Raw, - Merge.hris.MaritalStatusEnum -> = core.serialization.enum_([ - "SINGLE", - "MARRIED_FILING_JOINTLY", - "MARRIED_FILING_SEPARATELY", - "HEAD_OF_HOUSEHOLD", - "QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD", -]); - -export declare namespace MaritalStatusEnum { - export type Raw = - | "SINGLE" - | "MARRIED_FILING_JOINTLY" - | "MARRIED_FILING_SEPARATELY" - | "HEAD_OF_HOUSEHOLD" - | "QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD"; -} diff --git a/src/serialization/resources/hris/types/MetaResponse.ts b/src/serialization/resources/hris/types/MetaResponse.ts deleted file mode 100644 index b803b6975..000000000 --- a/src/serialization/resources/hris/types/MetaResponse.ts +++ /dev/null @@ -1,34 +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 { LinkedAccountStatus } from "./LinkedAccountStatus"; - -export const MetaResponse: core.serialization.ObjectSchema = - core.serialization.object({ - requestSchema: core.serialization.property( - "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(), - ), - }); - -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; - } -} diff --git a/src/serialization/resources/hris/types/MethodEnum.ts b/src/serialization/resources/hris/types/MethodEnum.ts deleted file mode 100644 index e6fc0705e..000000000 --- a/src/serialization/resources/hris/types/MethodEnum.ts +++ /dev/null @@ -1,12 +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 MethodEnum: core.serialization.Schema = - core.serialization.enum_(["GET", "OPTIONS", "HEAD", "POST", "PUT", "PATCH", "DELETE"]); - -export declare namespace MethodEnum { - export type Raw = "GET" | "OPTIONS" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE"; -} diff --git a/src/serialization/resources/hris/types/ModelOperation.ts b/src/serialization/resources/hris/types/ModelOperation.ts deleted file mode 100644 index 8e0b46921..000000000 --- a/src/serialization/resources/hris/types/ModelOperation.ts +++ /dev/null @@ -1,33 +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 ModelOperation: core.serialization.ObjectSchema< - serializers.hris.ModelOperation.Raw, - Merge.hris.ModelOperation -> = core.serialization.object({ - modelName: core.serialization.property("model_name", core.serialization.string()), - availableOperations: core.serialization.property( - "available_operations", - core.serialization.list(core.serialization.string()), - ), - requiredPostParameters: core.serialization.property( - "required_post_parameters", - core.serialization.list(core.serialization.string()), - ), - supportedFields: core.serialization.property( - "supported_fields", - core.serialization.list(core.serialization.string()), - ), -}); - -export declare namespace ModelOperation { - export interface Raw { - model_name: string; - available_operations: string[]; - required_post_parameters: string[]; - supported_fields: string[]; - } -} diff --git a/src/serialization/resources/hris/types/ModelPermissionDeserializer.ts b/src/serialization/resources/hris/types/ModelPermissionDeserializer.ts deleted file mode 100644 index cc3b9342c..000000000 --- a/src/serialization/resources/hris/types/ModelPermissionDeserializer.ts +++ /dev/null @@ -1,18 +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 ModelPermissionDeserializer: core.serialization.ObjectSchema< - serializers.hris.ModelPermissionDeserializer.Raw, - Merge.hris.ModelPermissionDeserializer -> = core.serialization.object({ - isEnabled: core.serialization.property("is_enabled", core.serialization.boolean().optional()), -}); - -export declare namespace ModelPermissionDeserializer { - export interface Raw { - is_enabled?: boolean | null; - } -} diff --git a/src/serialization/resources/hris/types/ModelPermissionDeserializerRequest.ts b/src/serialization/resources/hris/types/ModelPermissionDeserializerRequest.ts deleted file mode 100644 index 37d78974b..000000000 --- a/src/serialization/resources/hris/types/ModelPermissionDeserializerRequest.ts +++ /dev/null @@ -1,18 +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 ModelPermissionDeserializerRequest: core.serialization.ObjectSchema< - serializers.hris.ModelPermissionDeserializerRequest.Raw, - Merge.hris.ModelPermissionDeserializerRequest -> = core.serialization.object({ - isEnabled: core.serialization.property("is_enabled", core.serialization.boolean().optional()), -}); - -export declare namespace ModelPermissionDeserializerRequest { - export interface Raw { - is_enabled?: boolean | null; - } -} diff --git a/src/serialization/resources/hris/types/MultipartFormFieldRequest.ts b/src/serialization/resources/hris/types/MultipartFormFieldRequest.ts deleted file mode 100644 index a1289cd43..000000000 --- a/src/serialization/resources/hris/types/MultipartFormFieldRequest.ts +++ /dev/null @@ -1,27 +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 { MultipartFormFieldRequestEncoding } from "./MultipartFormFieldRequestEncoding"; - -export const MultipartFormFieldRequest: core.serialization.ObjectSchema< - serializers.hris.MultipartFormFieldRequest.Raw, - Merge.hris.MultipartFormFieldRequest -> = core.serialization.object({ - name: core.serialization.string(), - data: core.serialization.string(), - encoding: MultipartFormFieldRequestEncoding.optional(), - fileName: core.serialization.property("file_name", core.serialization.string().optional()), - contentType: core.serialization.property("content_type", core.serialization.string().optional()), -}); - -export declare namespace MultipartFormFieldRequest { - export interface Raw { - name: string; - data: string; - encoding?: MultipartFormFieldRequestEncoding.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/PaginatedAccountDetailsAndActionsList.ts b/src/serialization/resources/hris/types/PaginatedAccountDetailsAndActionsList.ts deleted file mode 100644 index e000819eb..000000000 --- a/src/serialization/resources/hris/types/PaginatedAccountDetailsAndActionsList.ts +++ /dev/null @@ -1,23 +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 { AccountDetailsAndActions } from "./AccountDetailsAndActions"; - -export const PaginatedAccountDetailsAndActionsList: core.serialization.ObjectSchema< - serializers.hris.PaginatedAccountDetailsAndActionsList.Raw, - Merge.hris.PaginatedAccountDetailsAndActionsList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(AccountDetailsAndActions).optional(), -}); - -export declare namespace PaginatedAccountDetailsAndActionsList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: AccountDetailsAndActions.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/PaginatedAuditLogEventList.ts b/src/serialization/resources/hris/types/PaginatedAuditLogEventList.ts deleted file mode 100644 index 93c989eb8..000000000 --- a/src/serialization/resources/hris/types/PaginatedAuditLogEventList.ts +++ /dev/null @@ -1,23 +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 { AuditLogEvent } from "./AuditLogEvent"; - -export const PaginatedAuditLogEventList: core.serialization.ObjectSchema< - serializers.hris.PaginatedAuditLogEventList.Raw, - Merge.hris.PaginatedAuditLogEventList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(AuditLogEvent).optional(), -}); - -export declare namespace PaginatedAuditLogEventList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: AuditLogEvent.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/PaginatedBankInfoList.ts b/src/serialization/resources/hris/types/PaginatedBankInfoList.ts deleted file mode 100644 index 542c19de5..000000000 --- a/src/serialization/resources/hris/types/PaginatedBankInfoList.ts +++ /dev/null @@ -1,23 +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 { BankInfo } from "./BankInfo"; - -export const PaginatedBankInfoList: core.serialization.ObjectSchema< - serializers.hris.PaginatedBankInfoList.Raw, - Merge.hris.PaginatedBankInfoList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(BankInfo).optional(), -}); - -export declare namespace PaginatedBankInfoList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: BankInfo.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/PaginatedBenefitList.ts b/src/serialization/resources/hris/types/PaginatedBenefitList.ts deleted file mode 100644 index 1b76d48b8..000000000 --- a/src/serialization/resources/hris/types/PaginatedBenefitList.ts +++ /dev/null @@ -1,23 +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 { Benefit } from "./Benefit"; - -export const PaginatedBenefitList: core.serialization.ObjectSchema< - serializers.hris.PaginatedBenefitList.Raw, - Merge.hris.PaginatedBenefitList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Benefit).optional(), -}); - -export declare namespace PaginatedBenefitList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Benefit.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/PaginatedCompanyList.ts b/src/serialization/resources/hris/types/PaginatedCompanyList.ts deleted file mode 100644 index 900cd289c..000000000 --- a/src/serialization/resources/hris/types/PaginatedCompanyList.ts +++ /dev/null @@ -1,23 +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 { Company } from "./Company"; - -export const PaginatedCompanyList: core.serialization.ObjectSchema< - serializers.hris.PaginatedCompanyList.Raw, - Merge.hris.PaginatedCompanyList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Company).optional(), -}); - -export declare namespace PaginatedCompanyList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Company.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/PaginatedDependentList.ts b/src/serialization/resources/hris/types/PaginatedDependentList.ts deleted file mode 100644 index b35d8d253..000000000 --- a/src/serialization/resources/hris/types/PaginatedDependentList.ts +++ /dev/null @@ -1,23 +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 { Dependent } from "./Dependent"; - -export const PaginatedDependentList: core.serialization.ObjectSchema< - serializers.hris.PaginatedDependentList.Raw, - Merge.hris.PaginatedDependentList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Dependent).optional(), -}); - -export declare namespace PaginatedDependentList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Dependent.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/PaginatedEmployeeList.ts b/src/serialization/resources/hris/types/PaginatedEmployeeList.ts deleted file mode 100644 index b2a9f5b55..000000000 --- a/src/serialization/resources/hris/types/PaginatedEmployeeList.ts +++ /dev/null @@ -1,22 +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 * as serializers from "../../../index"; - -export const PaginatedEmployeeList: core.serialization.ObjectSchema< - serializers.hris.PaginatedEmployeeList.Raw, - Merge.hris.PaginatedEmployeeList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(core.serialization.lazyObject(() => serializers.hris.Employee)).optional(), -}); - -export declare namespace PaginatedEmployeeList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: serializers.hris.Employee.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/PaginatedEmployeePayrollRunList.ts b/src/serialization/resources/hris/types/PaginatedEmployeePayrollRunList.ts deleted file mode 100644 index 4688ab7d0..000000000 --- a/src/serialization/resources/hris/types/PaginatedEmployeePayrollRunList.ts +++ /dev/null @@ -1,23 +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 { EmployeePayrollRun } from "./EmployeePayrollRun"; - -export const PaginatedEmployeePayrollRunList: core.serialization.ObjectSchema< - serializers.hris.PaginatedEmployeePayrollRunList.Raw, - Merge.hris.PaginatedEmployeePayrollRunList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(EmployeePayrollRun).optional(), -}); - -export declare namespace PaginatedEmployeePayrollRunList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: EmployeePayrollRun.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/PaginatedEmployerBenefitList.ts b/src/serialization/resources/hris/types/PaginatedEmployerBenefitList.ts deleted file mode 100644 index 7bef4515f..000000000 --- a/src/serialization/resources/hris/types/PaginatedEmployerBenefitList.ts +++ /dev/null @@ -1,23 +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 { EmployerBenefit } from "./EmployerBenefit"; - -export const PaginatedEmployerBenefitList: core.serialization.ObjectSchema< - serializers.hris.PaginatedEmployerBenefitList.Raw, - Merge.hris.PaginatedEmployerBenefitList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(EmployerBenefit).optional(), -}); - -export declare namespace PaginatedEmployerBenefitList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: EmployerBenefit.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/PaginatedEmploymentList.ts b/src/serialization/resources/hris/types/PaginatedEmploymentList.ts deleted file mode 100644 index a22bdd003..000000000 --- a/src/serialization/resources/hris/types/PaginatedEmploymentList.ts +++ /dev/null @@ -1,22 +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 * as serializers from "../../../index"; - -export const PaginatedEmploymentList: core.serialization.ObjectSchema< - serializers.hris.PaginatedEmploymentList.Raw, - Merge.hris.PaginatedEmploymentList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(core.serialization.lazyObject(() => serializers.hris.Employment)).optional(), -}); - -export declare namespace PaginatedEmploymentList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: serializers.hris.Employment.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/PaginatedGroupList.ts b/src/serialization/resources/hris/types/PaginatedGroupList.ts deleted file mode 100644 index 42ef52bbd..000000000 --- a/src/serialization/resources/hris/types/PaginatedGroupList.ts +++ /dev/null @@ -1,23 +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 { Group } from "./Group"; - -export const PaginatedGroupList: core.serialization.ObjectSchema< - serializers.hris.PaginatedGroupList.Raw, - Merge.hris.PaginatedGroupList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Group).optional(), -}); - -export declare namespace PaginatedGroupList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Group.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/PaginatedIssueList.ts b/src/serialization/resources/hris/types/PaginatedIssueList.ts deleted file mode 100644 index 783295c94..000000000 --- a/src/serialization/resources/hris/types/PaginatedIssueList.ts +++ /dev/null @@ -1,23 +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 { Issue } from "./Issue"; - -export const PaginatedIssueList: core.serialization.ObjectSchema< - serializers.hris.PaginatedIssueList.Raw, - Merge.hris.PaginatedIssueList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Issue).optional(), -}); - -export declare namespace PaginatedIssueList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Issue.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/PaginatedLocationList.ts b/src/serialization/resources/hris/types/PaginatedLocationList.ts deleted file mode 100644 index 3432aa2d0..000000000 --- a/src/serialization/resources/hris/types/PaginatedLocationList.ts +++ /dev/null @@ -1,23 +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 { Location } from "./Location"; - -export const PaginatedLocationList: core.serialization.ObjectSchema< - serializers.hris.PaginatedLocationList.Raw, - Merge.hris.PaginatedLocationList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Location).optional(), -}); - -export declare namespace PaginatedLocationList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Location.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/PaginatedPayGroupList.ts b/src/serialization/resources/hris/types/PaginatedPayGroupList.ts deleted file mode 100644 index 3fe3e9823..000000000 --- a/src/serialization/resources/hris/types/PaginatedPayGroupList.ts +++ /dev/null @@ -1,23 +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 { PayGroup } from "./PayGroup"; - -export const PaginatedPayGroupList: core.serialization.ObjectSchema< - serializers.hris.PaginatedPayGroupList.Raw, - Merge.hris.PaginatedPayGroupList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(PayGroup).optional(), -}); - -export declare namespace PaginatedPayGroupList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: PayGroup.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/PaginatedPayrollRunList.ts b/src/serialization/resources/hris/types/PaginatedPayrollRunList.ts deleted file mode 100644 index fc5740919..000000000 --- a/src/serialization/resources/hris/types/PaginatedPayrollRunList.ts +++ /dev/null @@ -1,23 +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 { PayrollRun } from "./PayrollRun"; - -export const PaginatedPayrollRunList: core.serialization.ObjectSchema< - serializers.hris.PaginatedPayrollRunList.Raw, - Merge.hris.PaginatedPayrollRunList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(PayrollRun).optional(), -}); - -export declare namespace PaginatedPayrollRunList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: PayrollRun.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/PaginatedSyncStatusList.ts b/src/serialization/resources/hris/types/PaginatedSyncStatusList.ts deleted file mode 100644 index f5d8232e2..000000000 --- a/src/serialization/resources/hris/types/PaginatedSyncStatusList.ts +++ /dev/null @@ -1,23 +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 { SyncStatus } from "./SyncStatus"; - -export const PaginatedSyncStatusList: core.serialization.ObjectSchema< - serializers.hris.PaginatedSyncStatusList.Raw, - Merge.hris.PaginatedSyncStatusList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(SyncStatus).optional(), -}); - -export declare namespace PaginatedSyncStatusList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: SyncStatus.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/PaginatedTeamList.ts b/src/serialization/resources/hris/types/PaginatedTeamList.ts deleted file mode 100644 index 3441120e8..000000000 --- a/src/serialization/resources/hris/types/PaginatedTeamList.ts +++ /dev/null @@ -1,22 +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 * as serializers from "../../../index"; - -export const PaginatedTeamList: core.serialization.ObjectSchema< - serializers.hris.PaginatedTeamList.Raw, - Merge.hris.PaginatedTeamList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(core.serialization.lazyObject(() => serializers.hris.Team)).optional(), -}); - -export declare namespace PaginatedTeamList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: serializers.hris.Team.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/PaginatedTimeOffBalanceList.ts b/src/serialization/resources/hris/types/PaginatedTimeOffBalanceList.ts deleted file mode 100644 index c8bcdc2f4..000000000 --- a/src/serialization/resources/hris/types/PaginatedTimeOffBalanceList.ts +++ /dev/null @@ -1,23 +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 { TimeOffBalance } from "./TimeOffBalance"; - -export const PaginatedTimeOffBalanceList: core.serialization.ObjectSchema< - serializers.hris.PaginatedTimeOffBalanceList.Raw, - Merge.hris.PaginatedTimeOffBalanceList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(TimeOffBalance).optional(), -}); - -export declare namespace PaginatedTimeOffBalanceList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: TimeOffBalance.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/PaginatedTimeOffList.ts b/src/serialization/resources/hris/types/PaginatedTimeOffList.ts deleted file mode 100644 index aae1bea72..000000000 --- a/src/serialization/resources/hris/types/PaginatedTimeOffList.ts +++ /dev/null @@ -1,23 +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 { TimeOff } from "./TimeOff"; - -export const PaginatedTimeOffList: core.serialization.ObjectSchema< - serializers.hris.PaginatedTimeOffList.Raw, - Merge.hris.PaginatedTimeOffList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(TimeOff).optional(), -}); - -export declare namespace PaginatedTimeOffList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: TimeOff.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/PaginatedTimesheetEntryList.ts b/src/serialization/resources/hris/types/PaginatedTimesheetEntryList.ts deleted file mode 100644 index a9f39e9b7..000000000 --- a/src/serialization/resources/hris/types/PaginatedTimesheetEntryList.ts +++ /dev/null @@ -1,23 +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 { TimesheetEntry } from "./TimesheetEntry"; - -export const PaginatedTimesheetEntryList: core.serialization.ObjectSchema< - serializers.hris.PaginatedTimesheetEntryList.Raw, - Merge.hris.PaginatedTimesheetEntryList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(TimesheetEntry).optional(), -}); - -export declare namespace PaginatedTimesheetEntryList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: TimesheetEntry.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/PayCurrencyEnum.ts b/src/serialization/resources/hris/types/PayCurrencyEnum.ts deleted file mode 100644 index 4313771b5..000000000 --- a/src/serialization/resources/hris/types/PayCurrencyEnum.ts +++ /dev/null @@ -1,627 +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 PayCurrencyEnum: core.serialization.Schema< - serializers.hris.PayCurrencyEnum.Raw, - Merge.hris.PayCurrencyEnum -> = core.serialization.enum_([ - "XUA", - "AFN", - "AFA", - "ALL", - "ALK", - "DZD", - "ADP", - "AOA", - "AOK", - "AON", - "AOR", - "ARA", - "ARS", - "ARM", - "ARP", - "ARL", - "AMD", - "AWG", - "AUD", - "ATS", - "AZN", - "AZM", - "BSD", - "BHD", - "BDT", - "BBD", - "BYN", - "BYB", - "BYR", - "BEF", - "BEC", - "BEL", - "BZD", - "BMD", - "BTN", - "BOB", - "BOL", - "BOV", - "BOP", - "BAM", - "BAD", - "BAN", - "BWP", - "BRC", - "BRZ", - "BRE", - "BRR", - "BRN", - "BRB", - "BRL", - "GBP", - "BND", - "BGL", - "BGN", - "BGO", - "BGM", - "BUK", - "BIF", - "XPF", - "KHR", - "CAD", - "CVE", - "KYD", - "XAF", - "CLE", - "CLP", - "CLF", - "CNX", - "CNY", - "CNH", - "COP", - "COU", - "KMF", - "CDF", - "CRC", - "HRD", - "HRK", - "CUC", - "CUP", - "CYP", - "CZK", - "CSK", - "DKK", - "DJF", - "DOP", - "NLG", - "XCD", - "DDM", - "ECS", - "ECV", - "EGP", - "GQE", - "ERN", - "EEK", - "ETB", - "EUR", - "XBA", - "XEU", - "XBB", - "XBC", - "XBD", - "FKP", - "FJD", - "FIM", - "FRF", - "XFO", - "XFU", - "GMD", - "GEK", - "GEL", - "DEM", - "GHS", - "GHC", - "GIP", - "XAU", - "GRD", - "GTQ", - "GWP", - "GNF", - "GNS", - "GYD", - "HTG", - "HNL", - "HKD", - "HUF", - "IMP", - "ISK", - "ISJ", - "INR", - "IDR", - "IRR", - "IQD", - "IEP", - "ILS", - "ILP", - "ILR", - "ITL", - "JMD", - "JPY", - "JOD", - "KZT", - "KES", - "KWD", - "KGS", - "LAK", - "LVL", - "LVR", - "LBP", - "LSL", - "LRD", - "LYD", - "LTL", - "LTT", - "LUL", - "LUC", - "LUF", - "MOP", - "MKD", - "MKN", - "MGA", - "MGF", - "MWK", - "MYR", - "MVR", - "MVP", - "MLF", - "MTL", - "MTP", - "MRU", - "MRO", - "MUR", - "MXV", - "MXN", - "MXP", - "MDC", - "MDL", - "MCF", - "MNT", - "MAD", - "MAF", - "MZE", - "MZN", - "MZM", - "MMK", - "NAD", - "NPR", - "ANG", - "TWD", - "NZD", - "NIO", - "NIC", - "NGN", - "KPW", - "NOK", - "OMR", - "PKR", - "XPD", - "PAB", - "PGK", - "PYG", - "PEI", - "PEN", - "PES", - "PHP", - "XPT", - "PLN", - "PLZ", - "PTE", - "GWE", - "QAR", - "XRE", - "RHD", - "RON", - "ROL", - "RUB", - "RUR", - "RWF", - "SVC", - "WST", - "SAR", - "RSD", - "CSD", - "SCR", - "SLL", - "XAG", - "SGD", - "SKK", - "SIT", - "SBD", - "SOS", - "ZAR", - "ZAL", - "KRH", - "KRW", - "KRO", - "SSP", - "SUR", - "ESP", - "ESA", - "ESB", - "XDR", - "LKR", - "SHP", - "XSU", - "SDD", - "SDG", - "SDP", - "SRD", - "SRG", - "SZL", - "SEK", - "CHF", - "SYP", - "STN", - "STD", - "TVD", - "TJR", - "TJS", - "TZS", - "XTS", - "THB", - "XXX", - "TPE", - "TOP", - "TTD", - "TND", - "TRY", - "TRL", - "TMT", - "TMM", - "USD", - "USN", - "USS", - "UGX", - "UGS", - "UAH", - "UAK", - "AED", - "UYW", - "UYU", - "UYP", - "UYI", - "UZS", - "VUV", - "VES", - "VEB", - "VEF", - "VND", - "VNN", - "CHE", - "CHW", - "XOF", - "YDD", - "YER", - "YUN", - "YUD", - "YUM", - "YUR", - "ZWN", - "ZRN", - "ZRZ", - "ZMW", - "ZMK", - "ZWD", - "ZWR", - "ZWL", -]); - -export declare namespace PayCurrencyEnum { - export type Raw = - | "XUA" - | "AFN" - | "AFA" - | "ALL" - | "ALK" - | "DZD" - | "ADP" - | "AOA" - | "AOK" - | "AON" - | "AOR" - | "ARA" - | "ARS" - | "ARM" - | "ARP" - | "ARL" - | "AMD" - | "AWG" - | "AUD" - | "ATS" - | "AZN" - | "AZM" - | "BSD" - | "BHD" - | "BDT" - | "BBD" - | "BYN" - | "BYB" - | "BYR" - | "BEF" - | "BEC" - | "BEL" - | "BZD" - | "BMD" - | "BTN" - | "BOB" - | "BOL" - | "BOV" - | "BOP" - | "BAM" - | "BAD" - | "BAN" - | "BWP" - | "BRC" - | "BRZ" - | "BRE" - | "BRR" - | "BRN" - | "BRB" - | "BRL" - | "GBP" - | "BND" - | "BGL" - | "BGN" - | "BGO" - | "BGM" - | "BUK" - | "BIF" - | "XPF" - | "KHR" - | "CAD" - | "CVE" - | "KYD" - | "XAF" - | "CLE" - | "CLP" - | "CLF" - | "CNX" - | "CNY" - | "CNH" - | "COP" - | "COU" - | "KMF" - | "CDF" - | "CRC" - | "HRD" - | "HRK" - | "CUC" - | "CUP" - | "CYP" - | "CZK" - | "CSK" - | "DKK" - | "DJF" - | "DOP" - | "NLG" - | "XCD" - | "DDM" - | "ECS" - | "ECV" - | "EGP" - | "GQE" - | "ERN" - | "EEK" - | "ETB" - | "EUR" - | "XBA" - | "XEU" - | "XBB" - | "XBC" - | "XBD" - | "FKP" - | "FJD" - | "FIM" - | "FRF" - | "XFO" - | "XFU" - | "GMD" - | "GEK" - | "GEL" - | "DEM" - | "GHS" - | "GHC" - | "GIP" - | "XAU" - | "GRD" - | "GTQ" - | "GWP" - | "GNF" - | "GNS" - | "GYD" - | "HTG" - | "HNL" - | "HKD" - | "HUF" - | "IMP" - | "ISK" - | "ISJ" - | "INR" - | "IDR" - | "IRR" - | "IQD" - | "IEP" - | "ILS" - | "ILP" - | "ILR" - | "ITL" - | "JMD" - | "JPY" - | "JOD" - | "KZT" - | "KES" - | "KWD" - | "KGS" - | "LAK" - | "LVL" - | "LVR" - | "LBP" - | "LSL" - | "LRD" - | "LYD" - | "LTL" - | "LTT" - | "LUL" - | "LUC" - | "LUF" - | "MOP" - | "MKD" - | "MKN" - | "MGA" - | "MGF" - | "MWK" - | "MYR" - | "MVR" - | "MVP" - | "MLF" - | "MTL" - | "MTP" - | "MRU" - | "MRO" - | "MUR" - | "MXV" - | "MXN" - | "MXP" - | "MDC" - | "MDL" - | "MCF" - | "MNT" - | "MAD" - | "MAF" - | "MZE" - | "MZN" - | "MZM" - | "MMK" - | "NAD" - | "NPR" - | "ANG" - | "TWD" - | "NZD" - | "NIO" - | "NIC" - | "NGN" - | "KPW" - | "NOK" - | "OMR" - | "PKR" - | "XPD" - | "PAB" - | "PGK" - | "PYG" - | "PEI" - | "PEN" - | "PES" - | "PHP" - | "XPT" - | "PLN" - | "PLZ" - | "PTE" - | "GWE" - | "QAR" - | "XRE" - | "RHD" - | "RON" - | "ROL" - | "RUB" - | "RUR" - | "RWF" - | "SVC" - | "WST" - | "SAR" - | "RSD" - | "CSD" - | "SCR" - | "SLL" - | "XAG" - | "SGD" - | "SKK" - | "SIT" - | "SBD" - | "SOS" - | "ZAR" - | "ZAL" - | "KRH" - | "KRW" - | "KRO" - | "SSP" - | "SUR" - | "ESP" - | "ESA" - | "ESB" - | "XDR" - | "LKR" - | "SHP" - | "XSU" - | "SDD" - | "SDG" - | "SDP" - | "SRD" - | "SRG" - | "SZL" - | "SEK" - | "CHF" - | "SYP" - | "STN" - | "STD" - | "TVD" - | "TJR" - | "TJS" - | "TZS" - | "XTS" - | "THB" - | "XXX" - | "TPE" - | "TOP" - | "TTD" - | "TND" - | "TRY" - | "TRL" - | "TMT" - | "TMM" - | "USD" - | "USN" - | "USS" - | "UGX" - | "UGS" - | "UAH" - | "UAK" - | "AED" - | "UYW" - | "UYU" - | "UYP" - | "UYI" - | "UZS" - | "VUV" - | "VES" - | "VEB" - | "VEF" - | "VND" - | "VNN" - | "CHE" - | "CHW" - | "XOF" - | "YDD" - | "YER" - | "YUN" - | "YUD" - | "YUM" - | "YUR" - | "ZWN" - | "ZRN" - | "ZRZ" - | "ZMW" - | "ZMK" - | "ZWD" - | "ZWR" - | "ZWL"; -} diff --git a/src/serialization/resources/hris/types/PayFrequencyEnum.ts b/src/serialization/resources/hris/types/PayFrequencyEnum.ts deleted file mode 100644 index 9a824861f..000000000 --- a/src/serialization/resources/hris/types/PayFrequencyEnum.ts +++ /dev/null @@ -1,33 +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 PayFrequencyEnum: core.serialization.Schema< - serializers.hris.PayFrequencyEnum.Raw, - Merge.hris.PayFrequencyEnum -> = core.serialization.enum_([ - "WEEKLY", - "BIWEEKLY", - "MONTHLY", - "QUARTERLY", - "SEMIANNUALLY", - "ANNUALLY", - "THIRTEEN-MONTHLY", - "PRO_RATA", - "SEMIMONTHLY", -]); - -export declare namespace PayFrequencyEnum { - export type Raw = - | "WEEKLY" - | "BIWEEKLY" - | "MONTHLY" - | "QUARTERLY" - | "SEMIANNUALLY" - | "ANNUALLY" - | "THIRTEEN-MONTHLY" - | "PRO_RATA" - | "SEMIMONTHLY"; -} diff --git a/src/serialization/resources/hris/types/PayGroup.ts b/src/serialization/resources/hris/types/PayGroup.ts deleted file mode 100644 index 31a2c4303..000000000 --- a/src/serialization/resources/hris/types/PayGroup.ts +++ /dev/null @@ -1,34 +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 { RemoteData } from "./RemoteData"; - -export const PayGroup: core.serialization.ObjectSchema = - 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()), - payGroupName: core.serialization.property("pay_group_name", core.serialization.string().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()), - }); - -export declare namespace PayGroup { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - pay_group_name?: string | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/PayPeriodEnum.ts b/src/serialization/resources/hris/types/PayPeriodEnum.ts deleted file mode 100644 index d832b4d61..000000000 --- a/src/serialization/resources/hris/types/PayPeriodEnum.ts +++ /dev/null @@ -1,31 +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 PayPeriodEnum: core.serialization.Schema = - core.serialization.enum_([ - "HOUR", - "DAY", - "WEEK", - "EVERY_TWO_WEEKS", - "SEMIMONTHLY", - "MONTH", - "QUARTER", - "EVERY_SIX_MONTHS", - "YEAR", - ]); - -export declare namespace PayPeriodEnum { - export type Raw = - | "HOUR" - | "DAY" - | "WEEK" - | "EVERY_TWO_WEEKS" - | "SEMIMONTHLY" - | "MONTH" - | "QUARTER" - | "EVERY_SIX_MONTHS" - | "YEAR"; -} diff --git a/src/serialization/resources/hris/types/PayrollRun.ts b/src/serialization/resources/hris/types/PayrollRun.ts deleted file mode 100644 index a9a636e35..000000000 --- a/src/serialization/resources/hris/types/PayrollRun.ts +++ /dev/null @@ -1,44 +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 { PayrollRunRunState } from "./PayrollRunRunState"; -import { PayrollRunRunType } from "./PayrollRunRunType"; -import { RemoteData } from "./RemoteData"; - -export const PayrollRun: core.serialization.ObjectSchema = - 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()), - runState: core.serialization.property("run_state", PayrollRunRunState.optional()), - runType: core.serialization.property("run_type", PayrollRunRunType.optional()), - startDate: core.serialization.property("start_date", core.serialization.date().optional()), - endDate: core.serialization.property("end_date", core.serialization.date().optional()), - checkDate: core.serialization.property("check_date", 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()), - }); - -export declare namespace PayrollRun { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - run_state?: PayrollRunRunState.Raw | null; - run_type?: PayrollRunRunType.Raw | null; - start_date?: string | null; - end_date?: string | null; - check_date?: string | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/PayrollRunRunState.ts b/src/serialization/resources/hris/types/PayrollRunRunState.ts deleted file mode 100644 index c3a5dc4c3..000000000 --- a/src/serialization/resources/hris/types/PayrollRunRunState.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 { RunStateEnum } from "./RunStateEnum"; - -export const PayrollRunRunState: core.serialization.Schema< - serializers.hris.PayrollRunRunState.Raw, - Merge.hris.PayrollRunRunState -> = core.serialization.undiscriminatedUnion([RunStateEnum, core.serialization.string()]); - -export declare namespace PayrollRunRunState { - export type Raw = RunStateEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/PayrollRunRunType.ts b/src/serialization/resources/hris/types/PayrollRunRunType.ts deleted file mode 100644 index 1da3ca2dd..000000000 --- a/src/serialization/resources/hris/types/PayrollRunRunType.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 { RunTypeEnum } from "./RunTypeEnum"; - -export const PayrollRunRunType: core.serialization.Schema< - serializers.hris.PayrollRunRunType.Raw, - Merge.hris.PayrollRunRunType -> = core.serialization.undiscriminatedUnion([RunTypeEnum, core.serialization.string()]); - -export declare namespace PayrollRunRunType { - export type Raw = RunTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/PolicyTypeEnum.ts b/src/serialization/resources/hris/types/PolicyTypeEnum.ts deleted file mode 100644 index e2f0184a2..000000000 --- a/src/serialization/resources/hris/types/PolicyTypeEnum.ts +++ /dev/null @@ -1,12 +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 PolicyTypeEnum: core.serialization.Schema = - core.serialization.enum_(["VACATION", "SICK", "PERSONAL", "JURY_DUTY", "VOLUNTEER", "BEREAVEMENT"]); - -export declare namespace PolicyTypeEnum { - export type Raw = "VACATION" | "SICK" | "PERSONAL" | "JURY_DUTY" | "VOLUNTEER" | "BEREAVEMENT"; -} diff --git a/src/serialization/resources/hris/types/ReasonEnum.ts b/src/serialization/resources/hris/types/ReasonEnum.ts deleted file mode 100644 index 2b0651c34..000000000 --- a/src/serialization/resources/hris/types/ReasonEnum.ts +++ /dev/null @@ -1,12 +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 ReasonEnum: core.serialization.Schema = - core.serialization.enum_(["GENERAL_CUSTOMER_REQUEST", "GDPR", "OTHER"]); - -export declare namespace ReasonEnum { - export type Raw = "GENERAL_CUSTOMER_REQUEST" | "GDPR" | "OTHER"; -} diff --git a/src/serialization/resources/hris/types/RelationshipEnum.ts b/src/serialization/resources/hris/types/RelationshipEnum.ts deleted file mode 100644 index 15c5ec6ed..000000000 --- a/src/serialization/resources/hris/types/RelationshipEnum.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 RelationshipEnum: core.serialization.Schema< - serializers.hris.RelationshipEnum.Raw, - Merge.hris.RelationshipEnum -> = core.serialization.enum_(["CHILD", "SPOUSE", "DOMESTIC_PARTNER"]); - -export declare namespace RelationshipEnum { - export type Raw = "CHILD" | "SPOUSE" | "DOMESTIC_PARTNER"; -} diff --git a/src/serialization/resources/hris/types/RemoteData.ts b/src/serialization/resources/hris/types/RemoteData.ts deleted file mode 100644 index b13dc5360..000000000 --- a/src/serialization/resources/hris/types/RemoteData.ts +++ /dev/null @@ -1,18 +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 RemoteData: core.serialization.ObjectSchema = - core.serialization.object({ - path: core.serialization.string(), - data: core.serialization.unknown().optional(), - }); - -export declare namespace RemoteData { - export interface Raw { - path: string; - data?: unknown | null; - } -} diff --git a/src/serialization/resources/hris/types/RemoteEndpointInfo.ts b/src/serialization/resources/hris/types/RemoteEndpointInfo.ts deleted file mode 100644 index 79f3f9f0d..000000000 --- a/src/serialization/resources/hris/types/RemoteEndpointInfo.ts +++ /dev/null @@ -1,25 +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 RemoteEndpointInfo: core.serialization.ObjectSchema< - serializers.hris.RemoteEndpointInfo.Raw, - Merge.hris.RemoteEndpointInfo -> = core.serialization.object({ - method: core.serialization.string(), - urlPath: core.serialization.property("url_path", core.serialization.string()), - fieldTraversalPath: core.serialization.property( - "field_traversal_path", - core.serialization.list(core.serialization.unknown()), - ), -}); - -export declare namespace RemoteEndpointInfo { - export interface Raw { - method: string; - url_path: string; - field_traversal_path: unknown[]; - } -} diff --git a/src/serialization/resources/hris/types/RemoteFieldApi.ts b/src/serialization/resources/hris/types/RemoteFieldApi.ts deleted file mode 100644 index d7e2df8e5..000000000 --- a/src/serialization/resources/hris/types/RemoteFieldApi.ts +++ /dev/null @@ -1,34 +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 { AdvancedMetadata } from "./AdvancedMetadata"; -import { RemoteEndpointInfo } from "./RemoteEndpointInfo"; -import { RemoteFieldApiCoverage } from "./RemoteFieldApiCoverage"; - -export const RemoteFieldApi: core.serialization.ObjectSchema< - serializers.hris.RemoteFieldApi.Raw, - Merge.hris.RemoteFieldApi -> = core.serialization.object({ - schema: core.serialization.record(core.serialization.string(), core.serialization.unknown()), - remoteKeyName: core.serialization.property("remote_key_name", core.serialization.string()), - remoteEndpointInfo: core.serialization.property("remote_endpoint_info", RemoteEndpointInfo), - exampleValues: core.serialization.property( - "example_values", - core.serialization.list(core.serialization.unknown()).optional(), - ), - advancedMetadata: core.serialization.property("advanced_metadata", AdvancedMetadata.optional()), - coverage: RemoteFieldApiCoverage.optional(), -}); - -export declare namespace RemoteFieldApi { - export interface Raw { - schema: Record; - remote_key_name: string; - remote_endpoint_info: RemoteEndpointInfo.Raw; - example_values?: unknown[] | null; - advanced_metadata?: AdvancedMetadata.Raw | null; - coverage?: RemoteFieldApiCoverage.Raw | null; - } -} diff --git a/src/serialization/resources/hris/types/RemoteFieldApiCoverage.ts b/src/serialization/resources/hris/types/RemoteFieldApiCoverage.ts deleted file mode 100644 index da8386a85..000000000 --- a/src/serialization/resources/hris/types/RemoteFieldApiCoverage.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 RemoteFieldApiCoverage: core.serialization.Schema< - serializers.hris.RemoteFieldApiCoverage.Raw, - Merge.hris.RemoteFieldApiCoverage -> = core.serialization.undiscriminatedUnion([core.serialization.number(), core.serialization.number()]); - -export declare namespace RemoteFieldApiCoverage { - export type Raw = number | number; -} diff --git a/src/serialization/resources/hris/types/RemoteFieldApiResponse.ts b/src/serialization/resources/hris/types/RemoteFieldApiResponse.ts deleted file mode 100644 index f7510d3f6..000000000 --- a/src/serialization/resources/hris/types/RemoteFieldApiResponse.ts +++ /dev/null @@ -1,52 +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 { RemoteFieldApi } from "./RemoteFieldApi"; - -export const RemoteFieldApiResponse: core.serialization.ObjectSchema< - serializers.hris.RemoteFieldApiResponse.Raw, - Merge.hris.RemoteFieldApiResponse -> = core.serialization.object({ - benefit: core.serialization.property("Benefit", core.serialization.list(RemoteFieldApi).optional()), - employerBenefit: core.serialization.property("EmployerBenefit", core.serialization.list(RemoteFieldApi).optional()), - company: core.serialization.property("Company", core.serialization.list(RemoteFieldApi).optional()), - employeePayrollRun: core.serialization.property( - "EmployeePayrollRun", - core.serialization.list(RemoteFieldApi).optional(), - ), - employee: core.serialization.property("Employee", core.serialization.list(RemoteFieldApi).optional()), - employment: core.serialization.property("Employment", core.serialization.list(RemoteFieldApi).optional()), - location: core.serialization.property("Location", core.serialization.list(RemoteFieldApi).optional()), - payrollRun: core.serialization.property("PayrollRun", core.serialization.list(RemoteFieldApi).optional()), - team: core.serialization.property("Team", core.serialization.list(RemoteFieldApi).optional()), - timeOff: core.serialization.property("TimeOff", core.serialization.list(RemoteFieldApi).optional()), - timeOffBalance: core.serialization.property("TimeOffBalance", core.serialization.list(RemoteFieldApi).optional()), - bankInfo: core.serialization.property("BankInfo", core.serialization.list(RemoteFieldApi).optional()), - payGroup: core.serialization.property("PayGroup", core.serialization.list(RemoteFieldApi).optional()), - group: core.serialization.property("Group", core.serialization.list(RemoteFieldApi).optional()), - dependent: core.serialization.property("Dependent", core.serialization.list(RemoteFieldApi).optional()), - timesheetEntry: core.serialization.property("TimesheetEntry", core.serialization.list(RemoteFieldApi).optional()), -}); - -export declare namespace RemoteFieldApiResponse { - export interface Raw { - Benefit?: RemoteFieldApi.Raw[] | null; - EmployerBenefit?: RemoteFieldApi.Raw[] | null; - Company?: RemoteFieldApi.Raw[] | null; - EmployeePayrollRun?: RemoteFieldApi.Raw[] | null; - Employee?: RemoteFieldApi.Raw[] | null; - Employment?: RemoteFieldApi.Raw[] | null; - Location?: RemoteFieldApi.Raw[] | null; - PayrollRun?: RemoteFieldApi.Raw[] | null; - Team?: RemoteFieldApi.Raw[] | null; - TimeOff?: RemoteFieldApi.Raw[] | null; - TimeOffBalance?: RemoteFieldApi.Raw[] | null; - BankInfo?: RemoteFieldApi.Raw[] | null; - PayGroup?: RemoteFieldApi.Raw[] | null; - Group?: RemoteFieldApi.Raw[] | null; - Dependent?: RemoteFieldApi.Raw[] | null; - TimesheetEntry?: RemoteFieldApi.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/RemoteKey.ts b/src/serialization/resources/hris/types/RemoteKey.ts deleted file mode 100644 index 707b75cd0..000000000 --- a/src/serialization/resources/hris/types/RemoteKey.ts +++ /dev/null @@ -1,18 +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 RemoteKey: core.serialization.ObjectSchema = - core.serialization.object({ - name: core.serialization.string(), - key: core.serialization.string(), - }); - -export declare namespace RemoteKey { - export interface Raw { - name: string; - key: string; - } -} diff --git a/src/serialization/resources/hris/types/RemoteResponse.ts b/src/serialization/resources/hris/types/RemoteResponse.ts deleted file mode 100644 index affa9328b..000000000 --- a/src/serialization/resources/hris/types/RemoteResponse.ts +++ /dev/null @@ -1,34 +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 { RemoteResponseResponseType } from "./RemoteResponseResponseType"; - -export const RemoteResponse: core.serialization.ObjectSchema< - serializers.hris.RemoteResponse.Raw, - Merge.hris.RemoteResponse -> = core.serialization.object({ - method: core.serialization.string(), - path: core.serialization.string(), - status: core.serialization.number(), - response: core.serialization.unknown(), - responseHeaders: core.serialization.property( - "response_headers", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - responseType: core.serialization.property("response_type", RemoteResponseResponseType.optional()), - headers: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), -}); - -export declare namespace RemoteResponse { - export interface Raw { - method: string; - path: string; - status: number; - response?: unknown; - response_headers?: Record | null; - response_type?: RemoteResponseResponseType.Raw | null; - headers?: Record | null; - } -} diff --git a/src/serialization/resources/hris/types/RemoteResponseResponseType.ts b/src/serialization/resources/hris/types/RemoteResponseResponseType.ts deleted file mode 100644 index 3e854562c..000000000 --- a/src/serialization/resources/hris/types/RemoteResponseResponseType.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 { ResponseTypeEnum } from "./ResponseTypeEnum"; - -export const RemoteResponseResponseType: core.serialization.Schema< - serializers.hris.RemoteResponseResponseType.Raw, - Merge.hris.RemoteResponseResponseType -> = core.serialization.undiscriminatedUnion([ResponseTypeEnum, core.serialization.string()]); - -export declare namespace RemoteResponseResponseType { - export type Raw = ResponseTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/RequestFormatEnum.ts b/src/serialization/resources/hris/types/RequestFormatEnum.ts deleted file mode 100644 index 737f0bf2b..000000000 --- a/src/serialization/resources/hris/types/RequestFormatEnum.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 RequestFormatEnum: core.serialization.Schema< - serializers.hris.RequestFormatEnum.Raw, - Merge.hris.RequestFormatEnum -> = core.serialization.enum_(["JSON", "XML", "MULTIPART"]); - -export declare namespace RequestFormatEnum { - export type Raw = "JSON" | "XML" | "MULTIPART"; -} diff --git a/src/serialization/resources/hris/types/RequestTypeEnum.ts b/src/serialization/resources/hris/types/RequestTypeEnum.ts deleted file mode 100644 index 2552181ab..000000000 --- a/src/serialization/resources/hris/types/RequestTypeEnum.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 RequestTypeEnum: core.serialization.Schema< - serializers.hris.RequestTypeEnum.Raw, - Merge.hris.RequestTypeEnum -> = core.serialization.enum_(["VACATION", "SICK", "PERSONAL", "JURY_DUTY", "VOLUNTEER", "BEREAVEMENT"]); - -export declare namespace RequestTypeEnum { - export type Raw = "VACATION" | "SICK" | "PERSONAL" | "JURY_DUTY" | "VOLUNTEER" | "BEREAVEMENT"; -} diff --git a/src/serialization/resources/hris/types/ResponseTypeEnum.ts b/src/serialization/resources/hris/types/ResponseTypeEnum.ts deleted file mode 100644 index 169571df5..000000000 --- a/src/serialization/resources/hris/types/ResponseTypeEnum.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 ResponseTypeEnum: core.serialization.Schema< - serializers.hris.ResponseTypeEnum.Raw, - Merge.hris.ResponseTypeEnum -> = core.serialization.enum_(["JSON", "BASE64_GZIP"]); - -export declare namespace ResponseTypeEnum { - export type Raw = "JSON" | "BASE64_GZIP"; -} diff --git a/src/serialization/resources/hris/types/RoleEnum.ts b/src/serialization/resources/hris/types/RoleEnum.ts deleted file mode 100644 index cdbdc9e78..000000000 --- a/src/serialization/resources/hris/types/RoleEnum.ts +++ /dev/null @@ -1,12 +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 RoleEnum: core.serialization.Schema = - core.serialization.enum_(["ADMIN", "DEVELOPER", "MEMBER", "API", "SYSTEM", "MERGE_TEAM"]); - -export declare namespace RoleEnum { - export type Raw = "ADMIN" | "DEVELOPER" | "MEMBER" | "API" | "SYSTEM" | "MERGE_TEAM"; -} diff --git a/src/serialization/resources/hris/types/RunStateEnum.ts b/src/serialization/resources/hris/types/RunStateEnum.ts deleted file mode 100644 index fe4590c05..000000000 --- a/src/serialization/resources/hris/types/RunStateEnum.ts +++ /dev/null @@ -1,12 +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 RunStateEnum: core.serialization.Schema = - core.serialization.enum_(["PAID", "DRAFT", "APPROVED", "FAILED", "CLOSED"]); - -export declare namespace RunStateEnum { - export type Raw = "PAID" | "DRAFT" | "APPROVED" | "FAILED" | "CLOSED"; -} diff --git a/src/serialization/resources/hris/types/RunTypeEnum.ts b/src/serialization/resources/hris/types/RunTypeEnum.ts deleted file mode 100644 index 2792a935f..000000000 --- a/src/serialization/resources/hris/types/RunTypeEnum.ts +++ /dev/null @@ -1,12 +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 RunTypeEnum: core.serialization.Schema = - core.serialization.enum_(["REGULAR", "OFF_CYCLE", "CORRECTION", "TERMINATION", "SIGN_ON_BONUS"]); - -export declare namespace RunTypeEnum { - export type Raw = "REGULAR" | "OFF_CYCLE" | "CORRECTION" | "TERMINATION" | "SIGN_ON_BONUS"; -} diff --git a/src/serialization/resources/hris/types/SelectiveSyncConfigurationsUsageEnum.ts b/src/serialization/resources/hris/types/SelectiveSyncConfigurationsUsageEnum.ts deleted file mode 100644 index 5dfe163bf..000000000 --- a/src/serialization/resources/hris/types/SelectiveSyncConfigurationsUsageEnum.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 SelectiveSyncConfigurationsUsageEnum: core.serialization.Schema< - serializers.hris.SelectiveSyncConfigurationsUsageEnum.Raw, - Merge.hris.SelectiveSyncConfigurationsUsageEnum -> = core.serialization.enum_(["IN_NEXT_SYNC", "IN_LAST_SYNC"]); - -export declare namespace SelectiveSyncConfigurationsUsageEnum { - export type Raw = "IN_NEXT_SYNC" | "IN_LAST_SYNC"; -} diff --git a/src/serialization/resources/hris/types/StatusFd5Enum.ts b/src/serialization/resources/hris/types/StatusFd5Enum.ts deleted file mode 100644 index 40aa58790..000000000 --- a/src/serialization/resources/hris/types/StatusFd5Enum.ts +++ /dev/null @@ -1,12 +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 StatusFd5Enum: core.serialization.Schema = - core.serialization.enum_(["SYNCING", "DONE", "FAILED", "DISABLED", "PAUSED", "PARTIALLY_SYNCED"]); - -export declare namespace StatusFd5Enum { - export type Raw = "SYNCING" | "DONE" | "FAILED" | "DISABLED" | "PAUSED" | "PARTIALLY_SYNCED"; -} diff --git a/src/serialization/resources/hris/types/SyncStatus.ts b/src/serialization/resources/hris/types/SyncStatus.ts deleted file mode 100644 index 51e52036d..000000000 --- a/src/serialization/resources/hris/types/SyncStatus.ts +++ /dev/null @@ -1,38 +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 { SelectiveSyncConfigurationsUsageEnum } from "./SelectiveSyncConfigurationsUsageEnum"; -import { StatusFd5Enum } from "./StatusFd5Enum"; -import { SyncStatusLastSyncResult } from "./SyncStatusLastSyncResult"; - -export const SyncStatus: core.serialization.ObjectSchema = - core.serialization.object({ - modelName: core.serialization.property("model_name", core.serialization.string()), - 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", SyncStatusLastSyncResult.optional()), - lastSyncFinished: core.serialization.property("last_sync_finished", core.serialization.date().optional()), - status: StatusFd5Enum, - isInitialSync: core.serialization.property("is_initial_sync", core.serialization.boolean()), - selectiveSyncConfigurationsUsage: core.serialization.property( - "selective_sync_configurations_usage", - SelectiveSyncConfigurationsUsageEnum.optional(), - ), - }); - -export declare namespace SyncStatus { - export interface Raw { - model_name: string; - model_id: string; - last_sync_start?: string | null; - next_sync_start?: string | null; - last_sync_result?: SyncStatusLastSyncResult.Raw | null; - last_sync_finished?: string | null; - status: StatusFd5Enum.Raw; - is_initial_sync: boolean; - selective_sync_configurations_usage?: SelectiveSyncConfigurationsUsageEnum.Raw | null; - } -} diff --git a/src/serialization/resources/hris/types/SyncStatusLastSyncResult.ts b/src/serialization/resources/hris/types/SyncStatusLastSyncResult.ts deleted file mode 100644 index af6772d2c..000000000 --- a/src/serialization/resources/hris/types/SyncStatusLastSyncResult.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 { LastSyncResultEnum } from "./LastSyncResultEnum"; - -export const SyncStatusLastSyncResult: core.serialization.Schema< - serializers.hris.SyncStatusLastSyncResult.Raw, - Merge.hris.SyncStatusLastSyncResult -> = core.serialization.undiscriminatedUnion([LastSyncResultEnum, core.serialization.string()]); - -export declare namespace SyncStatusLastSyncResult { - export type Raw = LastSyncResultEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/Tax.ts b/src/serialization/resources/hris/types/Tax.ts deleted file mode 100644 index bdbc84c4d..000000000 --- a/src/serialization/resources/hris/types/Tax.ts +++ /dev/null @@ -1,41 +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 { RemoteData } from "./RemoteData"; - -export const Tax: core.serialization.ObjectSchema = 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()), - employeePayrollRun: core.serialization.property("employee_payroll_run", core.serialization.string().optional()), - name: core.serialization.string().optional(), - amount: core.serialization.number().optional(), - employerTax: core.serialization.property("employer_tax", core.serialization.boolean().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()), - }, -); - -export declare namespace Tax { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - employee_payroll_run?: string | null; - name?: string | null; - amount?: number | null; - employer_tax?: boolean | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/Team.ts b/src/serialization/resources/hris/types/Team.ts deleted file mode 100644 index 727d2bb38..000000000 --- a/src/serialization/resources/hris/types/Team.ts +++ /dev/null @@ -1,39 +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 * as serializers from "../../../index"; -import { RemoteData } from "./RemoteData"; - -export const Team: core.serialization.ObjectSchema = - 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()), - name: core.serialization.string().optional(), - parentTeam: core.serialization.property( - "parent_team", - core.serialization.lazy(() => serializers.hris.TeamParentTeam).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()), - }); - -export declare namespace Team { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - parent_team?: serializers.hris.TeamParentTeam.Raw | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/TeamParentTeam.ts b/src/serialization/resources/hris/types/TeamParentTeam.ts deleted file mode 100644 index 4f6f2fd6b..000000000 --- a/src/serialization/resources/hris/types/TeamParentTeam.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 * as serializers from "../../../index"; - -export const TeamParentTeam: core.serialization.Schema = - core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.hris.Team), - ]); - -export declare namespace TeamParentTeam { - export type Raw = string | serializers.hris.Team.Raw; -} diff --git a/src/serialization/resources/hris/types/TimeOff.ts b/src/serialization/resources/hris/types/TimeOff.ts deleted file mode 100644 index bc2cc78e7..000000000 --- a/src/serialization/resources/hris/types/TimeOff.ts +++ /dev/null @@ -1,55 +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 { RemoteData } from "./RemoteData"; -import { TimeOffApprover } from "./TimeOffApprover"; -import { TimeOffEmployee } from "./TimeOffEmployee"; -import { TimeOffRequestType } from "./TimeOffRequestType"; -import { TimeOffStatus } from "./TimeOffStatus"; -import { TimeOffUnits } from "./TimeOffUnits"; - -export const TimeOff: core.serialization.ObjectSchema = - 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()), - employee: TimeOffEmployee.optional(), - approver: TimeOffApprover.optional(), - status: TimeOffStatus.optional(), - employeeNote: core.serialization.property("employee_note", core.serialization.string().optional()), - units: TimeOffUnits.optional(), - amount: core.serialization.number().optional(), - requestType: core.serialization.property("request_type", TimeOffRequestType.optional()), - startTime: core.serialization.property("start_time", core.serialization.date().optional()), - endTime: core.serialization.property("end_time", 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()), - }); - -export declare namespace TimeOff { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - employee?: TimeOffEmployee.Raw | null; - approver?: TimeOffApprover.Raw | null; - status?: TimeOffStatus.Raw | null; - employee_note?: string | null; - units?: TimeOffUnits.Raw | null; - amount?: number | null; - request_type?: TimeOffRequestType.Raw | null; - start_time?: string | null; - end_time?: string | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/TimeOffApprover.ts b/src/serialization/resources/hris/types/TimeOffApprover.ts deleted file mode 100644 index cac7e46f5..000000000 --- a/src/serialization/resources/hris/types/TimeOffApprover.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const TimeOffApprover: core.serialization.Schema< - serializers.hris.TimeOffApprover.Raw, - Merge.hris.TimeOffApprover -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.hris.Employee), -]); - -export declare namespace TimeOffApprover { - export type Raw = string | serializers.hris.Employee.Raw; -} diff --git a/src/serialization/resources/hris/types/TimeOffBalance.ts b/src/serialization/resources/hris/types/TimeOffBalance.ts deleted file mode 100644 index f2efda0c8..000000000 --- a/src/serialization/resources/hris/types/TimeOffBalance.ts +++ /dev/null @@ -1,44 +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 { RemoteData } from "./RemoteData"; -import { TimeOffBalanceEmployee } from "./TimeOffBalanceEmployee"; -import { TimeOffBalancePolicyType } from "./TimeOffBalancePolicyType"; - -export const TimeOffBalance: core.serialization.ObjectSchema< - serializers.hris.TimeOffBalance.Raw, - Merge.hris.TimeOffBalance -> = 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()), - employee: TimeOffBalanceEmployee.optional(), - balance: core.serialization.number().optional(), - used: core.serialization.number().optional(), - policyType: core.serialization.property("policy_type", TimeOffBalancePolicyType.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()), -}); - -export declare namespace TimeOffBalance { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - employee?: TimeOffBalanceEmployee.Raw | null; - balance?: number | null; - used?: number | null; - policy_type?: TimeOffBalancePolicyType.Raw | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/TimeOffBalanceEmployee.ts b/src/serialization/resources/hris/types/TimeOffBalanceEmployee.ts deleted file mode 100644 index 1f5e04162..000000000 --- a/src/serialization/resources/hris/types/TimeOffBalanceEmployee.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const TimeOffBalanceEmployee: core.serialization.Schema< - serializers.hris.TimeOffBalanceEmployee.Raw, - Merge.hris.TimeOffBalanceEmployee -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.hris.Employee), -]); - -export declare namespace TimeOffBalanceEmployee { - export type Raw = string | serializers.hris.Employee.Raw; -} diff --git a/src/serialization/resources/hris/types/TimeOffBalancePolicyType.ts b/src/serialization/resources/hris/types/TimeOffBalancePolicyType.ts deleted file mode 100644 index 61119c73d..000000000 --- a/src/serialization/resources/hris/types/TimeOffBalancePolicyType.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 { PolicyTypeEnum } from "./PolicyTypeEnum"; - -export const TimeOffBalancePolicyType: core.serialization.Schema< - serializers.hris.TimeOffBalancePolicyType.Raw, - Merge.hris.TimeOffBalancePolicyType -> = core.serialization.undiscriminatedUnion([PolicyTypeEnum, core.serialization.string()]); - -export declare namespace TimeOffBalancePolicyType { - export type Raw = PolicyTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/TimeOffEmployee.ts b/src/serialization/resources/hris/types/TimeOffEmployee.ts deleted file mode 100644 index 3438521e6..000000000 --- a/src/serialization/resources/hris/types/TimeOffEmployee.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const TimeOffEmployee: core.serialization.Schema< - serializers.hris.TimeOffEmployee.Raw, - Merge.hris.TimeOffEmployee -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.hris.Employee), -]); - -export declare namespace TimeOffEmployee { - export type Raw = string | serializers.hris.Employee.Raw; -} diff --git a/src/serialization/resources/hris/types/TimeOffRequest.ts b/src/serialization/resources/hris/types/TimeOffRequest.ts deleted file mode 100644 index 2a41528fb..000000000 --- a/src/serialization/resources/hris/types/TimeOffRequest.ts +++ /dev/null @@ -1,49 +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 { TimeOffRequestApprover } from "./TimeOffRequestApprover"; -import { TimeOffRequestEmployee } from "./TimeOffRequestEmployee"; -import { TimeOffRequestRequestType } from "./TimeOffRequestRequestType"; -import { TimeOffRequestStatus } from "./TimeOffRequestStatus"; -import { TimeOffRequestUnits } from "./TimeOffRequestUnits"; - -export const TimeOffRequest: core.serialization.ObjectSchema< - serializers.hris.TimeOffRequest.Raw, - Merge.hris.TimeOffRequest -> = core.serialization.object({ - employee: TimeOffRequestEmployee.optional(), - approver: TimeOffRequestApprover.optional(), - status: TimeOffRequestStatus.optional(), - employeeNote: core.serialization.property("employee_note", core.serialization.string().optional()), - units: TimeOffRequestUnits.optional(), - amount: core.serialization.number().optional(), - requestType: core.serialization.property("request_type", TimeOffRequestRequestType.optional()), - startTime: core.serialization.property("start_time", core.serialization.date().optional()), - endTime: core.serialization.property("end_time", 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(), - ), -}); - -export declare namespace TimeOffRequest { - export interface Raw { - employee?: TimeOffRequestEmployee.Raw | null; - approver?: TimeOffRequestApprover.Raw | null; - status?: TimeOffRequestStatus.Raw | null; - employee_note?: string | null; - units?: TimeOffRequestUnits.Raw | null; - amount?: number | null; - request_type?: TimeOffRequestRequestType.Raw | null; - start_time?: string | null; - end_time?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/hris/types/TimeOffRequestApprover.ts b/src/serialization/resources/hris/types/TimeOffRequestApprover.ts deleted file mode 100644 index 2dd085539..000000000 --- a/src/serialization/resources/hris/types/TimeOffRequestApprover.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const TimeOffRequestApprover: core.serialization.Schema< - serializers.hris.TimeOffRequestApprover.Raw, - Merge.hris.TimeOffRequestApprover -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.hris.Employee), -]); - -export declare namespace TimeOffRequestApprover { - export type Raw = string | serializers.hris.Employee.Raw; -} diff --git a/src/serialization/resources/hris/types/TimeOffRequestEmployee.ts b/src/serialization/resources/hris/types/TimeOffRequestEmployee.ts deleted file mode 100644 index 91665fc57..000000000 --- a/src/serialization/resources/hris/types/TimeOffRequestEmployee.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const TimeOffRequestEmployee: core.serialization.Schema< - serializers.hris.TimeOffRequestEmployee.Raw, - Merge.hris.TimeOffRequestEmployee -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.hris.Employee), -]); - -export declare namespace TimeOffRequestEmployee { - export type Raw = string | serializers.hris.Employee.Raw; -} diff --git a/src/serialization/resources/hris/types/TimeOffRequestRequestType.ts b/src/serialization/resources/hris/types/TimeOffRequestRequestType.ts deleted file mode 100644 index e33c992b5..000000000 --- a/src/serialization/resources/hris/types/TimeOffRequestRequestType.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 { RequestTypeEnum } from "./RequestTypeEnum"; - -export const TimeOffRequestRequestType: core.serialization.Schema< - serializers.hris.TimeOffRequestRequestType.Raw, - Merge.hris.TimeOffRequestRequestType -> = core.serialization.undiscriminatedUnion([RequestTypeEnum, core.serialization.string()]); - -export declare namespace TimeOffRequestRequestType { - export type Raw = RequestTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/TimeOffRequestStatus.ts b/src/serialization/resources/hris/types/TimeOffRequestStatus.ts deleted file mode 100644 index 5c3b097da..000000000 --- a/src/serialization/resources/hris/types/TimeOffRequestStatus.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 { TimeOffStatusEnum } from "./TimeOffStatusEnum"; - -export const TimeOffRequestStatus: core.serialization.Schema< - serializers.hris.TimeOffRequestStatus.Raw, - Merge.hris.TimeOffRequestStatus -> = core.serialization.undiscriminatedUnion([TimeOffStatusEnum, core.serialization.string()]); - -export declare namespace TimeOffRequestStatus { - export type Raw = TimeOffStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/TimeOffRequestType.ts b/src/serialization/resources/hris/types/TimeOffRequestType.ts deleted file mode 100644 index d2204378d..000000000 --- a/src/serialization/resources/hris/types/TimeOffRequestType.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 { RequestTypeEnum } from "./RequestTypeEnum"; - -export const TimeOffRequestType: core.serialization.Schema< - serializers.hris.TimeOffRequestType.Raw, - Merge.hris.TimeOffRequestType -> = core.serialization.undiscriminatedUnion([RequestTypeEnum, core.serialization.string()]); - -export declare namespace TimeOffRequestType { - export type Raw = RequestTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/TimeOffRequestUnits.ts b/src/serialization/resources/hris/types/TimeOffRequestUnits.ts deleted file mode 100644 index e0c180077..000000000 --- a/src/serialization/resources/hris/types/TimeOffRequestUnits.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 { UnitsEnum } from "./UnitsEnum"; - -export const TimeOffRequestUnits: core.serialization.Schema< - serializers.hris.TimeOffRequestUnits.Raw, - Merge.hris.TimeOffRequestUnits -> = core.serialization.undiscriminatedUnion([UnitsEnum, core.serialization.string()]); - -export declare namespace TimeOffRequestUnits { - export type Raw = UnitsEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/TimeOffResponse.ts b/src/serialization/resources/hris/types/TimeOffResponse.ts deleted file mode 100644 index 5db443d33..000000000 --- a/src/serialization/resources/hris/types/TimeOffResponse.ts +++ /dev/null @@ -1,28 +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 { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { TimeOff } from "./TimeOff"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const TimeOffResponse: core.serialization.ObjectSchema< - serializers.hris.TimeOffResponse.Raw, - Merge.hris.TimeOffResponse -> = core.serialization.object({ - model: TimeOff, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace TimeOffResponse { - export interface Raw { - model: TimeOff.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/TimeOffStatus.ts b/src/serialization/resources/hris/types/TimeOffStatus.ts deleted file mode 100644 index fa1a4efc0..000000000 --- a/src/serialization/resources/hris/types/TimeOffStatus.ts +++ /dev/null @@ -1,13 +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 { TimeOffStatusEnum } from "./TimeOffStatusEnum"; - -export const TimeOffStatus: core.serialization.Schema = - core.serialization.undiscriminatedUnion([TimeOffStatusEnum, core.serialization.string()]); - -export declare namespace TimeOffStatus { - export type Raw = TimeOffStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/TimeOffStatusEnum.ts b/src/serialization/resources/hris/types/TimeOffStatusEnum.ts deleted file mode 100644 index da5cfeb7c..000000000 --- a/src/serialization/resources/hris/types/TimeOffStatusEnum.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 TimeOffStatusEnum: core.serialization.Schema< - serializers.hris.TimeOffStatusEnum.Raw, - Merge.hris.TimeOffStatusEnum -> = core.serialization.enum_(["REQUESTED", "APPROVED", "DECLINED", "CANCELLED", "DELETED"]); - -export declare namespace TimeOffStatusEnum { - export type Raw = "REQUESTED" | "APPROVED" | "DECLINED" | "CANCELLED" | "DELETED"; -} diff --git a/src/serialization/resources/hris/types/TimeOffUnits.ts b/src/serialization/resources/hris/types/TimeOffUnits.ts deleted file mode 100644 index 5fbdd5a60..000000000 --- a/src/serialization/resources/hris/types/TimeOffUnits.ts +++ /dev/null @@ -1,13 +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 { UnitsEnum } from "./UnitsEnum"; - -export const TimeOffUnits: core.serialization.Schema = - core.serialization.undiscriminatedUnion([UnitsEnum, core.serialization.string()]); - -export declare namespace TimeOffUnits { - export type Raw = UnitsEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/TimesheetEntry.ts b/src/serialization/resources/hris/types/TimesheetEntry.ts deleted file mode 100644 index 1d920d9f2..000000000 --- a/src/serialization/resources/hris/types/TimesheetEntry.ts +++ /dev/null @@ -1,43 +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 { RemoteData } from "./RemoteData"; -import { TimesheetEntryEmployee } from "./TimesheetEntryEmployee"; - -export const TimesheetEntry: core.serialization.ObjectSchema< - serializers.hris.TimesheetEntry.Raw, - Merge.hris.TimesheetEntry -> = 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()), - employee: TimesheetEntryEmployee.optional(), - hoursWorked: core.serialization.property("hours_worked", core.serialization.number().optional()), - startTime: core.serialization.property("start_time", core.serialization.date().optional()), - endTime: core.serialization.property("end_time", 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()), -}); - -export declare namespace TimesheetEntry { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - employee?: TimesheetEntryEmployee.Raw | null; - hours_worked?: number | null; - start_time?: string | null; - end_time?: string | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/TimesheetEntryEmployee.ts b/src/serialization/resources/hris/types/TimesheetEntryEmployee.ts deleted file mode 100644 index 8e16f5272..000000000 --- a/src/serialization/resources/hris/types/TimesheetEntryEmployee.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const TimesheetEntryEmployee: core.serialization.Schema< - serializers.hris.TimesheetEntryEmployee.Raw, - Merge.hris.TimesheetEntryEmployee -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.hris.Employee), -]); - -export declare namespace TimesheetEntryEmployee { - export type Raw = string | serializers.hris.Employee.Raw; -} diff --git a/src/serialization/resources/hris/types/TimesheetEntryRequest.ts b/src/serialization/resources/hris/types/TimesheetEntryRequest.ts deleted file mode 100644 index 1084b82dc..000000000 --- a/src/serialization/resources/hris/types/TimesheetEntryRequest.ts +++ /dev/null @@ -1,35 +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 { TimesheetEntryRequestEmployee } from "./TimesheetEntryRequestEmployee"; - -export const TimesheetEntryRequest: core.serialization.ObjectSchema< - serializers.hris.TimesheetEntryRequest.Raw, - Merge.hris.TimesheetEntryRequest -> = core.serialization.object({ - employee: TimesheetEntryRequestEmployee.optional(), - hoursWorked: core.serialization.property("hours_worked", core.serialization.number().optional()), - startTime: core.serialization.property("start_time", core.serialization.date().optional()), - endTime: core.serialization.property("end_time", 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(), - ), -}); - -export declare namespace TimesheetEntryRequest { - export interface Raw { - employee?: TimesheetEntryRequestEmployee.Raw | null; - hours_worked?: number | null; - start_time?: string | null; - end_time?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/hris/types/TimesheetEntryRequestEmployee.ts b/src/serialization/resources/hris/types/TimesheetEntryRequestEmployee.ts deleted file mode 100644 index d91fe52f7..000000000 --- a/src/serialization/resources/hris/types/TimesheetEntryRequestEmployee.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const TimesheetEntryRequestEmployee: core.serialization.Schema< - serializers.hris.TimesheetEntryRequestEmployee.Raw, - Merge.hris.TimesheetEntryRequestEmployee -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.hris.Employee), -]); - -export declare namespace TimesheetEntryRequestEmployee { - export type Raw = string | serializers.hris.Employee.Raw; -} diff --git a/src/serialization/resources/hris/types/TimesheetEntryResponse.ts b/src/serialization/resources/hris/types/TimesheetEntryResponse.ts deleted file mode 100644 index 42d93f4d0..000000000 --- a/src/serialization/resources/hris/types/TimesheetEntryResponse.ts +++ /dev/null @@ -1,28 +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 { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { TimesheetEntry } from "./TimesheetEntry"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const TimesheetEntryResponse: core.serialization.ObjectSchema< - serializers.hris.TimesheetEntryResponse.Raw, - Merge.hris.TimesheetEntryResponse -> = core.serialization.object({ - model: TimesheetEntry, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace TimesheetEntryResponse { - export interface Raw { - model: TimesheetEntry.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/UnitsEnum.ts b/src/serialization/resources/hris/types/UnitsEnum.ts deleted file mode 100644 index 826924b0a..000000000 --- a/src/serialization/resources/hris/types/UnitsEnum.ts +++ /dev/null @@ -1,12 +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 UnitsEnum: core.serialization.Schema = - core.serialization.enum_(["HOURS", "DAYS"]); - -export declare namespace UnitsEnum { - export type Raw = "HOURS" | "DAYS"; -} diff --git a/src/serialization/resources/hris/types/ValidationProblemSource.ts b/src/serialization/resources/hris/types/ValidationProblemSource.ts deleted file mode 100644 index 95aba3082..000000000 --- a/src/serialization/resources/hris/types/ValidationProblemSource.ts +++ /dev/null @@ -1,18 +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 ValidationProblemSource: core.serialization.ObjectSchema< - serializers.hris.ValidationProblemSource.Raw, - Merge.hris.ValidationProblemSource -> = core.serialization.object({ - pointer: core.serialization.string(), -}); - -export declare namespace ValidationProblemSource { - export interface Raw { - pointer: string; - } -} diff --git a/src/serialization/resources/hris/types/WarningValidationProblem.ts b/src/serialization/resources/hris/types/WarningValidationProblem.ts deleted file mode 100644 index 895618488..000000000 --- a/src/serialization/resources/hris/types/WarningValidationProblem.ts +++ /dev/null @@ -1,25 +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 { ValidationProblemSource } from "./ValidationProblemSource"; - -export const WarningValidationProblem: core.serialization.ObjectSchema< - serializers.hris.WarningValidationProblem.Raw, - Merge.hris.WarningValidationProblem -> = core.serialization.object({ - source: ValidationProblemSource.optional(), - title: core.serialization.string(), - detail: core.serialization.string(), - problemType: core.serialization.property("problem_type", core.serialization.string()), -}); - -export declare namespace WarningValidationProblem { - export interface Raw { - source?: ValidationProblemSource.Raw | null; - title: string; - detail: string; - problem_type: string; - } -} diff --git a/src/serialization/resources/hris/types/WebhookReceiver.ts b/src/serialization/resources/hris/types/WebhookReceiver.ts deleted file mode 100644 index aedf53631..000000000 --- a/src/serialization/resources/hris/types/WebhookReceiver.ts +++ /dev/null @@ -1,22 +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 WebhookReceiver: core.serialization.ObjectSchema< - serializers.hris.WebhookReceiver.Raw, - Merge.hris.WebhookReceiver -> = core.serialization.object({ - event: core.serialization.string(), - isActive: core.serialization.property("is_active", core.serialization.boolean()), - key: core.serialization.string().optional(), -}); - -export declare namespace WebhookReceiver { - export interface Raw { - event: string; - is_active: boolean; - key?: string | null; - } -} diff --git a/src/serialization/resources/hris/types/index.ts b/src/serialization/resources/hris/types/index.ts deleted file mode 100644 index 92f0860a7..000000000 --- a/src/serialization/resources/hris/types/index.ts +++ /dev/null @@ -1,199 +0,0 @@ -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 "./AccountTypeEnum"; -export * from "./AdvancedMetadata"; -export * from "./AsyncPassthroughReciept"; -export * from "./AuditLogEvent"; -export * from "./AuditLogEventEventType"; -export * from "./AuditLogEventRole"; -export * from "./AvailableActions"; -export * from "./BankInfo"; -export * from "./BankInfoAccountType"; -export * from "./BankInfoEmployee"; -export * from "./Benefit"; -export * from "./BenefitEmployee"; -export * from "./BenefitPlanTypeEnum"; -export * from "./CategoriesEnum"; -export * from "./CategoryEnum"; -export * from "./CommonModelScopeApi"; -export * from "./CommonModelScopesBodyRequest"; -export * from "./Company"; -export * from "./CompletedAccountInitialScreenEnum"; -export * from "./CountryEnum"; -export * from "./DataPassthroughRequest"; -export * from "./DebugModeLog"; -export * from "./DebugModelLogSummary"; -export * from "./Deduction"; -export * from "./Dependent"; -export * from "./DependentGender"; -export * from "./DependentRelationship"; -export * from "./Earning"; -export * from "./EarningType"; -export * from "./EarningTypeEnum"; -export * from "./Employee"; -export * from "./EmployeeCompany"; -export * from "./EmployeeEmploymentStatus"; -export * from "./EmployeeEmploymentsItem"; -export * from "./EmployeeEthnicity"; -export * from "./EmployeeGender"; -export * from "./EmployeeGroupsItem"; -export * from "./EmployeeHomeLocation"; -export * from "./EmployeeManager"; -export * from "./EmployeeMaritalStatus"; -export * from "./EmployeePayGroup"; -export * from "./EmployeePayrollRun"; -export * from "./EmployeePayrollRunEmployee"; -export * from "./EmployeePayrollRunPayrollRun"; -export * from "./EmployeeRequest"; -export * from "./EmployeeRequestCompany"; -export * from "./EmployeeRequestEmploymentStatus"; -export * from "./EmployeeRequestEmploymentsItem"; -export * from "./EmployeeRequestEthnicity"; -export * from "./EmployeeRequestGender"; -export * from "./EmployeeRequestGroupsItem"; -export * from "./EmployeeRequestHomeLocation"; -export * from "./EmployeeRequestManager"; -export * from "./EmployeeRequestMaritalStatus"; -export * from "./EmployeeRequestPayGroup"; -export * from "./EmployeeRequestTeam"; -export * from "./EmployeeRequestWorkLocation"; -export * from "./EmployeeResponse"; -export * from "./EmployeeTeam"; -export * from "./EmployeeWorkLocation"; -export * from "./EmployerBenefit"; -export * from "./EmployerBenefitBenefitPlanType"; -export * from "./Employment"; -export * from "./EmploymentEmployee"; -export * from "./EmploymentEmploymentType"; -export * from "./EmploymentFlsaStatus"; -export * from "./EmploymentPayCurrency"; -export * from "./EmploymentPayFrequency"; -export * from "./EmploymentPayGroup"; -export * from "./EmploymentPayPeriod"; -export * from "./EmploymentStatusEnum"; -export * from "./EmploymentTypeEnum"; -export * from "./EnabledActionsEnum"; -export * from "./EncodingEnum"; -export * from "./ErrorValidationProblem"; -export * from "./EthnicityEnum"; -export * from "./EventTypeEnum"; -export * from "./ExternalTargetFieldApi"; -export * from "./ExternalTargetFieldApiResponse"; -export * from "./FieldMappingApiInstance"; -export * from "./FieldMappingApiInstanceRemoteField"; -export * from "./FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo"; -export * from "./FieldMappingApiInstanceResponse"; -export * from "./FieldMappingApiInstanceTargetField"; -export * from "./FieldMappingInstanceResponse"; -export * from "./FieldPermissionDeserializer"; -export * from "./FieldPermissionDeserializerRequest"; -export * from "./FlsaStatusEnum"; -export * from "./GenderEnum"; -export * from "./Group"; -export * from "./GroupType"; -export * from "./GroupTypeEnum"; -export * from "./IndividualCommonModelScopeDeserializer"; -export * from "./IndividualCommonModelScopeDeserializerRequest"; -export * from "./Issue"; -export * from "./IssueStatus"; -export * from "./IssueStatusEnum"; -export * from "./LanguageEnum"; -export * from "./LastSyncResultEnum"; -export * from "./LinkedAccountStatus"; -export * from "./LinkToken"; -export * from "./Location"; -export * from "./LocationCountry"; -export * from "./LocationLocationType"; -export * from "./LocationTypeEnum"; -export * from "./MaritalStatusEnum"; -export * from "./MetaResponse"; -export * from "./MethodEnum"; -export * from "./ModelOperation"; -export * from "./ModelPermissionDeserializer"; -export * from "./ModelPermissionDeserializerRequest"; -export * from "./MultipartFormFieldRequest"; -export * from "./MultipartFormFieldRequestEncoding"; -export * from "./PaginatedAccountDetailsAndActionsList"; -export * from "./PaginatedAuditLogEventList"; -export * from "./PaginatedBankInfoList"; -export * from "./PaginatedBenefitList"; -export * from "./PaginatedCompanyList"; -export * from "./PaginatedDependentList"; -export * from "./PaginatedEmployeeList"; -export * from "./PaginatedEmployeePayrollRunList"; -export * from "./PaginatedEmployerBenefitList"; -export * from "./PaginatedEmploymentList"; -export * from "./PaginatedGroupList"; -export * from "./PaginatedIssueList"; -export * from "./PaginatedLocationList"; -export * from "./PaginatedPayGroupList"; -export * from "./PaginatedPayrollRunList"; -export * from "./PaginatedSyncStatusList"; -export * from "./PaginatedTeamList"; -export * from "./PaginatedTimeOffBalanceList"; -export * from "./PaginatedTimeOffList"; -export * from "./PaginatedTimesheetEntryList"; -export * from "./PayCurrencyEnum"; -export * from "./PayFrequencyEnum"; -export * from "./PayGroup"; -export * from "./PayPeriodEnum"; -export * from "./PayrollRun"; -export * from "./PayrollRunRunState"; -export * from "./PayrollRunRunType"; -export * from "./PolicyTypeEnum"; -export * from "./ReasonEnum"; -export * from "./RelationshipEnum"; -export * from "./RemoteData"; -export * from "./RemoteEndpointInfo"; -export * from "./RemoteFieldApi"; -export * from "./RemoteFieldApiCoverage"; -export * from "./RemoteFieldApiResponse"; -export * from "./RemoteKey"; -export * from "./RemoteResponse"; -export * from "./RemoteResponseResponseType"; -export * from "./RequestFormatEnum"; -export * from "./RequestTypeEnum"; -export * from "./ResponseTypeEnum"; -export * from "./RoleEnum"; -export * from "./RunStateEnum"; -export * from "./RunTypeEnum"; -export * from "./SelectiveSyncConfigurationsUsageEnum"; -export * from "./StatusFd5Enum"; -export * from "./SyncStatus"; -export * from "./SyncStatusLastSyncResult"; -export * from "./Tax"; -export * from "./Team"; -export * from "./TeamParentTeam"; -export * from "./TimeOff"; -export * from "./TimeOffApprover"; -export * from "./TimeOffBalance"; -export * from "./TimeOffBalanceEmployee"; -export * from "./TimeOffBalancePolicyType"; -export * from "./TimeOffEmployee"; -export * from "./TimeOffRequest"; -export * from "./TimeOffRequestApprover"; -export * from "./TimeOffRequestEmployee"; -export * from "./TimeOffRequestRequestType"; -export * from "./TimeOffRequestStatus"; -export * from "./TimeOffRequestType"; -export * from "./TimeOffRequestUnits"; -export * from "./TimeOffResponse"; -export * from "./TimeOffStatus"; -export * from "./TimeOffStatusEnum"; -export * from "./TimeOffUnits"; -export * from "./TimesheetEntry"; -export * from "./TimesheetEntryEmployee"; -export * from "./TimesheetEntryRequest"; -export * from "./TimesheetEntryRequestEmployee"; -export * from "./TimesheetEntryResponse"; -export * from "./UnitsEnum"; -export * from "./ValidationProblemSource"; -export * from "./WarningValidationProblem"; -export * from "./WebhookReceiver"; diff --git a/src/serialization/resources/index.ts b/src/serialization/resources/index.ts index 759acc241..58ab8f95f 100644 --- a/src/serialization/resources/index.ts +++ b/src/serialization/resources/index.ts @@ -1,6 +1 @@ -export * as accounting from "./accounting"; -export * as ats from "./ats"; -export * as crm from "./crm"; export * as filestorage from "./filestorage"; -export * as hris from "./hris"; -export * as ticketing from "./ticketing"; diff --git a/src/serialization/resources/ticketing/index.ts b/src/serialization/resources/ticketing/index.ts deleted file mode 100644 index 3e15e2907..000000000 --- a/src/serialization/resources/ticketing/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./resources"; -export * from "./types"; diff --git a/src/serialization/resources/ticketing/resources/asyncPassthrough/index.ts b/src/serialization/resources/ticketing/resources/asyncPassthrough/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/ticketing/resources/asyncPassthrough/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; diff --git a/src/serialization/resources/ticketing/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.ts b/src/serialization/resources/ticketing/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.ts deleted file mode 100644 index dc2fb1707..000000000 --- a/src/serialization/resources/ticketing/resources/asyncPassthrough/types/AsyncPassthroughRetrieveResponse.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 { RemoteResponse } from "../../../types/RemoteResponse"; - -export const AsyncPassthroughRetrieveResponse: core.serialization.Schema< - serializers.ticketing.AsyncPassthroughRetrieveResponse.Raw, - Merge.ticketing.AsyncPassthroughRetrieveResponse -> = core.serialization.undiscriminatedUnion([RemoteResponse, core.serialization.string()]); - -export declare namespace AsyncPassthroughRetrieveResponse { - export type Raw = RemoteResponse.Raw | string; -} diff --git a/src/serialization/resources/ticketing/resources/asyncPassthrough/types/index.ts b/src/serialization/resources/ticketing/resources/asyncPassthrough/types/index.ts deleted file mode 100644 index f2b2d0e21..000000000 --- a/src/serialization/resources/ticketing/resources/asyncPassthrough/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./AsyncPassthroughRetrieveResponse"; diff --git a/src/serialization/resources/ticketing/resources/attachments/client/index.ts b/src/serialization/resources/ticketing/resources/attachments/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/ticketing/resources/attachments/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/ticketing/resources/attachments/client/requests/TicketingAttachmentEndpointRequest.ts b/src/serialization/resources/ticketing/resources/attachments/client/requests/TicketingAttachmentEndpointRequest.ts deleted file mode 100644 index bd8e568e2..000000000 --- a/src/serialization/resources/ticketing/resources/attachments/client/requests/TicketingAttachmentEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { AttachmentRequest } from "../../../../types/AttachmentRequest"; - -export const TicketingAttachmentEndpointRequest: core.serialization.Schema< - serializers.ticketing.TicketingAttachmentEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: AttachmentRequest, -}); - -export declare namespace TicketingAttachmentEndpointRequest { - export interface Raw { - model: AttachmentRequest.Raw; - } -} diff --git a/src/serialization/resources/ticketing/resources/attachments/client/requests/index.ts b/src/serialization/resources/ticketing/resources/attachments/client/requests/index.ts deleted file mode 100644 index 068dfd4bd..000000000 --- a/src/serialization/resources/ticketing/resources/attachments/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { TicketingAttachmentEndpointRequest } from "./TicketingAttachmentEndpointRequest"; diff --git a/src/serialization/resources/ticketing/resources/attachments/index.ts b/src/serialization/resources/ticketing/resources/attachments/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/ticketing/resources/attachments/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/ticketing/resources/collections/index.ts b/src/serialization/resources/ticketing/resources/collections/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/ticketing/resources/collections/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; diff --git a/src/serialization/resources/ticketing/resources/collections/types/CollectionsListRequestCollectionType.ts b/src/serialization/resources/ticketing/resources/collections/types/CollectionsListRequestCollectionType.ts deleted file mode 100644 index 23066ade1..000000000 --- a/src/serialization/resources/ticketing/resources/collections/types/CollectionsListRequestCollectionType.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 CollectionsListRequestCollectionType: core.serialization.Schema< - serializers.ticketing.CollectionsListRequestCollectionType.Raw, - Merge.ticketing.CollectionsListRequestCollectionType -> = core.serialization.enum_(["", "LIST", "PROJECT"]); - -export declare namespace CollectionsListRequestCollectionType { - export type Raw = "" | "LIST" | "PROJECT"; -} 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/index.ts b/src/serialization/resources/ticketing/resources/collections/types/index.ts deleted file mode 100644 index fa9590b69..000000000 --- a/src/serialization/resources/ticketing/resources/collections/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./CollectionsListRequestCollectionType"; -export * from "./CollectionsViewersListRequestExpand"; diff --git a/src/serialization/resources/ticketing/resources/comments/client/index.ts b/src/serialization/resources/ticketing/resources/comments/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/ticketing/resources/comments/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/ticketing/resources/comments/client/requests/CommentEndpointRequest.ts b/src/serialization/resources/ticketing/resources/comments/client/requests/CommentEndpointRequest.ts deleted file mode 100644 index d97379c42..000000000 --- a/src/serialization/resources/ticketing/resources/comments/client/requests/CommentEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { CommentRequest } from "../../../../types/CommentRequest"; - -export const CommentEndpointRequest: core.serialization.Schema< - serializers.ticketing.CommentEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: CommentRequest, -}); - -export declare namespace CommentEndpointRequest { - export interface Raw { - model: CommentRequest.Raw; - } -} diff --git a/src/serialization/resources/ticketing/resources/comments/client/requests/index.ts b/src/serialization/resources/ticketing/resources/comments/client/requests/index.ts deleted file mode 100644 index 86b7615e5..000000000 --- a/src/serialization/resources/ticketing/resources/comments/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { CommentEndpointRequest } from "./CommentEndpointRequest"; diff --git a/src/serialization/resources/ticketing/resources/comments/index.ts b/src/serialization/resources/ticketing/resources/comments/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/ticketing/resources/comments/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/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/index.ts b/src/serialization/resources/ticketing/resources/comments/types/index.ts deleted file mode 100644 index cbff3a9fc..000000000 --- a/src/serialization/resources/ticketing/resources/comments/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./CommentsListRequestExpand"; -export * from "./CommentsRetrieveRequestExpand"; diff --git a/src/serialization/resources/ticketing/resources/contacts/client/index.ts b/src/serialization/resources/ticketing/resources/contacts/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/ticketing/resources/contacts/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/ticketing/resources/contacts/client/requests/TicketingContactEndpointRequest.ts b/src/serialization/resources/ticketing/resources/contacts/client/requests/TicketingContactEndpointRequest.ts deleted file mode 100644 index d55d26e97..000000000 --- a/src/serialization/resources/ticketing/resources/contacts/client/requests/TicketingContactEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { ContactRequest } from "../../../../types/ContactRequest"; - -export const TicketingContactEndpointRequest: core.serialization.Schema< - serializers.ticketing.TicketingContactEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: ContactRequest, -}); - -export declare namespace TicketingContactEndpointRequest { - export interface Raw { - model: ContactRequest.Raw; - } -} diff --git a/src/serialization/resources/ticketing/resources/contacts/client/requests/index.ts b/src/serialization/resources/ticketing/resources/contacts/client/requests/index.ts deleted file mode 100644 index 70a777804..000000000 --- a/src/serialization/resources/ticketing/resources/contacts/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { TicketingContactEndpointRequest } from "./TicketingContactEndpointRequest"; diff --git a/src/serialization/resources/ticketing/resources/contacts/index.ts b/src/serialization/resources/ticketing/resources/contacts/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/ticketing/resources/contacts/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/ticketing/resources/fieldMapping/client/index.ts b/src/serialization/resources/ticketing/resources/fieldMapping/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/ticketing/resources/fieldMapping/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/ticketing/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/serialization/resources/ticketing/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts deleted file mode 100644 index e22fe8c22..000000000 --- a/src/serialization/resources/ticketing/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ /dev/null @@ -1,33 +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 CreateFieldMappingRequest: core.serialization.Schema< - serializers.ticketing.CreateFieldMappingRequest.Raw, - Omit -> = core.serialization.object({ - targetFieldName: core.serialization.property("target_field_name", core.serialization.string()), - targetFieldDescription: core.serialization.property("target_field_description", core.serialization.string()), - remoteFieldTraversalPath: core.serialization.property( - "remote_field_traversal_path", - core.serialization.list(core.serialization.unknown()), - ), - 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 { - export interface Raw { - target_field_name: string; - target_field_description: string; - remote_field_traversal_path: unknown[]; - remote_method: string; - remote_url_path: string; - common_model_name: string; - jmes_path?: string | null; - } -} diff --git a/src/serialization/resources/ticketing/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts b/src/serialization/resources/ticketing/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts deleted file mode 100644 index c31353c22..000000000 --- a/src/serialization/resources/ticketing/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ /dev/null @@ -1,27 +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 PatchedEditFieldMappingRequest: core.serialization.Schema< - serializers.ticketing.PatchedEditFieldMappingRequest.Raw, - Merge.ticketing.PatchedEditFieldMappingRequest -> = core.serialization.object({ - remoteFieldTraversalPath: core.serialization.property( - "remote_field_traversal_path", - core.serialization.list(core.serialization.unknown()).optional(), - ), - 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 { - export interface Raw { - 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/ticketing/resources/fieldMapping/client/requests/index.ts b/src/serialization/resources/ticketing/resources/fieldMapping/client/requests/index.ts deleted file mode 100644 index 9bb691d70..000000000 --- a/src/serialization/resources/ticketing/resources/fieldMapping/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { CreateFieldMappingRequest } from "./CreateFieldMappingRequest"; -export { PatchedEditFieldMappingRequest } from "./PatchedEditFieldMappingRequest"; diff --git a/src/serialization/resources/ticketing/resources/fieldMapping/index.ts b/src/serialization/resources/ticketing/resources/fieldMapping/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/ticketing/resources/fieldMapping/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/ticketing/resources/forceResync/client/index.ts b/src/serialization/resources/ticketing/resources/forceResync/client/index.ts deleted file mode 100644 index d5680837c..000000000 --- a/src/serialization/resources/ticketing/resources/forceResync/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * as syncStatusResyncCreate from "./syncStatusResyncCreate"; diff --git a/src/serialization/resources/ticketing/resources/forceResync/client/syncStatusResyncCreate.ts b/src/serialization/resources/ticketing/resources/forceResync/client/syncStatusResyncCreate.ts deleted file mode 100644 index a9360c451..000000000 --- a/src/serialization/resources/ticketing/resources/forceResync/client/syncStatusResyncCreate.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 { SyncStatus } from "../../../types/SyncStatus"; - -export const Response: core.serialization.Schema< - serializers.ticketing.forceResync.syncStatusResyncCreate.Response.Raw, - Merge.ticketing.SyncStatus[] -> = core.serialization.list(SyncStatus); - -export declare namespace Response { - export type Raw = SyncStatus.Raw[]; -} diff --git a/src/serialization/resources/ticketing/resources/forceResync/index.ts b/src/serialization/resources/ticketing/resources/forceResync/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/ticketing/resources/forceResync/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/ticketing/resources/generateKey/client/index.ts b/src/serialization/resources/ticketing/resources/generateKey/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/ticketing/resources/generateKey/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/ticketing/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts b/src/serialization/resources/ticketing/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts deleted file mode 100644 index ae8199a00..000000000 --- a/src/serialization/resources/ticketing/resources/generateKey/client/requests/GenerateRemoteKeyRequest.ts +++ /dev/null @@ -1,18 +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 GenerateRemoteKeyRequest: core.serialization.Schema< - serializers.ticketing.GenerateRemoteKeyRequest.Raw, - Merge.ticketing.GenerateRemoteKeyRequest -> = core.serialization.object({ - name: core.serialization.string(), -}); - -export declare namespace GenerateRemoteKeyRequest { - export interface Raw { - name: string; - } -} diff --git a/src/serialization/resources/ticketing/resources/generateKey/client/requests/index.ts b/src/serialization/resources/ticketing/resources/generateKey/client/requests/index.ts deleted file mode 100644 index 0df6e7c8b..000000000 --- a/src/serialization/resources/ticketing/resources/generateKey/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { GenerateRemoteKeyRequest } from "./GenerateRemoteKeyRequest"; diff --git a/src/serialization/resources/ticketing/resources/generateKey/index.ts b/src/serialization/resources/ticketing/resources/generateKey/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/ticketing/resources/generateKey/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/ticketing/resources/index.ts b/src/serialization/resources/ticketing/resources/index.ts deleted file mode 100644 index 26173e38b..000000000 --- a/src/serialization/resources/ticketing/resources/index.ts +++ /dev/null @@ -1,36 +0,0 @@ -export * as asyncPassthrough from "./asyncPassthrough"; -export * from "./asyncPassthrough/types"; -export * as attachments from "./attachments"; -export * from "./attachments/client/requests"; -export * as collections from "./collections"; -export * from "./collections/types"; -export * as comments from "./comments"; -export * from "./comments/client/requests"; -export * from "./comments/types"; -export * as contacts from "./contacts"; -export * from "./contacts/client/requests"; -export * as fieldMapping from "./fieldMapping"; -export * from "./fieldMapping/client/requests"; -export * as forceResync from "./forceResync"; -export * as generateKey from "./generateKey"; -export * from "./generateKey/client/requests"; -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 projects from "./projects"; -export * from "./projects/types"; -export * as regenerateKey from "./regenerateKey"; -export * from "./regenerateKey/client/requests"; -export * as scopes from "./scopes"; -export * from "./scopes/client/requests"; -export * as tickets from "./tickets"; -export * from "./tickets/client/requests"; -export * from "./tickets/types"; -export * as users from "./users"; -export * from "./users/types"; -export * as webhookReceivers from "./webhookReceivers"; -export * from "./webhookReceivers/client/requests"; diff --git a/src/serialization/resources/ticketing/resources/issues/index.ts b/src/serialization/resources/ticketing/resources/issues/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/ticketing/resources/issues/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; diff --git a/src/serialization/resources/ticketing/resources/issues/types/IssuesListRequestStatus.ts b/src/serialization/resources/ticketing/resources/issues/types/IssuesListRequestStatus.ts deleted file mode 100644 index 600800788..000000000 --- a/src/serialization/resources/ticketing/resources/issues/types/IssuesListRequestStatus.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 IssuesListRequestStatus: core.serialization.Schema< - serializers.ticketing.IssuesListRequestStatus.Raw, - Merge.ticketing.IssuesListRequestStatus -> = core.serialization.enum_(["ONGOING", "RESOLVED"]); - -export declare namespace IssuesListRequestStatus { - export type Raw = "ONGOING" | "RESOLVED"; -} diff --git a/src/serialization/resources/ticketing/resources/issues/types/index.ts b/src/serialization/resources/ticketing/resources/issues/types/index.ts deleted file mode 100644 index 554cdf48c..000000000 --- a/src/serialization/resources/ticketing/resources/issues/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./IssuesListRequestStatus"; diff --git a/src/serialization/resources/ticketing/resources/linkToken/client/index.ts b/src/serialization/resources/ticketing/resources/linkToken/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/ticketing/resources/linkToken/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/ticketing/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/serialization/resources/ticketing/resources/linkToken/client/requests/EndUserDetailsRequest.ts deleted file mode 100644 index e9926e29f..000000000 --- a/src/serialization/resources/ticketing/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ /dev/null @@ -1,72 +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 { 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< - serializers.ticketing.EndUserDetailsRequest.Raw, - Merge.ticketing.EndUserDetailsRequest -> = core.serialization.object({ - endUserEmailAddress: core.serialization.property("end_user_email_address", core.serialization.string()), - endUserOrganizationName: core.serialization.property("end_user_organization_name", core.serialization.string()), - endUserOriginId: core.serialization.property("end_user_origin_id", core.serialization.string()), - categories: core.serialization.list(CategoriesEnum), - integration: core.serialization.string().optional(), - linkExpiryMins: core.serialization.property("link_expiry_mins", core.serialization.number().optional()), - shouldCreateMagicLinkUrl: core.serialization.property( - "should_create_magic_link_url", - core.serialization.boolean().optional(), - ), - hideAdminMagicLink: core.serialization.property("hide_admin_magic_link", core.serialization.boolean().optional()), - commonModels: core.serialization.property( - "common_models", - core.serialization.list(CommonModelScopesBodyRequest).optional(), - ), - categoryCommonModelScopes: core.serialization.property( - "category_common_model_scopes", - core.serialization - .record( - core.serialization.string(), - core.serialization.list(IndividualCommonModelScopeDeserializerRequest).optional(), - ) - .optional(), - ), - language: EndUserDetailsRequestLanguage.optional(), - areSyncsDisabled: core.serialization.property("are_syncs_disabled", core.serialization.boolean().optional()), - integrationSpecificConfig: core.serialization.property( - "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 { - export interface Raw { - end_user_email_address: string; - end_user_organization_name: string; - end_user_origin_id: string; - categories: CategoriesEnum.Raw[]; - integration?: string | null; - link_expiry_mins?: number | null; - should_create_magic_link_url?: boolean | null; - hide_admin_magic_link?: boolean | null; - common_models?: CommonModelScopesBodyRequest.Raw[] | null; - category_common_model_scopes?: Record< - string, - IndividualCommonModelScopeDeserializerRequest.Raw[] | null | undefined - > | null; - 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/client/requests/index.ts b/src/serialization/resources/ticketing/resources/linkToken/client/requests/index.ts deleted file mode 100644 index d94b44a3e..000000000 --- a/src/serialization/resources/ticketing/resources/linkToken/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { EndUserDetailsRequest } from "./EndUserDetailsRequest"; diff --git a/src/serialization/resources/ticketing/resources/linkToken/index.ts b/src/serialization/resources/ticketing/resources/linkToken/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/ticketing/resources/linkToken/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/EndUserDetailsRequestLanguage.ts b/src/serialization/resources/ticketing/resources/linkToken/types/EndUserDetailsRequestLanguage.ts deleted file mode 100644 index 5c18aa43c..000000000 --- a/src/serialization/resources/ticketing/resources/linkToken/types/EndUserDetailsRequestLanguage.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 { LanguageEnum } from "../../../types/LanguageEnum"; - -export const EndUserDetailsRequestLanguage: core.serialization.Schema< - serializers.ticketing.EndUserDetailsRequestLanguage.Raw, - Merge.ticketing.EndUserDetailsRequestLanguage -> = core.serialization.undiscriminatedUnion([LanguageEnum, core.serialization.string()]); - -export declare namespace EndUserDetailsRequestLanguage { - export type Raw = LanguageEnum.Raw | string; -} diff --git a/src/serialization/resources/ticketing/resources/linkToken/types/index.ts b/src/serialization/resources/ticketing/resources/linkToken/types/index.ts deleted file mode 100644 index 7aed25cb1..000000000 --- a/src/serialization/resources/ticketing/resources/linkToken/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./EndUserDetailsRequestCompletedAccountInitialScreen"; -export * from "./EndUserDetailsRequestLanguage"; diff --git a/src/serialization/resources/ticketing/resources/linkedAccounts/index.ts b/src/serialization/resources/ticketing/resources/linkedAccounts/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/ticketing/resources/linkedAccounts/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; diff --git a/src/serialization/resources/ticketing/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts b/src/serialization/resources/ticketing/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.ts deleted file mode 100644 index 45b548756..000000000 --- a/src/serialization/resources/ticketing/resources/linkedAccounts/types/LinkedAccountsListRequestCategory.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 LinkedAccountsListRequestCategory: core.serialization.Schema< - serializers.ticketing.LinkedAccountsListRequestCategory.Raw, - Merge.ticketing.LinkedAccountsListRequestCategory -> = core.serialization.enum_(["accounting", "ats", "crm", "filestorage", "hris", "mktg", "ticketing"]); - -export declare namespace LinkedAccountsListRequestCategory { - export type Raw = "accounting" | "ats" | "crm" | "filestorage" | "hris" | "mktg" | "ticketing"; -} diff --git a/src/serialization/resources/ticketing/resources/linkedAccounts/types/index.ts b/src/serialization/resources/ticketing/resources/linkedAccounts/types/index.ts deleted file mode 100644 index 91de6010a..000000000 --- a/src/serialization/resources/ticketing/resources/linkedAccounts/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./LinkedAccountsListRequestCategory"; diff --git a/src/serialization/resources/ticketing/resources/projects/index.ts b/src/serialization/resources/ticketing/resources/projects/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/ticketing/resources/projects/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; 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/index.ts b/src/serialization/resources/ticketing/resources/projects/types/index.ts deleted file mode 100644 index d28a1cea3..000000000 --- a/src/serialization/resources/ticketing/resources/projects/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./ProjectsUsersListRequestExpand"; diff --git a/src/serialization/resources/ticketing/resources/regenerateKey/client/index.ts b/src/serialization/resources/ticketing/resources/regenerateKey/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/ticketing/resources/regenerateKey/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/ticketing/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts b/src/serialization/resources/ticketing/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts deleted file mode 100644 index 4776832f1..000000000 --- a/src/serialization/resources/ticketing/resources/regenerateKey/client/requests/RemoteKeyForRegenerationRequest.ts +++ /dev/null @@ -1,18 +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 RemoteKeyForRegenerationRequest: core.serialization.Schema< - serializers.ticketing.RemoteKeyForRegenerationRequest.Raw, - Merge.ticketing.RemoteKeyForRegenerationRequest -> = core.serialization.object({ - name: core.serialization.string(), -}); - -export declare namespace RemoteKeyForRegenerationRequest { - export interface Raw { - name: string; - } -} diff --git a/src/serialization/resources/ticketing/resources/regenerateKey/client/requests/index.ts b/src/serialization/resources/ticketing/resources/regenerateKey/client/requests/index.ts deleted file mode 100644 index 2987ef933..000000000 --- a/src/serialization/resources/ticketing/resources/regenerateKey/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { RemoteKeyForRegenerationRequest } from "./RemoteKeyForRegenerationRequest"; diff --git a/src/serialization/resources/ticketing/resources/regenerateKey/index.ts b/src/serialization/resources/ticketing/resources/regenerateKey/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/ticketing/resources/regenerateKey/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/ticketing/resources/scopes/client/index.ts b/src/serialization/resources/ticketing/resources/scopes/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/ticketing/resources/scopes/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/ticketing/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts b/src/serialization/resources/ticketing/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts deleted file mode 100644 index 020d9f78a..000000000 --- a/src/serialization/resources/ticketing/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts +++ /dev/null @@ -1,22 +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 { IndividualCommonModelScopeDeserializerRequest } from "../../../../types/IndividualCommonModelScopeDeserializerRequest"; - -export const LinkedAccountCommonModelScopeDeserializerRequest: core.serialization.Schema< - serializers.ticketing.LinkedAccountCommonModelScopeDeserializerRequest.Raw, - Merge.ticketing.LinkedAccountCommonModelScopeDeserializerRequest -> = core.serialization.object({ - commonModels: core.serialization.property( - "common_models", - core.serialization.list(IndividualCommonModelScopeDeserializerRequest), - ), -}); - -export declare namespace LinkedAccountCommonModelScopeDeserializerRequest { - export interface Raw { - common_models: IndividualCommonModelScopeDeserializerRequest.Raw[]; - } -} diff --git a/src/serialization/resources/ticketing/resources/scopes/client/requests/index.ts b/src/serialization/resources/ticketing/resources/scopes/client/requests/index.ts deleted file mode 100644 index 28d8d7974..000000000 --- a/src/serialization/resources/ticketing/resources/scopes/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { LinkedAccountCommonModelScopeDeserializerRequest } from "./LinkedAccountCommonModelScopeDeserializerRequest"; diff --git a/src/serialization/resources/ticketing/resources/scopes/index.ts b/src/serialization/resources/ticketing/resources/scopes/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/ticketing/resources/scopes/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/ticketing/resources/tickets/client/index.ts b/src/serialization/resources/ticketing/resources/tickets/client/index.ts deleted file mode 100644 index 415726b7f..000000000 --- a/src/serialization/resources/ticketing/resources/tickets/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/ticketing/resources/tickets/client/requests/PatchedTicketEndpointRequest.ts b/src/serialization/resources/ticketing/resources/tickets/client/requests/PatchedTicketEndpointRequest.ts deleted file mode 100644 index b4634f9e2..000000000 --- a/src/serialization/resources/ticketing/resources/tickets/client/requests/PatchedTicketEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { PatchedTicketRequest } from "../../../../types/PatchedTicketRequest"; - -export const PatchedTicketEndpointRequest: core.serialization.Schema< - serializers.ticketing.PatchedTicketEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: PatchedTicketRequest, -}); - -export declare namespace PatchedTicketEndpointRequest { - export interface Raw { - model: PatchedTicketRequest.Raw; - } -} diff --git a/src/serialization/resources/ticketing/resources/tickets/client/requests/TicketEndpointRequest.ts b/src/serialization/resources/ticketing/resources/tickets/client/requests/TicketEndpointRequest.ts deleted file mode 100644 index 7be54472c..000000000 --- a/src/serialization/resources/ticketing/resources/tickets/client/requests/TicketEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { TicketRequest } from "../../../../types/TicketRequest"; - -export const TicketEndpointRequest: core.serialization.Schema< - serializers.ticketing.TicketEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: TicketRequest, -}); - -export declare namespace TicketEndpointRequest { - export interface Raw { - model: TicketRequest.Raw; - } -} diff --git a/src/serialization/resources/ticketing/resources/tickets/client/requests/index.ts b/src/serialization/resources/ticketing/resources/tickets/client/requests/index.ts deleted file mode 100644 index cf3107c4c..000000000 --- a/src/serialization/resources/ticketing/resources/tickets/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { PatchedTicketEndpointRequest } from "./PatchedTicketEndpointRequest"; -export { TicketEndpointRequest } from "./TicketEndpointRequest"; diff --git a/src/serialization/resources/ticketing/resources/tickets/index.ts b/src/serialization/resources/ticketing/resources/tickets/index.ts deleted file mode 100644 index d2ec2302c..000000000 --- a/src/serialization/resources/ticketing/resources/tickets/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client"; -export * from "./types"; 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/TicketsListRequestPriority.ts b/src/serialization/resources/ticketing/resources/tickets/types/TicketsListRequestPriority.ts deleted file mode 100644 index 26859e178..000000000 --- a/src/serialization/resources/ticketing/resources/tickets/types/TicketsListRequestPriority.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 TicketsListRequestPriority: core.serialization.Schema< - serializers.ticketing.TicketsListRequestPriority.Raw, - Merge.ticketing.TicketsListRequestPriority -> = core.serialization.enum_(["HIGH", "LOW", "NORMAL", "URGENT"]); - -export declare namespace TicketsListRequestPriority { - export type Raw = "HIGH" | "LOW" | "NORMAL" | "URGENT"; -} diff --git a/src/serialization/resources/ticketing/resources/tickets/types/TicketsListRequestRemoteFields.ts b/src/serialization/resources/ticketing/resources/tickets/types/TicketsListRequestRemoteFields.ts deleted file mode 100644 index aba4e4535..000000000 --- a/src/serialization/resources/ticketing/resources/tickets/types/TicketsListRequestRemoteFields.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 TicketsListRequestRemoteFields: core.serialization.Schema< - serializers.ticketing.TicketsListRequestRemoteFields.Raw, - Merge.ticketing.TicketsListRequestRemoteFields -> = core.serialization.enum_([ - "priority", - "priority,status", - "priority,status,ticket_type", - "priority,ticket_type", - "status", - "status,ticket_type", - "ticket_type", -]); - -export declare namespace TicketsListRequestRemoteFields { - 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/TicketsListRequestShowEnumOrigins.ts b/src/serialization/resources/ticketing/resources/tickets/types/TicketsListRequestShowEnumOrigins.ts deleted file mode 100644 index 360587fb5..000000000 --- a/src/serialization/resources/ticketing/resources/tickets/types/TicketsListRequestShowEnumOrigins.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 TicketsListRequestShowEnumOrigins: core.serialization.Schema< - serializers.ticketing.TicketsListRequestShowEnumOrigins.Raw, - Merge.ticketing.TicketsListRequestShowEnumOrigins -> = core.serialization.enum_([ - "priority", - "priority,status", - "priority,status,ticket_type", - "priority,ticket_type", - "status", - "status,ticket_type", - "ticket_type", -]); - -export declare namespace TicketsListRequestShowEnumOrigins { - 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/TicketsListRequestStatus.ts b/src/serialization/resources/ticketing/resources/tickets/types/TicketsListRequestStatus.ts deleted file mode 100644 index 2c54b1646..000000000 --- a/src/serialization/resources/ticketing/resources/tickets/types/TicketsListRequestStatus.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 TicketsListRequestStatus: core.serialization.Schema< - serializers.ticketing.TicketsListRequestStatus.Raw, - Merge.ticketing.TicketsListRequestStatus -> = core.serialization.enum_(["", "CLOSED", "IN_PROGRESS", "ON_HOLD", "OPEN"]); - -export declare namespace TicketsListRequestStatus { - export type Raw = "" | "CLOSED" | "IN_PROGRESS" | "ON_HOLD" | "OPEN"; -} 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/TicketsRetrieveRequestRemoteFields.ts b/src/serialization/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestRemoteFields.ts deleted file mode 100644 index 8ceedd7dd..000000000 --- a/src/serialization/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestRemoteFields.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 TicketsRetrieveRequestRemoteFields: core.serialization.Schema< - serializers.ticketing.TicketsRetrieveRequestRemoteFields.Raw, - Merge.ticketing.TicketsRetrieveRequestRemoteFields -> = core.serialization.enum_([ - "priority", - "priority,status", - "priority,status,ticket_type", - "priority,ticket_type", - "status", - "status,ticket_type", - "ticket_type", -]); - -export declare namespace TicketsRetrieveRequestRemoteFields { - 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/TicketsRetrieveRequestShowEnumOrigins.ts b/src/serialization/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestShowEnumOrigins.ts deleted file mode 100644 index 823c26d0e..000000000 --- a/src/serialization/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestShowEnumOrigins.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 TicketsRetrieveRequestShowEnumOrigins: core.serialization.Schema< - serializers.ticketing.TicketsRetrieveRequestShowEnumOrigins.Raw, - Merge.ticketing.TicketsRetrieveRequestShowEnumOrigins -> = core.serialization.enum_([ - "priority", - "priority,status", - "priority,status,ticket_type", - "priority,ticket_type", - "status", - "status,ticket_type", - "ticket_type", -]); - -export declare namespace TicketsRetrieveRequestShowEnumOrigins { - 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/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/index.ts b/src/serialization/resources/ticketing/resources/tickets/types/index.ts deleted file mode 100644 index 2f77f6366..000000000 --- a/src/serialization/resources/ticketing/resources/tickets/types/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -export * from "./TicketsListRequestExpand"; -export * from "./TicketsListRequestPriority"; -export * from "./TicketsListRequestRemoteFields"; -export * from "./TicketsListRequestShowEnumOrigins"; -export * from "./TicketsListRequestStatus"; -export * from "./TicketsRetrieveRequestExpand"; -export * from "./TicketsRetrieveRequestRemoteFields"; -export * from "./TicketsRetrieveRequestShowEnumOrigins"; -export * from "./TicketsViewersListRequestExpand"; diff --git a/src/serialization/resources/ticketing/resources/users/index.ts b/src/serialization/resources/ticketing/resources/users/index.ts deleted file mode 100644 index eea524d65..000000000 --- a/src/serialization/resources/ticketing/resources/users/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; 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/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/index.ts b/src/serialization/resources/ticketing/resources/users/types/index.ts deleted file mode 100644 index e07d9f0f0..000000000 --- a/src/serialization/resources/ticketing/resources/users/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./UsersListRequestExpand"; -export * from "./UsersRetrieveRequestExpand"; diff --git a/src/serialization/resources/ticketing/resources/webhookReceivers/client/index.ts b/src/serialization/resources/ticketing/resources/webhookReceivers/client/index.ts deleted file mode 100644 index 257d03e90..000000000 --- a/src/serialization/resources/ticketing/resources/webhookReceivers/client/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * as list from "./list"; -export * from "./requests"; diff --git a/src/serialization/resources/ticketing/resources/webhookReceivers/client/list.ts b/src/serialization/resources/ticketing/resources/webhookReceivers/client/list.ts deleted file mode 100644 index a7f8183c8..000000000 --- a/src/serialization/resources/ticketing/resources/webhookReceivers/client/list.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 { WebhookReceiver } from "../../../types/WebhookReceiver"; - -export const Response: core.serialization.Schema< - serializers.ticketing.webhookReceivers.list.Response.Raw, - Merge.ticketing.WebhookReceiver[] -> = core.serialization.list(WebhookReceiver); - -export declare namespace Response { - export type Raw = WebhookReceiver.Raw[]; -} diff --git a/src/serialization/resources/ticketing/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts b/src/serialization/resources/ticketing/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts deleted file mode 100644 index b558cadf1..000000000 --- a/src/serialization/resources/ticketing/resources/webhookReceivers/client/requests/WebhookReceiverRequest.ts +++ /dev/null @@ -1,22 +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 WebhookReceiverRequest: core.serialization.Schema< - serializers.ticketing.WebhookReceiverRequest.Raw, - Merge.ticketing.WebhookReceiverRequest -> = core.serialization.object({ - event: core.serialization.string(), - isActive: core.serialization.property("is_active", core.serialization.boolean()), - key: core.serialization.string().optional(), -}); - -export declare namespace WebhookReceiverRequest { - export interface Raw { - event: string; - is_active: boolean; - key?: string | null; - } -} diff --git a/src/serialization/resources/ticketing/resources/webhookReceivers/client/requests/index.ts b/src/serialization/resources/ticketing/resources/webhookReceivers/client/requests/index.ts deleted file mode 100644 index 29f534250..000000000 --- a/src/serialization/resources/ticketing/resources/webhookReceivers/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { WebhookReceiverRequest } from "./WebhookReceiverRequest"; diff --git a/src/serialization/resources/ticketing/resources/webhookReceivers/index.ts b/src/serialization/resources/ticketing/resources/webhookReceivers/index.ts deleted file mode 100644 index 5ec76921e..000000000 --- a/src/serialization/resources/ticketing/resources/webhookReceivers/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/ticketing/types/Account.ts b/src/serialization/resources/ticketing/types/Account.ts deleted file mode 100644 index c3011249f..000000000 --- a/src/serialization/resources/ticketing/types/Account.ts +++ /dev/null @@ -1,36 +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 { RemoteData } from "./RemoteData"; - -export const Account: core.serialization.ObjectSchema = - 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()), - name: core.serialization.string().optional(), - domains: 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(), - ), - remoteData: core.serialization.property("remote_data", core.serialization.list(RemoteData).optional()), - }); - -export declare namespace Account { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - domains?: (string | null | undefined)[] | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/AccountDetails.ts b/src/serialization/resources/ticketing/types/AccountDetails.ts deleted file mode 100644 index bd02ea4db..000000000 --- a/src/serialization/resources/ticketing/types/AccountDetails.ts +++ /dev/null @@ -1,44 +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 { AccountDetailsCategory } from "./AccountDetailsCategory"; - -export const AccountDetails: core.serialization.ObjectSchema< - serializers.ticketing.AccountDetails.Raw, - Merge.ticketing.AccountDetails -> = core.serialization.object({ - id: core.serialization.string().optional(), - integration: core.serialization.string().optional(), - integrationSlug: core.serialization.property("integration_slug", core.serialization.string().optional()), - category: AccountDetailsCategory.optional(), - endUserOriginId: core.serialization.property("end_user_origin_id", core.serialization.string().optional()), - endUserOrganizationName: core.serialization.property( - "end_user_organization_name", - core.serialization.string().optional(), - ), - endUserEmailAddress: core.serialization.property("end_user_email_address", core.serialization.string().optional()), - status: core.serialization.string().optional(), - webhookListenerUrl: core.serialization.property("webhook_listener_url", core.serialization.string().optional()), - isDuplicate: core.serialization.property("is_duplicate", core.serialization.boolean().optional()), - accountType: core.serialization.property("account_type", core.serialization.string().optional()), - completedAt: core.serialization.property("completed_at", core.serialization.date().optional()), -}); - -export declare namespace AccountDetails { - export interface Raw { - id?: string | null; - integration?: string | null; - integration_slug?: string | null; - category?: AccountDetailsCategory.Raw | null; - end_user_origin_id?: string | null; - end_user_organization_name?: string | null; - end_user_email_address?: string | null; - status?: string | null; - webhook_listener_url?: string | null; - is_duplicate?: boolean | null; - account_type?: string | null; - completed_at?: string | null; - } -} diff --git a/src/serialization/resources/ticketing/types/AccountDetailsAndActions.ts b/src/serialization/resources/ticketing/types/AccountDetailsAndActions.ts deleted file mode 100644 index 22afb7316..000000000 --- a/src/serialization/resources/ticketing/types/AccountDetailsAndActions.ts +++ /dev/null @@ -1,50 +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 { AccountDetailsAndActionsCategory } from "./AccountDetailsAndActionsCategory"; -import { AccountDetailsAndActionsIntegration } from "./AccountDetailsAndActionsIntegration"; -import { AccountDetailsAndActionsStatus } from "./AccountDetailsAndActionsStatus"; - -export const AccountDetailsAndActions: core.serialization.ObjectSchema< - serializers.ticketing.AccountDetailsAndActions.Raw, - Merge.ticketing.AccountDetailsAndActions -> = core.serialization.object({ - id: core.serialization.string(), - 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()), - endUserEmailAddress: core.serialization.property("end_user_email_address", core.serialization.string()), - subdomain: core.serialization.string().optional(), - webhookListenerUrl: core.serialization.property("webhook_listener_url", core.serialization.string()), - isDuplicate: core.serialization.property("is_duplicate", core.serialization.boolean().optional()), - 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 { - export interface Raw { - id: string; - category?: AccountDetailsAndActionsCategory.Raw | null; - status: AccountDetailsAndActionsStatus.Raw; - status_detail?: string | null; - end_user_origin_id?: string | null; - end_user_organization_name: string; - end_user_email_address: string; - subdomain?: string | null; - webhook_listener_url: string; - is_duplicate?: boolean | null; - integration?: AccountDetailsAndActionsIntegration.Raw | null; - account_type: string; - completed_at: string; - integration_specific_fields?: Record | null; - } -} diff --git a/src/serialization/resources/ticketing/types/AccountDetailsAndActionsCategory.ts b/src/serialization/resources/ticketing/types/AccountDetailsAndActionsCategory.ts deleted file mode 100644 index 51a213fb3..000000000 --- a/src/serialization/resources/ticketing/types/AccountDetailsAndActionsCategory.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { CategoryEnum } from "./CategoryEnum"; - -export const AccountDetailsAndActionsCategory: core.serialization.Schema< - serializers.ticketing.AccountDetailsAndActionsCategory.Raw, - Merge.ticketing.AccountDetailsAndActionsCategory -> = core.serialization.undiscriminatedUnion([CategoryEnum, core.serialization.string()]); - -export declare namespace AccountDetailsAndActionsCategory { - export type Raw = CategoryEnum.Raw | string; -} diff --git a/src/serialization/resources/ticketing/types/AccountDetailsAndActionsIntegration.ts b/src/serialization/resources/ticketing/types/AccountDetailsAndActionsIntegration.ts deleted file mode 100644 index 79427100d..000000000 --- a/src/serialization/resources/ticketing/types/AccountDetailsAndActionsIntegration.ts +++ /dev/null @@ -1,37 +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 { CategoriesEnum } from "./CategoriesEnum"; -import { ModelOperation } from "./ModelOperation"; - -export const AccountDetailsAndActionsIntegration: core.serialization.ObjectSchema< - serializers.ticketing.AccountDetailsAndActionsIntegration.Raw, - Merge.ticketing.AccountDetailsAndActionsIntegration -> = core.serialization.object({ - name: core.serialization.string(), - categories: core.serialization.list(CategoriesEnum), - image: core.serialization.string().optional(), - squareImage: core.serialization.property("square_image", core.serialization.string().optional()), - color: core.serialization.string(), - slug: core.serialization.string(), - passthroughAvailable: core.serialization.property("passthrough_available", core.serialization.boolean()), - availableModelOperations: core.serialization.property( - "available_model_operations", - core.serialization.list(ModelOperation).optional(), - ), -}); - -export declare namespace AccountDetailsAndActionsIntegration { - export interface Raw { - name: string; - categories: CategoriesEnum.Raw[]; - image?: string | null; - square_image?: string | null; - color: string; - slug: string; - passthrough_available: boolean; - available_model_operations?: ModelOperation.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/AccountDetailsAndActionsStatus.ts b/src/serialization/resources/ticketing/types/AccountDetailsAndActionsStatus.ts deleted file mode 100644 index 5133a0af5..000000000 --- a/src/serialization/resources/ticketing/types/AccountDetailsAndActionsStatus.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 { AccountDetailsAndActionsStatusEnum } from "./AccountDetailsAndActionsStatusEnum"; - -export const AccountDetailsAndActionsStatus: core.serialization.Schema< - serializers.ticketing.AccountDetailsAndActionsStatus.Raw, - Merge.ticketing.AccountDetailsAndActionsStatus -> = core.serialization.undiscriminatedUnion([AccountDetailsAndActionsStatusEnum, core.serialization.string()]); - -export declare namespace AccountDetailsAndActionsStatus { - export type Raw = AccountDetailsAndActionsStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/ticketing/types/AccountDetailsAndActionsStatusEnum.ts b/src/serialization/resources/ticketing/types/AccountDetailsAndActionsStatusEnum.ts deleted file mode 100644 index f3337167b..000000000 --- a/src/serialization/resources/ticketing/types/AccountDetailsAndActionsStatusEnum.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 AccountDetailsAndActionsStatusEnum: core.serialization.Schema< - serializers.ticketing.AccountDetailsAndActionsStatusEnum.Raw, - Merge.ticketing.AccountDetailsAndActionsStatusEnum -> = core.serialization.enum_(["COMPLETE", "INCOMPLETE", "RELINK_NEEDED", "IDLE"]); - -export declare namespace AccountDetailsAndActionsStatusEnum { - export type Raw = "COMPLETE" | "INCOMPLETE" | "RELINK_NEEDED" | "IDLE"; -} diff --git a/src/serialization/resources/ticketing/types/AccountDetailsCategory.ts b/src/serialization/resources/ticketing/types/AccountDetailsCategory.ts deleted file mode 100644 index 707274750..000000000 --- a/src/serialization/resources/ticketing/types/AccountDetailsCategory.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { CategoryEnum } from "./CategoryEnum"; - -export const AccountDetailsCategory: core.serialization.Schema< - serializers.ticketing.AccountDetailsCategory.Raw, - Merge.ticketing.AccountDetailsCategory -> = core.serialization.undiscriminatedUnion([CategoryEnum, core.serialization.string()]); - -export declare namespace AccountDetailsCategory { - export type Raw = CategoryEnum.Raw | string; -} diff --git a/src/serialization/resources/ticketing/types/AccountIntegration.ts b/src/serialization/resources/ticketing/types/AccountIntegration.ts deleted file mode 100644 index e6ab60ada..000000000 --- a/src/serialization/resources/ticketing/types/AccountIntegration.ts +++ /dev/null @@ -1,46 +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 { CategoriesEnum } from "./CategoriesEnum"; - -export const AccountIntegration: core.serialization.ObjectSchema< - serializers.ticketing.AccountIntegration.Raw, - Merge.ticketing.AccountIntegration -> = core.serialization.object({ - name: core.serialization.string(), - abbreviatedName: core.serialization.property("abbreviated_name", core.serialization.string().optional()), - categories: core.serialization.list(CategoriesEnum).optional(), - image: core.serialization.string().optional(), - squareImage: core.serialization.property("square_image", core.serialization.string().optional()), - color: core.serialization.string().optional(), - slug: core.serialization.string().optional(), - apiEndpointsToDocumentationUrls: core.serialization.property( - "api_endpoints_to_documentation_urls", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - webhookSetupGuideUrl: core.serialization.property( - "webhook_setup_guide_url", - core.serialization.string().optional(), - ), - categoryBetaStatus: core.serialization.property( - "category_beta_status", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), -}); - -export declare namespace AccountIntegration { - export interface Raw { - name: string; - abbreviated_name?: string | null; - categories?: CategoriesEnum.Raw[] | null; - image?: string | null; - square_image?: string | null; - color?: string | null; - slug?: string | null; - api_endpoints_to_documentation_urls?: Record | null; - webhook_setup_guide_url?: string | null; - category_beta_status?: Record | null; - } -} diff --git a/src/serialization/resources/ticketing/types/AccountToken.ts b/src/serialization/resources/ticketing/types/AccountToken.ts deleted file mode 100644 index 90d374d64..000000000 --- a/src/serialization/resources/ticketing/types/AccountToken.ts +++ /dev/null @@ -1,23 +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 { AccountIntegration } from "./AccountIntegration"; - -export const AccountToken: core.serialization.ObjectSchema< - serializers.ticketing.AccountToken.Raw, - Merge.ticketing.AccountToken -> = core.serialization.object({ - accountToken: core.serialization.property("account_token", core.serialization.string()), - integration: AccountIntegration, - id: core.serialization.string(), -}); - -export declare namespace AccountToken { - export interface Raw { - account_token: string; - integration: AccountIntegration.Raw; - id: string; - } -} diff --git a/src/serialization/resources/ticketing/types/AdvancedMetadata.ts b/src/serialization/resources/ticketing/types/AdvancedMetadata.ts deleted file mode 100644 index 39500632d..000000000 --- a/src/serialization/resources/ticketing/types/AdvancedMetadata.ts +++ /dev/null @@ -1,31 +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 AdvancedMetadata: core.serialization.ObjectSchema< - serializers.ticketing.AdvancedMetadata.Raw, - Merge.ticketing.AdvancedMetadata -> = core.serialization.object({ - id: core.serialization.string(), - displayName: core.serialization.property("display_name", core.serialization.string().optional()), - description: core.serialization.string().optional(), - isRequired: core.serialization.property("is_required", core.serialization.boolean().optional()), - isCustom: core.serialization.property("is_custom", core.serialization.boolean().optional()), - fieldChoices: core.serialization.property( - "field_choices", - core.serialization.list(core.serialization.unknown()).optional(), - ), -}); - -export declare namespace AdvancedMetadata { - export interface Raw { - id: string; - display_name?: string | null; - description?: string | null; - is_required?: boolean | null; - is_custom?: boolean | null; - field_choices?: unknown[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/AsyncPassthroughReciept.ts b/src/serialization/resources/ticketing/types/AsyncPassthroughReciept.ts deleted file mode 100644 index 5395eb6b8..000000000 --- a/src/serialization/resources/ticketing/types/AsyncPassthroughReciept.ts +++ /dev/null @@ -1,18 +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 AsyncPassthroughReciept: core.serialization.ObjectSchema< - serializers.ticketing.AsyncPassthroughReciept.Raw, - Merge.ticketing.AsyncPassthroughReciept -> = core.serialization.object({ - asyncPassthroughReceiptId: core.serialization.property("async_passthrough_receipt_id", core.serialization.string()), -}); - -export declare namespace AsyncPassthroughReciept { - export interface Raw { - async_passthrough_receipt_id: string; - } -} diff --git a/src/serialization/resources/ticketing/types/Attachment.ts b/src/serialization/resources/ticketing/types/Attachment.ts deleted file mode 100644 index 98750ea9d..000000000 --- a/src/serialization/resources/ticketing/types/Attachment.ts +++ /dev/null @@ -1,46 +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 * as serializers from "../../../index"; -import { RemoteData } from "./RemoteData"; - -export const Attachment: core.serialization.ObjectSchema< - serializers.ticketing.Attachment.Raw, - Merge.ticketing.Attachment -> = 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()), - fileName: core.serialization.property("file_name", core.serialization.string().optional()), - ticket: core.serialization.lazy(() => serializers.ticketing.AttachmentTicket).optional(), - fileUrl: core.serialization.property("file_url", core.serialization.string().optional()), - contentType: core.serialization.property("content_type", core.serialization.string().optional()), - uploadedBy: core.serialization.property("uploaded_by", core.serialization.string().optional()), - remoteCreatedAt: core.serialization.property("remote_created_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()), -}); - -export declare namespace Attachment { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - file_name?: string | null; - ticket?: serializers.ticketing.AttachmentTicket.Raw | null; - file_url?: string | null; - content_type?: string | null; - uploaded_by?: string | null; - remote_created_at?: string | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/AttachmentRequest.ts b/src/serialization/resources/ticketing/types/AttachmentRequest.ts deleted file mode 100644 index 61c47b2d9..000000000 --- a/src/serialization/resources/ticketing/types/AttachmentRequest.ts +++ /dev/null @@ -1,37 +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 { AttachmentRequestTicket } from "./AttachmentRequestTicket"; - -export const AttachmentRequest: core.serialization.ObjectSchema< - serializers.ticketing.AttachmentRequest.Raw, - Merge.ticketing.AttachmentRequest -> = core.serialization.object({ - fileName: core.serialization.property("file_name", core.serialization.string().optional()), - ticket: AttachmentRequestTicket.optional(), - fileUrl: core.serialization.property("file_url", core.serialization.string().optional()), - contentType: core.serialization.property("content_type", core.serialization.string().optional()), - uploadedBy: core.serialization.property("uploaded_by", core.serialization.string().optional()), - integrationParams: core.serialization.property( - "integration_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - linkedAccountParams: core.serialization.property( - "linked_account_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), -}); - -export declare namespace AttachmentRequest { - export interface Raw { - file_name?: string | null; - ticket?: AttachmentRequestTicket.Raw | null; - file_url?: string | null; - content_type?: string | null; - uploaded_by?: string | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/ticketing/types/AttachmentRequestTicket.ts b/src/serialization/resources/ticketing/types/AttachmentRequestTicket.ts deleted file mode 100644 index 3e0a383b3..000000000 --- a/src/serialization/resources/ticketing/types/AttachmentRequestTicket.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const AttachmentRequestTicket: core.serialization.Schema< - serializers.ticketing.AttachmentRequestTicket.Raw, - Merge.ticketing.AttachmentRequestTicket -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.ticketing.Ticket), -]); - -export declare namespace AttachmentRequestTicket { - export type Raw = string | serializers.ticketing.Ticket.Raw; -} diff --git a/src/serialization/resources/ticketing/types/AttachmentTicket.ts b/src/serialization/resources/ticketing/types/AttachmentTicket.ts deleted file mode 100644 index 02a8a985e..000000000 --- a/src/serialization/resources/ticketing/types/AttachmentTicket.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const AttachmentTicket: core.serialization.Schema< - serializers.ticketing.AttachmentTicket.Raw, - Merge.ticketing.AttachmentTicket -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.ticketing.Ticket), -]); - -export declare namespace AttachmentTicket { - export type Raw = string | serializers.ticketing.Ticket.Raw; -} diff --git a/src/serialization/resources/ticketing/types/AuditLogEvent.ts b/src/serialization/resources/ticketing/types/AuditLogEvent.ts deleted file mode 100644 index 887522d6e..000000000 --- a/src/serialization/resources/ticketing/types/AuditLogEvent.ts +++ /dev/null @@ -1,34 +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 { AuditLogEventEventType } from "./AuditLogEventEventType"; -import { AuditLogEventRole } from "./AuditLogEventRole"; - -export const AuditLogEvent: core.serialization.ObjectSchema< - serializers.ticketing.AuditLogEvent.Raw, - Merge.ticketing.AuditLogEvent -> = core.serialization.object({ - id: core.serialization.string().optional(), - userName: core.serialization.property("user_name", core.serialization.string().optional()), - userEmail: core.serialization.property("user_email", core.serialization.string().optional()), - role: AuditLogEventRole, - ipAddress: core.serialization.property("ip_address", core.serialization.string()), - eventType: core.serialization.property("event_type", AuditLogEventEventType), - eventDescription: core.serialization.property("event_description", core.serialization.string()), - createdAt: core.serialization.property("created_at", core.serialization.date().optional()), -}); - -export declare namespace AuditLogEvent { - export interface Raw { - id?: string | null; - user_name?: string | null; - user_email?: string | null; - role: AuditLogEventRole.Raw; - ip_address: string; - event_type: AuditLogEventEventType.Raw; - event_description: string; - created_at?: string | null; - } -} diff --git a/src/serialization/resources/ticketing/types/AuditLogEventEventType.ts b/src/serialization/resources/ticketing/types/AuditLogEventEventType.ts deleted file mode 100644 index 4e77738b2..000000000 --- a/src/serialization/resources/ticketing/types/AuditLogEventEventType.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 { EventTypeEnum } from "./EventTypeEnum"; - -export const AuditLogEventEventType: core.serialization.Schema< - serializers.ticketing.AuditLogEventEventType.Raw, - Merge.ticketing.AuditLogEventEventType -> = core.serialization.undiscriminatedUnion([EventTypeEnum, core.serialization.string()]); - -export declare namespace AuditLogEventEventType { - export type Raw = EventTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/ticketing/types/AuditLogEventRole.ts b/src/serialization/resources/ticketing/types/AuditLogEventRole.ts deleted file mode 100644 index 8d953ee4a..000000000 --- a/src/serialization/resources/ticketing/types/AuditLogEventRole.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 { RoleEnum } from "./RoleEnum"; - -export const AuditLogEventRole: core.serialization.Schema< - serializers.ticketing.AuditLogEventRole.Raw, - Merge.ticketing.AuditLogEventRole -> = core.serialization.undiscriminatedUnion([RoleEnum, core.serialization.string()]); - -export declare namespace AuditLogEventRole { - export type Raw = RoleEnum.Raw | string; -} diff --git a/src/serialization/resources/ticketing/types/AvailableActions.ts b/src/serialization/resources/ticketing/types/AvailableActions.ts deleted file mode 100644 index 302264425..000000000 --- a/src/serialization/resources/ticketing/types/AvailableActions.ts +++ /dev/null @@ -1,27 +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 { AccountIntegration } from "./AccountIntegration"; -import { ModelOperation } from "./ModelOperation"; - -export const AvailableActions: core.serialization.ObjectSchema< - serializers.ticketing.AvailableActions.Raw, - Merge.ticketing.AvailableActions -> = core.serialization.object({ - integration: AccountIntegration, - passthroughAvailable: core.serialization.property("passthrough_available", core.serialization.boolean()), - availableModelOperations: core.serialization.property( - "available_model_operations", - core.serialization.list(ModelOperation).optional(), - ), -}); - -export declare namespace AvailableActions { - export interface Raw { - integration: AccountIntegration.Raw; - passthrough_available: boolean; - available_model_operations?: ModelOperation.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/CategoriesEnum.ts b/src/serialization/resources/ticketing/types/CategoriesEnum.ts deleted file mode 100644 index 7653068bb..000000000 --- a/src/serialization/resources/ticketing/types/CategoriesEnum.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 CategoriesEnum: core.serialization.Schema< - serializers.ticketing.CategoriesEnum.Raw, - Merge.ticketing.CategoriesEnum -> = 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" | "knowledgebase"; -} diff --git a/src/serialization/resources/ticketing/types/CategoryEnum.ts b/src/serialization/resources/ticketing/types/CategoryEnum.ts deleted file mode 100644 index 014e43771..000000000 --- a/src/serialization/resources/ticketing/types/CategoryEnum.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 CategoryEnum: core.serialization.Schema< - serializers.ticketing.CategoryEnum.Raw, - Merge.ticketing.CategoryEnum -> = 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" | "knowledgebase"; -} diff --git a/src/serialization/resources/ticketing/types/Collection.ts b/src/serialization/resources/ticketing/types/Collection.ts deleted file mode 100644 index ecc9bd950..000000000 --- a/src/serialization/resources/ticketing/types/Collection.ts +++ /dev/null @@ -1,55 +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 * as serializers from "../../../index"; -import { CollectionAccessLevel } from "./CollectionAccessLevel"; -import { CollectionCollectionType } from "./CollectionCollectionType"; -import { RemoteData } from "./RemoteData"; - -export const Collection: core.serialization.ObjectSchema< - serializers.ticketing.Collection.Raw, - Merge.ticketing.Collection -> = 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()), - 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()), - parentCollection: core.serialization.property( - "parent_collection", - core.serialization.lazy(() => serializers.ticketing.CollectionParentCollection).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()), - 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()), -}); - -export declare namespace Collection { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - description?: string | null; - access_level?: CollectionAccessLevel.Raw | null; - collection_type?: CollectionCollectionType.Raw | null; - parent_collection?: serializers.ticketing.CollectionParentCollection.Raw | null; - collection_url?: string | 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; - } -} diff --git a/src/serialization/resources/ticketing/types/CollectionAccessLevel.ts b/src/serialization/resources/ticketing/types/CollectionAccessLevel.ts deleted file mode 100644 index b293f07c2..000000000 --- a/src/serialization/resources/ticketing/types/CollectionAccessLevel.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 { CollectionAccessLevelEnum } from "./CollectionAccessLevelEnum"; - -export const CollectionAccessLevel: core.serialization.Schema< - serializers.ticketing.CollectionAccessLevel.Raw, - Merge.ticketing.CollectionAccessLevel -> = core.serialization.undiscriminatedUnion([CollectionAccessLevelEnum, core.serialization.string()]); - -export declare namespace CollectionAccessLevel { - export type Raw = CollectionAccessLevelEnum.Raw | string; -} diff --git a/src/serialization/resources/ticketing/types/CollectionAccessLevelEnum.ts b/src/serialization/resources/ticketing/types/CollectionAccessLevelEnum.ts deleted file mode 100644 index 74723d460..000000000 --- a/src/serialization/resources/ticketing/types/CollectionAccessLevelEnum.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 CollectionAccessLevelEnum: core.serialization.Schema< - serializers.ticketing.CollectionAccessLevelEnum.Raw, - Merge.ticketing.CollectionAccessLevelEnum -> = core.serialization.enum_(["PRIVATE", "COMPANY", "PUBLIC", "PARENT_COLLECTION"]); - -export declare namespace CollectionAccessLevelEnum { - export type Raw = "PRIVATE" | "COMPANY" | "PUBLIC" | "PARENT_COLLECTION"; -} 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/CollectionParentCollection.ts b/src/serialization/resources/ticketing/types/CollectionParentCollection.ts deleted file mode 100644 index 2b35c5d70..000000000 --- a/src/serialization/resources/ticketing/types/CollectionParentCollection.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const CollectionParentCollection: core.serialization.Schema< - serializers.ticketing.CollectionParentCollection.Raw, - Merge.ticketing.CollectionParentCollection -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.ticketing.Collection), -]); - -export declare namespace CollectionParentCollection { - export type Raw = string | serializers.ticketing.Collection.Raw; -} diff --git a/src/serialization/resources/ticketing/types/CollectionTypeEnum.ts b/src/serialization/resources/ticketing/types/CollectionTypeEnum.ts deleted file mode 100644 index ca230e14a..000000000 --- a/src/serialization/resources/ticketing/types/CollectionTypeEnum.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 CollectionTypeEnum: core.serialization.Schema< - serializers.ticketing.CollectionTypeEnum.Raw, - Merge.ticketing.CollectionTypeEnum -> = core.serialization.enum_(["LIST", "PROJECT"]); - -export declare namespace CollectionTypeEnum { - export type Raw = "LIST" | "PROJECT"; -} diff --git a/src/serialization/resources/ticketing/types/Comment.ts b/src/serialization/resources/ticketing/types/Comment.ts deleted file mode 100644 index 0c67cd08d..000000000 --- a/src/serialization/resources/ticketing/types/Comment.ts +++ /dev/null @@ -1,49 +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 { CommentContact } from "./CommentContact"; -import { CommentTicket } from "./CommentTicket"; -import { CommentUser } from "./CommentUser"; -import { RemoteData } from "./RemoteData"; - -export const Comment: core.serialization.ObjectSchema = - 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()), - user: CommentUser.optional(), - contact: CommentContact.optional(), - body: core.serialization.string().optional(), - htmlBody: core.serialization.property("html_body", core.serialization.string().optional()), - ticket: CommentTicket.optional(), - isPrivate: core.serialization.property("is_private", core.serialization.boolean().optional()), - remoteCreatedAt: core.serialization.property("remote_created_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()), - }); - -export declare namespace Comment { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - user?: CommentUser.Raw | null; - contact?: CommentContact.Raw | null; - body?: string | null; - html_body?: string | null; - ticket?: CommentTicket.Raw | null; - is_private?: boolean | null; - remote_created_at?: string | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/CommentContact.ts b/src/serialization/resources/ticketing/types/CommentContact.ts deleted file mode 100644 index 7c3b205ac..000000000 --- a/src/serialization/resources/ticketing/types/CommentContact.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 { Contact } from "./Contact"; - -export const CommentContact: core.serialization.Schema< - serializers.ticketing.CommentContact.Raw, - Merge.ticketing.CommentContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace CommentContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/ticketing/types/CommentRequest.ts b/src/serialization/resources/ticketing/types/CommentRequest.ts deleted file mode 100644 index b7ba06828..000000000 --- a/src/serialization/resources/ticketing/types/CommentRequest.ts +++ /dev/null @@ -1,41 +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 { CommentRequestContact } from "./CommentRequestContact"; -import { CommentRequestTicket } from "./CommentRequestTicket"; -import { CommentRequestUser } from "./CommentRequestUser"; - -export const CommentRequest: core.serialization.ObjectSchema< - serializers.ticketing.CommentRequest.Raw, - Merge.ticketing.CommentRequest -> = core.serialization.object({ - user: CommentRequestUser.optional(), - contact: CommentRequestContact.optional(), - body: core.serialization.string().optional(), - htmlBody: core.serialization.property("html_body", core.serialization.string().optional()), - ticket: CommentRequestTicket.optional(), - isPrivate: core.serialization.property("is_private", core.serialization.boolean().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 CommentRequest { - export interface Raw { - user?: CommentRequestUser.Raw | null; - contact?: CommentRequestContact.Raw | null; - body?: string | null; - html_body?: string | null; - ticket?: CommentRequestTicket.Raw | null; - is_private?: boolean | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/ticketing/types/CommentRequestContact.ts b/src/serialization/resources/ticketing/types/CommentRequestContact.ts deleted file mode 100644 index 0bad24668..000000000 --- a/src/serialization/resources/ticketing/types/CommentRequestContact.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 { Contact } from "./Contact"; - -export const CommentRequestContact: core.serialization.Schema< - serializers.ticketing.CommentRequestContact.Raw, - Merge.ticketing.CommentRequestContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace CommentRequestContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/ticketing/types/CommentRequestTicket.ts b/src/serialization/resources/ticketing/types/CommentRequestTicket.ts deleted file mode 100644 index b3d3ca0ac..000000000 --- a/src/serialization/resources/ticketing/types/CommentRequestTicket.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const CommentRequestTicket: core.serialization.Schema< - serializers.ticketing.CommentRequestTicket.Raw, - Merge.ticketing.CommentRequestTicket -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.ticketing.Ticket), -]); - -export declare namespace CommentRequestTicket { - export type Raw = string | serializers.ticketing.Ticket.Raw; -} diff --git a/src/serialization/resources/ticketing/types/CommentRequestUser.ts b/src/serialization/resources/ticketing/types/CommentRequestUser.ts deleted file mode 100644 index 1051b9462..000000000 --- a/src/serialization/resources/ticketing/types/CommentRequestUser.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 { User } from "./User"; - -export const CommentRequestUser: core.serialization.Schema< - serializers.ticketing.CommentRequestUser.Raw, - Merge.ticketing.CommentRequestUser -> = core.serialization.undiscriminatedUnion([core.serialization.string(), User]); - -export declare namespace CommentRequestUser { - export type Raw = string | User.Raw; -} diff --git a/src/serialization/resources/ticketing/types/CommentResponse.ts b/src/serialization/resources/ticketing/types/CommentResponse.ts deleted file mode 100644 index ea8064a56..000000000 --- a/src/serialization/resources/ticketing/types/CommentResponse.ts +++ /dev/null @@ -1,28 +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 { Comment } from "./Comment"; -import { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const CommentResponse: core.serialization.ObjectSchema< - serializers.ticketing.CommentResponse.Raw, - Merge.ticketing.CommentResponse -> = core.serialization.object({ - model: Comment, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace CommentResponse { - export interface Raw { - model: Comment.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/CommentTicket.ts b/src/serialization/resources/ticketing/types/CommentTicket.ts deleted file mode 100644 index 49bea5c11..000000000 --- a/src/serialization/resources/ticketing/types/CommentTicket.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const CommentTicket: core.serialization.Schema< - serializers.ticketing.CommentTicket.Raw, - Merge.ticketing.CommentTicket -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.ticketing.Ticket), -]); - -export declare namespace CommentTicket { - export type Raw = string | serializers.ticketing.Ticket.Raw; -} diff --git a/src/serialization/resources/ticketing/types/CommentUser.ts b/src/serialization/resources/ticketing/types/CommentUser.ts deleted file mode 100644 index f40935f74..000000000 --- a/src/serialization/resources/ticketing/types/CommentUser.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 { User } from "./User"; - -export const CommentUser: core.serialization.Schema< - serializers.ticketing.CommentUser.Raw, - Merge.ticketing.CommentUser -> = core.serialization.undiscriminatedUnion([core.serialization.string(), User]); - -export declare namespace CommentUser { - export type Raw = string | User.Raw; -} diff --git a/src/serialization/resources/ticketing/types/CommonModelScopeApi.ts b/src/serialization/resources/ticketing/types/CommonModelScopeApi.ts deleted file mode 100644 index 548cc37a9..000000000 --- a/src/serialization/resources/ticketing/types/CommonModelScopeApi.ts +++ /dev/null @@ -1,22 +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 { IndividualCommonModelScopeDeserializer } from "./IndividualCommonModelScopeDeserializer"; - -export const CommonModelScopeApi: core.serialization.ObjectSchema< - serializers.ticketing.CommonModelScopeApi.Raw, - Merge.ticketing.CommonModelScopeApi -> = core.serialization.object({ - commonModels: core.serialization.property( - "common_models", - core.serialization.list(IndividualCommonModelScopeDeserializer), - ), -}); - -export declare namespace CommonModelScopeApi { - export interface Raw { - common_models: IndividualCommonModelScopeDeserializer.Raw[]; - } -} diff --git a/src/serialization/resources/ticketing/types/CommonModelScopesBodyRequest.ts b/src/serialization/resources/ticketing/types/CommonModelScopesBodyRequest.ts deleted file mode 100644 index 457c50522..000000000 --- a/src/serialization/resources/ticketing/types/CommonModelScopesBodyRequest.ts +++ /dev/null @@ -1,26 +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 { EnabledActionsEnum } from "./EnabledActionsEnum"; - -export const CommonModelScopesBodyRequest: core.serialization.ObjectSchema< - serializers.ticketing.CommonModelScopesBodyRequest.Raw, - Merge.ticketing.CommonModelScopesBodyRequest -> = core.serialization.object({ - modelId: core.serialization.property("model_id", core.serialization.string()), - enabledActions: core.serialization.property("enabled_actions", core.serialization.list(EnabledActionsEnum)), - disabledFields: core.serialization.property( - "disabled_fields", - core.serialization.list(core.serialization.string()), - ), -}); - -export declare namespace CommonModelScopesBodyRequest { - export interface Raw { - model_id: string; - enabled_actions: EnabledActionsEnum.Raw[]; - disabled_fields: string[]; - } -} diff --git a/src/serialization/resources/ticketing/types/CompletedAccountInitialScreenEnum.ts b/src/serialization/resources/ticketing/types/CompletedAccountInitialScreenEnum.ts deleted file mode 100644 index 026241e70..000000000 --- a/src/serialization/resources/ticketing/types/CompletedAccountInitialScreenEnum.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; - -export const CompletedAccountInitialScreenEnum: core.serialization.Schema< - serializers.ticketing.CompletedAccountInitialScreenEnum.Raw, - Merge.ticketing.CompletedAccountInitialScreenEnum -> = core.serialization.stringLiteral("SELECTIVE_SYNC"); - -export declare namespace CompletedAccountInitialScreenEnum { - export type Raw = "SELECTIVE_SYNC"; -} diff --git a/src/serialization/resources/ticketing/types/Contact.ts b/src/serialization/resources/ticketing/types/Contact.ts deleted file mode 100644 index 469a98d16..000000000 --- a/src/serialization/resources/ticketing/types/Contact.ts +++ /dev/null @@ -1,43 +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 { ContactAccount } from "./ContactAccount"; -import { RemoteData } from "./RemoteData"; - -export const Contact: core.serialization.ObjectSchema = - 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()), - name: core.serialization.string().optional(), - emailAddress: core.serialization.property("email_address", core.serialization.string().optional()), - phoneNumber: core.serialization.property("phone_number", core.serialization.string().optional()), - details: core.serialization.string().optional(), - account: ContactAccount.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()), - }); - -export declare namespace Contact { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - email_address?: string | null; - phone_number?: string | null; - details?: string | null; - account?: ContactAccount.Raw | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/ContactAccount.ts b/src/serialization/resources/ticketing/types/ContactAccount.ts deleted file mode 100644 index cc179ff59..000000000 --- a/src/serialization/resources/ticketing/types/ContactAccount.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 ContactAccount: core.serialization.Schema< - serializers.ticketing.ContactAccount.Raw, - Merge.ticketing.ContactAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace ContactAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/ticketing/types/ContactRequest.ts b/src/serialization/resources/ticketing/types/ContactRequest.ts deleted file mode 100644 index 0d01f97d0..000000000 --- a/src/serialization/resources/ticketing/types/ContactRequest.ts +++ /dev/null @@ -1,37 +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 { ContactRequestAccount } from "./ContactRequestAccount"; - -export const ContactRequest: core.serialization.ObjectSchema< - serializers.ticketing.ContactRequest.Raw, - Merge.ticketing.ContactRequest -> = core.serialization.object({ - name: core.serialization.string().optional(), - emailAddress: core.serialization.property("email_address", core.serialization.string().optional()), - phoneNumber: core.serialization.property("phone_number", core.serialization.string().optional()), - details: core.serialization.string().optional(), - account: ContactRequestAccount.optional(), - integrationParams: core.serialization.property( - "integration_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - linkedAccountParams: core.serialization.property( - "linked_account_params", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), -}); - -export declare namespace ContactRequest { - export interface Raw { - name?: string | null; - email_address?: string | null; - phone_number?: string | null; - details?: string | null; - account?: ContactRequestAccount.Raw | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - } -} diff --git a/src/serialization/resources/ticketing/types/ContactRequestAccount.ts b/src/serialization/resources/ticketing/types/ContactRequestAccount.ts deleted file mode 100644 index c697ce3cf..000000000 --- a/src/serialization/resources/ticketing/types/ContactRequestAccount.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 ContactRequestAccount: core.serialization.Schema< - serializers.ticketing.ContactRequestAccount.Raw, - Merge.ticketing.ContactRequestAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace ContactRequestAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/ticketing/types/DataPassthroughRequest.ts b/src/serialization/resources/ticketing/types/DataPassthroughRequest.ts deleted file mode 100644 index c2a72615d..000000000 --- a/src/serialization/resources/ticketing/types/DataPassthroughRequest.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { MethodEnum } from "./MethodEnum"; -import { MultipartFormFieldRequest } from "./MultipartFormFieldRequest"; -import { RequestFormatEnum } from "./RequestFormatEnum"; - -export const DataPassthroughRequest: core.serialization.ObjectSchema< - serializers.ticketing.DataPassthroughRequest.Raw, - Merge.ticketing.DataPassthroughRequest -> = core.serialization.object({ - method: MethodEnum, - path: core.serialization.string(), - baseUrlOverride: core.serialization.property("base_url_override", core.serialization.string().optional()), - data: core.serialization.string().optional(), - multipartFormData: core.serialization.property( - "multipart_form_data", - core.serialization.list(MultipartFormFieldRequest).optional(), - ), - headers: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - requestFormat: core.serialization.property("request_format", RequestFormatEnum.optional()), - normalizeResponse: core.serialization.property("normalize_response", core.serialization.boolean().optional()), -}); - -export declare namespace DataPassthroughRequest { - export interface Raw { - method: MethodEnum.Raw; - path: string; - base_url_override?: string | null; - data?: string | null; - multipart_form_data?: MultipartFormFieldRequest.Raw[] | null; - headers?: Record | null; - request_format?: RequestFormatEnum.Raw | null; - normalize_response?: boolean | null; - } -} diff --git a/src/serialization/resources/ticketing/types/DebugModeLog.ts b/src/serialization/resources/ticketing/types/DebugModeLog.ts deleted file mode 100644 index 352cfefae..000000000 --- a/src/serialization/resources/ticketing/types/DebugModeLog.ts +++ /dev/null @@ -1,23 +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 { DebugModelLogSummary } from "./DebugModelLogSummary"; - -export const DebugModeLog: core.serialization.ObjectSchema< - serializers.ticketing.DebugModeLog.Raw, - Merge.ticketing.DebugModeLog -> = core.serialization.object({ - logId: core.serialization.property("log_id", core.serialization.string()), - dashboardView: core.serialization.property("dashboard_view", core.serialization.string()), - logSummary: core.serialization.property("log_summary", DebugModelLogSummary), -}); - -export declare namespace DebugModeLog { - export interface Raw { - log_id: string; - dashboard_view: string; - log_summary: DebugModelLogSummary.Raw; - } -} diff --git a/src/serialization/resources/ticketing/types/DebugModelLogSummary.ts b/src/serialization/resources/ticketing/types/DebugModelLogSummary.ts deleted file mode 100644 index d40e2ac33..000000000 --- a/src/serialization/resources/ticketing/types/DebugModelLogSummary.ts +++ /dev/null @@ -1,22 +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 DebugModelLogSummary: core.serialization.ObjectSchema< - serializers.ticketing.DebugModelLogSummary.Raw, - Merge.ticketing.DebugModelLogSummary -> = core.serialization.object({ - url: core.serialization.string(), - method: core.serialization.string(), - statusCode: core.serialization.property("status_code", core.serialization.number()), -}); - -export declare namespace DebugModelLogSummary { - export interface Raw { - url: string; - method: string; - status_code: number; - } -} diff --git a/src/serialization/resources/ticketing/types/EnabledActionsEnum.ts b/src/serialization/resources/ticketing/types/EnabledActionsEnum.ts deleted file mode 100644 index 8806ef56a..000000000 --- a/src/serialization/resources/ticketing/types/EnabledActionsEnum.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 EnabledActionsEnum: core.serialization.Schema< - serializers.ticketing.EnabledActionsEnum.Raw, - Merge.ticketing.EnabledActionsEnum -> = core.serialization.enum_(["READ", "WRITE"]); - -export declare namespace EnabledActionsEnum { - export type Raw = "READ" | "WRITE"; -} diff --git a/src/serialization/resources/ticketing/types/EncodingEnum.ts b/src/serialization/resources/ticketing/types/EncodingEnum.ts deleted file mode 100644 index 90103556d..000000000 --- a/src/serialization/resources/ticketing/types/EncodingEnum.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 EncodingEnum: core.serialization.Schema< - serializers.ticketing.EncodingEnum.Raw, - Merge.ticketing.EncodingEnum -> = core.serialization.enum_(["RAW", "BASE64", "GZIP_BASE64"]); - -export declare namespace EncodingEnum { - export type Raw = "RAW" | "BASE64" | "GZIP_BASE64"; -} diff --git a/src/serialization/resources/ticketing/types/ErrorValidationProblem.ts b/src/serialization/resources/ticketing/types/ErrorValidationProblem.ts deleted file mode 100644 index a1e95e409..000000000 --- a/src/serialization/resources/ticketing/types/ErrorValidationProblem.ts +++ /dev/null @@ -1,25 +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 { ValidationProblemSource } from "./ValidationProblemSource"; - -export const ErrorValidationProblem: core.serialization.ObjectSchema< - serializers.ticketing.ErrorValidationProblem.Raw, - Merge.ticketing.ErrorValidationProblem -> = core.serialization.object({ - source: ValidationProblemSource.optional(), - title: core.serialization.string(), - detail: core.serialization.string(), - problemType: core.serialization.property("problem_type", core.serialization.string()), -}); - -export declare namespace ErrorValidationProblem { - export interface Raw { - source?: ValidationProblemSource.Raw | null; - title: string; - detail: string; - problem_type: string; - } -} diff --git a/src/serialization/resources/ticketing/types/EventTypeEnum.ts b/src/serialization/resources/ticketing/types/EventTypeEnum.ts deleted file mode 100644 index 786174f44..000000000 --- a/src/serialization/resources/ticketing/types/EventTypeEnum.ts +++ /dev/null @@ -1,101 +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 EventTypeEnum: core.serialization.Schema< - serializers.ticketing.EventTypeEnum.Raw, - Merge.ticketing.EventTypeEnum -> = core.serialization.enum_([ - "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", -]); - -export declare namespace EventTypeEnum { - export type Raw = - | "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"; -} diff --git a/src/serialization/resources/ticketing/types/ExternalTargetFieldApi.ts b/src/serialization/resources/ticketing/types/ExternalTargetFieldApi.ts deleted file mode 100644 index 8b22a74dd..000000000 --- a/src/serialization/resources/ticketing/types/ExternalTargetFieldApi.ts +++ /dev/null @@ -1,22 +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 ExternalTargetFieldApi: core.serialization.ObjectSchema< - serializers.ticketing.ExternalTargetFieldApi.Raw, - Merge.ticketing.ExternalTargetFieldApi -> = core.serialization.object({ - name: core.serialization.string().optional(), - description: core.serialization.string().optional(), - isMapped: core.serialization.property("is_mapped", core.serialization.string().optional()), -}); - -export declare namespace ExternalTargetFieldApi { - export interface Raw { - name?: string | null; - description?: string | null; - is_mapped?: string | null; - } -} diff --git a/src/serialization/resources/ticketing/types/ExternalTargetFieldApiResponse.ts b/src/serialization/resources/ticketing/types/ExternalTargetFieldApiResponse.ts deleted file mode 100644 index 5bf633f1f..000000000 --- a/src/serialization/resources/ticketing/types/ExternalTargetFieldApiResponse.ts +++ /dev/null @@ -1,39 +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 { ExternalTargetFieldApi } from "./ExternalTargetFieldApi"; - -export const ExternalTargetFieldApiResponse: core.serialization.ObjectSchema< - serializers.ticketing.ExternalTargetFieldApiResponse.Raw, - Merge.ticketing.ExternalTargetFieldApiResponse -> = core.serialization.object({ - ticket: core.serialization.property("Ticket", core.serialization.list(ExternalTargetFieldApi).optional()), - comment: core.serialization.property("Comment", core.serialization.list(ExternalTargetFieldApi).optional()), - project: core.serialization.property("Project", core.serialization.list(ExternalTargetFieldApi).optional()), - collection: core.serialization.property("Collection", core.serialization.list(ExternalTargetFieldApi).optional()), - user: core.serialization.property("User", core.serialization.list(ExternalTargetFieldApi).optional()), - role: core.serialization.property("Role", core.serialization.list(ExternalTargetFieldApi).optional()), - account: core.serialization.property("Account", core.serialization.list(ExternalTargetFieldApi).optional()), - team: core.serialization.property("Team", core.serialization.list(ExternalTargetFieldApi).optional()), - attachment: core.serialization.property("Attachment", core.serialization.list(ExternalTargetFieldApi).optional()), - tag: core.serialization.property("Tag", core.serialization.list(ExternalTargetFieldApi).optional()), - contact: core.serialization.property("Contact", core.serialization.list(ExternalTargetFieldApi).optional()), -}); - -export declare namespace ExternalTargetFieldApiResponse { - export interface Raw { - Ticket?: ExternalTargetFieldApi.Raw[] | null; - Comment?: ExternalTargetFieldApi.Raw[] | null; - Project?: ExternalTargetFieldApi.Raw[] | null; - Collection?: ExternalTargetFieldApi.Raw[] | null; - User?: ExternalTargetFieldApi.Raw[] | null; - Role?: ExternalTargetFieldApi.Raw[] | null; - Account?: ExternalTargetFieldApi.Raw[] | null; - Team?: ExternalTargetFieldApi.Raw[] | null; - Attachment?: ExternalTargetFieldApi.Raw[] | null; - Tag?: ExternalTargetFieldApi.Raw[] | null; - Contact?: ExternalTargetFieldApi.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/FieldFormatEnum.ts b/src/serialization/resources/ticketing/types/FieldFormatEnum.ts deleted file mode 100644 index 489c49b78..000000000 --- a/src/serialization/resources/ticketing/types/FieldFormatEnum.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 FieldFormatEnum: core.serialization.Schema< - serializers.ticketing.FieldFormatEnum.Raw, - Merge.ticketing.FieldFormatEnum -> = core.serialization.enum_(["string", "number", "date", "datetime", "bool", "list"]); - -export declare namespace FieldFormatEnum { - export type Raw = "string" | "number" | "date" | "datetime" | "bool" | "list"; -} diff --git a/src/serialization/resources/ticketing/types/FieldMappingApiInstance.ts b/src/serialization/resources/ticketing/types/FieldMappingApiInstance.ts deleted file mode 100644 index 7825a2692..000000000 --- a/src/serialization/resources/ticketing/types/FieldMappingApiInstance.ts +++ /dev/null @@ -1,28 +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 { FieldMappingApiInstanceRemoteField } from "./FieldMappingApiInstanceRemoteField"; -import { FieldMappingApiInstanceTargetField } from "./FieldMappingApiInstanceTargetField"; - -export const FieldMappingApiInstance: core.serialization.ObjectSchema< - serializers.ticketing.FieldMappingApiInstance.Raw, - Merge.ticketing.FieldMappingApiInstance -> = core.serialization.object({ - id: core.serialization.string().optional(), - 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 { - export interface Raw { - id?: string | null; - 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/ticketing/types/FieldMappingApiInstanceRemoteField.ts b/src/serialization/resources/ticketing/types/FieldMappingApiInstanceRemoteField.ts deleted file mode 100644 index 74a381840..000000000 --- a/src/serialization/resources/ticketing/types/FieldMappingApiInstanceRemoteField.ts +++ /dev/null @@ -1,26 +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 { FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo } from "./FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo"; - -export const FieldMappingApiInstanceRemoteField: core.serialization.ObjectSchema< - serializers.ticketing.FieldMappingApiInstanceRemoteField.Raw, - Merge.ticketing.FieldMappingApiInstanceRemoteField -> = core.serialization.object({ - remoteKeyName: core.serialization.property("remote_key_name", core.serialization.string().optional()), - schema: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - remoteEndpointInfo: core.serialization.property( - "remote_endpoint_info", - FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo, - ), -}); - -export declare namespace FieldMappingApiInstanceRemoteField { - export interface Raw { - remote_key_name?: string | null; - schema?: Record | null; - remote_endpoint_info: FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.Raw; - } -} diff --git a/src/serialization/resources/ticketing/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts b/src/serialization/resources/ticketing/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts deleted file mode 100644 index d19a7fa1f..000000000 --- a/src/serialization/resources/ticketing/types/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.ts +++ /dev/null @@ -1,25 +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 FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo: core.serialization.ObjectSchema< - serializers.ticketing.FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.Raw, - Merge.ticketing.FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo -> = core.serialization.object({ - method: core.serialization.string().optional(), - urlPath: core.serialization.property("url_path", core.serialization.string().optional()), - fieldTraversalPath: core.serialization.property( - "field_traversal_path", - core.serialization.list(core.serialization.string()).optional(), - ), -}); - -export declare namespace FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo { - export interface Raw { - method?: string | null; - url_path?: string | null; - field_traversal_path?: string[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/FieldMappingApiInstanceResponse.ts b/src/serialization/resources/ticketing/types/FieldMappingApiInstanceResponse.ts deleted file mode 100644 index 5264c46b5..000000000 --- a/src/serialization/resources/ticketing/types/FieldMappingApiInstanceResponse.ts +++ /dev/null @@ -1,39 +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 { FieldMappingApiInstance } from "./FieldMappingApiInstance"; - -export const FieldMappingApiInstanceResponse: core.serialization.ObjectSchema< - serializers.ticketing.FieldMappingApiInstanceResponse.Raw, - Merge.ticketing.FieldMappingApiInstanceResponse -> = core.serialization.object({ - ticket: core.serialization.property("Ticket", core.serialization.list(FieldMappingApiInstance).optional()), - comment: core.serialization.property("Comment", core.serialization.list(FieldMappingApiInstance).optional()), - project: core.serialization.property("Project", core.serialization.list(FieldMappingApiInstance).optional()), - collection: core.serialization.property("Collection", core.serialization.list(FieldMappingApiInstance).optional()), - user: core.serialization.property("User", core.serialization.list(FieldMappingApiInstance).optional()), - role: core.serialization.property("Role", core.serialization.list(FieldMappingApiInstance).optional()), - account: core.serialization.property("Account", core.serialization.list(FieldMappingApiInstance).optional()), - team: core.serialization.property("Team", core.serialization.list(FieldMappingApiInstance).optional()), - attachment: core.serialization.property("Attachment", core.serialization.list(FieldMappingApiInstance).optional()), - tag: core.serialization.property("Tag", core.serialization.list(FieldMappingApiInstance).optional()), - contact: core.serialization.property("Contact", core.serialization.list(FieldMappingApiInstance).optional()), -}); - -export declare namespace FieldMappingApiInstanceResponse { - export interface Raw { - Ticket?: FieldMappingApiInstance.Raw[] | null; - Comment?: FieldMappingApiInstance.Raw[] | null; - Project?: FieldMappingApiInstance.Raw[] | null; - Collection?: FieldMappingApiInstance.Raw[] | null; - User?: FieldMappingApiInstance.Raw[] | null; - Role?: FieldMappingApiInstance.Raw[] | null; - Account?: FieldMappingApiInstance.Raw[] | null; - Team?: FieldMappingApiInstance.Raw[] | null; - Attachment?: FieldMappingApiInstance.Raw[] | null; - Tag?: FieldMappingApiInstance.Raw[] | null; - Contact?: FieldMappingApiInstance.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/FieldMappingApiInstanceTargetField.ts b/src/serialization/resources/ticketing/types/FieldMappingApiInstanceTargetField.ts deleted file mode 100644 index 992c75c86..000000000 --- a/src/serialization/resources/ticketing/types/FieldMappingApiInstanceTargetField.ts +++ /dev/null @@ -1,22 +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 FieldMappingApiInstanceTargetField: core.serialization.ObjectSchema< - serializers.ticketing.FieldMappingApiInstanceTargetField.Raw, - Merge.ticketing.FieldMappingApiInstanceTargetField -> = core.serialization.object({ - name: core.serialization.string(), - description: core.serialization.string(), - isOrganizationWide: core.serialization.property("is_organization_wide", core.serialization.boolean()), -}); - -export declare namespace FieldMappingApiInstanceTargetField { - export interface Raw { - name: string; - description: string; - is_organization_wide: boolean; - } -} diff --git a/src/serialization/resources/ticketing/types/FieldMappingInstanceResponse.ts b/src/serialization/resources/ticketing/types/FieldMappingInstanceResponse.ts deleted file mode 100644 index 77c337428..000000000 --- a/src/serialization/resources/ticketing/types/FieldMappingInstanceResponse.ts +++ /dev/null @@ -1,28 +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 { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { FieldMappingApiInstance } from "./FieldMappingApiInstance"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const FieldMappingInstanceResponse: core.serialization.ObjectSchema< - serializers.ticketing.FieldMappingInstanceResponse.Raw, - Merge.ticketing.FieldMappingInstanceResponse -> = core.serialization.object({ - model: FieldMappingApiInstance, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace FieldMappingInstanceResponse { - export interface Raw { - model: FieldMappingApiInstance.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/FieldPermissionDeserializer.ts b/src/serialization/resources/ticketing/types/FieldPermissionDeserializer.ts deleted file mode 100644 index 19b3f4b33..000000000 --- a/src/serialization/resources/ticketing/types/FieldPermissionDeserializer.ts +++ /dev/null @@ -1,26 +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 FieldPermissionDeserializer: core.serialization.ObjectSchema< - serializers.ticketing.FieldPermissionDeserializer.Raw, - Merge.ticketing.FieldPermissionDeserializer -> = core.serialization.object({ - enabledFields: core.serialization.property( - "enabled_fields", - core.serialization.list(core.serialization.unknown()).optional(), - ), - disabledFields: core.serialization.property( - "disabled_fields", - core.serialization.list(core.serialization.unknown()).optional(), - ), -}); - -export declare namespace FieldPermissionDeserializer { - export interface Raw { - enabled_fields?: unknown[] | null; - disabled_fields?: unknown[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/FieldPermissionDeserializerRequest.ts b/src/serialization/resources/ticketing/types/FieldPermissionDeserializerRequest.ts deleted file mode 100644 index 6a538c236..000000000 --- a/src/serialization/resources/ticketing/types/FieldPermissionDeserializerRequest.ts +++ /dev/null @@ -1,26 +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 FieldPermissionDeserializerRequest: core.serialization.ObjectSchema< - serializers.ticketing.FieldPermissionDeserializerRequest.Raw, - Merge.ticketing.FieldPermissionDeserializerRequest -> = core.serialization.object({ - enabledFields: core.serialization.property( - "enabled_fields", - core.serialization.list(core.serialization.unknown()).optional(), - ), - disabledFields: core.serialization.property( - "disabled_fields", - core.serialization.list(core.serialization.unknown()).optional(), - ), -}); - -export declare namespace FieldPermissionDeserializerRequest { - export interface Raw { - enabled_fields?: unknown[] | null; - disabled_fields?: unknown[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/FieldTypeEnum.ts b/src/serialization/resources/ticketing/types/FieldTypeEnum.ts deleted file mode 100644 index 0ab8beaec..000000000 --- a/src/serialization/resources/ticketing/types/FieldTypeEnum.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 FieldTypeEnum: core.serialization.Schema< - serializers.ticketing.FieldTypeEnum.Raw, - Merge.ticketing.FieldTypeEnum -> = core.serialization.enum_(["string", "number", "date", "datetime", "bool", "list"]); - -export declare namespace FieldTypeEnum { - export type Raw = "string" | "number" | "date" | "datetime" | "bool" | "list"; -} diff --git a/src/serialization/resources/ticketing/types/IndividualCommonModelScopeDeserializer.ts b/src/serialization/resources/ticketing/types/IndividualCommonModelScopeDeserializer.ts deleted file mode 100644 index 4d80fd24f..000000000 --- a/src/serialization/resources/ticketing/types/IndividualCommonModelScopeDeserializer.ts +++ /dev/null @@ -1,27 +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 { FieldPermissionDeserializer } from "./FieldPermissionDeserializer"; -import { ModelPermissionDeserializer } from "./ModelPermissionDeserializer"; - -export const IndividualCommonModelScopeDeserializer: core.serialization.ObjectSchema< - serializers.ticketing.IndividualCommonModelScopeDeserializer.Raw, - Merge.ticketing.IndividualCommonModelScopeDeserializer -> = core.serialization.object({ - modelName: core.serialization.property("model_name", core.serialization.string()), - modelPermissions: core.serialization.property( - "model_permissions", - core.serialization.record(core.serialization.string(), ModelPermissionDeserializer).optional(), - ), - fieldPermissions: core.serialization.property("field_permissions", FieldPermissionDeserializer.optional()), -}); - -export declare namespace IndividualCommonModelScopeDeserializer { - export interface Raw { - model_name: string; - model_permissions?: Record | null; - field_permissions?: FieldPermissionDeserializer.Raw | null; - } -} diff --git a/src/serialization/resources/ticketing/types/IndividualCommonModelScopeDeserializerRequest.ts b/src/serialization/resources/ticketing/types/IndividualCommonModelScopeDeserializerRequest.ts deleted file mode 100644 index df67b0ec1..000000000 --- a/src/serialization/resources/ticketing/types/IndividualCommonModelScopeDeserializerRequest.ts +++ /dev/null @@ -1,27 +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 { FieldPermissionDeserializerRequest } from "./FieldPermissionDeserializerRequest"; -import { ModelPermissionDeserializerRequest } from "./ModelPermissionDeserializerRequest"; - -export const IndividualCommonModelScopeDeserializerRequest: core.serialization.ObjectSchema< - serializers.ticketing.IndividualCommonModelScopeDeserializerRequest.Raw, - Merge.ticketing.IndividualCommonModelScopeDeserializerRequest -> = core.serialization.object({ - modelName: core.serialization.property("model_name", core.serialization.string()), - modelPermissions: core.serialization.property( - "model_permissions", - core.serialization.record(core.serialization.string(), ModelPermissionDeserializerRequest).optional(), - ), - fieldPermissions: core.serialization.property("field_permissions", FieldPermissionDeserializerRequest.optional()), -}); - -export declare namespace IndividualCommonModelScopeDeserializerRequest { - export interface Raw { - model_name: string; - model_permissions?: Record | null; - field_permissions?: FieldPermissionDeserializerRequest.Raw | null; - } -} diff --git a/src/serialization/resources/ticketing/types/Issue.ts b/src/serialization/resources/ticketing/types/Issue.ts deleted file mode 100644 index ea0999dcb..000000000 --- a/src/serialization/resources/ticketing/types/Issue.ts +++ /dev/null @@ -1,37 +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 { IssueStatus } from "./IssueStatus"; - -export const Issue: core.serialization.ObjectSchema = - core.serialization.object({ - id: core.serialization.string().optional(), - status: IssueStatus.optional(), - errorDescription: core.serialization.property("error_description", core.serialization.string()), - endUser: core.serialization.property( - "end_user", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - firstIncidentTime: core.serialization.property("first_incident_time", core.serialization.date().optional()), - lastIncidentTime: core.serialization.property("last_incident_time", core.serialization.date().optional()), - isMuted: core.serialization.property("is_muted", core.serialization.boolean().optional()), - errorDetails: core.serialization.property( - "error_details", - core.serialization.list(core.serialization.string()).optional(), - ), - }); - -export declare namespace Issue { - export interface Raw { - id?: string | null; - status?: IssueStatus.Raw | null; - error_description: string; - end_user?: Record | null; - first_incident_time?: string | null; - last_incident_time?: string | null; - is_muted?: boolean | null; - error_details?: string[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/IssueStatus.ts b/src/serialization/resources/ticketing/types/IssueStatus.ts deleted file mode 100644 index 06e942faf..000000000 --- a/src/serialization/resources/ticketing/types/IssueStatus.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 { IssueStatusEnum } from "./IssueStatusEnum"; - -export const IssueStatus: core.serialization.Schema< - serializers.ticketing.IssueStatus.Raw, - Merge.ticketing.IssueStatus -> = core.serialization.undiscriminatedUnion([IssueStatusEnum, core.serialization.string()]); - -export declare namespace IssueStatus { - export type Raw = IssueStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/ticketing/types/IssueStatusEnum.ts b/src/serialization/resources/ticketing/types/IssueStatusEnum.ts deleted file mode 100644 index 5973558e4..000000000 --- a/src/serialization/resources/ticketing/types/IssueStatusEnum.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 IssueStatusEnum: core.serialization.Schema< - serializers.ticketing.IssueStatusEnum.Raw, - Merge.ticketing.IssueStatusEnum -> = core.serialization.enum_(["ONGOING", "RESOLVED"]); - -export declare namespace IssueStatusEnum { - export type Raw = "ONGOING" | "RESOLVED"; -} diff --git a/src/serialization/resources/ticketing/types/ItemFormatEnum.ts b/src/serialization/resources/ticketing/types/ItemFormatEnum.ts deleted file mode 100644 index 557ad8a20..000000000 --- a/src/serialization/resources/ticketing/types/ItemFormatEnum.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 ItemFormatEnum: core.serialization.Schema< - serializers.ticketing.ItemFormatEnum.Raw, - Merge.ticketing.ItemFormatEnum -> = core.serialization.enum_(["string", "number", "date", "datetime", "bool", "list"]); - -export declare namespace ItemFormatEnum { - export type Raw = "string" | "number" | "date" | "datetime" | "bool" | "list"; -} diff --git a/src/serialization/resources/ticketing/types/ItemSchema.ts b/src/serialization/resources/ticketing/types/ItemSchema.ts deleted file mode 100644 index 4c20d1e2a..000000000 --- a/src/serialization/resources/ticketing/types/ItemSchema.ts +++ /dev/null @@ -1,27 +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 { ItemFormatEnum } from "./ItemFormatEnum"; -import { ItemTypeEnum } from "./ItemTypeEnum"; - -export const ItemSchema: core.serialization.ObjectSchema< - serializers.ticketing.ItemSchema.Raw, - Merge.ticketing.ItemSchema -> = core.serialization.object({ - itemType: core.serialization.property("item_type", ItemTypeEnum.optional()), - itemFormat: core.serialization.property("item_format", ItemFormatEnum.optional()), - itemChoices: core.serialization.property( - "item_choices", - core.serialization.list(core.serialization.string()).optional(), - ), -}); - -export declare namespace ItemSchema { - export interface Raw { - item_type?: ItemTypeEnum.Raw | null; - item_format?: ItemFormatEnum.Raw | null; - item_choices?: string[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/ItemTypeEnum.ts b/src/serialization/resources/ticketing/types/ItemTypeEnum.ts deleted file mode 100644 index 45b422064..000000000 --- a/src/serialization/resources/ticketing/types/ItemTypeEnum.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 ItemTypeEnum: core.serialization.Schema< - serializers.ticketing.ItemTypeEnum.Raw, - Merge.ticketing.ItemTypeEnum -> = core.serialization.enum_(["string", "number", "date", "datetime", "bool", "list"]); - -export declare namespace ItemTypeEnum { - export type Raw = "string" | "number" | "date" | "datetime" | "bool" | "list"; -} diff --git a/src/serialization/resources/ticketing/types/LanguageEnum.ts b/src/serialization/resources/ticketing/types/LanguageEnum.ts deleted file mode 100644 index 8b11f2914..000000000 --- a/src/serialization/resources/ticketing/types/LanguageEnum.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 LanguageEnum: core.serialization.Schema< - serializers.ticketing.LanguageEnum.Raw, - Merge.ticketing.LanguageEnum -> = core.serialization.enum_(["en", "de"]); - -export declare namespace LanguageEnum { - export type Raw = "en" | "de"; -} diff --git a/src/serialization/resources/ticketing/types/LastSyncResultEnum.ts b/src/serialization/resources/ticketing/types/LastSyncResultEnum.ts deleted file mode 100644 index 67aa77b86..000000000 --- a/src/serialization/resources/ticketing/types/LastSyncResultEnum.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 LastSyncResultEnum: core.serialization.Schema< - serializers.ticketing.LastSyncResultEnum.Raw, - Merge.ticketing.LastSyncResultEnum -> = core.serialization.enum_(["SYNCING", "DONE", "FAILED", "DISABLED", "PAUSED", "PARTIALLY_SYNCED"]); - -export declare namespace LastSyncResultEnum { - export type Raw = "SYNCING" | "DONE" | "FAILED" | "DISABLED" | "PAUSED" | "PARTIALLY_SYNCED"; -} diff --git a/src/serialization/resources/ticketing/types/LinkToken.ts b/src/serialization/resources/ticketing/types/LinkToken.ts deleted file mode 100644 index b70c122e9..000000000 --- a/src/serialization/resources/ticketing/types/LinkToken.ts +++ /dev/null @@ -1,22 +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 LinkToken: core.serialization.ObjectSchema< - serializers.ticketing.LinkToken.Raw, - Merge.ticketing.LinkToken -> = core.serialization.object({ - linkToken: core.serialization.property("link_token", core.serialization.string()), - integrationName: core.serialization.property("integration_name", core.serialization.string().optional()), - magicLinkUrl: core.serialization.property("magic_link_url", core.serialization.string().optional()), -}); - -export declare namespace LinkToken { - export interface Raw { - link_token: string; - integration_name?: string | null; - magic_link_url?: string | null; - } -} diff --git a/src/serialization/resources/ticketing/types/LinkedAccountStatus.ts b/src/serialization/resources/ticketing/types/LinkedAccountStatus.ts deleted file mode 100644 index f855715e2..000000000 --- a/src/serialization/resources/ticketing/types/LinkedAccountStatus.ts +++ /dev/null @@ -1,20 +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 LinkedAccountStatus: core.serialization.ObjectSchema< - serializers.ticketing.LinkedAccountStatus.Raw, - Merge.ticketing.LinkedAccountStatus -> = core.serialization.object({ - linkedAccountStatus: core.serialization.property("linked_account_status", core.serialization.string()), - canMakeRequest: core.serialization.property("can_make_request", core.serialization.boolean()), -}); - -export declare namespace LinkedAccountStatus { - export interface Raw { - linked_account_status: string; - can_make_request: boolean; - } -} diff --git a/src/serialization/resources/ticketing/types/MetaResponse.ts b/src/serialization/resources/ticketing/types/MetaResponse.ts deleted file mode 100644 index 50a5c3b8d..000000000 --- a/src/serialization/resources/ticketing/types/MetaResponse.ts +++ /dev/null @@ -1,36 +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 { LinkedAccountStatus } from "./LinkedAccountStatus"; - -export const MetaResponse: core.serialization.ObjectSchema< - serializers.ticketing.MetaResponse.Raw, - Merge.ticketing.MetaResponse -> = core.serialization.object({ - requestSchema: core.serialization.property( - "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(), - ), -}); - -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; - } -} diff --git a/src/serialization/resources/ticketing/types/MethodEnum.ts b/src/serialization/resources/ticketing/types/MethodEnum.ts deleted file mode 100644 index 2c6068aa8..000000000 --- a/src/serialization/resources/ticketing/types/MethodEnum.ts +++ /dev/null @@ -1,12 +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 MethodEnum: core.serialization.Schema = - core.serialization.enum_(["GET", "OPTIONS", "HEAD", "POST", "PUT", "PATCH", "DELETE"]); - -export declare namespace MethodEnum { - export type Raw = "GET" | "OPTIONS" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE"; -} diff --git a/src/serialization/resources/ticketing/types/ModelOperation.ts b/src/serialization/resources/ticketing/types/ModelOperation.ts deleted file mode 100644 index fdac60c6a..000000000 --- a/src/serialization/resources/ticketing/types/ModelOperation.ts +++ /dev/null @@ -1,33 +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 ModelOperation: core.serialization.ObjectSchema< - serializers.ticketing.ModelOperation.Raw, - Merge.ticketing.ModelOperation -> = core.serialization.object({ - modelName: core.serialization.property("model_name", core.serialization.string()), - availableOperations: core.serialization.property( - "available_operations", - core.serialization.list(core.serialization.string()), - ), - requiredPostParameters: core.serialization.property( - "required_post_parameters", - core.serialization.list(core.serialization.string()), - ), - supportedFields: core.serialization.property( - "supported_fields", - core.serialization.list(core.serialization.string()), - ), -}); - -export declare namespace ModelOperation { - export interface Raw { - model_name: string; - available_operations: string[]; - required_post_parameters: string[]; - supported_fields: string[]; - } -} diff --git a/src/serialization/resources/ticketing/types/ModelPermissionDeserializer.ts b/src/serialization/resources/ticketing/types/ModelPermissionDeserializer.ts deleted file mode 100644 index 336daf893..000000000 --- a/src/serialization/resources/ticketing/types/ModelPermissionDeserializer.ts +++ /dev/null @@ -1,18 +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 ModelPermissionDeserializer: core.serialization.ObjectSchema< - serializers.ticketing.ModelPermissionDeserializer.Raw, - Merge.ticketing.ModelPermissionDeserializer -> = core.serialization.object({ - isEnabled: core.serialization.property("is_enabled", core.serialization.boolean().optional()), -}); - -export declare namespace ModelPermissionDeserializer { - export interface Raw { - is_enabled?: boolean | null; - } -} diff --git a/src/serialization/resources/ticketing/types/ModelPermissionDeserializerRequest.ts b/src/serialization/resources/ticketing/types/ModelPermissionDeserializerRequest.ts deleted file mode 100644 index 420803d62..000000000 --- a/src/serialization/resources/ticketing/types/ModelPermissionDeserializerRequest.ts +++ /dev/null @@ -1,18 +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 ModelPermissionDeserializerRequest: core.serialization.ObjectSchema< - serializers.ticketing.ModelPermissionDeserializerRequest.Raw, - Merge.ticketing.ModelPermissionDeserializerRequest -> = core.serialization.object({ - isEnabled: core.serialization.property("is_enabled", core.serialization.boolean().optional()), -}); - -export declare namespace ModelPermissionDeserializerRequest { - export interface Raw { - is_enabled?: boolean | null; - } -} diff --git a/src/serialization/resources/ticketing/types/MultipartFormFieldRequest.ts b/src/serialization/resources/ticketing/types/MultipartFormFieldRequest.ts deleted file mode 100644 index 061d9f068..000000000 --- a/src/serialization/resources/ticketing/types/MultipartFormFieldRequest.ts +++ /dev/null @@ -1,27 +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 { MultipartFormFieldRequestEncoding } from "./MultipartFormFieldRequestEncoding"; - -export const MultipartFormFieldRequest: core.serialization.ObjectSchema< - serializers.ticketing.MultipartFormFieldRequest.Raw, - Merge.ticketing.MultipartFormFieldRequest -> = core.serialization.object({ - name: core.serialization.string(), - data: core.serialization.string(), - encoding: MultipartFormFieldRequestEncoding.optional(), - fileName: core.serialization.property("file_name", core.serialization.string().optional()), - contentType: core.serialization.property("content_type", core.serialization.string().optional()), -}); - -export declare namespace MultipartFormFieldRequest { - export interface Raw { - name: string; - data: string; - encoding?: MultipartFormFieldRequestEncoding.Raw | null; - file_name?: string | null; - content_type?: string | null; - } -} diff --git a/src/serialization/resources/ticketing/types/MultipartFormFieldRequestEncoding.ts b/src/serialization/resources/ticketing/types/MultipartFormFieldRequestEncoding.ts deleted file mode 100644 index 63199581e..000000000 --- a/src/serialization/resources/ticketing/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.ticketing.MultipartFormFieldRequestEncoding.Raw, - Merge.ticketing.MultipartFormFieldRequestEncoding -> = core.serialization.undiscriminatedUnion([EncodingEnum, core.serialization.string()]); - -export declare namespace MultipartFormFieldRequestEncoding { - export type Raw = EncodingEnum.Raw | string; -} diff --git a/src/serialization/resources/ticketing/types/PaginatedAccountDetailsAndActionsList.ts b/src/serialization/resources/ticketing/types/PaginatedAccountDetailsAndActionsList.ts deleted file mode 100644 index 4d7fcdf0b..000000000 --- a/src/serialization/resources/ticketing/types/PaginatedAccountDetailsAndActionsList.ts +++ /dev/null @@ -1,23 +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 { AccountDetailsAndActions } from "./AccountDetailsAndActions"; - -export const PaginatedAccountDetailsAndActionsList: core.serialization.ObjectSchema< - serializers.ticketing.PaginatedAccountDetailsAndActionsList.Raw, - Merge.ticketing.PaginatedAccountDetailsAndActionsList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(AccountDetailsAndActions).optional(), -}); - -export declare namespace PaginatedAccountDetailsAndActionsList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: AccountDetailsAndActions.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/PaginatedAccountList.ts b/src/serialization/resources/ticketing/types/PaginatedAccountList.ts deleted file mode 100644 index 377cdc291..000000000 --- a/src/serialization/resources/ticketing/types/PaginatedAccountList.ts +++ /dev/null @@ -1,23 +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 PaginatedAccountList: core.serialization.ObjectSchema< - serializers.ticketing.PaginatedAccountList.Raw, - Merge.ticketing.PaginatedAccountList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Account).optional(), -}); - -export declare namespace PaginatedAccountList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Account.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/PaginatedAttachmentList.ts b/src/serialization/resources/ticketing/types/PaginatedAttachmentList.ts deleted file mode 100644 index 2c7b7ba72..000000000 --- a/src/serialization/resources/ticketing/types/PaginatedAttachmentList.ts +++ /dev/null @@ -1,22 +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 * as serializers from "../../../index"; - -export const PaginatedAttachmentList: core.serialization.ObjectSchema< - serializers.ticketing.PaginatedAttachmentList.Raw, - Merge.ticketing.PaginatedAttachmentList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(core.serialization.lazyObject(() => serializers.ticketing.Attachment)).optional(), -}); - -export declare namespace PaginatedAttachmentList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: serializers.ticketing.Attachment.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/PaginatedAuditLogEventList.ts b/src/serialization/resources/ticketing/types/PaginatedAuditLogEventList.ts deleted file mode 100644 index ec453d381..000000000 --- a/src/serialization/resources/ticketing/types/PaginatedAuditLogEventList.ts +++ /dev/null @@ -1,23 +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 { AuditLogEvent } from "./AuditLogEvent"; - -export const PaginatedAuditLogEventList: core.serialization.ObjectSchema< - serializers.ticketing.PaginatedAuditLogEventList.Raw, - Merge.ticketing.PaginatedAuditLogEventList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(AuditLogEvent).optional(), -}); - -export declare namespace PaginatedAuditLogEventList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: AuditLogEvent.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/PaginatedCollectionList.ts b/src/serialization/resources/ticketing/types/PaginatedCollectionList.ts deleted file mode 100644 index 2572287b3..000000000 --- a/src/serialization/resources/ticketing/types/PaginatedCollectionList.ts +++ /dev/null @@ -1,22 +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 * as serializers from "../../../index"; - -export const PaginatedCollectionList: core.serialization.ObjectSchema< - serializers.ticketing.PaginatedCollectionList.Raw, - Merge.ticketing.PaginatedCollectionList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(core.serialization.lazyObject(() => serializers.ticketing.Collection)).optional(), -}); - -export declare namespace PaginatedCollectionList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: serializers.ticketing.Collection.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/PaginatedCommentList.ts b/src/serialization/resources/ticketing/types/PaginatedCommentList.ts deleted file mode 100644 index d3440c748..000000000 --- a/src/serialization/resources/ticketing/types/PaginatedCommentList.ts +++ /dev/null @@ -1,23 +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 { Comment } from "./Comment"; - -export const PaginatedCommentList: core.serialization.ObjectSchema< - serializers.ticketing.PaginatedCommentList.Raw, - Merge.ticketing.PaginatedCommentList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Comment).optional(), -}); - -export declare namespace PaginatedCommentList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Comment.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/PaginatedContactList.ts b/src/serialization/resources/ticketing/types/PaginatedContactList.ts deleted file mode 100644 index a1cf2ec97..000000000 --- a/src/serialization/resources/ticketing/types/PaginatedContactList.ts +++ /dev/null @@ -1,23 +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 { Contact } from "./Contact"; - -export const PaginatedContactList: core.serialization.ObjectSchema< - serializers.ticketing.PaginatedContactList.Raw, - Merge.ticketing.PaginatedContactList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Contact).optional(), -}); - -export declare namespace PaginatedContactList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Contact.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/PaginatedIssueList.ts b/src/serialization/resources/ticketing/types/PaginatedIssueList.ts deleted file mode 100644 index 9dad4093d..000000000 --- a/src/serialization/resources/ticketing/types/PaginatedIssueList.ts +++ /dev/null @@ -1,23 +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 { Issue } from "./Issue"; - -export const PaginatedIssueList: core.serialization.ObjectSchema< - serializers.ticketing.PaginatedIssueList.Raw, - Merge.ticketing.PaginatedIssueList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Issue).optional(), -}); - -export declare namespace PaginatedIssueList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Issue.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/PaginatedProjectList.ts b/src/serialization/resources/ticketing/types/PaginatedProjectList.ts deleted file mode 100644 index 1ebe09e0c..000000000 --- a/src/serialization/resources/ticketing/types/PaginatedProjectList.ts +++ /dev/null @@ -1,23 +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 { Project } from "./Project"; - -export const PaginatedProjectList: core.serialization.ObjectSchema< - serializers.ticketing.PaginatedProjectList.Raw, - Merge.ticketing.PaginatedProjectList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Project).optional(), -}); - -export declare namespace PaginatedProjectList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Project.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/PaginatedRemoteFieldClassList.ts b/src/serialization/resources/ticketing/types/PaginatedRemoteFieldClassList.ts deleted file mode 100644 index a00a453e9..000000000 --- a/src/serialization/resources/ticketing/types/PaginatedRemoteFieldClassList.ts +++ /dev/null @@ -1,23 +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 PaginatedRemoteFieldClassList: core.serialization.ObjectSchema< - serializers.ticketing.PaginatedRemoteFieldClassList.Raw, - Merge.ticketing.PaginatedRemoteFieldClassList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(RemoteFieldClass).optional(), -}); - -export declare namespace PaginatedRemoteFieldClassList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: RemoteFieldClass.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/PaginatedRoleList.ts b/src/serialization/resources/ticketing/types/PaginatedRoleList.ts deleted file mode 100644 index aac3719f3..000000000 --- a/src/serialization/resources/ticketing/types/PaginatedRoleList.ts +++ /dev/null @@ -1,23 +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 { Role } from "./Role"; - -export const PaginatedRoleList: core.serialization.ObjectSchema< - serializers.ticketing.PaginatedRoleList.Raw, - Merge.ticketing.PaginatedRoleList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Role).optional(), -}); - -export declare namespace PaginatedRoleList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Role.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/PaginatedSyncStatusList.ts b/src/serialization/resources/ticketing/types/PaginatedSyncStatusList.ts deleted file mode 100644 index 45c2c0c26..000000000 --- a/src/serialization/resources/ticketing/types/PaginatedSyncStatusList.ts +++ /dev/null @@ -1,23 +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 { SyncStatus } from "./SyncStatus"; - -export const PaginatedSyncStatusList: core.serialization.ObjectSchema< - serializers.ticketing.PaginatedSyncStatusList.Raw, - Merge.ticketing.PaginatedSyncStatusList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(SyncStatus).optional(), -}); - -export declare namespace PaginatedSyncStatusList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: SyncStatus.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/PaginatedTagList.ts b/src/serialization/resources/ticketing/types/PaginatedTagList.ts deleted file mode 100644 index 0e2499386..000000000 --- a/src/serialization/resources/ticketing/types/PaginatedTagList.ts +++ /dev/null @@ -1,23 +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 { Tag } from "./Tag"; - -export const PaginatedTagList: core.serialization.ObjectSchema< - serializers.ticketing.PaginatedTagList.Raw, - Merge.ticketing.PaginatedTagList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Tag).optional(), -}); - -export declare namespace PaginatedTagList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Tag.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/PaginatedTeamList.ts b/src/serialization/resources/ticketing/types/PaginatedTeamList.ts deleted file mode 100644 index eaba94961..000000000 --- a/src/serialization/resources/ticketing/types/PaginatedTeamList.ts +++ /dev/null @@ -1,23 +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 { Team } from "./Team"; - -export const PaginatedTeamList: core.serialization.ObjectSchema< - serializers.ticketing.PaginatedTeamList.Raw, - Merge.ticketing.PaginatedTeamList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Team).optional(), -}); - -export declare namespace PaginatedTeamList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Team.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/PaginatedTicketList.ts b/src/serialization/resources/ticketing/types/PaginatedTicketList.ts deleted file mode 100644 index 59d4f50ce..000000000 --- a/src/serialization/resources/ticketing/types/PaginatedTicketList.ts +++ /dev/null @@ -1,22 +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 * as serializers from "../../../index"; - -export const PaginatedTicketList: core.serialization.ObjectSchema< - serializers.ticketing.PaginatedTicketList.Raw, - Merge.ticketing.PaginatedTicketList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(core.serialization.lazyObject(() => serializers.ticketing.Ticket)).optional(), -}); - -export declare namespace PaginatedTicketList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: serializers.ticketing.Ticket.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/PaginatedUserList.ts b/src/serialization/resources/ticketing/types/PaginatedUserList.ts deleted file mode 100644 index 8bbdbb7f4..000000000 --- a/src/serialization/resources/ticketing/types/PaginatedUserList.ts +++ /dev/null @@ -1,23 +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 { User } from "./User"; - -export const PaginatedUserList: core.serialization.ObjectSchema< - serializers.ticketing.PaginatedUserList.Raw, - Merge.ticketing.PaginatedUserList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(User).optional(), -}); - -export declare namespace PaginatedUserList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: User.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/PaginatedViewerList.ts b/src/serialization/resources/ticketing/types/PaginatedViewerList.ts deleted file mode 100644 index 342afbf05..000000000 --- a/src/serialization/resources/ticketing/types/PaginatedViewerList.ts +++ /dev/null @@ -1,23 +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 { Viewer } from "./Viewer"; - -export const PaginatedViewerList: core.serialization.ObjectSchema< - serializers.ticketing.PaginatedViewerList.Raw, - Merge.ticketing.PaginatedViewerList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization.list(Viewer).optional(), -}); - -export declare namespace PaginatedViewerList { - export interface Raw { - next?: string | null; - previous?: string | null; - results?: Viewer.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/PatchedTicketRequest.ts b/src/serialization/resources/ticketing/types/PatchedTicketRequest.ts deleted file mode 100644 index a5da2c8ca..000000000 --- a/src/serialization/resources/ticketing/types/PatchedTicketRequest.ts +++ /dev/null @@ -1,71 +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 { PatchedTicketRequestAccessLevel } from "./PatchedTicketRequestAccessLevel"; -import { PatchedTicketRequestPriority } from "./PatchedTicketRequestPriority"; -import { PatchedTicketRequestStatus } from "./PatchedTicketRequestStatus"; -import { RemoteFieldRequest } from "./RemoteFieldRequest"; - -export const PatchedTicketRequest: core.serialization.ObjectSchema< - serializers.ticketing.PatchedTicketRequest.Raw, - Merge.ticketing.PatchedTicketRequest -> = core.serialization.object({ - name: core.serialization.string().optional(), - assignees: core.serialization.list(core.serialization.string().optional()).optional(), - assignedTeams: core.serialization.property( - "assigned_teams", - core.serialization.list(core.serialization.string().optional()).optional(), - ), - creator: core.serialization.string().optional(), - dueDate: core.serialization.property("due_date", core.serialization.date().optional()), - status: PatchedTicketRequestStatus.optional(), - description: core.serialization.string().optional(), - collections: core.serialization.list(core.serialization.string().optional()).optional(), - ticketType: core.serialization.property("ticket_type", core.serialization.string().optional()), - account: core.serialization.string().optional(), - contact: core.serialization.string().optional(), - parentTicket: core.serialization.property("parent_ticket", core.serialization.string().optional()), - 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()), - 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 PatchedTicketRequest { - export interface Raw { - name?: string | null; - assignees?: (string | null | undefined)[] | null; - assigned_teams?: (string | null | undefined)[] | null; - creator?: string | null; - due_date?: string | null; - status?: PatchedTicketRequestStatus.Raw | null; - description?: string | null; - collections?: (string | null | undefined)[] | null; - ticket_type?: string | null; - account?: string | null; - contact?: string | null; - parent_ticket?: string | null; - 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; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/PatchedTicketRequestAccessLevel.ts b/src/serialization/resources/ticketing/types/PatchedTicketRequestAccessLevel.ts deleted file mode 100644 index af68290f5..000000000 --- a/src/serialization/resources/ticketing/types/PatchedTicketRequestAccessLevel.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 { TicketAccessLevelEnum } from "./TicketAccessLevelEnum"; - -export const PatchedTicketRequestAccessLevel: core.serialization.Schema< - serializers.ticketing.PatchedTicketRequestAccessLevel.Raw, - Merge.ticketing.PatchedTicketRequestAccessLevel -> = core.serialization.undiscriminatedUnion([TicketAccessLevelEnum, core.serialization.string()]); - -export declare namespace PatchedTicketRequestAccessLevel { - export type Raw = TicketAccessLevelEnum.Raw | string; -} 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/PatchedTicketRequestStatus.ts b/src/serialization/resources/ticketing/types/PatchedTicketRequestStatus.ts deleted file mode 100644 index b1220b276..000000000 --- a/src/serialization/resources/ticketing/types/PatchedTicketRequestStatus.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 { TicketStatusEnum } from "./TicketStatusEnum"; - -export const PatchedTicketRequestStatus: core.serialization.Schema< - serializers.ticketing.PatchedTicketRequestStatus.Raw, - Merge.ticketing.PatchedTicketRequestStatus -> = core.serialization.undiscriminatedUnion([TicketStatusEnum, core.serialization.string()]); - -export declare namespace PatchedTicketRequestStatus { - export type Raw = TicketStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/ticketing/types/PriorityEnum.ts b/src/serialization/resources/ticketing/types/PriorityEnum.ts deleted file mode 100644 index 1568251e3..000000000 --- a/src/serialization/resources/ticketing/types/PriorityEnum.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 PriorityEnum: core.serialization.Schema< - serializers.ticketing.PriorityEnum.Raw, - Merge.ticketing.PriorityEnum -> = core.serialization.enum_(["URGENT", "HIGH", "NORMAL", "LOW"]); - -export declare namespace PriorityEnum { - export type Raw = "URGENT" | "HIGH" | "NORMAL" | "LOW"; -} diff --git a/src/serialization/resources/ticketing/types/Project.ts b/src/serialization/resources/ticketing/types/Project.ts deleted file mode 100644 index c8fd507e7..000000000 --- a/src/serialization/resources/ticketing/types/Project.ts +++ /dev/null @@ -1,36 +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 { RemoteData } from "./RemoteData"; - -export const Project: core.serialization.ObjectSchema = - 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()), - name: core.serialization.string().optional(), - description: core.serialization.string().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()), - }); - -export declare namespace Project { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - description?: string | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/RemoteData.ts b/src/serialization/resources/ticketing/types/RemoteData.ts deleted file mode 100644 index 0a4792721..000000000 --- a/src/serialization/resources/ticketing/types/RemoteData.ts +++ /dev/null @@ -1,20 +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 RemoteData: core.serialization.ObjectSchema< - serializers.ticketing.RemoteData.Raw, - Merge.ticketing.RemoteData -> = core.serialization.object({ - path: core.serialization.string(), - data: core.serialization.unknown().optional(), -}); - -export declare namespace RemoteData { - export interface Raw { - path: string; - data?: unknown | null; - } -} diff --git a/src/serialization/resources/ticketing/types/RemoteEndpointInfo.ts b/src/serialization/resources/ticketing/types/RemoteEndpointInfo.ts deleted file mode 100644 index fc4eebe87..000000000 --- a/src/serialization/resources/ticketing/types/RemoteEndpointInfo.ts +++ /dev/null @@ -1,25 +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 RemoteEndpointInfo: core.serialization.ObjectSchema< - serializers.ticketing.RemoteEndpointInfo.Raw, - Merge.ticketing.RemoteEndpointInfo -> = core.serialization.object({ - method: core.serialization.string(), - urlPath: core.serialization.property("url_path", core.serialization.string()), - fieldTraversalPath: core.serialization.property( - "field_traversal_path", - core.serialization.list(core.serialization.unknown()), - ), -}); - -export declare namespace RemoteEndpointInfo { - export interface Raw { - method: string; - url_path: string; - field_traversal_path: unknown[]; - } -} diff --git a/src/serialization/resources/ticketing/types/RemoteField.ts b/src/serialization/resources/ticketing/types/RemoteField.ts deleted file mode 100644 index b71e1c898..000000000 --- a/src/serialization/resources/ticketing/types/RemoteField.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { RemoteFieldRemoteFieldClass } from "./RemoteFieldRemoteFieldClass"; - -export const RemoteField: core.serialization.ObjectSchema< - serializers.ticketing.RemoteField.Raw, - Merge.ticketing.RemoteField -> = core.serialization.object({ - remoteFieldClass: core.serialization.property("remote_field_class", RemoteFieldRemoteFieldClass), - value: core.serialization.unknown().optional(), -}); - -export declare namespace RemoteField { - export interface Raw { - remote_field_class: RemoteFieldRemoteFieldClass.Raw; - value?: unknown | null; - } -} diff --git a/src/serialization/resources/ticketing/types/RemoteFieldApi.ts b/src/serialization/resources/ticketing/types/RemoteFieldApi.ts deleted file mode 100644 index feec20be9..000000000 --- a/src/serialization/resources/ticketing/types/RemoteFieldApi.ts +++ /dev/null @@ -1,34 +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 { AdvancedMetadata } from "./AdvancedMetadata"; -import { RemoteEndpointInfo } from "./RemoteEndpointInfo"; -import { RemoteFieldApiCoverage } from "./RemoteFieldApiCoverage"; - -export const RemoteFieldApi: core.serialization.ObjectSchema< - serializers.ticketing.RemoteFieldApi.Raw, - Merge.ticketing.RemoteFieldApi -> = core.serialization.object({ - schema: core.serialization.record(core.serialization.string(), core.serialization.unknown()), - remoteKeyName: core.serialization.property("remote_key_name", core.serialization.string()), - remoteEndpointInfo: core.serialization.property("remote_endpoint_info", RemoteEndpointInfo), - exampleValues: core.serialization.property( - "example_values", - core.serialization.list(core.serialization.unknown()).optional(), - ), - advancedMetadata: core.serialization.property("advanced_metadata", AdvancedMetadata.optional()), - coverage: RemoteFieldApiCoverage.optional(), -}); - -export declare namespace RemoteFieldApi { - export interface Raw { - schema: Record; - remote_key_name: string; - remote_endpoint_info: RemoteEndpointInfo.Raw; - example_values?: unknown[] | null; - advanced_metadata?: AdvancedMetadata.Raw | null; - coverage?: RemoteFieldApiCoverage.Raw | null; - } -} diff --git a/src/serialization/resources/ticketing/types/RemoteFieldApiCoverage.ts b/src/serialization/resources/ticketing/types/RemoteFieldApiCoverage.ts deleted file mode 100644 index ba81cf008..000000000 --- a/src/serialization/resources/ticketing/types/RemoteFieldApiCoverage.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 RemoteFieldApiCoverage: core.serialization.Schema< - serializers.ticketing.RemoteFieldApiCoverage.Raw, - Merge.ticketing.RemoteFieldApiCoverage -> = core.serialization.undiscriminatedUnion([core.serialization.number(), core.serialization.number()]); - -export declare namespace RemoteFieldApiCoverage { - export type Raw = number | number; -} diff --git a/src/serialization/resources/ticketing/types/RemoteFieldApiResponse.ts b/src/serialization/resources/ticketing/types/RemoteFieldApiResponse.ts deleted file mode 100644 index 6960c4a2b..000000000 --- a/src/serialization/resources/ticketing/types/RemoteFieldApiResponse.ts +++ /dev/null @@ -1,39 +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 { RemoteFieldApi } from "./RemoteFieldApi"; - -export const RemoteFieldApiResponse: core.serialization.ObjectSchema< - serializers.ticketing.RemoteFieldApiResponse.Raw, - Merge.ticketing.RemoteFieldApiResponse -> = core.serialization.object({ - ticket: core.serialization.property("Ticket", core.serialization.list(RemoteFieldApi).optional()), - comment: core.serialization.property("Comment", core.serialization.list(RemoteFieldApi).optional()), - project: core.serialization.property("Project", core.serialization.list(RemoteFieldApi).optional()), - collection: core.serialization.property("Collection", core.serialization.list(RemoteFieldApi).optional()), - user: core.serialization.property("User", core.serialization.list(RemoteFieldApi).optional()), - role: core.serialization.property("Role", core.serialization.list(RemoteFieldApi).optional()), - account: core.serialization.property("Account", core.serialization.list(RemoteFieldApi).optional()), - team: core.serialization.property("Team", core.serialization.list(RemoteFieldApi).optional()), - attachment: core.serialization.property("Attachment", core.serialization.list(RemoteFieldApi).optional()), - tag: core.serialization.property("Tag", core.serialization.list(RemoteFieldApi).optional()), - contact: core.serialization.property("Contact", core.serialization.list(RemoteFieldApi).optional()), -}); - -export declare namespace RemoteFieldApiResponse { - export interface Raw { - Ticket?: RemoteFieldApi.Raw[] | null; - Comment?: RemoteFieldApi.Raw[] | null; - Project?: RemoteFieldApi.Raw[] | null; - Collection?: RemoteFieldApi.Raw[] | null; - User?: RemoteFieldApi.Raw[] | null; - Role?: RemoteFieldApi.Raw[] | null; - Account?: RemoteFieldApi.Raw[] | null; - Team?: RemoteFieldApi.Raw[] | null; - Attachment?: RemoteFieldApi.Raw[] | null; - Tag?: RemoteFieldApi.Raw[] | null; - Contact?: RemoteFieldApi.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/RemoteFieldClass.ts b/src/serialization/resources/ticketing/types/RemoteFieldClass.ts deleted file mode 100644 index ae8d03356..000000000 --- a/src/serialization/resources/ticketing/types/RemoteFieldClass.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"; -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, - Merge.ticketing.RemoteFieldClass -> = core.serialization.object({ - id: core.serialization.string().optional(), - displayName: core.serialization.property("display_name", core.serialization.string().optional()), - remoteKeyName: core.serialization.property("remote_key_name", core.serialization.string().optional()), - description: core.serialization.string().optional(), - 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()), - fieldChoices: core.serialization.property( - "field_choices", - core.serialization.list(RemoteFieldClassFieldChoicesItem).optional(), - ), - itemSchema: core.serialization.property("item_schema", ItemSchema.optional()), -}); - -export declare namespace RemoteFieldClass { - export interface Raw { - id?: string | null; - display_name?: string | null; - remote_key_name?: string | null; - description?: string | null; - 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_choices?: RemoteFieldClassFieldChoicesItem.Raw[] | null; - item_schema?: ItemSchema.Raw | null; - } -} diff --git a/src/serialization/resources/ticketing/types/RemoteFieldClassFieldChoicesItem.ts b/src/serialization/resources/ticketing/types/RemoteFieldClassFieldChoicesItem.ts deleted file mode 100644 index b5bd7e1c0..000000000 --- a/src/serialization/resources/ticketing/types/RemoteFieldClassFieldChoicesItem.ts +++ /dev/null @@ -1,20 +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 RemoteFieldClassFieldChoicesItem: core.serialization.ObjectSchema< - serializers.ticketing.RemoteFieldClassFieldChoicesItem.Raw, - Merge.ticketing.RemoteFieldClassFieldChoicesItem -> = core.serialization.object({ - value: core.serialization.unknown().optional(), - displayName: core.serialization.property("display_name", core.serialization.string().optional()), -}); - -export declare namespace RemoteFieldClassFieldChoicesItem { - export interface Raw { - value?: unknown | null; - display_name?: string | 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/RemoteFieldRemoteFieldClass.ts b/src/serialization/resources/ticketing/types/RemoteFieldRemoteFieldClass.ts deleted file mode 100644 index d9be64455..000000000 --- a/src/serialization/resources/ticketing/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.ticketing.RemoteFieldRemoteFieldClass.Raw, - Merge.ticketing.RemoteFieldRemoteFieldClass -> = core.serialization.undiscriminatedUnion([core.serialization.string(), RemoteFieldClass]); - -export declare namespace RemoteFieldRemoteFieldClass { - export type Raw = string | RemoteFieldClass.Raw; -} diff --git a/src/serialization/resources/ticketing/types/RemoteFieldRequest.ts b/src/serialization/resources/ticketing/types/RemoteFieldRequest.ts deleted file mode 100644 index 4130f5761..000000000 --- a/src/serialization/resources/ticketing/types/RemoteFieldRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { RemoteFieldRequestRemoteFieldClass } from "./RemoteFieldRequestRemoteFieldClass"; - -export const RemoteFieldRequest: core.serialization.ObjectSchema< - serializers.ticketing.RemoteFieldRequest.Raw, - Merge.ticketing.RemoteFieldRequest -> = core.serialization.object({ - remoteFieldClass: core.serialization.property("remote_field_class", RemoteFieldRequestRemoteFieldClass), - value: core.serialization.unknown().optional(), -}); - -export declare namespace RemoteFieldRequest { - export interface Raw { - remote_field_class: RemoteFieldRequestRemoteFieldClass.Raw; - value?: unknown | null; - } -} diff --git a/src/serialization/resources/ticketing/types/RemoteFieldRequestRemoteFieldClass.ts b/src/serialization/resources/ticketing/types/RemoteFieldRequestRemoteFieldClass.ts deleted file mode 100644 index 70dd2ea3b..000000000 --- a/src/serialization/resources/ticketing/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.ticketing.RemoteFieldRequestRemoteFieldClass.Raw, - Merge.ticketing.RemoteFieldRequestRemoteFieldClass -> = core.serialization.undiscriminatedUnion([core.serialization.string(), RemoteFieldClass]); - -export declare namespace RemoteFieldRequestRemoteFieldClass { - export type Raw = string | RemoteFieldClass.Raw; -} diff --git a/src/serialization/resources/ticketing/types/RemoteKey.ts b/src/serialization/resources/ticketing/types/RemoteKey.ts deleted file mode 100644 index 162feb673..000000000 --- a/src/serialization/resources/ticketing/types/RemoteKey.ts +++ /dev/null @@ -1,20 +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 RemoteKey: core.serialization.ObjectSchema< - serializers.ticketing.RemoteKey.Raw, - Merge.ticketing.RemoteKey -> = core.serialization.object({ - name: core.serialization.string(), - key: core.serialization.string(), -}); - -export declare namespace RemoteKey { - export interface Raw { - name: string; - key: string; - } -} diff --git a/src/serialization/resources/ticketing/types/RemoteResponse.ts b/src/serialization/resources/ticketing/types/RemoteResponse.ts deleted file mode 100644 index e00702ea4..000000000 --- a/src/serialization/resources/ticketing/types/RemoteResponse.ts +++ /dev/null @@ -1,34 +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 { ResponseTypeEnum } from "./ResponseTypeEnum"; - -export const RemoteResponse: core.serialization.ObjectSchema< - serializers.ticketing.RemoteResponse.Raw, - Merge.ticketing.RemoteResponse -> = core.serialization.object({ - method: core.serialization.string(), - path: core.serialization.string(), - status: core.serialization.number(), - response: core.serialization.unknown(), - responseHeaders: core.serialization.property( - "response_headers", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - responseType: core.serialization.property("response_type", ResponseTypeEnum.optional()), - headers: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), -}); - -export declare namespace RemoteResponse { - export interface Raw { - method: string; - path: string; - status: number; - response?: unknown; - response_headers?: Record | null; - response_type?: ResponseTypeEnum.Raw | null; - headers?: Record | null; - } -} diff --git a/src/serialization/resources/ticketing/types/RequestFormatEnum.ts b/src/serialization/resources/ticketing/types/RequestFormatEnum.ts deleted file mode 100644 index 20b471a8a..000000000 --- a/src/serialization/resources/ticketing/types/RequestFormatEnum.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 RequestFormatEnum: core.serialization.Schema< - serializers.ticketing.RequestFormatEnum.Raw, - Merge.ticketing.RequestFormatEnum -> = core.serialization.enum_(["JSON", "XML", "MULTIPART"]); - -export declare namespace RequestFormatEnum { - export type Raw = "JSON" | "XML" | "MULTIPART"; -} diff --git a/src/serialization/resources/ticketing/types/ResponseTypeEnum.ts b/src/serialization/resources/ticketing/types/ResponseTypeEnum.ts deleted file mode 100644 index f3d419109..000000000 --- a/src/serialization/resources/ticketing/types/ResponseTypeEnum.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 ResponseTypeEnum: core.serialization.Schema< - serializers.ticketing.ResponseTypeEnum.Raw, - Merge.ticketing.ResponseTypeEnum -> = core.serialization.enum_(["JSON", "BASE64_GZIP"]); - -export declare namespace ResponseTypeEnum { - export type Raw = "JSON" | "BASE64_GZIP"; -} diff --git a/src/serialization/resources/ticketing/types/Role.ts b/src/serialization/resources/ticketing/types/Role.ts deleted file mode 100644 index 012244643..000000000 --- a/src/serialization/resources/ticketing/types/Role.ts +++ /dev/null @@ -1,43 +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 { RemoteData } from "./RemoteData"; -import { RoleTicketAccess } from "./RoleTicketAccess"; -import { RoleTicketActionsItem } from "./RoleTicketActionsItem"; - -export const Role: core.serialization.ObjectSchema = - 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()), - name: core.serialization.string().optional(), - ticketActions: core.serialization.property( - "ticket_actions", - core.serialization.list(RoleTicketActionsItem.optional()).optional(), - ), - ticketAccess: core.serialization.property("ticket_access", RoleTicketAccess.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()), - }); - -export declare namespace Role { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - ticket_actions?: (RoleTicketActionsItem.Raw | null | undefined)[] | null; - ticket_access?: RoleTicketAccess.Raw | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/RoleEnum.ts b/src/serialization/resources/ticketing/types/RoleEnum.ts deleted file mode 100644 index bf2e101d7..000000000 --- a/src/serialization/resources/ticketing/types/RoleEnum.ts +++ /dev/null @@ -1,12 +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 RoleEnum: core.serialization.Schema = - core.serialization.enum_(["ADMIN", "DEVELOPER", "MEMBER", "API", "SYSTEM", "MERGE_TEAM"]); - -export declare namespace RoleEnum { - export type Raw = "ADMIN" | "DEVELOPER" | "MEMBER" | "API" | "SYSTEM" | "MERGE_TEAM"; -} diff --git a/src/serialization/resources/ticketing/types/RoleTicketAccess.ts b/src/serialization/resources/ticketing/types/RoleTicketAccess.ts deleted file mode 100644 index 293d7ee56..000000000 --- a/src/serialization/resources/ticketing/types/RoleTicketAccess.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 { TicketAccessEnum } from "./TicketAccessEnum"; - -export const RoleTicketAccess: core.serialization.Schema< - serializers.ticketing.RoleTicketAccess.Raw, - Merge.ticketing.RoleTicketAccess -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TicketAccessEnum]); - -export declare namespace RoleTicketAccess { - export type Raw = string | TicketAccessEnum.Raw; -} diff --git a/src/serialization/resources/ticketing/types/RoleTicketActionsItem.ts b/src/serialization/resources/ticketing/types/RoleTicketActionsItem.ts deleted file mode 100644 index 647bafdd5..000000000 --- a/src/serialization/resources/ticketing/types/RoleTicketActionsItem.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 { TicketActionsEnum } from "./TicketActionsEnum"; - -export const RoleTicketActionsItem: core.serialization.Schema< - serializers.ticketing.RoleTicketActionsItem.Raw, - Merge.ticketing.RoleTicketActionsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TicketActionsEnum]); - -export declare namespace RoleTicketActionsItem { - export type Raw = string | TicketActionsEnum.Raw; -} diff --git a/src/serialization/resources/ticketing/types/SelectiveSyncConfigurationsUsageEnum.ts b/src/serialization/resources/ticketing/types/SelectiveSyncConfigurationsUsageEnum.ts deleted file mode 100644 index 16704c15f..000000000 --- a/src/serialization/resources/ticketing/types/SelectiveSyncConfigurationsUsageEnum.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 SelectiveSyncConfigurationsUsageEnum: core.serialization.Schema< - serializers.ticketing.SelectiveSyncConfigurationsUsageEnum.Raw, - Merge.ticketing.SelectiveSyncConfigurationsUsageEnum -> = core.serialization.enum_(["IN_NEXT_SYNC", "IN_LAST_SYNC"]); - -export declare namespace SelectiveSyncConfigurationsUsageEnum { - export type Raw = "IN_NEXT_SYNC" | "IN_LAST_SYNC"; -} diff --git a/src/serialization/resources/ticketing/types/StatusFd5Enum.ts b/src/serialization/resources/ticketing/types/StatusFd5Enum.ts deleted file mode 100644 index d9abcc852..000000000 --- a/src/serialization/resources/ticketing/types/StatusFd5Enum.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 StatusFd5Enum: core.serialization.Schema< - serializers.ticketing.StatusFd5Enum.Raw, - Merge.ticketing.StatusFd5Enum -> = core.serialization.enum_(["SYNCING", "DONE", "FAILED", "DISABLED", "PAUSED", "PARTIALLY_SYNCED"]); - -export declare namespace StatusFd5Enum { - export type Raw = "SYNCING" | "DONE" | "FAILED" | "DISABLED" | "PAUSED" | "PARTIALLY_SYNCED"; -} diff --git a/src/serialization/resources/ticketing/types/SyncStatus.ts b/src/serialization/resources/ticketing/types/SyncStatus.ts deleted file mode 100644 index 6a6d41909..000000000 --- a/src/serialization/resources/ticketing/types/SyncStatus.ts +++ /dev/null @@ -1,40 +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 { SelectiveSyncConfigurationsUsageEnum } from "./SelectiveSyncConfigurationsUsageEnum"; -import { StatusFd5Enum } from "./StatusFd5Enum"; -import { SyncStatusLastSyncResult } from "./SyncStatusLastSyncResult"; - -export const SyncStatus: core.serialization.ObjectSchema< - serializers.ticketing.SyncStatus.Raw, - Merge.ticketing.SyncStatus -> = core.serialization.object({ - modelName: core.serialization.property("model_name", core.serialization.string()), - 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", SyncStatusLastSyncResult.optional()), - lastSyncFinished: core.serialization.property("last_sync_finished", core.serialization.date().optional()), - status: StatusFd5Enum, - isInitialSync: core.serialization.property("is_initial_sync", core.serialization.boolean()), - selectiveSyncConfigurationsUsage: core.serialization.property( - "selective_sync_configurations_usage", - SelectiveSyncConfigurationsUsageEnum.optional(), - ), -}); - -export declare namespace SyncStatus { - export interface Raw { - model_name: string; - model_id: string; - last_sync_start?: string | null; - next_sync_start?: string | null; - last_sync_result?: SyncStatusLastSyncResult.Raw | null; - last_sync_finished?: string | null; - status: StatusFd5Enum.Raw; - is_initial_sync: boolean; - selective_sync_configurations_usage?: SelectiveSyncConfigurationsUsageEnum.Raw | null; - } -} diff --git a/src/serialization/resources/ticketing/types/SyncStatusLastSyncResult.ts b/src/serialization/resources/ticketing/types/SyncStatusLastSyncResult.ts deleted file mode 100644 index af995a65b..000000000 --- a/src/serialization/resources/ticketing/types/SyncStatusLastSyncResult.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 { LastSyncResultEnum } from "./LastSyncResultEnum"; - -export const SyncStatusLastSyncResult: core.serialization.Schema< - serializers.ticketing.SyncStatusLastSyncResult.Raw, - Merge.ticketing.SyncStatusLastSyncResult -> = core.serialization.undiscriminatedUnion([LastSyncResultEnum, core.serialization.string()]); - -export declare namespace SyncStatusLastSyncResult { - export type Raw = LastSyncResultEnum.Raw | string; -} diff --git a/src/serialization/resources/ticketing/types/Tag.ts b/src/serialization/resources/ticketing/types/Tag.ts deleted file mode 100644 index 513d072aa..000000000 --- a/src/serialization/resources/ticketing/types/Tag.ts +++ /dev/null @@ -1,34 +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 { RemoteData } from "./RemoteData"; - -export const Tag: core.serialization.ObjectSchema = - core.serialization.object({ - 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()), - id: core.serialization.string().optional(), - name: core.serialization.string().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()), - }); - -export declare namespace Tag { - export interface Raw { - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - id?: string | null; - name?: string | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/Team.ts b/src/serialization/resources/ticketing/types/Team.ts deleted file mode 100644 index 9f3588fc4..000000000 --- a/src/serialization/resources/ticketing/types/Team.ts +++ /dev/null @@ -1,36 +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 { RemoteData } from "./RemoteData"; - -export const Team: core.serialization.ObjectSchema = - 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()), - name: core.serialization.string().optional(), - description: core.serialization.string().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()), - }); - -export declare namespace Team { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - description?: string | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/Ticket.ts b/src/serialization/resources/ticketing/types/Ticket.ts deleted file mode 100644 index 75c447a27..000000000 --- a/src/serialization/resources/ticketing/types/Ticket.ts +++ /dev/null @@ -1,94 +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 * as serializers from "../../../index"; -import { RemoteData } from "./RemoteData"; -import { RemoteField } from "./RemoteField"; -import { TicketAccessLevel } from "./TicketAccessLevel"; -import { TicketAccount } from "./TicketAccount"; -import { TicketAssignedTeamsItem } from "./TicketAssignedTeamsItem"; -import { TicketAssigneesItem } from "./TicketAssigneesItem"; -import { TicketCollectionsItem } from "./TicketCollectionsItem"; -import { TicketContact } from "./TicketContact"; -import { TicketCreator } from "./TicketCreator"; -import { TicketPriority } from "./TicketPriority"; -import { TicketStatus } from "./TicketStatus"; - -export const Ticket: core.serialization.ObjectSchema = - 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()), - name: core.serialization.string().optional(), - assignees: core.serialization.list(TicketAssigneesItem.optional()).optional(), - assignedTeams: core.serialization.property( - "assigned_teams", - core.serialization.list(TicketAssignedTeamsItem.optional()).optional(), - ), - creator: TicketCreator.optional(), - dueDate: core.serialization.property("due_date", core.serialization.date().optional()), - status: TicketStatus.optional(), - description: core.serialization.string().optional(), - collections: core.serialization.list(TicketCollectionsItem.optional()).optional(), - ticketType: core.serialization.property("ticket_type", core.serialization.string().optional()), - account: TicketAccount.optional(), - contact: TicketContact.optional(), - parentTicket: core.serialization.property( - "parent_ticket", - core.serialization.lazy(() => serializers.ticketing.TicketParentTicket).optional(), - ), - attachments: core.serialization - .list(core.serialization.lazy(() => serializers.ticketing.TicketAttachmentsItem).optional()) - .optional(), - accessLevel: core.serialization.property("access_level", TicketAccessLevel.optional()), - tags: core.serialization.list(core.serialization.string().optional()).optional(), - roles: core.serialization.list(core.serialization.string().optional()).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(), - ), - 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 Ticket { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - assignees?: (TicketAssigneesItem.Raw | null | undefined)[] | null; - assigned_teams?: (TicketAssignedTeamsItem.Raw | null | undefined)[] | null; - creator?: TicketCreator.Raw | null; - due_date?: string | null; - status?: TicketStatus.Raw | null; - description?: string | null; - collections?: (TicketCollectionsItem.Raw | null | undefined)[] | null; - ticket_type?: string | null; - account?: TicketAccount.Raw | null; - contact?: TicketContact.Raw | null; - parent_ticket?: serializers.ticketing.TicketParentTicket.Raw | null; - attachments?: (serializers.ticketing.TicketAttachmentsItem.Raw | null | undefined)[] | null; - access_level?: TicketAccessLevel.Raw | null; - tags?: (string | null | undefined)[] | null; - roles?: (string | null | undefined)[] | 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/TicketAccessEnum.ts b/src/serialization/resources/ticketing/types/TicketAccessEnum.ts deleted file mode 100644 index 48426f0c2..000000000 --- a/src/serialization/resources/ticketing/types/TicketAccessEnum.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 TicketAccessEnum: core.serialization.Schema< - serializers.ticketing.TicketAccessEnum.Raw, - Merge.ticketing.TicketAccessEnum -> = core.serialization.enum_(["ALL", "ASSIGNED_ONLY", "TEAM_ONLY"]); - -export declare namespace TicketAccessEnum { - export type Raw = "ALL" | "ASSIGNED_ONLY" | "TEAM_ONLY"; -} diff --git a/src/serialization/resources/ticketing/types/TicketAccessLevel.ts b/src/serialization/resources/ticketing/types/TicketAccessLevel.ts deleted file mode 100644 index 1269e87fa..000000000 --- a/src/serialization/resources/ticketing/types/TicketAccessLevel.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 { TicketAccessLevelEnum } from "./TicketAccessLevelEnum"; - -export const TicketAccessLevel: core.serialization.Schema< - serializers.ticketing.TicketAccessLevel.Raw, - Merge.ticketing.TicketAccessLevel -> = core.serialization.undiscriminatedUnion([TicketAccessLevelEnum, core.serialization.string()]); - -export declare namespace TicketAccessLevel { - export type Raw = TicketAccessLevelEnum.Raw | string; -} diff --git a/src/serialization/resources/ticketing/types/TicketAccessLevelEnum.ts b/src/serialization/resources/ticketing/types/TicketAccessLevelEnum.ts deleted file mode 100644 index 298cede5c..000000000 --- a/src/serialization/resources/ticketing/types/TicketAccessLevelEnum.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 TicketAccessLevelEnum: core.serialization.Schema< - serializers.ticketing.TicketAccessLevelEnum.Raw, - Merge.ticketing.TicketAccessLevelEnum -> = core.serialization.enum_(["COMPANY", "PUBLIC", "PRIVATE", "COLLECTION"]); - -export declare namespace TicketAccessLevelEnum { - export type Raw = "COMPANY" | "PUBLIC" | "PRIVATE" | "COLLECTION"; -} diff --git a/src/serialization/resources/ticketing/types/TicketAccount.ts b/src/serialization/resources/ticketing/types/TicketAccount.ts deleted file mode 100644 index 3af7b53fc..000000000 --- a/src/serialization/resources/ticketing/types/TicketAccount.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 TicketAccount: core.serialization.Schema< - serializers.ticketing.TicketAccount.Raw, - Merge.ticketing.TicketAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace TicketAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/ticketing/types/TicketActionsEnum.ts b/src/serialization/resources/ticketing/types/TicketActionsEnum.ts deleted file mode 100644 index fa9f8ffa2..000000000 --- a/src/serialization/resources/ticketing/types/TicketActionsEnum.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 TicketActionsEnum: core.serialization.Schema< - serializers.ticketing.TicketActionsEnum.Raw, - Merge.ticketing.TicketActionsEnum -> = core.serialization.enum_(["VIEW", "CREATE", "EDIT", "DELETE", "CLOSE", "ASSIGN"]); - -export declare namespace TicketActionsEnum { - export type Raw = "VIEW" | "CREATE" | "EDIT" | "DELETE" | "CLOSE" | "ASSIGN"; -} diff --git a/src/serialization/resources/ticketing/types/TicketAssignedTeamsItem.ts b/src/serialization/resources/ticketing/types/TicketAssignedTeamsItem.ts deleted file mode 100644 index 036d4ccf2..000000000 --- a/src/serialization/resources/ticketing/types/TicketAssignedTeamsItem.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 { Team } from "./Team"; - -export const TicketAssignedTeamsItem: core.serialization.Schema< - serializers.ticketing.TicketAssignedTeamsItem.Raw, - Merge.ticketing.TicketAssignedTeamsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Team]); - -export declare namespace TicketAssignedTeamsItem { - export type Raw = string | Team.Raw; -} diff --git a/src/serialization/resources/ticketing/types/TicketAssigneesItem.ts b/src/serialization/resources/ticketing/types/TicketAssigneesItem.ts deleted file mode 100644 index 70e076b03..000000000 --- a/src/serialization/resources/ticketing/types/TicketAssigneesItem.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 { User } from "./User"; - -export const TicketAssigneesItem: core.serialization.Schema< - serializers.ticketing.TicketAssigneesItem.Raw, - Merge.ticketing.TicketAssigneesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), User]); - -export declare namespace TicketAssigneesItem { - export type Raw = string | User.Raw; -} diff --git a/src/serialization/resources/ticketing/types/TicketAttachmentsItem.ts b/src/serialization/resources/ticketing/types/TicketAttachmentsItem.ts deleted file mode 100644 index 8b22d0e78..000000000 --- a/src/serialization/resources/ticketing/types/TicketAttachmentsItem.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const TicketAttachmentsItem: core.serialization.Schema< - serializers.ticketing.TicketAttachmentsItem.Raw, - Merge.ticketing.TicketAttachmentsItem -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.ticketing.Attachment), -]); - -export declare namespace TicketAttachmentsItem { - export type Raw = string | serializers.ticketing.Attachment.Raw; -} diff --git a/src/serialization/resources/ticketing/types/TicketCollectionsItem.ts b/src/serialization/resources/ticketing/types/TicketCollectionsItem.ts deleted file mode 100644 index e2e0ef32d..000000000 --- a/src/serialization/resources/ticketing/types/TicketCollectionsItem.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const TicketCollectionsItem: core.serialization.Schema< - serializers.ticketing.TicketCollectionsItem.Raw, - Merge.ticketing.TicketCollectionsItem -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.ticketing.Collection), -]); - -export declare namespace TicketCollectionsItem { - export type Raw = string | serializers.ticketing.Collection.Raw; -} diff --git a/src/serialization/resources/ticketing/types/TicketContact.ts b/src/serialization/resources/ticketing/types/TicketContact.ts deleted file mode 100644 index 57248e589..000000000 --- a/src/serialization/resources/ticketing/types/TicketContact.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 { Contact } from "./Contact"; - -export const TicketContact: core.serialization.Schema< - serializers.ticketing.TicketContact.Raw, - Merge.ticketing.TicketContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace TicketContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/ticketing/types/TicketCreator.ts b/src/serialization/resources/ticketing/types/TicketCreator.ts deleted file mode 100644 index 32ce98130..000000000 --- a/src/serialization/resources/ticketing/types/TicketCreator.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 { User } from "./User"; - -export const TicketCreator: core.serialization.Schema< - serializers.ticketing.TicketCreator.Raw, - Merge.ticketing.TicketCreator -> = core.serialization.undiscriminatedUnion([core.serialization.string(), User]); - -export declare namespace TicketCreator { - export type Raw = string | User.Raw; -} diff --git a/src/serialization/resources/ticketing/types/TicketParentTicket.ts b/src/serialization/resources/ticketing/types/TicketParentTicket.ts deleted file mode 100644 index e5b51e629..000000000 --- a/src/serialization/resources/ticketing/types/TicketParentTicket.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const TicketParentTicket: core.serialization.Schema< - serializers.ticketing.TicketParentTicket.Raw, - Merge.ticketing.TicketParentTicket -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.ticketing.Ticket), -]); - -export declare namespace TicketParentTicket { - export type Raw = string | serializers.ticketing.Ticket.Raw; -} diff --git a/src/serialization/resources/ticketing/types/TicketPriority.ts b/src/serialization/resources/ticketing/types/TicketPriority.ts deleted file mode 100644 index e28475acf..000000000 --- a/src/serialization/resources/ticketing/types/TicketPriority.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 TicketPriority: core.serialization.Schema< - serializers.ticketing.TicketPriority.Raw, - Merge.ticketing.TicketPriority -> = core.serialization.undiscriminatedUnion([PriorityEnum, core.serialization.string()]); - -export declare namespace TicketPriority { - export type Raw = PriorityEnum.Raw | string; -} diff --git a/src/serialization/resources/ticketing/types/TicketRequest.ts b/src/serialization/resources/ticketing/types/TicketRequest.ts deleted file mode 100644 index 3915f403d..000000000 --- a/src/serialization/resources/ticketing/types/TicketRequest.ts +++ /dev/null @@ -1,81 +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 { RemoteFieldRequest } from "./RemoteFieldRequest"; -import { TicketRequestAccessLevel } from "./TicketRequestAccessLevel"; -import { TicketRequestAccount } from "./TicketRequestAccount"; -import { TicketRequestAssignedTeamsItem } from "./TicketRequestAssignedTeamsItem"; -import { TicketRequestAssigneesItem } from "./TicketRequestAssigneesItem"; -import { TicketRequestAttachmentsItem } from "./TicketRequestAttachmentsItem"; -import { TicketRequestCollectionsItem } from "./TicketRequestCollectionsItem"; -import { TicketRequestContact } from "./TicketRequestContact"; -import { TicketRequestCreator } from "./TicketRequestCreator"; -import { TicketRequestParentTicket } from "./TicketRequestParentTicket"; -import { TicketRequestPriority } from "./TicketRequestPriority"; -import { TicketRequestStatus } from "./TicketRequestStatus"; - -export const TicketRequest: core.serialization.ObjectSchema< - serializers.ticketing.TicketRequest.Raw, - Merge.ticketing.TicketRequest -> = core.serialization.object({ - name: core.serialization.string().optional(), - assignees: core.serialization.list(TicketRequestAssigneesItem.optional()).optional(), - assignedTeams: core.serialization.property( - "assigned_teams", - core.serialization.list(TicketRequestAssignedTeamsItem.optional()).optional(), - ), - creator: TicketRequestCreator.optional(), - dueDate: core.serialization.property("due_date", core.serialization.date().optional()), - status: TicketRequestStatus.optional(), - description: core.serialization.string().optional(), - collections: core.serialization.list(TicketRequestCollectionsItem.optional()).optional(), - ticketType: core.serialization.property("ticket_type", core.serialization.string().optional()), - account: TicketRequestAccount.optional(), - contact: TicketRequestContact.optional(), - parentTicket: core.serialization.property("parent_ticket", TicketRequestParentTicket.optional()), - attachments: core.serialization.list(TicketRequestAttachmentsItem.optional()).optional(), - accessLevel: core.serialization.property("access_level", TicketRequestAccessLevel.optional()), - tags: core.serialization.list(core.serialization.string().optional()).optional(), - roles: core.serialization.list(core.serialization.string().optional()).optional(), - completedAt: core.serialization.property("completed_at", core.serialization.date().optional()), - ticketUrl: core.serialization.property("ticket_url", core.serialization.string().optional()), - priority: TicketRequestPriority.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 TicketRequest { - export interface Raw { - name?: string | null; - assignees?: (TicketRequestAssigneesItem.Raw | null | undefined)[] | null; - assigned_teams?: (TicketRequestAssignedTeamsItem.Raw | null | undefined)[] | null; - creator?: TicketRequestCreator.Raw | null; - due_date?: string | null; - status?: TicketRequestStatus.Raw | null; - description?: string | null; - collections?: (TicketRequestCollectionsItem.Raw | null | undefined)[] | null; - ticket_type?: string | null; - account?: TicketRequestAccount.Raw | null; - contact?: TicketRequestContact.Raw | null; - parent_ticket?: TicketRequestParentTicket.Raw | null; - attachments?: (TicketRequestAttachmentsItem.Raw | null | undefined)[] | null; - access_level?: TicketRequestAccessLevel.Raw | null; - tags?: (string | null | undefined)[] | null; - roles?: (string | null | undefined)[] | null; - completed_at?: string | null; - ticket_url?: string | null; - priority?: TicketRequestPriority.Raw | null; - integration_params?: Record | null; - linked_account_params?: Record | null; - remote_fields?: RemoteFieldRequest.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/TicketRequestAccessLevel.ts b/src/serialization/resources/ticketing/types/TicketRequestAccessLevel.ts deleted file mode 100644 index e8508bad1..000000000 --- a/src/serialization/resources/ticketing/types/TicketRequestAccessLevel.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 { TicketAccessLevelEnum } from "./TicketAccessLevelEnum"; - -export const TicketRequestAccessLevel: core.serialization.Schema< - serializers.ticketing.TicketRequestAccessLevel.Raw, - Merge.ticketing.TicketRequestAccessLevel -> = core.serialization.undiscriminatedUnion([TicketAccessLevelEnum, core.serialization.string()]); - -export declare namespace TicketRequestAccessLevel { - export type Raw = TicketAccessLevelEnum.Raw | string; -} diff --git a/src/serialization/resources/ticketing/types/TicketRequestAccount.ts b/src/serialization/resources/ticketing/types/TicketRequestAccount.ts deleted file mode 100644 index 764380963..000000000 --- a/src/serialization/resources/ticketing/types/TicketRequestAccount.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 TicketRequestAccount: core.serialization.Schema< - serializers.ticketing.TicketRequestAccount.Raw, - Merge.ticketing.TicketRequestAccount -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Account]); - -export declare namespace TicketRequestAccount { - export type Raw = string | Account.Raw; -} diff --git a/src/serialization/resources/ticketing/types/TicketRequestAssignedTeamsItem.ts b/src/serialization/resources/ticketing/types/TicketRequestAssignedTeamsItem.ts deleted file mode 100644 index 9d2d2bcb3..000000000 --- a/src/serialization/resources/ticketing/types/TicketRequestAssignedTeamsItem.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 { Team } from "./Team"; - -export const TicketRequestAssignedTeamsItem: core.serialization.Schema< - serializers.ticketing.TicketRequestAssignedTeamsItem.Raw, - Merge.ticketing.TicketRequestAssignedTeamsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Team]); - -export declare namespace TicketRequestAssignedTeamsItem { - export type Raw = string | Team.Raw; -} diff --git a/src/serialization/resources/ticketing/types/TicketRequestAssigneesItem.ts b/src/serialization/resources/ticketing/types/TicketRequestAssigneesItem.ts deleted file mode 100644 index 272ae9889..000000000 --- a/src/serialization/resources/ticketing/types/TicketRequestAssigneesItem.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 { User } from "./User"; - -export const TicketRequestAssigneesItem: core.serialization.Schema< - serializers.ticketing.TicketRequestAssigneesItem.Raw, - Merge.ticketing.TicketRequestAssigneesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), User]); - -export declare namespace TicketRequestAssigneesItem { - export type Raw = string | User.Raw; -} diff --git a/src/serialization/resources/ticketing/types/TicketRequestAttachmentsItem.ts b/src/serialization/resources/ticketing/types/TicketRequestAttachmentsItem.ts deleted file mode 100644 index d92de4722..000000000 --- a/src/serialization/resources/ticketing/types/TicketRequestAttachmentsItem.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const TicketRequestAttachmentsItem: core.serialization.Schema< - serializers.ticketing.TicketRequestAttachmentsItem.Raw, - Merge.ticketing.TicketRequestAttachmentsItem -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.ticketing.Attachment), -]); - -export declare namespace TicketRequestAttachmentsItem { - export type Raw = string | serializers.ticketing.Attachment.Raw; -} diff --git a/src/serialization/resources/ticketing/types/TicketRequestCollectionsItem.ts b/src/serialization/resources/ticketing/types/TicketRequestCollectionsItem.ts deleted file mode 100644 index 4f3930587..000000000 --- a/src/serialization/resources/ticketing/types/TicketRequestCollectionsItem.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const TicketRequestCollectionsItem: core.serialization.Schema< - serializers.ticketing.TicketRequestCollectionsItem.Raw, - Merge.ticketing.TicketRequestCollectionsItem -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.ticketing.Collection), -]); - -export declare namespace TicketRequestCollectionsItem { - export type Raw = string | serializers.ticketing.Collection.Raw; -} diff --git a/src/serialization/resources/ticketing/types/TicketRequestContact.ts b/src/serialization/resources/ticketing/types/TicketRequestContact.ts deleted file mode 100644 index 1db09f9ee..000000000 --- a/src/serialization/resources/ticketing/types/TicketRequestContact.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 { Contact } from "./Contact"; - -export const TicketRequestContact: core.serialization.Schema< - serializers.ticketing.TicketRequestContact.Raw, - Merge.ticketing.TicketRequestContact -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); - -export declare namespace TicketRequestContact { - export type Raw = string | Contact.Raw; -} diff --git a/src/serialization/resources/ticketing/types/TicketRequestCreator.ts b/src/serialization/resources/ticketing/types/TicketRequestCreator.ts deleted file mode 100644 index 214ece583..000000000 --- a/src/serialization/resources/ticketing/types/TicketRequestCreator.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 { User } from "./User"; - -export const TicketRequestCreator: core.serialization.Schema< - serializers.ticketing.TicketRequestCreator.Raw, - Merge.ticketing.TicketRequestCreator -> = core.serialization.undiscriminatedUnion([core.serialization.string(), User]); - -export declare namespace TicketRequestCreator { - export type Raw = string | User.Raw; -} diff --git a/src/serialization/resources/ticketing/types/TicketRequestParentTicket.ts b/src/serialization/resources/ticketing/types/TicketRequestParentTicket.ts deleted file mode 100644 index 7965de238..000000000 --- a/src/serialization/resources/ticketing/types/TicketRequestParentTicket.ts +++ /dev/null @@ -1,17 +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 * as serializers from "../../../index"; - -export const TicketRequestParentTicket: core.serialization.Schema< - serializers.ticketing.TicketRequestParentTicket.Raw, - Merge.ticketing.TicketRequestParentTicket -> = core.serialization.undiscriminatedUnion([ - core.serialization.string(), - core.serialization.lazyObject(() => serializers.ticketing.Ticket), -]); - -export declare namespace TicketRequestParentTicket { - export type Raw = string | serializers.ticketing.Ticket.Raw; -} diff --git a/src/serialization/resources/ticketing/types/TicketRequestPriority.ts b/src/serialization/resources/ticketing/types/TicketRequestPriority.ts deleted file mode 100644 index a86f771fe..000000000 --- a/src/serialization/resources/ticketing/types/TicketRequestPriority.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 TicketRequestPriority: core.serialization.Schema< - serializers.ticketing.TicketRequestPriority.Raw, - Merge.ticketing.TicketRequestPriority -> = core.serialization.undiscriminatedUnion([PriorityEnum, core.serialization.string()]); - -export declare namespace TicketRequestPriority { - export type Raw = PriorityEnum.Raw | string; -} diff --git a/src/serialization/resources/ticketing/types/TicketRequestStatus.ts b/src/serialization/resources/ticketing/types/TicketRequestStatus.ts deleted file mode 100644 index e852db3d2..000000000 --- a/src/serialization/resources/ticketing/types/TicketRequestStatus.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 { TicketStatusEnum } from "./TicketStatusEnum"; - -export const TicketRequestStatus: core.serialization.Schema< - serializers.ticketing.TicketRequestStatus.Raw, - Merge.ticketing.TicketRequestStatus -> = core.serialization.undiscriminatedUnion([TicketStatusEnum, core.serialization.string()]); - -export declare namespace TicketRequestStatus { - export type Raw = TicketStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/ticketing/types/TicketResponse.ts b/src/serialization/resources/ticketing/types/TicketResponse.ts deleted file mode 100644 index e855bb6e6..000000000 --- a/src/serialization/resources/ticketing/types/TicketResponse.ts +++ /dev/null @@ -1,27 +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 * as serializers from "../../../index"; -import { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const TicketResponse: core.serialization.ObjectSchema< - serializers.ticketing.TicketResponse.Raw, - Merge.ticketing.TicketResponse -> = core.serialization.object({ - model: core.serialization.lazyObject(() => serializers.ticketing.Ticket), - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace TicketResponse { - export interface Raw { - model: serializers.ticketing.Ticket.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/TicketStatus.ts b/src/serialization/resources/ticketing/types/TicketStatus.ts deleted file mode 100644 index f7a39d5f8..000000000 --- a/src/serialization/resources/ticketing/types/TicketStatus.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 { TicketStatusEnum } from "./TicketStatusEnum"; - -export const TicketStatus: core.serialization.Schema< - serializers.ticketing.TicketStatus.Raw, - Merge.ticketing.TicketStatus -> = core.serialization.undiscriminatedUnion([TicketStatusEnum, core.serialization.string()]); - -export declare namespace TicketStatus { - export type Raw = TicketStatusEnum.Raw | string; -} diff --git a/src/serialization/resources/ticketing/types/TicketStatusEnum.ts b/src/serialization/resources/ticketing/types/TicketStatusEnum.ts deleted file mode 100644 index b85b28531..000000000 --- a/src/serialization/resources/ticketing/types/TicketStatusEnum.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 TicketStatusEnum: core.serialization.Schema< - serializers.ticketing.TicketStatusEnum.Raw, - Merge.ticketing.TicketStatusEnum -> = core.serialization.enum_(["OPEN", "CLOSED", "IN_PROGRESS", "ON_HOLD"]); - -export declare namespace TicketStatusEnum { - export type Raw = "OPEN" | "CLOSED" | "IN_PROGRESS" | "ON_HOLD"; -} diff --git a/src/serialization/resources/ticketing/types/TicketingAttachmentResponse.ts b/src/serialization/resources/ticketing/types/TicketingAttachmentResponse.ts deleted file mode 100644 index a38632a17..000000000 --- a/src/serialization/resources/ticketing/types/TicketingAttachmentResponse.ts +++ /dev/null @@ -1,27 +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 * as serializers from "../../../index"; -import { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const TicketingAttachmentResponse: core.serialization.ObjectSchema< - serializers.ticketing.TicketingAttachmentResponse.Raw, - Merge.ticketing.TicketingAttachmentResponse -> = core.serialization.object({ - model: core.serialization.lazyObject(() => serializers.ticketing.Attachment), - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace TicketingAttachmentResponse { - export interface Raw { - model: serializers.ticketing.Attachment.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/TicketingContactResponse.ts b/src/serialization/resources/ticketing/types/TicketingContactResponse.ts deleted file mode 100644 index 7e0fba43a..000000000 --- a/src/serialization/resources/ticketing/types/TicketingContactResponse.ts +++ /dev/null @@ -1,28 +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 { Contact } from "./Contact"; -import { DebugModeLog } from "./DebugModeLog"; -import { ErrorValidationProblem } from "./ErrorValidationProblem"; -import { WarningValidationProblem } from "./WarningValidationProblem"; - -export const TicketingContactResponse: core.serialization.ObjectSchema< - serializers.ticketing.TicketingContactResponse.Raw, - Merge.ticketing.TicketingContactResponse -> = core.serialization.object({ - model: Contact, - warnings: core.serialization.list(WarningValidationProblem), - errors: core.serialization.list(ErrorValidationProblem), - logs: core.serialization.list(DebugModeLog).optional(), -}); - -export declare namespace TicketingContactResponse { - export interface Raw { - model: Contact.Raw; - warnings: WarningValidationProblem.Raw[]; - errors: ErrorValidationProblem.Raw[]; - logs?: DebugModeLog.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/User.ts b/src/serialization/resources/ticketing/types/User.ts deleted file mode 100644 index 9cf7df1a2..000000000 --- a/src/serialization/resources/ticketing/types/User.ts +++ /dev/null @@ -1,46 +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 { RemoteData } from "./RemoteData"; -import { UserRolesItem } from "./UserRolesItem"; -import { UserTeamsItem } from "./UserTeamsItem"; - -export const User: core.serialization.ObjectSchema = - 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()), - name: core.serialization.string().optional(), - emailAddress: core.serialization.property("email_address", core.serialization.string().optional()), - isActive: core.serialization.property("is_active", core.serialization.boolean().optional()), - teams: core.serialization.list(UserTeamsItem.optional()).optional(), - roles: core.serialization.list(UserRolesItem.optional()).optional(), - avatar: core.serialization.string().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()), - }); - -export declare namespace User { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - name?: string | null; - email_address?: string | null; - is_active?: boolean | null; - teams?: (UserTeamsItem.Raw | null | undefined)[] | null; - roles?: (UserRolesItem.Raw | null | undefined)[] | null; - avatar?: string | null; - remote_was_deleted?: boolean | null; - field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/UserRolesItem.ts b/src/serialization/resources/ticketing/types/UserRolesItem.ts deleted file mode 100644 index 94aa14f84..000000000 --- a/src/serialization/resources/ticketing/types/UserRolesItem.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 { Role } from "./Role"; - -export const UserRolesItem: core.serialization.Schema< - serializers.ticketing.UserRolesItem.Raw, - Merge.ticketing.UserRolesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Role]); - -export declare namespace UserRolesItem { - export type Raw = string | Role.Raw; -} diff --git a/src/serialization/resources/ticketing/types/UserTeamsItem.ts b/src/serialization/resources/ticketing/types/UserTeamsItem.ts deleted file mode 100644 index eb37d6b35..000000000 --- a/src/serialization/resources/ticketing/types/UserTeamsItem.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 { Team } from "./Team"; - -export const UserTeamsItem: core.serialization.Schema< - serializers.ticketing.UserTeamsItem.Raw, - Merge.ticketing.UserTeamsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Team]); - -export declare namespace UserTeamsItem { - export type Raw = string | Team.Raw; -} diff --git a/src/serialization/resources/ticketing/types/ValidationProblemSource.ts b/src/serialization/resources/ticketing/types/ValidationProblemSource.ts deleted file mode 100644 index f630e3ad9..000000000 --- a/src/serialization/resources/ticketing/types/ValidationProblemSource.ts +++ /dev/null @@ -1,18 +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 ValidationProblemSource: core.serialization.ObjectSchema< - serializers.ticketing.ValidationProblemSource.Raw, - Merge.ticketing.ValidationProblemSource -> = core.serialization.object({ - pointer: core.serialization.string(), -}); - -export declare namespace ValidationProblemSource { - export interface Raw { - pointer: string; - } -} diff --git a/src/serialization/resources/ticketing/types/Viewer.ts b/src/serialization/resources/ticketing/types/Viewer.ts deleted file mode 100644 index 85043ab42..000000000 --- a/src/serialization/resources/ticketing/types/Viewer.ts +++ /dev/null @@ -1,28 +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 { ViewerTeam } from "./ViewerTeam"; -import { ViewerUser } from "./ViewerUser"; - -export const Viewer: core.serialization.ObjectSchema = - 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()), - team: ViewerTeam.optional(), - user: ViewerUser.optional(), - }); - -export declare namespace Viewer { - export interface Raw { - id?: string | null; - remote_id?: string | null; - created_at?: string | null; - modified_at?: string | null; - team?: ViewerTeam.Raw | null; - user?: ViewerUser.Raw | null; - } -} diff --git a/src/serialization/resources/ticketing/types/ViewerTeam.ts b/src/serialization/resources/ticketing/types/ViewerTeam.ts deleted file mode 100644 index 19af5fb9f..000000000 --- a/src/serialization/resources/ticketing/types/ViewerTeam.ts +++ /dev/null @@ -1,13 +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 { Team } from "./Team"; - -export const ViewerTeam: core.serialization.Schema = - core.serialization.undiscriminatedUnion([core.serialization.string(), Team]); - -export declare namespace ViewerTeam { - export type Raw = string | Team.Raw; -} diff --git a/src/serialization/resources/ticketing/types/ViewerUser.ts b/src/serialization/resources/ticketing/types/ViewerUser.ts deleted file mode 100644 index bc31f6ac6..000000000 --- a/src/serialization/resources/ticketing/types/ViewerUser.ts +++ /dev/null @@ -1,13 +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 { User } from "./User"; - -export const ViewerUser: core.serialization.Schema = - core.serialization.undiscriminatedUnion([core.serialization.string(), User]); - -export declare namespace ViewerUser { - export type Raw = string | User.Raw; -} diff --git a/src/serialization/resources/ticketing/types/WarningValidationProblem.ts b/src/serialization/resources/ticketing/types/WarningValidationProblem.ts deleted file mode 100644 index 442a4ce45..000000000 --- a/src/serialization/resources/ticketing/types/WarningValidationProblem.ts +++ /dev/null @@ -1,25 +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 { ValidationProblemSource } from "./ValidationProblemSource"; - -export const WarningValidationProblem: core.serialization.ObjectSchema< - serializers.ticketing.WarningValidationProblem.Raw, - Merge.ticketing.WarningValidationProblem -> = core.serialization.object({ - source: ValidationProblemSource.optional(), - title: core.serialization.string(), - detail: core.serialization.string(), - problemType: core.serialization.property("problem_type", core.serialization.string()), -}); - -export declare namespace WarningValidationProblem { - export interface Raw { - source?: ValidationProblemSource.Raw | null; - title: string; - detail: string; - problem_type: string; - } -} diff --git a/src/serialization/resources/ticketing/types/WebhookReceiver.ts b/src/serialization/resources/ticketing/types/WebhookReceiver.ts deleted file mode 100644 index f9bbc4871..000000000 --- a/src/serialization/resources/ticketing/types/WebhookReceiver.ts +++ /dev/null @@ -1,22 +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 WebhookReceiver: core.serialization.ObjectSchema< - serializers.ticketing.WebhookReceiver.Raw, - Merge.ticketing.WebhookReceiver -> = core.serialization.object({ - event: core.serialization.string(), - isActive: core.serialization.property("is_active", core.serialization.boolean()), - key: core.serialization.string().optional(), -}); - -export declare namespace WebhookReceiver { - export interface Raw { - event: string; - is_active: boolean; - key?: string | null; - } -} diff --git a/src/serialization/resources/ticketing/types/index.ts b/src/serialization/resources/ticketing/types/index.ts deleted file mode 100644 index 66f871985..000000000 --- a/src/serialization/resources/ticketing/types/index.ts +++ /dev/null @@ -1,172 +0,0 @@ -export * from "./Account"; -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"; -export * from "./AsyncPassthroughReciept"; -export * from "./Attachment"; -export * from "./AttachmentRequest"; -export * from "./AttachmentRequestTicket"; -export * from "./AttachmentTicket"; -export * from "./AuditLogEvent"; -export * from "./AuditLogEventEventType"; -export * from "./AuditLogEventRole"; -export * from "./AvailableActions"; -export * from "./CategoriesEnum"; -export * from "./CategoryEnum"; -export * from "./Collection"; -export * from "./CollectionAccessLevel"; -export * from "./CollectionAccessLevelEnum"; -export * from "./CollectionCollectionType"; -export * from "./CollectionParentCollection"; -export * from "./CollectionTypeEnum"; -export * from "./Comment"; -export * from "./CommentContact"; -export * from "./CommentRequest"; -export * from "./CommentRequestContact"; -export * from "./CommentRequestTicket"; -export * from "./CommentRequestUser"; -export * from "./CommentResponse"; -export * from "./CommentTicket"; -export * from "./CommentUser"; -export * from "./CommonModelScopeApi"; -export * from "./CommonModelScopesBodyRequest"; -export * from "./CompletedAccountInitialScreenEnum"; -export * from "./Contact"; -export * from "./ContactAccount"; -export * from "./ContactRequest"; -export * from "./ContactRequestAccount"; -export * from "./DataPassthroughRequest"; -export * from "./DebugModeLog"; -export * from "./DebugModelLogSummary"; -export * from "./EnabledActionsEnum"; -export * from "./EncodingEnum"; -export * from "./ErrorValidationProblem"; -export * from "./EventTypeEnum"; -export * from "./ExternalTargetFieldApi"; -export * from "./ExternalTargetFieldApiResponse"; -export * from "./FieldFormatEnum"; -export * from "./FieldMappingApiInstance"; -export * from "./FieldMappingApiInstanceRemoteField"; -export * from "./FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo"; -export * from "./FieldMappingApiInstanceResponse"; -export * from "./FieldMappingApiInstanceTargetField"; -export * from "./FieldMappingInstanceResponse"; -export * from "./FieldPermissionDeserializer"; -export * from "./FieldPermissionDeserializerRequest"; -export * from "./FieldTypeEnum"; -export * from "./IndividualCommonModelScopeDeserializer"; -export * from "./IndividualCommonModelScopeDeserializerRequest"; -export * from "./Issue"; -export * from "./IssueStatus"; -export * from "./IssueStatusEnum"; -export * from "./ItemFormatEnum"; -export * from "./ItemSchema"; -export * from "./ItemTypeEnum"; -export * from "./LanguageEnum"; -export * from "./LastSyncResultEnum"; -export * from "./LinkedAccountStatus"; -export * from "./LinkToken"; -export * from "./MetaResponse"; -export * from "./MethodEnum"; -export * from "./ModelOperation"; -export * from "./ModelPermissionDeserializer"; -export * from "./ModelPermissionDeserializerRequest"; -export * from "./MultipartFormFieldRequest"; -export * from "./MultipartFormFieldRequestEncoding"; -export * from "./PaginatedAccountDetailsAndActionsList"; -export * from "./PaginatedAccountList"; -export * from "./PaginatedAttachmentList"; -export * from "./PaginatedAuditLogEventList"; -export * from "./PaginatedCollectionList"; -export * from "./PaginatedCommentList"; -export * from "./PaginatedContactList"; -export * from "./PaginatedIssueList"; -export * from "./PaginatedProjectList"; -export * from "./PaginatedRemoteFieldClassList"; -export * from "./PaginatedRoleList"; -export * from "./PaginatedSyncStatusList"; -export * from "./PaginatedTagList"; -export * from "./PaginatedTeamList"; -export * from "./PaginatedTicketList"; -export * from "./PaginatedUserList"; -export * from "./PaginatedViewerList"; -export * from "./PatchedTicketRequest"; -export * from "./PatchedTicketRequestAccessLevel"; -export * from "./PatchedTicketRequestPriority"; -export * from "./PatchedTicketRequestStatus"; -export * from "./PriorityEnum"; -export * from "./Project"; -export * from "./RemoteData"; -export * from "./RemoteEndpointInfo"; -export * from "./RemoteField"; -export * from "./RemoteFieldApi"; -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 "./RequestFormatEnum"; -export * from "./ResponseTypeEnum"; -export * from "./Role"; -export * from "./RoleEnum"; -export * from "./RoleTicketAccess"; -export * from "./RoleTicketActionsItem"; -export * from "./SelectiveSyncConfigurationsUsageEnum"; -export * from "./StatusFd5Enum"; -export * from "./SyncStatus"; -export * from "./SyncStatusLastSyncResult"; -export * from "./Tag"; -export * from "./Team"; -export * from "./Ticket"; -export * from "./TicketAccessEnum"; -export * from "./TicketAccessLevel"; -export * from "./TicketAccessLevelEnum"; -export * from "./TicketAccount"; -export * from "./TicketActionsEnum"; -export * from "./TicketAssignedTeamsItem"; -export * from "./TicketAssigneesItem"; -export * from "./TicketAttachmentsItem"; -export * from "./TicketCollectionsItem"; -export * from "./TicketContact"; -export * from "./TicketCreator"; -export * from "./TicketingAttachmentResponse"; -export * from "./TicketingContactResponse"; -export * from "./TicketParentTicket"; -export * from "./TicketPriority"; -export * from "./TicketRequest"; -export * from "./TicketRequestAccessLevel"; -export * from "./TicketRequestAccount"; -export * from "./TicketRequestAssignedTeamsItem"; -export * from "./TicketRequestAssigneesItem"; -export * from "./TicketRequestAttachmentsItem"; -export * from "./TicketRequestCollectionsItem"; -export * from "./TicketRequestContact"; -export * from "./TicketRequestCreator"; -export * from "./TicketRequestParentTicket"; -export * from "./TicketRequestPriority"; -export * from "./TicketRequestStatus"; -export * from "./TicketResponse"; -export * from "./TicketStatus"; -export * from "./TicketStatusEnum"; -export * from "./User"; -export * from "./UserRolesItem"; -export * from "./UserTeamsItem"; -export * from "./ValidationProblemSource"; -export * from "./Viewer"; -export * from "./ViewerTeam"; -export * from "./ViewerUser"; -export * from "./WarningValidationProblem"; -export * from "./WebhookReceiver"; 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/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/accounting/accountDetails.test.ts b/tests/wire/accounting/accountDetails.test.ts deleted file mode 100644 index a02f33376..000000000 --- a/tests/wire/accounting/accountDetails.test.ts +++ /dev/null @@ -1,54 +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("AccountDetailsClient", () => { - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - integration: "BambooHR", - integration_slug: "bamboohr", - category: "hris", - end_user_origin_id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - end_user_organization_name: "Waystar Royco", - end_user_email_address: "kendall.roy@waystar-royco.com", - status: "COMPLETE", - webhook_listener_url: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - is_duplicate: true, - account_type: "PRODUCTION", - completed_at: "2024-08-26T20:11:19Z", - }; - server - .mockEndpoint() - .get("/accounting/v1/account-details") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.accountDetails.retrieve(); - expect(response).toEqual({ - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - integration: "BambooHR", - integrationSlug: "bamboohr", - category: "hris", - endUserOriginId: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - endUserOrganizationName: "Waystar Royco", - endUserEmailAddress: "kendall.roy@waystar-royco.com", - status: "COMPLETE", - webhookListenerUrl: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - isDuplicate: true, - accountType: "PRODUCTION", - completedAt: new Date("2024-08-26T20:11:19.000Z"), - }); - }); -}); diff --git a/tests/wire/accounting/accountToken.test.ts b/tests/wire/accounting/accountToken.test.ts deleted file mode 100644 index b2c44fe84..000000000 --- a/tests/wire/accounting/accountToken.test.ts +++ /dev/null @@ -1,62 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AccountTokenClient", () => { - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - account_token: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", - integration: { - name: "name", - abbreviated_name: "abbreviated_name", - categories: ["hris"], - image: "image", - square_image: "square_image", - color: "color", - slug: "slug", - api_endpoints_to_documentation_urls: { key: "value" }, - webhook_setup_guide_url: "webhook_setup_guide_url", - category_beta_status: { key: "value" }, - }, - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - }; - server - .mockEndpoint() - .get("/accounting/v1/account-token/public_token") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.accountToken.retrieve("public_token"); - expect(response).toEqual({ - accountToken: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", - integration: { - name: "name", - abbreviatedName: "abbreviated_name", - categories: ["hris"], - image: "image", - squareImage: "square_image", - color: "color", - slug: "slug", - apiEndpointsToDocumentationUrls: { - key: "value", - }, - webhookSetupGuideUrl: "webhook_setup_guide_url", - categoryBetaStatus: { - key: "value", - }, - }, - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - }); - }); -}); diff --git a/tests/wire/accounting/accountingPeriods.test.ts b/tests/wire/accounting/accountingPeriods.test.ts deleted file mode 100644 index a2dd69ed1..000000000 --- a/tests/wire/accounting/accountingPeriods.test.ts +++ /dev/null @@ -1,145 +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("AccountingPeriodsClient", () => { - 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: "3015f7b1-4d01-460d-bfab-02a52d16cbd0", - remote_id: "2804580", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "April 2020 Financials", - status: "ACTIVE", - start_date: "2020-03-31T00:00:00Z", - end_date: "2020-05-01T00:00:00Z", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "3015f7b1-4d01-460d-bfab-02a52d16cbd0", - remoteId: "2804580", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "April 2020 Financials", - status: "ACTIVE", - startDate: new Date("2020-03-31T00:00:00.000Z"), - endDate: new Date("2020-05-01T00:00:00.000Z"), - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "3015f7b1-4d01-460d-bfab-02a52d16cbd0", - remote_id: "2804580", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "April 2020 Financials", - status: "ACTIVE", - start_date: "2020-03-31T00:00:00Z", - end_date: "2020-05-01T00:00:00Z", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/accounting/v1/accounting-periods/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.accountingPeriods.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "3015f7b1-4d01-460d-bfab-02a52d16cbd0", - remoteId: "2804580", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "April 2020 Financials", - status: "ACTIVE", - startDate: new Date("2020-03-31T00:00:00.000Z"), - endDate: new Date("2020-05-01T00:00:00.000Z"), - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/accounts.test.ts b/tests/wire/accounting/accounts.test.ts deleted file mode 100644 index c40158350..000000000 --- a/tests/wire/accounting/accounts.test.ts +++ /dev/null @@ -1,756 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AccountsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "21", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Cash", - description: "Cash", - classification: "ASSET", - type: "Asset", - account_type: "BANK", - status: "ACTIVE", - current_balance: 1.1, - currency: "XUA", - account_number: "X12Y9AB", - parent_account: "22d92d6c-22f9-11ed-861d-0242ac120002", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/accounts") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.accounts.list({ - accountType: "account_type", - classification: "", - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "company", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - name: "name", - pageSize: 1, - remoteFields: "classification", - remoteId: "remote_id", - showEnumOrigins: "classification", - status: "", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "21", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Cash", - description: "Cash", - classification: "ASSET", - type: "Asset", - accountType: "BANK", - status: "ACTIVE", - currentBalance: 1.1, - currency: "XUA", - accountNumber: "X12Y9AB", - parentAccount: "22d92d6c-22f9-11ed-861d-0242ac120002", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "21", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Cash", - description: "Cash", - classification: "ASSET", - type: "Asset", - account_type: "BANK", - status: "ACTIVE", - current_balance: 1.1, - currency: "XUA", - account_number: "X12Y9AB", - parent_account: "22d92d6c-22f9-11ed-861d-0242ac120002", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/accounting/v1/accounts") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.accounts.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "21", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Cash", - description: "Cash", - classification: "ASSET", - type: "Asset", - accountType: "BANK", - status: "ACTIVE", - currentBalance: 1.1, - currency: "XUA", - accountNumber: "X12Y9AB", - parentAccount: "22d92d6c-22f9-11ed-861d-0242ac120002", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "21", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Cash", - description: "Cash", - classification: "ASSET", - type: "Asset", - account_type: "BANK", - status: "ACTIVE", - current_balance: 1.1, - currency: "XUA", - account_number: "X12Y9AB", - parent_account: "22d92d6c-22f9-11ed-861d-0242ac120002", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/accounting/v1/accounts/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.accounts.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeShellData: true, - remoteFields: "classification", - showEnumOrigins: "classification", - }); - expect(response).toEqual({ - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "21", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Cash", - description: "Cash", - classification: "ASSET", - type: "Asset", - accountType: "BANK", - status: "ACTIVE", - currentBalance: 1.1, - currency: "XUA", - accountNumber: "X12Y9AB", - parentAccount: "22d92d6c-22f9-11ed-861d-0242ac120002", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/accounts/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.accounts.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/accounting/addresses.test.ts b/tests/wire/accounting/addresses.test.ts deleted file mode 100644 index b294bec0f..000000000 --- a/tests/wire/accounting/addresses.test.ts +++ /dev/null @@ -1,55 +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("AddressesClient", () => { - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - type: "BILLING", - street_1: "2920 Broadway", - street_2: "2nd Floor", - city: "New York", - state: "NY", - country_subdivision: "NY", - country: "AF", - zip_code: "10027", - }; - server - .mockEndpoint() - .get("/accounting/v1/addresses/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.addresses.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - remoteFields: "type", - showEnumOrigins: "type", - }); - expect(response).toEqual({ - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - type: "BILLING", - street1: "2920 Broadway", - street2: "2nd Floor", - city: "New York", - state: "NY", - countrySubdivision: "NY", - country: "AF", - zipCode: "10027", - }); - }); -}); diff --git a/tests/wire/accounting/asyncPassthrough.test.ts b/tests/wire/accounting/asyncPassthrough.test.ts deleted file mode 100644 index 3693260ef..000000000 --- a/tests/wire/accounting/asyncPassthrough.test.ts +++ /dev/null @@ -1,93 +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("AsyncPassthroughClient", () => { - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { method: "GET", path: "/scooters" }; - const rawResponseBody = { async_passthrough_receipt_id: "fd29020f-2695-445e-922e-dcd5e81903fd" }; - server - .mockEndpoint() - .post("/accounting/v1/async-passthrough") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.asyncPassthrough.create({ - method: "GET", - path: "/scooters", - }); - expect(response).toEqual({ - asyncPassthroughReceiptId: "fd29020f-2695-445e-922e-dcd5e81903fd", - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - method: "GET", - path: "/scooters", - status: 200, - response: { - scooters: [ - { company: "Lime", model: "Gen 2.5" }, - { company: "Bird", model: "Bird Zero" }, - ], - }, - response_headers: { "X-Page-Token": "value" }, - response_type: "JSON", - headers: { "EXTRA-HEADER": "value", Authorization: "" }, - }; - server - .mockEndpoint() - .get("/accounting/v1/async-passthrough/async_passthrough_receipt_id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.asyncPassthrough.retrieve("async_passthrough_receipt_id"); - expect(response).toEqual({ - method: "GET", - path: "/scooters", - status: 200, - response: { - scooters: [ - { - company: "Lime", - model: "Gen 2.5", - }, - { - company: "Bird", - model: "Bird Zero", - }, - ], - }, - responseHeaders: { - "X-Page-Token": "value", - }, - responseType: "JSON", - headers: { - "EXTRA-HEADER": "value", - Authorization: "", - }, - }); - }); -}); diff --git a/tests/wire/accounting/asyncTasks.test.ts b/tests/wire/accounting/asyncTasks.test.ts deleted file mode 100644 index 6863526ec..000000000 --- a/tests/wire/accounting/asyncTasks.test.ts +++ /dev/null @@ -1,145 +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("AsyncTasksClient", () => { - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - status: "QUEUED", - result: { - status_code: 201, - response: { - model: { - id: "9871b4a9-f5d2-4f3b-a66b-dfedbed42c46", - remote_id: "990110", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - integration_params: { unique_integration_field: "unique_integration_field_value" }, - linked_account_params: { unique_linked_account_field: "unique_linked_account_field_value" }, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - type: "ACCOUNTS_RECEIVABLE", - contact: "022a2bef-57e5-4def-8ed2-7c41bd9a5ed8", - number: "AIQ12546", - issue_date: "2020-03-31T00:00:00Z", - due_date: "2020-04-15T00:00:00Z", - memo: "Weekly Payment", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", - paid_on_date: "2020-04-01T00:00:00Z", - currency: "USD", - exchange_rate: "2.9", - status: "DRAFT", - total_discount: 0, - sub_total: 100, - total_tax_amount: 5, - total_amount: 105, - balance: 105, - inclusive_of_tax: false, - 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", - ], - purchase_orders: [ - "e7378d8f-3992-4c2a-8417-ebdc4f2bfeb7", - "dd70ca2f-b120-46fa-889a-9604037f45fd", - "889b281d-739c-4759-95b8-0aedb3947131", - ], - accounting_period: "7dc5ca17-d311-44cd-9ce0-333080367a18", - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - applied_payments: ["9017594e-dc33-4113-a5d2-b0f928e34fdd"], - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - }, - }, - }; - server - .mockEndpoint() - .get("/accounting/v1/async-tasks/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.asyncTasks.retrieve("id"); - expect(response).toEqual({ - status: "QUEUED", - result: { - statusCode: 201, - response: { - model: { - id: "9871b4a9-f5d2-4f3b-a66b-dfedbed42c46", - remote_id: "990110", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - integration_params: { - unique_integration_field: "unique_integration_field_value", - }, - linked_account_params: { - unique_linked_account_field: "unique_linked_account_field_value", - }, - field_mappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - type: "ACCOUNTS_RECEIVABLE", - contact: "022a2bef-57e5-4def-8ed2-7c41bd9a5ed8", - number: "AIQ12546", - issue_date: "2020-03-31T00:00:00Z", - due_date: "2020-04-15T00:00:00Z", - memo: "Weekly Payment", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", - paid_on_date: "2020-04-01T00:00:00Z", - currency: "USD", - exchange_rate: "2.9", - status: "DRAFT", - total_discount: 0, - sub_total: 100, - total_tax_amount: 5, - total_amount: 105, - balance: 105, - inclusive_of_tax: false, - 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", - ], - purchase_orders: [ - "e7378d8f-3992-4c2a-8417-ebdc4f2bfeb7", - "dd70ca2f-b120-46fa-889a-9604037f45fd", - "889b281d-739c-4759-95b8-0aedb3947131", - ], - accounting_period: "7dc5ca17-d311-44cd-9ce0-333080367a18", - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - applied_payments: ["9017594e-dc33-4113-a5d2-b0f928e34fdd"], - remote_data: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - }, - }, - }); - }); -}); diff --git a/tests/wire/accounting/attachments.test.ts b/tests/wire/accounting/attachments.test.ts deleted file mode 100644 index 009f8a317..000000000 --- a/tests/wire/accounting/attachments.test.ts +++ /dev/null @@ -1,698 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AttachmentsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "1018270", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - file_name: "invoice.png", - file_url: "https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/attachments") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.attachments.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "1018270", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - fileName: "invoice.png", - fileUrl: "https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "1018270", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - file_name: "invoice.png", - file_url: "https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/accounting/v1/attachments") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.attachments.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "1018270", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - fileName: "invoice.png", - fileUrl: "https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "1018270", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - file_name: "invoice.png", - file_url: "https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/accounting/v1/attachments/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.attachments.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "1018270", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - fileName: "invoice.png", - fileUrl: "https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/attachments/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.attachments.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/accounting/auditTrail.test.ts b/tests/wire/accounting/auditTrail.test.ts deleted file mode 100644 index 365ee5008..000000000 --- a/tests/wire/accounting/auditTrail.test.ts +++ /dev/null @@ -1,67 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AuditTrailClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b5ceea2a-7171-47ce-8090-165cfce5572c", - user_name: "Gil Feig", - user_email: "hello@merge.dev", - role: "ADMIN", - ip_address: "192.0.2.123", - event_type: "CREATED_REMOTE_PRODUCTION_API_KEY", - event_description: - "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", - created_at: "2024-01-15T09:30:00Z", - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/audit-trail") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.auditTrail.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - eventType: "event_type", - pageSize: 1, - startDate: "start_date", - userEmail: "user_email", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b5ceea2a-7171-47ce-8090-165cfce5572c", - userName: "Gil Feig", - userEmail: "hello@merge.dev", - role: "ADMIN", - ipAddress: "192.0.2.123", - eventType: "CREATED_REMOTE_PRODUCTION_API_KEY", - eventDescription: - "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", - createdAt: new Date("2024-01-15T09:30:00.000Z"), - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/availableActions.test.ts b/tests/wire/accounting/availableActions.test.ts deleted file mode 100644 index 389daa51a..000000000 --- a/tests/wire/accounting/availableActions.test.ts +++ /dev/null @@ -1,76 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AvailableActionsClient", () => { - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - integration: { - name: "name", - abbreviated_name: "abbreviated_name", - categories: ["hris"], - image: "image", - square_image: "square_image", - color: "color", - slug: "slug", - api_endpoints_to_documentation_urls: { key: "value" }, - webhook_setup_guide_url: "webhook_setup_guide_url", - category_beta_status: { key: "value" }, - }, - 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"], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/available-actions") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.availableActions.retrieve(); - expect(response).toEqual({ - integration: { - name: "name", - abbreviatedName: "abbreviated_name", - categories: ["hris"], - image: "image", - squareImage: "square_image", - color: "color", - slug: "slug", - apiEndpointsToDocumentationUrls: { - key: "value", - }, - webhookSetupGuideUrl: "webhook_setup_guide_url", - categoryBetaStatus: { - key: "value", - }, - }, - passthroughAvailable: true, - availableModelOperations: [ - { - modelName: "Candidate", - availableOperations: ["FETCH", "CREATE"], - requiredPostParameters: ["remote_user_id"], - supportedFields: ["first_name", "last_name", "company", "title"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/balanceSheets.test.ts b/tests/wire/accounting/balanceSheets.test.ts deleted file mode 100644 index b8a0dbd93..000000000 --- a/tests/wire/accounting/balanceSheets.test.ts +++ /dev/null @@ -1,387 +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("BalanceSheetsClient", () => { - 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: "9871b4a9-f5d2-4f3b-a66b-dfedbed42c46", - remote_id: "8937018", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "BalanceSheet", - currency: "XUA", - company: "company", - date: "2021-10-01T00:00:00Z", - net_assets: 1000, - assets: [ - { - remote_id: "10010", - created_at: "2021-09-15T00:00:00Z", - 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 }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - liabilities: [ - { - remote_id: "10011", - created_at: "2021-09-15T00:00:00Z", - 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 }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - equity: [ - { - remote_id: "10012", - created_at: "2021-09-15T00:00:00Z", - 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 }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - remote_generated_at: "2021-10-01T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "9871b4a9-f5d2-4f3b-a66b-dfedbed42c46", - remoteId: "8937018", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "BalanceSheet", - currency: "XUA", - company: "company", - date: new Date("2021-10-01T00:00:00.000Z"), - netAssets: 1000, - assets: [ - { - remoteId: "10010", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - 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, - }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - liabilities: [ - { - remoteId: "10011", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - 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, - }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - equity: [ - { - remoteId: "10012", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - 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, - }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - remoteGeneratedAt: new Date("2021-10-01T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "9871b4a9-f5d2-4f3b-a66b-dfedbed42c46", - remote_id: "8937018", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "BalanceSheet", - currency: "XUA", - company: "company", - date: "2021-10-01T00:00:00Z", - net_assets: 1000, - assets: [ - { - remote_id: "10010", - created_at: "2021-09-15T00:00:00Z", - 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 }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: true, - }, - ], - liabilities: [ - { - remote_id: "10011", - created_at: "2021-09-15T00:00:00Z", - 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 }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: true, - }, - ], - equity: [ - { - remote_id: "10012", - created_at: "2021-09-15T00:00:00Z", - 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 }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: true, - }, - ], - remote_generated_at: "2021-10-01T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/accounting/v1/balance-sheets/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.balanceSheets.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "9871b4a9-f5d2-4f3b-a66b-dfedbed42c46", - remoteId: "8937018", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "BalanceSheet", - currency: "XUA", - company: "company", - date: new Date("2021-10-01T00:00:00.000Z"), - netAssets: 1000, - assets: [ - { - remoteId: "10010", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - 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, - }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: true, - }, - ], - liabilities: [ - { - remoteId: "10011", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - 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, - }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: true, - }, - ], - equity: [ - { - remoteId: "10012", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - 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, - }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: true, - }, - ], - remoteGeneratedAt: new Date("2021-10-01T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/bankFeedAccounts.test.ts b/tests/wire/accounting/bankFeedAccounts.test.ts deleted file mode 100644 index 0de0abc45..000000000 --- a/tests/wire/accounting/bankFeedAccounts.test.ts +++ /dev/null @@ -1,727 +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("BankFeedAccountsClient", () => { - 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: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", - remote_id: "987300", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - source_account_id: "123566909", - target_account_id: "49cd5a42-b311-4750-9361-52e2ed1d4653", - source_account_name: "Travel Bank Account", - source_account_number: "12567", - target_account_name: "Netsuite Travel Bank Account", - currency: "XUA", - feed_status: "ACTIVE", - feed_start_date: "2024-02-02T00:00:00Z", - source_account_balance: 123.94, - account_type: "BANK", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/bank-feed-accounts") - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", - remoteId: "987300", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - sourceAccountId: "123566909", - targetAccountId: "49cd5a42-b311-4750-9361-52e2ed1d4653", - sourceAccountName: "Travel Bank Account", - sourceAccountNumber: "12567", - targetAccountName: "Netsuite Travel Bank Account", - currency: "XUA", - feedStatus: "ACTIVE", - feedStartDate: new Date("2024-02-02T00:00:00.000Z"), - sourceAccountBalance: 123.94, - accountType: "BANK", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [], - }, - ], - }); - }); - - test("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: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", - remote_id: "987300", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - source_account_id: "123566909", - target_account_id: "49cd5a42-b311-4750-9361-52e2ed1d4653", - source_account_name: "Travel Bank Account", - source_account_number: "12567", - target_account_name: "Netsuite Travel Bank Account", - currency: "XUA", - feed_status: "ACTIVE", - feed_start_date: "2024-02-02T00:00:00Z", - source_account_balance: 123.94, - account_type: "BANK", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ key: "value" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/accounting/v1/bank-feed-accounts") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.bankFeedAccounts.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", - remoteId: "987300", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - sourceAccountId: "123566909", - targetAccountId: "49cd5a42-b311-4750-9361-52e2ed1d4653", - sourceAccountName: "Travel Bank Account", - sourceAccountNumber: "12567", - targetAccountName: "Netsuite Travel Bank Account", - currency: "XUA", - feedStatus: "ACTIVE", - feedStartDate: new Date("2024-02-02T00:00:00.000Z"), - sourceAccountBalance: 123.94, - accountType: "BANK", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - key: "value", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", - remote_id: "987300", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - source_account_id: "123566909", - target_account_id: "49cd5a42-b311-4750-9361-52e2ed1d4653", - source_account_name: "Travel Bank Account", - source_account_number: "12567", - target_account_name: "Netsuite Travel Bank Account", - currency: "XUA", - feed_status: "ACTIVE", - feed_start_date: "2024-02-02T00:00:00Z", - source_account_balance: 123.94, - account_type: "BANK", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ key: "value" }], - }; - server - .mockEndpoint() - .get("/accounting/v1/bank-feed-accounts/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.bankFeedAccounts.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", - remoteId: "987300", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - sourceAccountId: "123566909", - targetAccountId: "49cd5a42-b311-4750-9361-52e2ed1d4653", - sourceAccountName: "Travel Bank Account", - sourceAccountNumber: "12567", - targetAccountName: "Netsuite Travel Bank Account", - currency: "XUA", - feedStatus: "ACTIVE", - feedStartDate: new Date("2024-02-02T00:00:00.000Z"), - sourceAccountBalance: 123.94, - accountType: "BANK", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - key: "value", - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/bank-feed-accounts/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.bankFeedAccounts.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/accounting/bankFeedTransactions.test.ts b/tests/wire/accounting/bankFeedTransactions.test.ts deleted file mode 100644 index 97b99c349..000000000 --- a/tests/wire/accounting/bankFeedTransactions.test.ts +++ /dev/null @@ -1,685 +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("BankFeedTransactionsClient", () => { - 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: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", - remote_id: "987300", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - bank_feed_account: "bank_feed_account", - transaction_date: "2024-02-02T00:00:00Z", - posted_date: "2024-02-03T00:00:00Z", - amount: 100.1, - description: "Lunch expense", - transaction_type: "payment", - payee: "Elmo's diner", - credit_or_debit: "CREDIT", - source_transaction_id: "124569", - remote_was_deleted: true, - is_processed: true, - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/bank-feed-transactions") - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", - remoteId: "987300", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - bankFeedAccount: "bank_feed_account", - transactionDate: new Date("2024-02-02T00:00:00.000Z"), - postedDate: new Date("2024-02-03T00:00:00.000Z"), - amount: 100.1, - description: "Lunch expense", - transactionType: "payment", - payee: "Elmo's diner", - creditOrDebit: "CREDIT", - sourceTransactionId: "124569", - remoteWasDeleted: true, - isProcessed: true, - }, - ], - }); - }); - - test("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: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", - remote_id: "987300", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - bank_feed_account: "bank_feed_account", - transaction_date: "2024-02-02T00:00:00Z", - posted_date: "2024-02-03T00:00:00Z", - amount: 100.1, - description: "Lunch expense", - transaction_type: "payment", - payee: "Elmo's diner", - credit_or_debit: "CREDIT", - source_transaction_id: "124569", - remote_was_deleted: true, - is_processed: true, - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/accounting/v1/bank-feed-transactions") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.bankFeedTransactions.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", - remoteId: "987300", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - bankFeedAccount: "bank_feed_account", - transactionDate: new Date("2024-02-02T00:00:00.000Z"), - postedDate: new Date("2024-02-03T00:00:00.000Z"), - amount: 100.1, - description: "Lunch expense", - transactionType: "payment", - payee: "Elmo's diner", - creditOrDebit: "CREDIT", - sourceTransactionId: "124569", - remoteWasDeleted: true, - isProcessed: true, - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", - remote_id: "987300", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - bank_feed_account: "bank_feed_account", - transaction_date: "2024-02-02T00:00:00Z", - posted_date: "2024-02-03T00:00:00Z", - amount: 100.1, - description: "Lunch expense", - transaction_type: "payment", - payee: "Elmo's diner", - credit_or_debit: "CREDIT", - source_transaction_id: "124569", - remote_was_deleted: true, - is_processed: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/bank-feed-transactions/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.bankFeedTransactions.retrieve("id", { - expand: "bank_feed_account", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", - remoteId: "987300", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - bankFeedAccount: "bank_feed_account", - transactionDate: new Date("2024-02-02T00:00:00.000Z"), - postedDate: new Date("2024-02-03T00:00:00.000Z"), - amount: 100.1, - description: "Lunch expense", - transactionType: "payment", - payee: "Elmo's diner", - creditOrDebit: "CREDIT", - sourceTransactionId: "124569", - remoteWasDeleted: true, - isProcessed: true, - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/bank-feed-transactions/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.bankFeedTransactions.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/accounting/cashFlowStatements.test.ts b/tests/wire/accounting/cashFlowStatements.test.ts deleted file mode 100644 index c7bfe3a0f..000000000 --- a/tests/wire/accounting/cashFlowStatements.test.ts +++ /dev/null @@ -1,399 +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("CashFlowStatementsClient", () => { - 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: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - remote_id: "8211088", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "CashFlow", - currency: "XUA", - company: "company", - start_period: "2020-01-01T00:00:00Z", - end_period: "2020-03-31T00:00:00Z", - cash_at_beginning_of_period: 5000, - cash_at_end_of_period: 4063.52, - operating_activities: [ - { - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-09-18T00:00:00Z", - name: "Operating Activities", - value: 1000, - sub_items: [ - { - 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", - }, - ], - investing_activities: [ - { - remote_id: "192406939", - created_at: "2021-11-15T00:00:00Z", - modified_at: "2021-11-18T00:00:00Z", - name: "Equipment", - value: 1000, - sub_items: [ - { - created_at: "2021-11-15T00:00:00Z", - modified_at: "2021-09-18T00:00:00Z", - name: "Equipment", - value: 1000, - }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - financing_activities: [ - { - remote_id: "192406939", - created_at: "2021-11-15T00:00:00Z", - 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 }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - remote_generated_at: "2020-04-01T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - remoteId: "8211088", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "CashFlow", - currency: "XUA", - company: "company", - startPeriod: new Date("2020-01-01T00:00:00.000Z"), - endPeriod: new Date("2020-03-31T00:00:00.000Z"), - cashAtBeginningOfPeriod: 5000, - cashAtEndOfPeriod: 4063.52, - operatingActivities: [ - { - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-09-18T00:00:00.000Z"), - name: "Operating Activities", - value: 1000, - subItems: [ - { - 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", - }, - ], - investingActivities: [ - { - remoteId: "192406939", - createdAt: new Date("2021-11-15T00:00:00.000Z"), - modifiedAt: new Date("2021-11-18T00:00:00.000Z"), - name: "Equipment", - value: 1000, - subItems: [ - { - created_at: "2021-11-15T00:00:00Z", - modified_at: "2021-09-18T00:00:00Z", - name: "Equipment", - value: 1000, - }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - financingActivities: [ - { - remoteId: "192406939", - createdAt: new Date("2021-11-15T00:00:00.000Z"), - 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, - }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - remoteGeneratedAt: new Date("2020-04-01T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - remote_id: "8211088", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "CashFlow", - currency: "XUA", - company: "company", - start_period: "2020-01-01T00:00:00Z", - end_period: "2020-03-31T00:00:00Z", - cash_at_beginning_of_period: 5000, - cash_at_end_of_period: 4063.52, - operating_activities: [ - { - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-09-18T00:00:00Z", - name: "Operating Activities", - value: 1000, - sub_items: [ - { - 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, - }, - ], - investing_activities: [ - { - remote_id: "192406939", - created_at: "2021-11-15T00:00:00Z", - modified_at: "2021-11-18T00:00:00Z", - name: "Equipment", - value: 1000, - sub_items: [ - { - 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, - }, - ], - financing_activities: [ - { - remote_id: "192406939", - created_at: "2021-11-15T00:00:00Z", - 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 }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: true, - }, - ], - remote_generated_at: "2020-04-01T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/accounting/v1/cash-flow-statements/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.cashFlowStatements.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - remoteId: "8211088", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "CashFlow", - currency: "XUA", - company: "company", - startPeriod: new Date("2020-01-01T00:00:00.000Z"), - endPeriod: new Date("2020-03-31T00:00:00.000Z"), - cashAtBeginningOfPeriod: 5000, - cashAtEndOfPeriod: 4063.52, - operatingActivities: [ - { - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-09-18T00:00:00.000Z"), - name: "Operating Activities", - value: 1000, - subItems: [ - { - 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, - }, - ], - investingActivities: [ - { - remoteId: "192406939", - createdAt: new Date("2021-11-15T00:00:00.000Z"), - modifiedAt: new Date("2021-11-18T00:00:00.000Z"), - name: "Equipment", - value: 1000, - subItems: [ - { - 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, - }, - ], - financingActivities: [ - { - remoteId: "192406939", - createdAt: new Date("2021-11-15T00:00:00.000Z"), - 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, - }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: true, - }, - ], - remoteGeneratedAt: new Date("2020-04-01T00: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"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/companyInfo.test.ts b/tests/wire/accounting/companyInfo.test.ts deleted file mode 100644 index a4c42b11b..000000000 --- a/tests/wire/accounting/companyInfo.test.ts +++ /dev/null @@ -1,258 +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("CompanyInfoClient", () => { - 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: "65d8ffd0-211b-4ba4-b85a-fbe2ce220982", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Merge Pickleball Company", - legal_name: "Merge Pickleball Company Inc.", - tax_number: "11-0011000", - fiscal_year_end_month: 12, - fiscal_year_end_day: 31, - currency: "XUA", - remote_created_at: "2020-03-31T00:00:00Z", - urls: [], - addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - street_1: "2920 Broadway", - street_2: "2nd Floor", - city: "New York", - state: "NY", - country_subdivision: "NY", - country: "US", - zip_code: "10027", - }, - ], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - number: "+3198675309", - type: "Mobile", - }, - ], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "65d8ffd0-211b-4ba4-b85a-fbe2ce220982", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Merge Pickleball Company", - legalName: "Merge Pickleball Company Inc.", - taxNumber: "11-0011000", - fiscalYearEndMonth: 12, - fiscalYearEndDay: 31, - currency: "XUA", - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - urls: [], - addresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - street1: "2920 Broadway", - street2: "2nd Floor", - city: "New York", - state: "NY", - countrySubdivision: "NY", - country: "US", - 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", - }, - ], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "65d8ffd0-211b-4ba4-b85a-fbe2ce220982", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Merge Pickleball Company", - legal_name: "Merge Pickleball Company Inc.", - tax_number: "11-0011000", - fiscal_year_end_month: 12, - fiscal_year_end_day: 31, - currency: "XUA", - remote_created_at: "2020-03-31T00:00:00Z", - urls: ["urls"], - addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - type: "BILLING", - street_1: "2920 Broadway", - street_2: "2nd Floor", - city: "New York", - state: "NY", - country_subdivision: "NY", - country: "US", - zip_code: "10027", - }, - ], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - number: "+3198675309", - type: "Mobile", - }, - ], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/accounting/v1/company-info/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.companyInfo.retrieve("id", { - expand: "addresses", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "65d8ffd0-211b-4ba4-b85a-fbe2ce220982", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Merge Pickleball Company", - legalName: "Merge Pickleball Company Inc.", - taxNumber: "11-0011000", - fiscalYearEndMonth: 12, - fiscalYearEndDay: 31, - currency: "XUA", - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - urls: ["urls"], - addresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - type: "BILLING", - street1: "2920 Broadway", - street2: "2nd Floor", - city: "New York", - state: "NY", - countrySubdivision: "NY", - country: "US", - 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", - }, - ], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/contacts.test.ts b/tests/wire/accounting/contacts.test.ts deleted file mode 100644 index 8d1f23295..000000000 --- a/tests/wire/accounting/contacts.test.ts +++ /dev/null @@ -1,1470 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("ContactsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remote_id: "11167", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Gil Feig's pickleball store", - is_supplier: true, - is_customer: true, - email_address: "pickleball@merge.dev", - tax_number: "12-3456789", - status: "ACTIVE", - currency: "USD", - remote_updated_at: "2020-03-31T00:00:00Z", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - number: "+3198675309", - type: "Mobile", - }, - ], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/contacts") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.contacts.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - emailAddress: "email_address", - expand: "addresses", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCustomer: "is_customer", - isSupplier: "is_supplier", - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - name: "name", - pageSize: 1, - remoteFields: "status", - remoteId: "remote_id", - showEnumOrigins: "status", - status: "", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remoteId: "11167", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Gil Feig's pickleball store", - isSupplier: true, - isCustomer: true, - emailAddress: "pickleball@merge.dev", - taxNumber: "12-3456789", - status: "ACTIVE", - currency: "USD", - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - number: "+3198675309", - type: "Mobile", - }, - ], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remote_id: "11167", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Gil Feig's pickleball store", - is_supplier: true, - is_customer: true, - email_address: "pickleball@merge.dev", - tax_number: "12-3456789", - status: "ACTIVE", - currency: "USD", - remote_updated_at: "2020-03-31T00:00:00Z", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - number: "+3198675309", - type: "Mobile", - }, - ], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/accounting/v1/contacts") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.contacts.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remoteId: "11167", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Gil Feig's pickleball store", - isSupplier: true, - isCustomer: true, - emailAddress: "pickleball@merge.dev", - taxNumber: "12-3456789", - status: "ACTIVE", - currency: "USD", - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - number: "+3198675309", - type: "Mobile", - }, - ], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remote_id: "11167", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Gil Feig's pickleball store", - is_supplier: true, - is_customer: true, - email_address: "pickleball@merge.dev", - tax_number: "12-3456789", - status: "ACTIVE", - currency: "USD", - remote_updated_at: "2020-03-31T00:00:00Z", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - number: "+3198675309", - type: "Mobile", - }, - ], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - server - .mockEndpoint() - .get("/accounting/v1/contacts/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.contacts.retrieve("id", { - expand: "addresses", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - remoteFields: "status", - showEnumOrigins: "status", - }); - expect(response).toEqual({ - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remoteId: "11167", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Gil Feig's pickleball store", - isSupplier: true, - isCustomer: true, - emailAddress: "pickleball@merge.dev", - taxNumber: "12-3456789", - status: "ACTIVE", - currency: "USD", - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - number: "+3198675309", - type: "Mobile", - }, - ], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("partialUpdate", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remote_id: "11167", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Gil Feig's pickleball store", - is_supplier: true, - is_customer: true, - email_address: "pickleball@merge.dev", - tax_number: "12-3456789", - status: "ACTIVE", - currency: "USD", - remote_updated_at: "2020-03-31T00:00:00Z", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - number: "+3198675309", - type: "Mobile", - }, - ], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .patch("/accounting/v1/contacts/id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.contacts.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remoteId: "11167", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Gil Feig's pickleball store", - isSupplier: true, - isCustomer: true, - emailAddress: "pickleball@merge.dev", - taxNumber: "12-3456789", - status: "ACTIVE", - currency: "USD", - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - number: "+3198675309", - type: "Mobile", - }, - ], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("metaPatchRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/contacts/meta/patch/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.contacts.metaPatchRetrieve("id"); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/contacts/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.contacts.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("remoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: ["field_choices"], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/contacts/remote-field-classes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.contacts.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: ["field_choices"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/creditNotes.test.ts b/tests/wire/accounting/creditNotes.test.ts deleted file mode 100644 index f5de767b0..000000000 --- a/tests/wire/accounting/creditNotes.test.ts +++ /dev/null @@ -1,1026 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("CreditNotesClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - remote_id: "123877", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - transaction_date: "2020-03-31T00:00:00Z", - status: "SUBMITTED", - number: "CN-29", - contact: "contact", - company: "company", - exchange_rate: "2.9", - total_amount: 50, - remaining_credit: 20, - inclusive_of_tax: true, - line_items: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - item: "0e3fd929-436c-4fd4-a48b-0c61f68d6178", - name: "Basic Monthly", - description: "prorated amount for items", - quantity: "quantity", - memo: "privNote", - unit_price: "5.0", - tax_rate: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - total_line_amount: "5.0", - tracking_categories: [ - "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - account: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - contact: "908934-49j9-093f-0989-908923908", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - remote_was_deleted: true, - }, - ], - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - currency: "XUA", - remote_created_at: "2020-03-31T00:00:00Z", - remote_updated_at: "2020-03-31T00:00:00Z", - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - applied_payments: ["a9a94a75-19c1-41fe-90d8-d9ba959c38e5"], - accounting_period: "accounting_period", - applied_to_lines: [ - { - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - applied_date: "2020-03-31T00:00:00Z", - applied_amount: "2.9", - }, - ], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/credit-notes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.creditNotes.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "accounting_period", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteFields: "status", - remoteId: "remote_id", - showEnumOrigins: "status", - transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), - transactionDateBefore: new Date("2024-01-15T09:30:00.000Z"), - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - remoteId: "123877", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - status: "SUBMITTED", - number: "CN-29", - contact: "contact", - company: "company", - exchangeRate: "2.9", - totalAmount: 50, - remainingCredit: 20, - inclusiveOfTax: true, - lineItems: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - item: "0e3fd929-436c-4fd4-a48b-0c61f68d6178", - name: "Basic Monthly", - description: "prorated amount for items", - quantity: "quantity", - memo: "privNote", - unitPrice: "5.0", - taxRate: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - totalLineAmount: "5.0", - trackingCategories: [ - "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - account: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - contact: "908934-49j9-093f-0989-908923908", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - remoteWasDeleted: true, - }, - ], - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - currency: "XUA", - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - appliedPayments: ["a9a94a75-19c1-41fe-90d8-d9ba959c38e5"], - accountingPeriod: "accounting_period", - appliedToLines: [ - { - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - appliedAmount: "2.9", - }, - ], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - remote_id: "123877", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - transaction_date: "2020-03-31T00:00:00Z", - status: "SUBMITTED", - number: "CN-29", - contact: "contact", - company: "company", - exchange_rate: "2.9", - total_amount: 50, - remaining_credit: 20, - inclusive_of_tax: true, - line_items: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - item: "0e3fd929-436c-4fd4-a48b-0c61f68d6178", - name: "Basic Monthly", - description: "prorated amount for items", - quantity: "quantity", - memo: "privNote", - unit_price: "5.0", - tax_rate: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - total_line_amount: "5.0", - tracking_categories: [ - "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - account: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - contact: "908934-49j9-093f-0989-908923908", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - remote_was_deleted: true, - }, - ], - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - currency: "XUA", - remote_created_at: "2020-03-31T00:00:00Z", - remote_updated_at: "2020-03-31T00:00:00Z", - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - applied_payments: ["a9a94a75-19c1-41fe-90d8-d9ba959c38e5"], - accounting_period: "accounting_period", - applied_to_lines: [ - { - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - applied_date: "2020-03-31T00:00:00Z", - applied_amount: "2.9", - }, - ], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/accounting/v1/credit-notes") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.creditNotes.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - remoteId: "123877", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - status: "SUBMITTED", - number: "CN-29", - contact: "contact", - company: "company", - exchangeRate: "2.9", - totalAmount: 50, - remainingCredit: 20, - inclusiveOfTax: true, - lineItems: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - item: "0e3fd929-436c-4fd4-a48b-0c61f68d6178", - name: "Basic Monthly", - description: "prorated amount for items", - quantity: "quantity", - memo: "privNote", - unitPrice: "5.0", - taxRate: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - totalLineAmount: "5.0", - trackingCategories: [ - "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - account: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - contact: "908934-49j9-093f-0989-908923908", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - remoteWasDeleted: true, - }, - ], - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - currency: "XUA", - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - appliedPayments: ["a9a94a75-19c1-41fe-90d8-d9ba959c38e5"], - accountingPeriod: "accounting_period", - appliedToLines: [ - { - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - appliedAmount: "2.9", - }, - ], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - remote_id: "123877", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - transaction_date: "2020-03-31T00:00:00Z", - status: "SUBMITTED", - number: "CN-29", - contact: "contact", - company: "company", - exchange_rate: "2.9", - total_amount: 50, - remaining_credit: 20, - inclusive_of_tax: true, - line_items: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - item: "0e3fd929-436c-4fd4-a48b-0c61f68d6178", - name: "Basic Monthly", - description: "prorated amount for items", - quantity: "quantity", - memo: "privNote", - unit_price: "5.0", - tax_rate: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - total_line_amount: "5.0", - tracking_categories: [ - "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - account: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - contact: "908934-49j9-093f-0989-908923908", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - remote_was_deleted: true, - }, - ], - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - currency: "XUA", - remote_created_at: "2020-03-31T00:00:00Z", - remote_updated_at: "2020-03-31T00:00:00Z", - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - applied_payments: ["a9a94a75-19c1-41fe-90d8-d9ba959c38e5"], - accounting_period: "accounting_period", - applied_to_lines: [ - { - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - applied_date: "2020-03-31T00:00:00Z", - applied_amount: "2.9", - remote_was_deleted: true, - }, - ], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/accounting/v1/credit-notes/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.creditNotes.retrieve("id", { - expand: "accounting_period", - includeRemoteData: true, - includeShellData: true, - remoteFields: "status", - showEnumOrigins: "status", - }); - expect(response).toEqual({ - id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - remoteId: "123877", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - status: "SUBMITTED", - number: "CN-29", - contact: "contact", - company: "company", - exchangeRate: "2.9", - totalAmount: 50, - remainingCredit: 20, - inclusiveOfTax: true, - lineItems: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - item: "0e3fd929-436c-4fd4-a48b-0c61f68d6178", - name: "Basic Monthly", - description: "prorated amount for items", - quantity: "quantity", - memo: "privNote", - unitPrice: "5.0", - taxRate: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - totalLineAmount: "5.0", - trackingCategories: [ - "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - account: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - contact: "908934-49j9-093f-0989-908923908", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - remoteWasDeleted: true, - }, - ], - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - currency: "XUA", - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - appliedPayments: ["a9a94a75-19c1-41fe-90d8-d9ba959c38e5"], - accountingPeriod: "accounting_period", - appliedToLines: [ - { - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - appliedAmount: "2.9", - remoteWasDeleted: true, - }, - ], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/credit-notes/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.creditNotes.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/accounting/deleteAccount.test.ts b/tests/wire/accounting/deleteAccount.test.ts deleted file mode 100644 index c233ce0b1..000000000 --- a/tests/wire/accounting/deleteAccount.test.ts +++ /dev/null @@ -1,21 +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("DeleteAccountClient", () => { - test("delete", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - server.mockEndpoint().post("/accounting/v1/delete-account").respondWith().statusCode(200).build(); - - const response = await client.accounting.deleteAccount.delete(); - expect(response).toEqual(undefined); - }); -}); diff --git a/tests/wire/accounting/employees.test.ts b/tests/wire/accounting/employees.test.ts deleted file mode 100644 index c9499783c..000000000 --- a/tests/wire/accounting/employees.test.ts +++ /dev/null @@ -1,169 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("EmployeesClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remote_id: "11167", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - first_name: "John", - last_name: "Smith", - is_contractor: true, - employee_number: "325462", - email_address: "johnsmith@merge.dev", - company: "company", - status: "ACTIVE", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/employees") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.employees.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "company", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remoteId: "11167", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - firstName: "John", - lastName: "Smith", - isContractor: true, - employeeNumber: "325462", - emailAddress: "johnsmith@merge.dev", - company: "company", - status: "ACTIVE", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remote_id: "11167", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - first_name: "John", - last_name: "Smith", - is_contractor: true, - employee_number: "325462", - email_address: "johnsmith@merge.dev", - company: "company", - status: "ACTIVE", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/accounting/v1/employees/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.employees.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remoteId: "11167", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - firstName: "John", - lastName: "Smith", - isContractor: true, - employeeNumber: "325462", - emailAddress: "johnsmith@merge.dev", - company: "company", - status: "ACTIVE", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/expenseReports.test.ts b/tests/wire/accounting/expenseReports.test.ts deleted file mode 100644 index 3ce433651..000000000 --- a/tests/wire/accounting/expenseReports.test.ts +++ /dev/null @@ -1,1171 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("ExpenseReportsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "123e4567-e89b-12d3-a456-426614174000", - remote_id: "exp_123e4567-e89b-12d3-a456-426614174000", - created_at: "2024-01-31T12:00:00Z", - modified_at: "2024-01-31T14:30:00Z", - report_date: "2024-01-31T00:00:00Z", - report_identifier: "EXP-2024-001", - employee: "b9a9b824-6172-4d63-9d90-1c8a86c4f3b1", - status: "DRAFT", - total_amount: 150, - lines: [ - { - id: "1234", - remote_id: "abcd-1234", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - account: "acc-1234", - description: "Client lunch meeting", - expense_date: "2024-01-15T00:00:00Z", - amount: 50, - currency: "USD", - exchange_rate: "exchange_rate", - is_billable: true, - tracking_categories: ["cat-1", "cat-2"], - employee: "emp-1234", - project: "proj-5678", - company: "comp-1234", - contact: "cont-5678", - quantity: 1, - unit_price: 50, - non_reimbursable: false, - tax_amount: 5, - inclusive_of_tax: false, - tax_rate: "tax-1234", - remote_was_deleted: false, - }, - ], - currency: "XUA", - description: "January 2024 Travel Expenses", - accounting_period: "7d793c67-9f72-4a6b-9256-3936f237b0d9", - company: "company", - tracking_categories: [ - "a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", - "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p", - ], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/expense-reports") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.expenseReports.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "accounting_period", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "123e4567-e89b-12d3-a456-426614174000", - remoteId: "exp_123e4567-e89b-12d3-a456-426614174000", - createdAt: new Date("2024-01-31T12:00:00.000Z"), - modifiedAt: new Date("2024-01-31T14:30:00.000Z"), - reportDate: new Date("2024-01-31T00:00:00.000Z"), - reportIdentifier: "EXP-2024-001", - employee: "b9a9b824-6172-4d63-9d90-1c8a86c4f3b1", - status: "DRAFT", - totalAmount: 150, - lines: [ - { - id: "1234", - remoteId: "abcd-1234", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - account: "acc-1234", - description: "Client lunch meeting", - expenseDate: new Date("2024-01-15T00:00:00.000Z"), - amount: 50, - currency: "USD", - exchangeRate: "exchange_rate", - isBillable: true, - trackingCategories: ["cat-1", "cat-2"], - employee: "emp-1234", - project: "proj-5678", - company: "comp-1234", - contact: "cont-5678", - quantity: 1, - unitPrice: 50, - nonReimbursable: false, - taxAmount: 5, - inclusiveOfTax: false, - taxRate: "tax-1234", - remoteWasDeleted: false, - }, - ], - currency: "XUA", - description: "January 2024 Travel Expenses", - accountingPeriod: "7d793c67-9f72-4a6b-9256-3936f237b0d9", - company: "company", - trackingCategories: [ - "a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", - "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p", - ], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { - model: { - tracking_categories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"], - }, - }; - const rawResponseBody = { - model: { - id: "123e4567-e89b-12d3-a456-426614174000", - remote_id: "exp_123e4567-e89b-12d3-a456-426614174000", - created_at: "2024-01-31T12:00:00Z", - modified_at: "2024-01-31T14:30:00Z", - report_date: "2024-01-31T00:00:00Z", - report_identifier: "EXP-2024-001", - employee: "b9a9b824-6172-4d63-9d90-1c8a86c4f3b1", - status: "DRAFT", - total_amount: 150, - lines: [ - { - id: "1234", - remote_id: "abcd-1234", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - account: "acc-1234", - description: "Client lunch meeting", - expense_date: "2024-01-15T00:00:00Z", - amount: 50, - currency: "USD", - exchange_rate: "exchange_rate", - is_billable: true, - tracking_categories: ["cat-1", "cat-2"], - employee: "emp-1234", - project: "proj-5678", - company: "comp-1234", - contact: "cont-5678", - quantity: 1, - unit_price: 50, - non_reimbursable: false, - tax_amount: 5, - inclusive_of_tax: false, - tax_rate: "tax-1234", - remote_was_deleted: false, - }, - ], - currency: "XUA", - description: "January 2024 Travel Expenses", - accounting_period: "7d793c67-9f72-4a6b-9256-3936f237b0d9", - company: "company", - tracking_categories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/accounting/v1/expense-reports") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.expenseReports.create({ - isDebugMode: true, - runAsync: true, - model: { - trackingCategories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"], - }, - }); - expect(response).toEqual({ - model: { - id: "123e4567-e89b-12d3-a456-426614174000", - remoteId: "exp_123e4567-e89b-12d3-a456-426614174000", - createdAt: new Date("2024-01-31T12:00:00.000Z"), - modifiedAt: new Date("2024-01-31T14:30:00.000Z"), - reportDate: new Date("2024-01-31T00:00:00.000Z"), - reportIdentifier: "EXP-2024-001", - employee: "b9a9b824-6172-4d63-9d90-1c8a86c4f3b1", - status: "DRAFT", - totalAmount: 150, - lines: [ - { - id: "1234", - remoteId: "abcd-1234", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - account: "acc-1234", - description: "Client lunch meeting", - expenseDate: new Date("2024-01-15T00:00:00.000Z"), - amount: 50, - currency: "USD", - exchangeRate: "exchange_rate", - isBillable: true, - trackingCategories: ["cat-1", "cat-2"], - employee: "emp-1234", - project: "proj-5678", - company: "comp-1234", - contact: "cont-5678", - quantity: 1, - unitPrice: 50, - nonReimbursable: false, - taxAmount: 5, - inclusiveOfTax: false, - taxRate: "tax-1234", - remoteWasDeleted: false, - }, - ], - currency: "XUA", - description: "January 2024 Travel Expenses", - accountingPeriod: "7d793c67-9f72-4a6b-9256-3936f237b0d9", - company: "company", - trackingCategories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("linesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "1234", - remote_id: "abcd-1234", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - account: "account", - description: "Client lunch meeting", - expense_date: "2024-01-15T00:00:00Z", - amount: 50, - currency: "XUA", - exchange_rate: "exchange_rate", - is_billable: true, - tracking_categories: ["cat-1", "cat-2"], - employee: "employee", - project: "project", - company: "company", - contact: "contact", - quantity: 1, - unit_price: 50, - non_reimbursable: true, - tax_amount: 5, - inclusive_of_tax: true, - tax_rate: "tax_rate", - remote_was_deleted: true, - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/expense-reports/expense_report_id/lines") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.expenseReports.linesList("expense_report_id", { - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "account", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "1234", - remoteId: "abcd-1234", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - account: "account", - description: "Client lunch meeting", - expenseDate: new Date("2024-01-15T00:00:00.000Z"), - amount: 50, - currency: "XUA", - exchangeRate: "exchange_rate", - isBillable: true, - trackingCategories: ["cat-1", "cat-2"], - employee: "employee", - project: "project", - company: "company", - contact: "contact", - quantity: 1, - unitPrice: 50, - nonReimbursable: true, - taxAmount: 5, - inclusiveOfTax: true, - taxRate: "tax_rate", - remoteWasDeleted: true, - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "123e4567-e89b-12d3-a456-426614174000", - remote_id: "exp_123e4567-e89b-12d3-a456-426614174000", - created_at: "2024-01-31T12:00:00Z", - modified_at: "2024-01-31T14:30:00Z", - report_date: "2024-01-31T00:00:00Z", - report_identifier: "EXP-2024-001", - employee: "b9a9b824-6172-4d63-9d90-1c8a86c4f3b1", - status: "DRAFT", - total_amount: 150, - lines: [ - { - id: "1234", - remote_id: "abcd-1234", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - account: "acc-1234", - description: "Client lunch meeting", - expense_date: "2024-01-15T00:00:00Z", - amount: 50, - currency: "USD", - exchange_rate: "exchange_rate", - is_billable: true, - tracking_categories: ["cat-1", "cat-2"], - employee: "emp-1234", - project: "proj-5678", - company: "comp-1234", - contact: "cont-5678", - quantity: 1, - unit_price: 50, - non_reimbursable: false, - tax_amount: 5, - inclusive_of_tax: false, - tax_rate: "tax-1234", - remote_was_deleted: false, - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - currency: "XUA", - description: "January 2024 Travel Expenses", - accounting_period: "7d793c67-9f72-4a6b-9256-3936f237b0d9", - company: "company", - tracking_categories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - server - .mockEndpoint() - .get("/accounting/v1/expense-reports/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.expenseReports.retrieve("id", { - expand: "accounting_period", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "123e4567-e89b-12d3-a456-426614174000", - remoteId: "exp_123e4567-e89b-12d3-a456-426614174000", - createdAt: new Date("2024-01-31T12:00:00.000Z"), - modifiedAt: new Date("2024-01-31T14:30:00.000Z"), - reportDate: new Date("2024-01-31T00:00:00.000Z"), - reportIdentifier: "EXP-2024-001", - employee: "b9a9b824-6172-4d63-9d90-1c8a86c4f3b1", - status: "DRAFT", - totalAmount: 150, - lines: [ - { - id: "1234", - remoteId: "abcd-1234", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - account: "acc-1234", - description: "Client lunch meeting", - expenseDate: new Date("2024-01-15T00:00:00.000Z"), - amount: 50, - currency: "USD", - exchangeRate: "exchange_rate", - isBillable: true, - trackingCategories: ["cat-1", "cat-2"], - employee: "emp-1234", - project: "proj-5678", - company: "comp-1234", - contact: "cont-5678", - quantity: 1, - unitPrice: 50, - nonReimbursable: false, - taxAmount: 5, - inclusiveOfTax: false, - taxRate: "tax-1234", - remoteWasDeleted: false, - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - currency: "XUA", - description: "January 2024 Travel Expenses", - accountingPeriod: "7d793c67-9f72-4a6b-9256-3936f237b0d9", - company: "company", - trackingCategories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("linesRemoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: ["field_choices"], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/expense-reports/lines/remote-field-classes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.expenseReports.linesRemoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: ["field_choices"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/expense-reports/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.expenseReports.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("remoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: ["field_choices"], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/expense-reports/remote-field-classes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.expenseReports.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: ["field_choices"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/expenses.test.ts b/tests/wire/accounting/expenses.test.ts deleted file mode 100644 index 6664d2db7..000000000 --- a/tests/wire/accounting/expenses.test.ts +++ /dev/null @@ -1,1229 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("ExpensesClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - transaction_date: "2024-01-15T09:30:00Z", - remote_created_at: "2020-03-31T00:00:00Z", - account: "account", - contact: "contact", - total_amount: 10000, - sub_total: 1.1, - total_tax_amount: 1.1, - currency: "XUA", - exchange_rate: "2.9", - inclusive_of_tax: true, - company: "company", - employee: "employee", - memo: "New employee supplies", - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - net_amount: 25.54, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", - account: "2a56344a-a491-11ec-b909-0242ac120002", - contact: "c640b80b-fac9-409f-aa19-1f9221aec445", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - description: "MacBook Pro", - exchange_rate: "2.9", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - quantity: "quantity", - unit_price: "unit_price", - remote_was_deleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121223", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - net_amount: 10, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - account: "2a56344a-a491-11ec-b909-0242ac120002", - description: "Desk Lamp", - exchange_rate: "2.9", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - }, - ], - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - remote_was_deleted: true, - accounting_period: "accounting_period", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/expenses") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.expenses.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "account", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), - transactionDateBefore: new Date("2024-01-15T09:30:00.000Z"), - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - transactionDate: new Date("2024-01-15T09:30:00.000Z"), - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - account: "account", - contact: "contact", - totalAmount: 10000, - subTotal: 1.1, - totalTaxAmount: 1.1, - currency: "XUA", - exchangeRate: "2.9", - inclusiveOfTax: true, - company: "company", - employee: "employee", - memo: "New employee supplies", - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - netAmount: 25.54, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", - account: "2a56344a-a491-11ec-b909-0242ac120002", - contact: "c640b80b-fac9-409f-aa19-1f9221aec445", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - description: "MacBook Pro", - exchangeRate: "2.9", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - quantity: "quantity", - unitPrice: "unit_price", - remoteWasDeleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121223", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - netAmount: 10, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - account: "2a56344a-a491-11ec-b909-0242ac120002", - description: "Desk Lamp", - exchangeRate: "2.9", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - }, - ], - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - remoteWasDeleted: true, - accountingPeriod: "accounting_period", - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - transaction_date: "2024-01-15T09:30:00Z", - remote_created_at: "2020-03-31T00:00:00Z", - account: "account", - contact: "contact", - total_amount: 10000, - sub_total: 1.1, - total_tax_amount: 1.1, - currency: "XUA", - exchange_rate: "2.9", - inclusive_of_tax: true, - company: "company", - employee: "employee", - memo: "New employee supplies", - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - net_amount: 25.54, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", - account: "2a56344a-a491-11ec-b909-0242ac120002", - contact: "c640b80b-fac9-409f-aa19-1f9221aec445", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - description: "MacBook Pro", - exchange_rate: "2.9", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - quantity: "quantity", - unit_price: "unit_price", - remote_was_deleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121223", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - net_amount: 10, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - account: "2a56344a-a491-11ec-b909-0242ac120002", - description: "Desk Lamp", - exchange_rate: "2.9", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - }, - ], - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - remote_was_deleted: true, - accounting_period: "accounting_period", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/accounting/v1/expenses") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.expenses.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - transactionDate: new Date("2024-01-15T09:30:00.000Z"), - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - account: "account", - contact: "contact", - totalAmount: 10000, - subTotal: 1.1, - totalTaxAmount: 1.1, - currency: "XUA", - exchangeRate: "2.9", - inclusiveOfTax: true, - company: "company", - employee: "employee", - memo: "New employee supplies", - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - netAmount: 25.54, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", - account: "2a56344a-a491-11ec-b909-0242ac120002", - contact: "c640b80b-fac9-409f-aa19-1f9221aec445", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - description: "MacBook Pro", - exchangeRate: "2.9", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - quantity: "quantity", - unitPrice: "unit_price", - remoteWasDeleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121223", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - netAmount: 10, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - account: "2a56344a-a491-11ec-b909-0242ac120002", - description: "Desk Lamp", - exchangeRate: "2.9", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - }, - ], - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - remoteWasDeleted: true, - accountingPeriod: "accounting_period", - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - transaction_date: "2024-01-15T09:30:00Z", - remote_created_at: "2020-03-31T00:00:00Z", - account: "account", - contact: "contact", - total_amount: 10000, - sub_total: 1.1, - total_tax_amount: 1.1, - currency: "XUA", - exchange_rate: "2.9", - inclusive_of_tax: true, - company: "company", - employee: "employee", - memo: "New employee supplies", - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - net_amount: 25.54, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", - currency: "XUA", - account: "2a56344a-a491-11ec-b909-0242ac120002", - contact: "c640b80b-fac9-409f-aa19-1f9221aec445", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - description: "MacBook Pro", - exchange_rate: "2.9", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - quantity: "quantity", - unit_price: "unit_price", - remote_was_deleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121223", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - net_amount: 10, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "employee", - currency: "XUA", - account: "2a56344a-a491-11ec-b909-0242ac120002", - contact: "contact", - project: "project", - description: "Desk Lamp", - exchange_rate: "2.9", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - quantity: "quantity", - unit_price: "unit_price", - remote_was_deleted: true, - }, - ], - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - remote_was_deleted: true, - accounting_period: "accounting_period", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - server - .mockEndpoint() - .get("/accounting/v1/expenses/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.expenses.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - transactionDate: new Date("2024-01-15T09:30:00.000Z"), - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - account: "account", - contact: "contact", - totalAmount: 10000, - subTotal: 1.1, - totalTaxAmount: 1.1, - currency: "XUA", - exchangeRate: "2.9", - inclusiveOfTax: true, - company: "company", - employee: "employee", - memo: "New employee supplies", - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - netAmount: 25.54, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", - currency: "XUA", - account: "2a56344a-a491-11ec-b909-0242ac120002", - contact: "c640b80b-fac9-409f-aa19-1f9221aec445", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - description: "MacBook Pro", - exchangeRate: "2.9", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - quantity: "quantity", - unitPrice: "unit_price", - remoteWasDeleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121223", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - netAmount: 10, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "employee", - currency: "XUA", - account: "2a56344a-a491-11ec-b909-0242ac120002", - contact: "contact", - project: "project", - description: "Desk Lamp", - exchangeRate: "2.9", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - quantity: "quantity", - unitPrice: "unit_price", - remoteWasDeleted: true, - }, - ], - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - remoteWasDeleted: true, - accountingPeriod: "accounting_period", - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("linesRemoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: ["field_choices"], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/expenses/lines/remote-field-classes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.expenses.linesRemoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: ["field_choices"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/expenses/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.expenses.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("remoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: ["field_choices"], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/expenses/remote-field-classes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.expenses.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: ["field_choices"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/fieldMapping.test.ts b/tests/wire/accounting/fieldMapping.test.ts deleted file mode 100644 index 876cba868..000000000 --- a/tests/wire/accounting/fieldMapping.test.ts +++ /dev/null @@ -1,2716 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("FieldMappingClient", () => { - test("field_mappings_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Account: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - AccountingAttachment: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - BalanceSheet: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - CashFlowStatement: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - CompanyInfo: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Contact: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - IncomeStatement: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - CreditNote: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Item: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - PurchaseOrder: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - ExpenseReport: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - TrackingCategory: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - JournalEntry: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - TaxRate: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Invoice: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Payment: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Expense: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - VendorCredit: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Transaction: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - AccountingPeriod: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - GeneralLedgerTransaction: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - BankFeedAccount: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Employee: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - PaymentMethod: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Project: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - PaymentTerm: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/field-mappings") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.fieldMapping.fieldMappingsRetrieve({ - excludeRemoteFieldMetadata: true, - }); - expect(response).toEqual({ - account: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - accountingAttachment: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - balanceSheet: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - cashFlowStatement: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - companyInfo: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - contact: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - incomeStatement: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - creditNote: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - item: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - purchaseOrder: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - expenseReport: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - trackingCategory: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - journalEntry: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - taxRate: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - invoice: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - payment: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - expense: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - vendorCredit: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - transaction: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - accountingPeriod: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - generalLedgerTransaction: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - bankFeedAccount: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - employee: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - paymentMethod: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - project: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - paymentTerm: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - }); - }); - - test("field_mappings_create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { - target_field_name: "example_target_field_name", - target_field_description: "this is a example description of the target field", - remote_field_traversal_path: ["example_remote_field"], - remote_method: "GET", - remote_url_path: "/example-url-path", - common_model_name: "ExampleCommonModel", - }; - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/accounting/v1/field-mappings") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.fieldMapping.fieldMappingsCreate({ - excludeRemoteFieldMetadata: true, - targetFieldName: "example_target_field_name", - targetFieldDescription: "this is a example description of the target field", - remoteFieldTraversalPath: ["example_remote_field"], - remoteMethod: "GET", - remoteUrlPath: "/example-url-path", - commonModelName: "ExampleCommonModel", - }); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("field_mappings_destroy", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .delete("/accounting/v1/field-mappings/field_mapping_id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.fieldMapping.fieldMappingsDestroy("field_mapping_id"); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("field_mappings_partial_update", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = {}; - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .patch("/accounting/v1/field-mappings/field_mapping_id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("remote_fields_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Account: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - AccountingAttachment: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - BalanceSheet: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - CashFlowStatement: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - CompanyInfo: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Contact: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - IncomeStatement: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - CreditNote: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Item: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - PurchaseOrder: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - TrackingCategory: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - JournalEntry: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - TaxRate: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Invoice: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Payment: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Expense: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - VendorCredit: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Transaction: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - AccountingPeriod: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - GeneralLedgerTransaction: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - BankFeedAccount: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Employee: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - PaymentMethod: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Project: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - PaymentTerm: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/remote-fields") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.fieldMapping.remoteFieldsRetrieve({ - commonModels: "common_models", - includeExampleValues: "include_example_values", - }); - expect(response).toEqual({ - account: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - accountingAttachment: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - balanceSheet: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - cashFlowStatement: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - companyInfo: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - contact: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - incomeStatement: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - creditNote: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - item: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - purchaseOrder: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - trackingCategory: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - journalEntry: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - taxRate: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - invoice: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - payment: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - expense: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - vendorCredit: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - transaction: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - accountingPeriod: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - generalLedgerTransaction: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - bankFeedAccount: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - employee: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - paymentMethod: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - project: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - paymentTerm: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - }); - }); - - test("target_fields_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Account: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - AccountingAttachment: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - BalanceSheet: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - CashFlowStatement: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - CompanyInfo: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Contact: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - IncomeStatement: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - CreditNote: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Item: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - PurchaseOrder: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - ExpenseReport: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - TrackingCategory: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - JournalEntry: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - TaxRate: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Invoice: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Payment: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Expense: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - VendorCredit: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Transaction: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - AccountingPeriod: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - GeneralLedgerTransaction: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - BankFeedAccount: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Employee: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - PaymentMethod: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Project: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - PaymentTerm: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/target-fields") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.fieldMapping.targetFieldsRetrieve(); - expect(response).toEqual({ - account: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - accountingAttachment: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - balanceSheet: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - cashFlowStatement: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - companyInfo: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - contact: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - incomeStatement: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - creditNote: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - item: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - purchaseOrder: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - expenseReport: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - trackingCategory: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - journalEntry: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - taxRate: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - invoice: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - payment: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - expense: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - vendorCredit: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - transaction: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - accountingPeriod: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - generalLedgerTransaction: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - bankFeedAccount: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - employee: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - paymentMethod: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - project: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - paymentTerm: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/forceResync.test.ts b/tests/wire/accounting/forceResync.test.ts deleted file mode 100644 index 2140a81e2..000000000 --- a/tests/wire/accounting/forceResync.test.ts +++ /dev/null @@ -1,52 +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("ForceResyncClient", () => { - test("sync_status_resync_create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = [ - { - model_name: "Invoice", - model_id: "accounting.Invoices", - last_sync_start: "2021-03-30T19:44:18Z", - next_sync_start: "2021-03-30T20:44:18Z", - last_sync_result: "SYNCING", - last_sync_finished: "2021-03-30T19:55:18Z", - status: "SYNCING", - is_initial_sync: true, - selective_sync_configurations_usage: "IN_NEXT_SYNC", - }, - ]; - server - .mockEndpoint() - .post("/accounting/v1/sync-status/resync") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.forceResync.syncStatusResyncCreate(); - expect(response).toEqual([ - { - modelName: "Invoice", - modelId: "accounting.Invoices", - lastSyncStart: new Date("2021-03-30T19:44:18.000Z"), - nextSyncStart: new Date("2021-03-30T20:44:18.000Z"), - lastSyncResult: "SYNCING", - lastSyncFinished: new Date("2021-03-30T19:55:18.000Z"), - status: "SYNCING", - isInitialSync: true, - selectiveSyncConfigurationsUsage: "IN_NEXT_SYNC", - }, - ]); - }); -}); diff --git a/tests/wire/accounting/generalLedgerTransactions.test.ts b/tests/wire/accounting/generalLedgerTransactions.test.ts deleted file mode 100644 index e8316aac2..000000000 --- a/tests/wire/accounting/generalLedgerTransactions.test.ts +++ /dev/null @@ -1,323 +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("GeneralLedgerTransactionsClient", () => { - 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: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", - remote_id: "987300", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - underlying_transaction_remote_id: "1234", - underlying_transaction_type: "INVOICE", - accounting_period: "accounting_period", - company: "company", - remote_updated_at: "2020-03-31T00:00:00Z", - remote_created_at: "2020-03-31T00:00:00Z", - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - posting_date: "2020-03-31T00:00:00Z", - general_ledger_transaction_lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "123", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - account: "a47e11b6-c73b-4a0c-be31-130fc48177fa", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - contact: "d6e687d6-0c36-48a1-8114-35324b5cb38f", - base_currency: "USD", - transaction_currency: "USD", - exchange_rate: "exchange_rate", - description: "Invoice created", - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - debit_amount: "debit_amount", - credit_amount: "credit_amount", - item: "a47e11b6-c73b-4a0c-be31-130fc48177fa", - foreign_debit_amount: "foreign_debit_amount", - foreign_credit_amount: "foreign_credit_amount", - remote_was_deleted: false, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - }, - ], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", - remoteId: "987300", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - underlyingTransactionRemoteId: "1234", - underlyingTransactionType: "INVOICE", - accountingPeriod: "accounting_period", - company: "company", - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - postingDate: new Date("2020-03-31T00:00:00.000Z"), - generalLedgerTransactionLines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "123", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - account: "a47e11b6-c73b-4a0c-be31-130fc48177fa", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - contact: "d6e687d6-0c36-48a1-8114-35324b5cb38f", - baseCurrency: "USD", - transactionCurrency: "USD", - exchangeRate: "exchange_rate", - description: "Invoice created", - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - debitAmount: "debit_amount", - creditAmount: "credit_amount", - item: "a47e11b6-c73b-4a0c-be31-130fc48177fa", - foreignDebitAmount: "foreign_debit_amount", - foreignCreditAmount: "foreign_credit_amount", - remoteWasDeleted: false, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - }, - ], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", - remote_id: "987300", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - underlying_transaction_remote_id: "1234", - underlying_transaction_type: "INVOICE", - accounting_period: "accounting_period", - company: "company", - remote_updated_at: "2020-03-31T00:00:00Z", - remote_created_at: "2020-03-31T00:00:00Z", - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - posting_date: "2020-03-31T00:00:00Z", - general_ledger_transaction_lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "123", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - account: "a47e11b6-c73b-4a0c-be31-130fc48177fa", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "employee", - contact: "d6e687d6-0c36-48a1-8114-35324b5cb38f", - project: "project", - base_currency: "USD", - transaction_currency: "USD", - exchange_rate: "exchange_rate", - description: "Invoice created", - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - debit_amount: "debit_amount", - credit_amount: "credit_amount", - item: "a47e11b6-c73b-4a0c-be31-130fc48177fa", - foreign_debit_amount: "foreign_debit_amount", - foreign_credit_amount: "foreign_credit_amount", - remote_was_deleted: false, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - }, - ], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/accounting/v1/general-ledger-transactions/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.generalLedgerTransactions.retrieve("id", { - expand: "accounting_period", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", - remoteId: "987300", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - underlyingTransactionRemoteId: "1234", - underlyingTransactionType: "INVOICE", - accountingPeriod: "accounting_period", - company: "company", - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - postingDate: new Date("2020-03-31T00:00:00.000Z"), - generalLedgerTransactionLines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "123", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - account: "a47e11b6-c73b-4a0c-be31-130fc48177fa", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "employee", - contact: "d6e687d6-0c36-48a1-8114-35324b5cb38f", - project: "project", - baseCurrency: "USD", - transactionCurrency: "USD", - exchangeRate: "exchange_rate", - description: "Invoice created", - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - debitAmount: "debit_amount", - creditAmount: "credit_amount", - item: "a47e11b6-c73b-4a0c-be31-130fc48177fa", - foreignDebitAmount: "foreign_debit_amount", - foreignCreditAmount: "foreign_credit_amount", - remoteWasDeleted: false, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - }, - ], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/generateKey.test.ts b/tests/wire/accounting/generateKey.test.ts deleted file mode 100644 index 530028d42..000000000 --- a/tests/wire/accounting/generateKey.test.ts +++ /dev/null @@ -1,37 +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("GenerateKeyClient", () => { - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { name: "Remote Deployment Key 1" }; - const rawResponseBody = { - name: "Remote Deployment Key 1", - key: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", - }; - server - .mockEndpoint() - .post("/accounting/v1/generate-key") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.generateKey.create({ - name: "Remote Deployment Key 1", - }); - expect(response).toEqual({ - name: "Remote Deployment Key 1", - key: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", - }); - }); -}); diff --git a/tests/wire/accounting/incomeStatements.test.ts b/tests/wire/accounting/incomeStatements.test.ts deleted file mode 100644 index d4a825201..000000000 --- a/tests/wire/accounting/incomeStatements.test.ts +++ /dev/null @@ -1,453 +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("IncomeStatementsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remote_id: "1342348", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "IncomeStatement", - currency: "XUA", - company: "company", - start_period: "2024-01-15T09:30:00Z", - end_period: "2024-01-15T09:30:00Z", - income: [ - { - remote_id: "10299", - created_at: "2021-09-15T00:00:00Z", - 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 }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - cost_of_sales: [ - { - remote_id: "10299", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Total COGS", - value: 25, - sub_items: [{ remote_id: "10200", name: "Supplies", value: 10 }], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - gross_profit: 300, - operating_expenses: [ - { - remote_id: "10299", - created_at: "2021-09-15T00:00:00Z", - 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 }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - net_operating_income: 200, - non_operating_expenses: [ - { - remote_id: "10299", - created_at: "2021-09-15T00:00:00Z", - 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 }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - net_income: 100, - 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/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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remoteId: "1342348", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "IncomeStatement", - currency: "XUA", - company: "company", - startPeriod: new Date("2024-01-15T09:30:00.000Z"), - endPeriod: new Date("2024-01-15T09:30:00.000Z"), - income: [ - { - remoteId: "10299", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Total Income", - value: 325, - subItems: [ - { - remote_id: "10200", - name: "Landscaping Services", - value: 425, - }, - { - remote_id: "10201", - name: "Pest Control Services", - value: -100, - }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - costOfSales: [ - { - remoteId: "10299", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Total COGS", - value: 25, - subItems: [ - { - remote_id: "10200", - name: "Supplies", - value: 10, - }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - grossProfit: 300, - operatingExpenses: [ - { - remoteId: "10299", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - 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, - }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - netOperatingIncome: 200, - nonOperatingExpenses: [ - { - remoteId: "10299", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - 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, - }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - netIncome: 100, - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remote_id: "1342348", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "IncomeStatement", - currency: "XUA", - company: "company", - start_period: "2024-01-15T09:30:00Z", - end_period: "2024-01-15T09:30:00Z", - income: [ - { - remote_id: "10299", - created_at: "2021-09-15T00:00:00Z", - 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 }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: true, - }, - ], - cost_of_sales: [ - { - remote_id: "10299", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Total COGS", - value: 25, - sub_items: [{ remote_id: "10200", name: "Supplies", value: 10 }], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: true, - }, - ], - gross_profit: 300, - operating_expenses: [ - { - remote_id: "10299", - created_at: "2021-09-15T00:00:00Z", - 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 }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: true, - }, - ], - net_operating_income: 200, - non_operating_expenses: [ - { - remote_id: "10299", - created_at: "2021-09-15T00:00:00Z", - 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 }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: true, - }, - ], - net_income: 100, - 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/income-statements/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.incomeStatements.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remoteId: "1342348", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "IncomeStatement", - currency: "XUA", - company: "company", - startPeriod: new Date("2024-01-15T09:30:00.000Z"), - endPeriod: new Date("2024-01-15T09:30:00.000Z"), - income: [ - { - remoteId: "10299", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Total Income", - value: 325, - subItems: [ - { - remote_id: "10200", - name: "Landscaping Services", - value: 425, - }, - { - remote_id: "10201", - name: "Pest Control Services", - value: -100, - }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: true, - }, - ], - costOfSales: [ - { - remoteId: "10299", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Total COGS", - value: 25, - subItems: [ - { - remote_id: "10200", - name: "Supplies", - value: 10, - }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: true, - }, - ], - grossProfit: 300, - operatingExpenses: [ - { - remoteId: "10299", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - 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, - }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: true, - }, - ], - netOperatingIncome: 200, - nonOperatingExpenses: [ - { - remoteId: "10299", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - 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, - }, - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: true, - }, - ], - netIncome: 100, - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/invoices.test.ts b/tests/wire/accounting/invoices.test.ts deleted file mode 100644 index 929602226..000000000 --- a/tests/wire/accounting/invoices.test.ts +++ /dev/null @@ -1,2084 +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("InvoicesClient", () => { - 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: "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", - ], - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - applied_payments: ["9017594e-dc33-4113-a5d2-b0f928e34fdd"], - line_items: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "8765432", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - description: "Pickleball lessons", - unit_price: 50, - quantity: 1, - total_amount: 50, - employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "908934-49j9-093f-0989-908923908", - currency: "USD", - exchange_rate: "2.9", - item: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - account: "cd0f32d4-a493-11ec-b909-0242ac120002", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - }, - ], - applied_credit_notes: [ - { - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - credit_note: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - applied_date: "2020-03-31T00:00:00Z", - applied_amount: "2.9", - }, - ], - applied_vendor_credits: [ - { - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - vendor_credit: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - applied_date: "2020-03-31T00:00:00Z", - applied_amount: "2.9", - }, - ], - inclusive_of_tax: true, - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/invoices") - .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({ - 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", - ], - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - appliedPayments: ["9017594e-dc33-4113-a5d2-b0f928e34fdd"], - lineItems: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "8765432", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - description: "Pickleball lessons", - unitPrice: 50, - quantity: 1, - totalAmount: 50, - employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "908934-49j9-093f-0989-908923908", - currency: "USD", - exchangeRate: "2.9", - item: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - account: "cd0f32d4-a493-11ec-b909-0242ac120002", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - }, - ], - appliedCreditNotes: [ - { - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - creditNote: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - appliedAmount: "2.9", - }, - ], - appliedVendorCredits: [ - { - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - vendorCredit: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - appliedAmount: "2.9", - }, - ], - inclusiveOfTax: true, - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - 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: "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", - ], - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - applied_payments: ["9017594e-dc33-4113-a5d2-b0f928e34fdd"], - line_items: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "8765432", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - description: "Pickleball lessons", - unit_price: 50, - quantity: 1, - total_amount: 50, - employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "908934-49j9-093f-0989-908923908", - currency: "USD", - exchange_rate: "2.9", - item: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - account: "cd0f32d4-a493-11ec-b909-0242ac120002", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - }, - ], - applied_credit_notes: [ - { - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - credit_note: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - applied_date: "2020-03-31T00:00:00Z", - applied_amount: "2.9", - }, - ], - applied_vendor_credits: [ - { - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - vendor_credit: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - applied_date: "2020-03-31T00:00:00Z", - applied_amount: "2.9", - }, - ], - inclusive_of_tax: true, - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/accounting/v1/invoices") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.invoices.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "9871b4a9-f5d2-4f3b-a66b-dfedbed42c46", - remoteId: "990110", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - type: "ACCOUNTS_RECEIVABLE", - contact: "contact", - number: "AIQ12546", - issueDate: new Date("2020-03-31T00:00:00.000Z"), - dueDate: new Date("2020-04-15T00:00:00.000Z"), - paidOnDate: new Date("2020-04-01T00:00:00.000Z"), - memo: "Weekly Payment", - company: "company", - employee: "employee", - currency: "XUA", - exchangeRate: "2.9", - paymentTerm: "payment_term", - totalDiscount: 1.1, - subTotal: 100, - status: "PAID", - totalTaxAmount: 5, - totalAmount: 105, - balance: 105, - remoteUpdatedAt: new Date("2020-04-01T00:00:00.000Z"), - trackingCategories: [ - "7dc5ca17-d311-44cd-9ce0-333080367a18", - "6aa0700c-48e1-4c4a-8162-02e6a582df05", - "8c933d61-8f5b-4360-ac0c-c9dc87bee763", - ], - accountingPeriod: "accounting_period", - purchaseOrders: [ - "e7378d8f-3992-4c2a-8417-ebdc4f2bfeb7", - "dd70ca2f-b120-46fa-889a-9604037f45fd", - "889b281d-739c-4759-95b8-0aedb3947131", - ], - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - appliedPayments: ["9017594e-dc33-4113-a5d2-b0f928e34fdd"], - lineItems: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "8765432", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - description: "Pickleball lessons", - unitPrice: 50, - quantity: 1, - totalAmount: 50, - employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "908934-49j9-093f-0989-908923908", - currency: "USD", - exchangeRate: "2.9", - item: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - account: "cd0f32d4-a493-11ec-b909-0242ac120002", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - }, - ], - appliedCreditNotes: [ - { - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - creditNote: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - appliedAmount: "2.9", - }, - ], - appliedVendorCredits: [ - { - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - vendorCredit: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - appliedAmount: "2.9", - }, - ], - inclusiveOfTax: true, - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - 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", - ], - 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", - remote_was_deleted: true, - field_mappings: { - 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" }], - }, - ], - applied_credit_notes: [ - { - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - credit_note: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - applied_date: "2020-03-31T00:00:00Z", - applied_amount: "2.9", - remote_was_deleted: true, - }, - ], - applied_vendor_credits: [ - { - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - vendor_credit: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - applied_date: "2020-03-31T00:00:00Z", - applied_amount: "2.9", - remote_was_deleted: true, - }, - ], - inclusive_of_tax: true, - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - server - .mockEndpoint() - .get("/accounting/v1/invoices/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.invoices.retrieve("id", { - expand: "accounting_period", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - remoteFields: "type", - showEnumOrigins: "type", - }); - expect(response).toEqual({ - id: "9871b4a9-f5d2-4f3b-a66b-dfedbed42c46", - remoteId: "990110", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - type: "ACCOUNTS_RECEIVABLE", - contact: "contact", - number: "AIQ12546", - issueDate: new Date("2020-03-31T00:00:00.000Z"), - dueDate: new Date("2020-04-15T00:00:00.000Z"), - paidOnDate: new Date("2020-04-01T00:00:00.000Z"), - memo: "Weekly Payment", - company: "company", - employee: "employee", - currency: "XUA", - exchangeRate: "2.9", - paymentTerm: "payment_term", - totalDiscount: 1.1, - subTotal: 100, - status: "PAID", - totalTaxAmount: 5, - totalAmount: 105, - balance: 105, - remoteUpdatedAt: new Date("2020-04-01T00:00:00.000Z"), - trackingCategories: [ - "7dc5ca17-d311-44cd-9ce0-333080367a18", - "6aa0700c-48e1-4c4a-8162-02e6a582df05", - "8c933d61-8f5b-4360-ac0c-c9dc87bee763", - ], - accountingPeriod: "accounting_period", - purchaseOrders: [ - "e7378d8f-3992-4c2a-8417-ebdc4f2bfeb7", - "dd70ca2f-b120-46fa-889a-9604037f45fd", - "889b281d-739c-4759-95b8-0aedb3947131", - ], - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - appliedPayments: ["9017594e-dc33-4113-a5d2-b0f928e34fdd"], - lineItems: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "8765432", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - description: "Pickleball lessons", - unitPrice: 50, - quantity: 1, - totalAmount: 50, - employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "908934-49j9-093f-0989-908923908", - currency: "USD", - exchangeRate: "2.9", - item: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - account: "cd0f32d4-a493-11ec-b909-0242ac120002", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - appliedCreditNotes: [ - { - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - creditNote: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - appliedAmount: "2.9", - remoteWasDeleted: true, - }, - ], - appliedVendorCredits: [ - { - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - vendorCredit: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - appliedAmount: "2.9", - remoteWasDeleted: true, - }, - ], - inclusiveOfTax: true, - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("partialUpdate", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "9871b4a9-f5d2-4f3b-a66b-dfedbed42c46", - remote_id: "990110", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - type: "ACCOUNTS_RECEIVABLE", - contact: "contact", - number: "AIQ12546", - issue_date: "2020-03-31T00:00:00Z", - due_date: "2020-04-15T00:00:00Z", - paid_on_date: "2020-04-01T00:00:00Z", - memo: "Weekly Payment", - company: "company", - employee: "employee", - currency: "XUA", - exchange_rate: "2.9", - payment_term: "payment_term", - total_discount: 1.1, - sub_total: 100, - status: "PAID", - total_tax_amount: 5, - total_amount: 105, - balance: 105, - remote_updated_at: "2020-04-01T00:00:00Z", - tracking_categories: [ - "7dc5ca17-d311-44cd-9ce0-333080367a18", - "6aa0700c-48e1-4c4a-8162-02e6a582df05", - "8c933d61-8f5b-4360-ac0c-c9dc87bee763", - ], - accounting_period: "accounting_period", - purchase_orders: [ - "e7378d8f-3992-4c2a-8417-ebdc4f2bfeb7", - "dd70ca2f-b120-46fa-889a-9604037f45fd", - "889b281d-739c-4759-95b8-0aedb3947131", - ], - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - applied_payments: ["9017594e-dc33-4113-a5d2-b0f928e34fdd"], - line_items: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "8765432", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - description: "Pickleball lessons", - unit_price: 50, - quantity: 1, - total_amount: 50, - employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "908934-49j9-093f-0989-908923908", - currency: "USD", - exchange_rate: "2.9", - item: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - account: "cd0f32d4-a493-11ec-b909-0242ac120002", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - }, - ], - applied_credit_notes: [ - { - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - credit_note: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - applied_date: "2020-03-31T00:00:00Z", - applied_amount: "2.9", - }, - ], - applied_vendor_credits: [ - { - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - vendor_credit: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - applied_date: "2020-03-31T00:00:00Z", - applied_amount: "2.9", - }, - ], - inclusive_of_tax: true, - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .patch("/accounting/v1/invoices/id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.invoices.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "9871b4a9-f5d2-4f3b-a66b-dfedbed42c46", - remoteId: "990110", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - type: "ACCOUNTS_RECEIVABLE", - contact: "contact", - number: "AIQ12546", - issueDate: new Date("2020-03-31T00:00:00.000Z"), - dueDate: new Date("2020-04-15T00:00:00.000Z"), - paidOnDate: new Date("2020-04-01T00:00:00.000Z"), - memo: "Weekly Payment", - company: "company", - employee: "employee", - currency: "XUA", - exchangeRate: "2.9", - paymentTerm: "payment_term", - totalDiscount: 1.1, - subTotal: 100, - status: "PAID", - totalTaxAmount: 5, - totalAmount: 105, - balance: 105, - remoteUpdatedAt: new Date("2020-04-01T00:00:00.000Z"), - trackingCategories: [ - "7dc5ca17-d311-44cd-9ce0-333080367a18", - "6aa0700c-48e1-4c4a-8162-02e6a582df05", - "8c933d61-8f5b-4360-ac0c-c9dc87bee763", - ], - accountingPeriod: "accounting_period", - purchaseOrders: [ - "e7378d8f-3992-4c2a-8417-ebdc4f2bfeb7", - "dd70ca2f-b120-46fa-889a-9604037f45fd", - "889b281d-739c-4759-95b8-0aedb3947131", - ], - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - appliedPayments: ["9017594e-dc33-4113-a5d2-b0f928e34fdd"], - lineItems: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "8765432", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - description: "Pickleball lessons", - unitPrice: 50, - quantity: 1, - totalAmount: 50, - employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "908934-49j9-093f-0989-908923908", - currency: "USD", - exchangeRate: "2.9", - item: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - account: "cd0f32d4-a493-11ec-b909-0242ac120002", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - }, - ], - appliedCreditNotes: [ - { - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - creditNote: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - appliedAmount: "2.9", - }, - ], - appliedVendorCredits: [ - { - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - vendorCredit: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - appliedAmount: "2.9", - }, - ], - inclusiveOfTax: true, - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("lineItemsRemoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: ["field_choices"], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/invoices/line-items/remote-field-classes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.invoices.lineItemsRemoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: ["field_choices"], - }, - ], - }); - }); - - test("metaPatchRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/invoices/meta/patch/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.invoices.metaPatchRetrieve("id"); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/invoices/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.invoices.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("remoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: ["field_choices"], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: ["field_choices"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/issues.test.ts b/tests/wire/accounting/issues.test.ts deleted file mode 100644 index c1f081d95..000000000 --- a/tests/wire/accounting/issues.test.ts +++ /dev/null @@ -1,117 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("IssuesClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - error_description: "Missing Permissions", - end_user: { key: "value" }, - first_incident_time: "2022-12-05T16:19:15Z", - last_incident_time: "2022-12-05T16:19:15Z", - is_muted: true, - error_details: ["Missing employee permissions.", "Missing time off permissions."], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/issues") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.issues.list({ - accountToken: "account_token", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - endUserOrganizationName: "end_user_organization_name", - firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - includeMuted: "include_muted", - integrationName: "integration_name", - lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - linkedAccountId: "linked_account_id", - pageSize: 1, - startDate: "start_date", - status: "ONGOING", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - errorDescription: "Missing Permissions", - endUser: { - key: "value", - }, - firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - isMuted: true, - errorDetails: ["Missing employee permissions.", "Missing time off permissions."], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - error_description: "Missing Permissions", - end_user: { key: "value" }, - first_incident_time: "2022-12-05T16:19:15Z", - last_incident_time: "2022-12-05T16:19:15Z", - is_muted: true, - error_details: ["Missing employee permissions.", "Missing time off permissions."], - }; - server - .mockEndpoint() - .get("/accounting/v1/issues/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.issues.retrieve("id"); - expect(response).toEqual({ - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - errorDescription: "Missing Permissions", - endUser: { - key: "value", - }, - firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - isMuted: true, - errorDetails: ["Missing employee permissions.", "Missing time off permissions."], - }); - }); -}); diff --git a/tests/wire/accounting/items.test.ts b/tests/wire/accounting/items.test.ts deleted file mode 100644 index ef3708dc8..000000000 --- a/tests/wire/accounting/items.test.ts +++ /dev/null @@ -1,1315 +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("ItemsClient", () => { - 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: "d2f972d0-2526-434b-9409-4c3b468e08f0", - remote_id: "12374", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Pickleball Paddle", - status: "ACTIVE", - type: "INVENTORY", - unit_price: 10, - purchase_price: 25, - purchase_account: "purchase_account", - sales_account: "sales_account", - company: "company", - purchase_tax_rate: "purchase_tax_rate", - sales_tax_rate: "sales_tax_rate", - remote_updated_at: "2020-03-31T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/items") - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "d2f972d0-2526-434b-9409-4c3b468e08f0", - remoteId: "12374", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Pickleball Paddle", - status: "ACTIVE", - type: "INVENTORY", - unitPrice: 10, - purchasePrice: 25, - purchaseAccount: "purchase_account", - salesAccount: "sales_account", - company: "company", - purchaseTaxRate: "purchase_tax_rate", - salesTaxRate: "sales_tax_rate", - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("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: "d2f972d0-2526-434b-9409-4c3b468e08f0", - remote_id: "12374", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Pickleball Paddle", - status: "ACTIVE", - type: "INVENTORY", - unit_price: 10, - purchase_price: 25, - purchase_account: "purchase_account", - sales_account: "sales_account", - company: "company", - purchase_tax_rate: "purchase_tax_rate", - sales_tax_rate: "sales_tax_rate", - remote_updated_at: "2020-03-31T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/accounting/v1/items") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.items.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "d2f972d0-2526-434b-9409-4c3b468e08f0", - remoteId: "12374", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Pickleball Paddle", - status: "ACTIVE", - type: "INVENTORY", - unitPrice: 10, - purchasePrice: 25, - purchaseAccount: "purchase_account", - salesAccount: "sales_account", - company: "company", - purchaseTaxRate: "purchase_tax_rate", - salesTaxRate: "sales_tax_rate", - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "d2f972d0-2526-434b-9409-4c3b468e08f0", - remote_id: "12374", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Pickleball Paddle", - status: "ACTIVE", - type: "INVENTORY", - unit_price: 10, - purchase_price: 25, - purchase_account: "purchase_account", - sales_account: "sales_account", - company: "company", - purchase_tax_rate: "purchase_tax_rate", - sales_tax_rate: "sales_tax_rate", - remote_updated_at: "2020-03-31T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/accounting/v1/items/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.items.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeShellData: true, - remoteFields: "status", - showEnumOrigins: "status", - }); - expect(response).toEqual({ - id: "d2f972d0-2526-434b-9409-4c3b468e08f0", - remoteId: "12374", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Pickleball Paddle", - status: "ACTIVE", - type: "INVENTORY", - unitPrice: 10, - purchasePrice: 25, - purchaseAccount: "purchase_account", - salesAccount: "sales_account", - company: "company", - purchaseTaxRate: "purchase_tax_rate", - salesTaxRate: "sales_tax_rate", - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }); - }); - - test("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: "d2f972d0-2526-434b-9409-4c3b468e08f0", - remote_id: "12374", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Pickleball Paddle", - status: "ACTIVE", - type: "INVENTORY", - unit_price: 10, - purchase_price: 25, - purchase_account: "purchase_account", - sales_account: "sales_account", - company: "company", - purchase_tax_rate: "purchase_tax_rate", - sales_tax_rate: "sales_tax_rate", - remote_updated_at: "2020-03-31T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .patch("/accounting/v1/items/id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.items.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "d2f972d0-2526-434b-9409-4c3b468e08f0", - remoteId: "12374", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Pickleball Paddle", - status: "ACTIVE", - type: "INVENTORY", - unitPrice: 10, - purchasePrice: 25, - purchaseAccount: "purchase_account", - salesAccount: "sales_account", - company: "company", - purchaseTaxRate: "purchase_tax_rate", - salesTaxRate: "sales_tax_rate", - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("metaPatchRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/items/meta/patch/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.items.metaPatchRetrieve("id"); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/items/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.items.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/accounting/journalEntries.test.ts b/tests/wire/accounting/journalEntries.test.ts deleted file mode 100644 index ad3c41642..000000000 --- a/tests/wire/accounting/journalEntries.test.ts +++ /dev/null @@ -1,1217 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("JournalEntriesClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - transaction_date: "2020-03-31T00:00:00Z", - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - applied_payments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], - memo: "Weekly Payment", - currency: "XUA", - exchange_rate: "2.9", - company: "company", - inclusive_of_tax: true, - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - net_amount: 25.54, - tracking_categories: [ - "d25d609b-945f-4762-b55a-1c8fb220c43c", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - description: "Cash payment for lunch", - exchange_rate: "2.9", - remote_was_deleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121223", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - account: "f963f34d-3d2f-4f77-b557-cf36bc7e6498", - net_amount: 10, - tracking_categories: [ - "d25d609b-945f-4762-b55a-1c8fb220c43c", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", - contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - description: "Cash payment for lunch", - exchange_rate: "2.9", - }, - ], - journal_number: "42", - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - remote_was_deleted: true, - posting_status: "UNPOSTED", - accounting_period: "accounting_period", - remote_created_at: "2020-03-31T00:00:00Z", - remote_updated_at: "2020-03-31T00:00:00Z", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/journal-entries") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.journalEntries.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "accounting_period", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), - transactionDateBefore: new Date("2024-01-15T09:30:00.000Z"), - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - appliedPayments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], - memo: "Weekly Payment", - currency: "XUA", - exchangeRate: "2.9", - company: "company", - inclusiveOfTax: true, - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - netAmount: 25.54, - trackingCategories: [ - "d25d609b-945f-4762-b55a-1c8fb220c43c", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - description: "Cash payment for lunch", - exchangeRate: "2.9", - remoteWasDeleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121223", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - account: "f963f34d-3d2f-4f77-b557-cf36bc7e6498", - netAmount: 10, - trackingCategories: [ - "d25d609b-945f-4762-b55a-1c8fb220c43c", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", - contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - description: "Cash payment for lunch", - exchangeRate: "2.9", - }, - ], - journalNumber: "42", - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - remoteWasDeleted: true, - postingStatus: "UNPOSTED", - accountingPeriod: "accounting_period", - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - transaction_date: "2020-03-31T00:00:00Z", - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - applied_payments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], - memo: "Weekly Payment", - currency: "XUA", - exchange_rate: "2.9", - company: "company", - inclusive_of_tax: true, - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - net_amount: 25.54, - tracking_categories: [ - "d25d609b-945f-4762-b55a-1c8fb220c43c", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - description: "Cash payment for lunch", - exchange_rate: "2.9", - remote_was_deleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121223", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - account: "f963f34d-3d2f-4f77-b557-cf36bc7e6498", - net_amount: 10, - tracking_categories: [ - "d25d609b-945f-4762-b55a-1c8fb220c43c", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", - contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - description: "Cash payment for lunch", - exchange_rate: "2.9", - }, - ], - journal_number: "42", - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - remote_was_deleted: true, - posting_status: "UNPOSTED", - accounting_period: "accounting_period", - remote_created_at: "2020-03-31T00:00:00Z", - remote_updated_at: "2020-03-31T00:00:00Z", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/accounting/v1/journal-entries") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.journalEntries.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - appliedPayments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], - memo: "Weekly Payment", - currency: "XUA", - exchangeRate: "2.9", - company: "company", - inclusiveOfTax: true, - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - netAmount: 25.54, - trackingCategories: [ - "d25d609b-945f-4762-b55a-1c8fb220c43c", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - description: "Cash payment for lunch", - exchangeRate: "2.9", - remoteWasDeleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121223", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - account: "f963f34d-3d2f-4f77-b557-cf36bc7e6498", - netAmount: 10, - trackingCategories: [ - "d25d609b-945f-4762-b55a-1c8fb220c43c", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", - contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - description: "Cash payment for lunch", - exchangeRate: "2.9", - }, - ], - journalNumber: "42", - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - remoteWasDeleted: true, - postingStatus: "UNPOSTED", - accountingPeriod: "accounting_period", - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - transaction_date: "2020-03-31T00:00:00Z", - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - applied_payments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], - memo: "Weekly Payment", - currency: "XUA", - exchange_rate: "2.9", - company: "company", - inclusive_of_tax: true, - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - net_amount: 25.54, - tracking_categories: [ - "d25d609b-945f-4762-b55a-1c8fb220c43c", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - currency: "XUA", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - description: "Cash payment for lunch", - exchange_rate: "2.9", - remote_was_deleted: false, - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121223", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - account: "f963f34d-3d2f-4f77-b557-cf36bc7e6498", - net_amount: 10, - tracking_categories: [ - "d25d609b-945f-4762-b55a-1c8fb220c43c", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - currency: "XUA", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", - project: "project", - contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - description: "Cash payment for lunch", - exchange_rate: "2.9", - remote_was_deleted: true, - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - journal_number: "42", - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - remote_was_deleted: true, - posting_status: "UNPOSTED", - accounting_period: "accounting_period", - remote_created_at: "2020-03-31T00:00:00Z", - remote_updated_at: "2020-03-31T00:00:00Z", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - server - .mockEndpoint() - .get("/accounting/v1/journal-entries/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.journalEntries.retrieve("id", { - expand: "accounting_period", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - appliedPayments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], - memo: "Weekly Payment", - currency: "XUA", - exchangeRate: "2.9", - company: "company", - inclusiveOfTax: true, - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - netAmount: 25.54, - trackingCategories: [ - "d25d609b-945f-4762-b55a-1c8fb220c43c", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - currency: "XUA", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - description: "Cash payment for lunch", - exchangeRate: "2.9", - remoteWasDeleted: false, - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121223", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - account: "f963f34d-3d2f-4f77-b557-cf36bc7e6498", - netAmount: 10, - trackingCategories: [ - "d25d609b-945f-4762-b55a-1c8fb220c43c", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - currency: "XUA", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", - project: "project", - contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - description: "Cash payment for lunch", - exchangeRate: "2.9", - remoteWasDeleted: true, - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - journalNumber: "42", - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - remoteWasDeleted: true, - postingStatus: "UNPOSTED", - accountingPeriod: "accounting_period", - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("linesRemoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: ["field_choices"], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/journal-entries/lines/remote-field-classes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.journalEntries.linesRemoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: ["field_choices"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/journal-entries/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.journalEntries.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("remoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: ["field_choices"], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/journal-entries/remote-field-classes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.journalEntries.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: ["field_choices"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/linkToken.test.ts b/tests/wire/accounting/linkToken.test.ts deleted file mode 100644 index a0fcb84da..000000000 --- a/tests/wire/accounting/linkToken.test.ts +++ /dev/null @@ -1,47 +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("LinkTokenClient", () => { - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { - end_user_email_address: "example@gmail.com", - end_user_organization_name: "Test Organization", - end_user_origin_id: "12345", - categories: ["hris", "ats"], - }; - const rawResponseBody = { - link_token: "necdP7FtdASl1fQwm62be2_dM4wBG8_GactqoUV0", - integration_name: "Lever", - magic_link_url: "https://link.merge.dev/asdfjkl12345jsndfgi2i83n", - }; - server - .mockEndpoint() - .post("/accounting/v1/link-token") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.linkToken.create({ - endUserEmailAddress: "example@gmail.com", - endUserOrganizationName: "Test Organization", - endUserOriginId: "12345", - categories: ["hris", "ats"], - }); - expect(response).toEqual({ - linkToken: "necdP7FtdASl1fQwm62be2_dM4wBG8_GactqoUV0", - integrationName: "Lever", - magicLinkUrl: "https://link.merge.dev/asdfjkl12345jsndfgi2i83n", - }); - }); -}); diff --git a/tests/wire/accounting/linkedAccounts.test.ts b/tests/wire/accounting/linkedAccounts.test.ts deleted file mode 100644 index fbe46bcb1..000000000 --- a/tests/wire/accounting/linkedAccounts.test.ts +++ /dev/null @@ -1,114 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("LinkedAccountsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "e59b1821-f85c-4e28-a6b3-1804156f3563", - category: "hris", - status: "COMPLETE", - status_detail: "Invalid login credentials", - end_user_origin_id: "3ac95cde-6c7f-4eef-afec-be710b42308d", - end_user_organization_name: "Foo Bar, LLC", - end_user_email_address: "hradmin@foobar.dev", - subdomain: "foobar", - webhook_listener_url: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - is_duplicate: true, - integration: { - name: "name", - categories: ["hris"], - color: "color", - slug: "slug", - passthrough_available: true, - available_model_operations: [ - { - model_name: "Candidate", - available_operations: ["FETCH", "CREATE"], - required_post_parameters: ["remote_user_id"], - supported_fields: ["first_name", "last_name", "company", "title"], - }, - ], - }, - account_type: "PRODUCTION", - completed_at: "2024-08-26T20:11:19Z", - integration_specific_fields: { integration_specific_field: "Varies by platform" }, - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/linked-accounts") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.linkedAccounts.list({ - category: "accounting", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endUserEmailAddress: "end_user_email_address", - endUserOrganizationName: "end_user_organization_name", - endUserOriginId: "end_user_origin_id", - endUserOriginIds: "end_user_origin_ids", - id: "id", - ids: "ids", - includeDuplicates: true, - integrationName: "integration_name", - isTestAccount: "is_test_account", - pageSize: 1, - status: "status", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "e59b1821-f85c-4e28-a6b3-1804156f3563", - category: "hris", - status: "COMPLETE", - statusDetail: "Invalid login credentials", - endUserOriginId: "3ac95cde-6c7f-4eef-afec-be710b42308d", - endUserOrganizationName: "Foo Bar, LLC", - endUserEmailAddress: "hradmin@foobar.dev", - subdomain: "foobar", - webhookListenerUrl: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - isDuplicate: true, - integration: { - name: "name", - categories: ["hris"], - color: "color", - slug: "slug", - passthroughAvailable: true, - availableModelOperations: [ - { - modelName: "Candidate", - availableOperations: ["FETCH", "CREATE"], - requiredPostParameters: ["remote_user_id"], - supportedFields: ["first_name", "last_name", "company", "title"], - }, - ], - }, - accountType: "PRODUCTION", - completedAt: new Date("2024-08-26T20:11:19.000Z"), - integrationSpecificFields: { - integration_specific_field: "Varies by platform", - }, - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/passthrough.test.ts b/tests/wire/accounting/passthrough.test.ts deleted file mode 100644 index 40e699691..000000000 --- a/tests/wire/accounting/passthrough.test.ts +++ /dev/null @@ -1,69 +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("PassthroughClient", () => { - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { method: "GET", path: "/scooters" }; - const rawResponseBody = { - method: "GET", - path: "/scooters", - status: 200, - response: { - scooters: [ - { company: "Lime", model: "Gen 2.5" }, - { company: "Bird", model: "Bird Zero" }, - ], - }, - response_headers: { "X-Page-Token": "value" }, - response_type: "JSON", - headers: { "EXTRA-HEADER": "value", Authorization: "" }, - }; - server - .mockEndpoint() - .post("/accounting/v1/passthrough") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.passthrough.create({ - method: "GET", - path: "/scooters", - }); - expect(response).toEqual({ - method: "GET", - path: "/scooters", - status: 200, - response: { - scooters: [ - { - company: "Lime", - model: "Gen 2.5", - }, - { - company: "Bird", - model: "Bird Zero", - }, - ], - }, - responseHeaders: { - "X-Page-Token": "value", - }, - responseType: "JSON", - headers: { - "EXTRA-HEADER": "value", - Authorization: "", - }, - }); - }); -}); diff --git a/tests/wire/accounting/paymentMethods.test.ts b/tests/wire/accounting/paymentMethods.test.ts deleted file mode 100644 index ee7f0c5e2..000000000 --- a/tests/wire/accounting/paymentMethods.test.ts +++ /dev/null @@ -1,145 +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("PaymentMethodsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - method_type: "CREDIT_CARD", - name: "John Smith's Credit Card", - is_active: true, - remote_updated_at: "2021-09-15T00:00:00Z", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - methodType: "CREDIT_CARD", - name: "John Smith's Credit Card", - isActive: true, - remoteUpdatedAt: new Date("2021-09-15T00:00:00.000Z"), - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - method_type: "CREDIT_CARD", - name: "John Smith's Credit Card", - is_active: true, - remote_updated_at: "2021-09-15T00:00:00Z", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/accounting/v1/payment-methods/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.paymentMethods.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - methodType: "CREDIT_CARD", - name: "John Smith's Credit Card", - isActive: true, - remoteUpdatedAt: new Date("2021-09-15T00:00:00.000Z"), - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/paymentTerms.test.ts b/tests/wire/accounting/paymentTerms.test.ts deleted file mode 100644 index 7b05d7145..000000000 --- a/tests/wire/accounting/paymentTerms.test.ts +++ /dev/null @@ -1,155 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("PaymentTermsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Net 30", - is_active: true, - company: "company", - days_until_due: 30, - discount_days: 15, - remote_last_modified_at: "2024-10-16T00:00:00Z", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Net 30", - isActive: true, - company: "company", - daysUntilDue: 30, - discountDays: 15, - remoteLastModifiedAt: new Date("2024-10-16T00:00:00.000Z"), - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Net 30", - is_active: true, - company: "company", - days_until_due: 30, - discount_days: 15, - remote_last_modified_at: "2024-10-16T00:00:00Z", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/accounting/v1/payment-terms/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .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", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Net 30", - isActive: true, - company: "company", - daysUntilDue: 30, - discountDays: 15, - remoteLastModifiedAt: new Date("2024-10-16T00:00:00.000Z"), - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/payments.test.ts b/tests/wire/accounting/payments.test.ts deleted file mode 100644 index d51a9570b..000000000 --- a/tests/wire/accounting/payments.test.ts +++ /dev/null @@ -1,1689 +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("PaymentsClient", () => { - 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: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", - remote_id: "987300", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - transaction_date: "2020-03-31T00:00:00Z", - contact: "contact", - account: "account", - payment_method: "payment_method", - currency: "XUA", - exchange_rate: "2.9", - company: "company", - total_amount: 50, - type: "ACCOUNTS_PAYABLE", - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - accounting_period: "accounting_period", - applied_to_lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "234", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - applied_amount: "25", - applied_date: "2020-03-31T00:00:00Z", - related_object_id: "a47e11b6-c73b-4a0c-be31-130fc48177fa", - related_object_type: "INVOICE", - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "235", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - applied_amount: "25", - applied_date: "2020-03-31T00:00:00Z", - related_object_id: "9b96a886-29a5-452b-8733-2a1e03497cf4", - related_object_type: "CREDIT_NOTE", - }, - ], - remote_updated_at: "2020-03-31T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/payments") - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", - remoteId: "987300", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - contact: "contact", - account: "account", - paymentMethod: "payment_method", - currency: "XUA", - exchangeRate: "2.9", - company: "company", - totalAmount: 50, - type: "ACCOUNTS_PAYABLE", - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - accountingPeriod: "accounting_period", - appliedToLines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "234", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - appliedAmount: "25", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - relatedObjectId: "a47e11b6-c73b-4a0c-be31-130fc48177fa", - relatedObjectType: "INVOICE", - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "235", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - appliedAmount: "25", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - relatedObjectId: "9b96a886-29a5-452b-8733-2a1e03497cf4", - relatedObjectType: "CREDIT_NOTE", - }, - ], - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("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: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", - remote_id: "987300", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - transaction_date: "2020-03-31T00:00:00Z", - contact: "contact", - account: "account", - payment_method: "payment_method", - currency: "XUA", - exchange_rate: "2.9", - company: "company", - total_amount: 50, - type: "ACCOUNTS_PAYABLE", - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - accounting_period: "accounting_period", - applied_to_lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "234", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - applied_amount: "25", - applied_date: "2020-03-31T00:00:00Z", - related_object_id: "a47e11b6-c73b-4a0c-be31-130fc48177fa", - related_object_type: "INVOICE", - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "235", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - applied_amount: "25", - applied_date: "2020-03-31T00:00:00Z", - related_object_id: "9b96a886-29a5-452b-8733-2a1e03497cf4", - related_object_type: "CREDIT_NOTE", - }, - ], - remote_updated_at: "2020-03-31T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/accounting/v1/payments") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.payments.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", - remoteId: "987300", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - contact: "contact", - account: "account", - paymentMethod: "payment_method", - currency: "XUA", - exchangeRate: "2.9", - company: "company", - totalAmount: 50, - type: "ACCOUNTS_PAYABLE", - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - accountingPeriod: "accounting_period", - appliedToLines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "234", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - appliedAmount: "25", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - relatedObjectId: "a47e11b6-c73b-4a0c-be31-130fc48177fa", - relatedObjectType: "INVOICE", - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "235", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - appliedAmount: "25", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - relatedObjectId: "9b96a886-29a5-452b-8733-2a1e03497cf4", - relatedObjectType: "CREDIT_NOTE", - }, - ], - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", - remote_id: "987300", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - transaction_date: "2020-03-31T00:00:00Z", - contact: "contact", - account: "account", - payment_method: "payment_method", - currency: "XUA", - exchange_rate: "2.9", - company: "company", - total_amount: 50, - type: "ACCOUNTS_PAYABLE", - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - accounting_period: "accounting_period", - applied_to_lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "234", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - applied_amount: "25", - applied_date: "2020-03-31T00:00:00Z", - related_object_id: "a47e11b6-c73b-4a0c-be31-130fc48177fa", - related_object_type: "INVOICE", - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "235", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - applied_amount: "25", - applied_date: "2020-03-31T00:00:00Z", - related_object_id: "9b96a886-29a5-452b-8733-2a1e03497cf4", - related_object_type: "CREDIT_NOTE", - }, - ], - remote_updated_at: "2020-03-31T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - server - .mockEndpoint() - .get("/accounting/v1/payments/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.payments.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", - remoteId: "987300", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - contact: "contact", - account: "account", - paymentMethod: "payment_method", - currency: "XUA", - exchangeRate: "2.9", - company: "company", - totalAmount: 50, - type: "ACCOUNTS_PAYABLE", - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - accountingPeriod: "accounting_period", - appliedToLines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "234", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - appliedAmount: "25", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - relatedObjectId: "a47e11b6-c73b-4a0c-be31-130fc48177fa", - relatedObjectType: "INVOICE", - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "235", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - appliedAmount: "25", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - relatedObjectId: "9b96a886-29a5-452b-8733-2a1e03497cf4", - relatedObjectType: "CREDIT_NOTE", - }, - ], - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("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: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", - remote_id: "987300", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - transaction_date: "2020-03-31T00:00:00Z", - contact: "contact", - account: "account", - payment_method: "payment_method", - currency: "XUA", - exchange_rate: "2.9", - company: "company", - total_amount: 50, - type: "ACCOUNTS_PAYABLE", - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - accounting_period: "accounting_period", - applied_to_lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "234", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - applied_amount: "25", - applied_date: "2020-03-31T00:00:00Z", - related_object_id: "a47e11b6-c73b-4a0c-be31-130fc48177fa", - related_object_type: "INVOICE", - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "235", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - applied_amount: "25", - applied_date: "2020-03-31T00:00:00Z", - related_object_id: "9b96a886-29a5-452b-8733-2a1e03497cf4", - related_object_type: "CREDIT_NOTE", - }, - ], - remote_updated_at: "2020-03-31T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .patch("/accounting/v1/payments/id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.payments.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", - remoteId: "987300", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - contact: "contact", - account: "account", - paymentMethod: "payment_method", - currency: "XUA", - exchangeRate: "2.9", - company: "company", - totalAmount: 50, - type: "ACCOUNTS_PAYABLE", - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - accountingPeriod: "accounting_period", - appliedToLines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "234", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - appliedAmount: "25", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - relatedObjectId: "a47e11b6-c73b-4a0c-be31-130fc48177fa", - relatedObjectType: "INVOICE", - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "235", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - appliedAmount: "25", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - relatedObjectId: "9b96a886-29a5-452b-8733-2a1e03497cf4", - relatedObjectType: "CREDIT_NOTE", - }, - ], - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("lineItemsRemoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: ["field_choices"], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: ["field_choices"], - }, - ], - }); - }); - - test("metaPatchRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/payments/meta/patch/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.payments.metaPatchRetrieve("id"); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/payments/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.payments.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("remoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: ["field_choices"], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: ["field_choices"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/phoneNumbers.test.ts b/tests/wire/accounting/phoneNumbers.test.ts deleted file mode 100644 index 2ae51c106..000000000 --- a/tests/wire/accounting/phoneNumbers.test.ts +++ /dev/null @@ -1,41 +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("PhoneNumbersClient", () => { - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - number: "+3198675309", - type: "Mobile", - }; - server - .mockEndpoint() - .get("/accounting/v1/phone-numbers/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.phoneNumbers.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - number: "+3198675309", - type: "Mobile", - }); - }); -}); diff --git a/tests/wire/accounting/projects.test.ts b/tests/wire/accounting/projects.test.ts deleted file mode 100644 index ee68e23b7..000000000 --- a/tests/wire/accounting/projects.test.ts +++ /dev/null @@ -1,153 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("ProjectsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Permissions Mapping", - is_active: true, - company: "company", - contact: "contact", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/projects") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.projects.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "company", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Permissions Mapping", - isActive: true, - company: "company", - contact: "contact", - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Permissions Mapping", - is_active: true, - company: "company", - contact: "contact", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/accounting/v1/projects/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.projects.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Permissions Mapping", - isActive: true, - company: "company", - contact: "contact", - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/purchaseOrders.test.ts b/tests/wire/accounting/purchaseOrders.test.ts deleted file mode 100644 index 684e0fc4b..000000000 --- a/tests/wire/accounting/purchaseOrders.test.ts +++ /dev/null @@ -1,1257 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("PurchaseOrdersClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0048ea5b-911e-4dff-9364-92070dea62ff", - remote_id: "239741", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - status: "DRAFT", - issue_date: "2020-03-31T00:00:00Z", - purchase_order_number: "PO1234", - delivery_date: "2020-04-15T00:00:00Z", - delivery_address: "delivery_address", - customer: "3e442c5d-8f51-4103-b5c9-dcee39c30a08", - vendor: "vendor", - memo: "private note", - company: "company", - total_amount: 260, - currency: "XUA", - exchange_rate: "2.9", - payment_term: "payment_term", - line_items: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - description: "Pickleball paddles", - unit_price: 25, - quantity: 10, - item: "0958cbc6-6040-430a-848e-aafacbadf4ae", - tracking_categories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - tax_amount: "tax_amount", - total_line_amount: "total_line_amount", - currency: "USD", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchange_rate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - description: "Pickleball Balls", - unit_price: 1, - quantity: 10, - item: "249c9faa-3045-4a31-953b-8f22d3613301", - tracking_categories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - tax_amount: "tax_amount", - total_line_amount: "total_line_amount", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchange_rate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - inclusive_of_tax: true, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - accounting_period: "accounting_period", - remote_created_at: "2020-03-31T00:00:00Z", - remote_updated_at: "2020-03-31T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/purchase-orders") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.purchaseOrders.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "accounting_period", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), - issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteFields: "status", - remoteId: "remote_id", - showEnumOrigins: "status", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0048ea5b-911e-4dff-9364-92070dea62ff", - remoteId: "239741", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - status: "DRAFT", - issueDate: new Date("2020-03-31T00:00:00.000Z"), - purchaseOrderNumber: "PO1234", - deliveryDate: new Date("2020-04-15T00:00:00.000Z"), - deliveryAddress: "delivery_address", - customer: "3e442c5d-8f51-4103-b5c9-dcee39c30a08", - vendor: "vendor", - memo: "private note", - company: "company", - totalAmount: 260, - currency: "XUA", - exchangeRate: "2.9", - paymentTerm: "payment_term", - lineItems: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - description: "Pickleball paddles", - unitPrice: 25, - quantity: 10, - item: "0958cbc6-6040-430a-848e-aafacbadf4ae", - trackingCategories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - taxAmount: "tax_amount", - totalLineAmount: "total_line_amount", - currency: "USD", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchangeRate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - description: "Pickleball Balls", - unitPrice: 1, - quantity: 10, - item: "249c9faa-3045-4a31-953b-8f22d3613301", - trackingCategories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - taxAmount: "tax_amount", - totalLineAmount: "total_line_amount", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchangeRate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - inclusiveOfTax: true, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - accountingPeriod: "accounting_period", - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "0048ea5b-911e-4dff-9364-92070dea62ff", - remote_id: "239741", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - status: "DRAFT", - issue_date: "2020-03-31T00:00:00Z", - purchase_order_number: "PO1234", - delivery_date: "2020-04-15T00:00:00Z", - delivery_address: "delivery_address", - customer: "3e442c5d-8f51-4103-b5c9-dcee39c30a08", - vendor: "vendor", - memo: "private note", - company: "company", - total_amount: 260, - currency: "XUA", - exchange_rate: "2.9", - payment_term: "payment_term", - line_items: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - description: "Pickleball paddles", - unit_price: 25, - quantity: 10, - item: "0958cbc6-6040-430a-848e-aafacbadf4ae", - tracking_categories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - tax_amount: "tax_amount", - total_line_amount: "total_line_amount", - currency: "USD", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchange_rate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - description: "Pickleball Balls", - unit_price: 1, - quantity: 10, - item: "249c9faa-3045-4a31-953b-8f22d3613301", - tracking_categories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - tax_amount: "tax_amount", - total_line_amount: "total_line_amount", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchange_rate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - inclusive_of_tax: true, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - accounting_period: "accounting_period", - remote_created_at: "2020-03-31T00:00:00Z", - remote_updated_at: "2020-03-31T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/accounting/v1/purchase-orders") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.purchaseOrders.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "0048ea5b-911e-4dff-9364-92070dea62ff", - remoteId: "239741", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - status: "DRAFT", - issueDate: new Date("2020-03-31T00:00:00.000Z"), - purchaseOrderNumber: "PO1234", - deliveryDate: new Date("2020-04-15T00:00:00.000Z"), - deliveryAddress: "delivery_address", - customer: "3e442c5d-8f51-4103-b5c9-dcee39c30a08", - vendor: "vendor", - memo: "private note", - company: "company", - totalAmount: 260, - currency: "XUA", - exchangeRate: "2.9", - paymentTerm: "payment_term", - lineItems: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - description: "Pickleball paddles", - unitPrice: 25, - quantity: 10, - item: "0958cbc6-6040-430a-848e-aafacbadf4ae", - trackingCategories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - taxAmount: "tax_amount", - totalLineAmount: "total_line_amount", - currency: "USD", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchangeRate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - description: "Pickleball Balls", - unitPrice: 1, - quantity: 10, - item: "249c9faa-3045-4a31-953b-8f22d3613301", - trackingCategories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - taxAmount: "tax_amount", - totalLineAmount: "total_line_amount", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchangeRate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - inclusiveOfTax: true, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - accountingPeriod: "accounting_period", - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "0048ea5b-911e-4dff-9364-92070dea62ff", - remote_id: "239741", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - status: "DRAFT", - issue_date: "2020-03-31T00:00:00Z", - purchase_order_number: "PO1234", - delivery_date: "2020-04-15T00:00:00Z", - delivery_address: "delivery_address", - customer: "3e442c5d-8f51-4103-b5c9-dcee39c30a08", - vendor: "vendor", - memo: "private note", - company: "company", - total_amount: 260, - currency: "XUA", - exchange_rate: "2.9", - payment_term: "payment_term", - line_items: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - description: "Pickleball paddles", - unit_price: 25, - quantity: 10, - item: "0958cbc6-6040-430a-848e-aafacbadf4ae", - account: "account", - tracking_categories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - tax_amount: "tax_amount", - total_line_amount: "total_line_amount", - currency: "USD", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchange_rate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: false, - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - description: "Pickleball Balls", - unit_price: 1, - quantity: 10, - item: "249c9faa-3045-4a31-953b-8f22d3613301", - account: "account", - tracking_categories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - tax_amount: "tax_amount", - total_line_amount: "total_line_amount", - currency: "XUA", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchange_rate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: true, - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - inclusive_of_tax: true, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - accounting_period: "accounting_period", - remote_created_at: "2020-03-31T00:00:00Z", - remote_updated_at: "2020-03-31T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - server - .mockEndpoint() - .get("/accounting/v1/purchase-orders/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.purchaseOrders.retrieve("id", { - expand: "accounting_period", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - remoteFields: "status", - showEnumOrigins: "status", - }); - expect(response).toEqual({ - id: "0048ea5b-911e-4dff-9364-92070dea62ff", - remoteId: "239741", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - status: "DRAFT", - issueDate: new Date("2020-03-31T00:00:00.000Z"), - purchaseOrderNumber: "PO1234", - deliveryDate: new Date("2020-04-15T00:00:00.000Z"), - deliveryAddress: "delivery_address", - customer: "3e442c5d-8f51-4103-b5c9-dcee39c30a08", - vendor: "vendor", - memo: "private note", - company: "company", - totalAmount: 260, - currency: "XUA", - exchangeRate: "2.9", - paymentTerm: "payment_term", - lineItems: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - description: "Pickleball paddles", - unitPrice: 25, - quantity: 10, - item: "0958cbc6-6040-430a-848e-aafacbadf4ae", - account: "account", - trackingCategories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - taxAmount: "tax_amount", - totalLineAmount: "total_line_amount", - currency: "USD", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchangeRate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: false, - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - description: "Pickleball Balls", - unitPrice: 1, - quantity: 10, - item: "249c9faa-3045-4a31-953b-8f22d3613301", - account: "account", - trackingCategories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - taxAmount: "tax_amount", - totalLineAmount: "total_line_amount", - currency: "XUA", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchangeRate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: true, - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - inclusiveOfTax: true, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - accountingPeriod: "accounting_period", - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("lineItemsRemoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: ["field_choices"], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/purchase-orders/line-items/remote-field-classes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.purchaseOrders.lineItemsRemoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: ["field_choices"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/purchase-orders/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.purchaseOrders.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("remoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: ["field_choices"], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/purchase-orders/remote-field-classes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.purchaseOrders.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: ["field_choices"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/regenerateKey.test.ts b/tests/wire/accounting/regenerateKey.test.ts deleted file mode 100644 index 786d51679..000000000 --- a/tests/wire/accounting/regenerateKey.test.ts +++ /dev/null @@ -1,37 +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("RegenerateKeyClient", () => { - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { name: "Remote Deployment Key 1" }; - const rawResponseBody = { - name: "Remote Deployment Key 1", - key: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", - }; - server - .mockEndpoint() - .post("/accounting/v1/regenerate-key") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.regenerateKey.create({ - name: "Remote Deployment Key 1", - }); - expect(response).toEqual({ - name: "Remote Deployment Key 1", - key: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", - }); - }); -}); diff --git a/tests/wire/accounting/scopes.test.ts b/tests/wire/accounting/scopes.test.ts deleted file mode 100644 index 46d248260..000000000 --- a/tests/wire/accounting/scopes.test.ts +++ /dev/null @@ -1,294 +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("ScopesClient", () => { - test("default_scopes_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - common_models: [ - { - model_name: "Employee", - model_permissions: { READ: { is_enabled: true }, WRITE: { is_enabled: false } }, - field_permissions: { - enabled_fields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabled_fields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/default-scopes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.scopes.defaultScopesRetrieve(); - expect(response).toEqual({ - commonModels: [ - { - modelName: "Employee", - modelPermissions: { - READ: { - isEnabled: true, - }, - WRITE: { - isEnabled: false, - }, - }, - fieldPermissions: { - enabledFields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabledFields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }); - }); - - test("linked_account_scopes_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - common_models: [ - { - model_name: "Employee", - model_permissions: { READ: { is_enabled: true }, WRITE: { is_enabled: false } }, - field_permissions: { - enabled_fields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabled_fields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/linked-account-scopes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.scopes.linkedAccountScopesRetrieve(); - expect(response).toEqual({ - commonModels: [ - { - modelName: "Employee", - modelPermissions: { - READ: { - isEnabled: true, - }, - WRITE: { - isEnabled: false, - }, - }, - fieldPermissions: { - enabledFields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabledFields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }); - }); - - test("linked_account_scopes_create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { - common_models: [ - { - model_name: "Employee", - model_permissions: { READ: { is_enabled: true }, WRITE: { is_enabled: false } }, - field_permissions: { - enabled_fields: ["avatar", "home_location"], - disabled_fields: ["work_location"], - }, - }, - { model_name: "Benefit", model_permissions: { WRITE: { is_enabled: false } } }, - ], - }; - const rawResponseBody = { - common_models: [ - { - model_name: "Employee", - model_permissions: { READ: { is_enabled: true }, WRITE: { is_enabled: false } }, - field_permissions: { - enabled_fields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabled_fields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }; - server - .mockEndpoint() - .post("/accounting/v1/linked-account-scopes") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = 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, - }, - }, - }, - ], - }); - expect(response).toEqual({ - commonModels: [ - { - modelName: "Employee", - modelPermissions: { - READ: { - isEnabled: true, - }, - WRITE: { - isEnabled: false, - }, - }, - fieldPermissions: { - enabledFields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabledFields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/syncStatus.test.ts b/tests/wire/accounting/syncStatus.test.ts deleted file mode 100644 index 6af1e3c70..000000000 --- a/tests/wire/accounting/syncStatus.test.ts +++ /dev/null @@ -1,63 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("SyncStatusClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - model_name: "Invoice", - model_id: "accounting.Invoices", - last_sync_start: "2021-03-30T19:44:18Z", - next_sync_start: "2021-03-30T20:44:18Z", - last_sync_result: "SYNCING", - last_sync_finished: "2021-03-30T19:55:18Z", - status: "SYNCING", - is_initial_sync: true, - selective_sync_configurations_usage: "IN_NEXT_SYNC", - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/sync-status") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.syncStatus.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - modelName: "Invoice", - modelId: "accounting.Invoices", - lastSyncStart: new Date("2021-03-30T19:44:18.000Z"), - nextSyncStart: new Date("2021-03-30T20:44:18.000Z"), - lastSyncResult: "SYNCING", - lastSyncFinished: new Date("2021-03-30T19:55:18.000Z"), - status: "SYNCING", - isInitialSync: true, - selectiveSyncConfigurationsUsage: "IN_NEXT_SYNC", - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/taxRates.test.ts b/tests/wire/accounting/taxRates.test.ts deleted file mode 100644 index 4608c819e..000000000 --- a/tests/wire/accounting/taxRates.test.ts +++ /dev/null @@ -1,224 +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("TaxRatesClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b82302de-852e-4e60-b050-edf9da3b7c02", - remote_id: "039111", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - company: "company", - code: "890", - name: "State tax rate", - description: "Sales Tax", - status: "ACTIVE", - country: "US", - total_tax_rate: 15, - effective_tax_rate: 15, - tax_components: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "039111", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Drink Tax Component", - rate: "rate", - is_compound: true, - component_type: "SALES", - }, - ], - 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/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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b82302de-852e-4e60-b050-edf9da3b7c02", - remoteId: "039111", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - company: "company", - code: "890", - name: "State tax rate", - description: "Sales Tax", - status: "ACTIVE", - country: "US", - totalTaxRate: 15, - effectiveTaxRate: 15, - taxComponents: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "039111", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Drink Tax Component", - rate: "rate", - isCompound: true, - componentType: "SALES", - }, - ], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "b82302de-852e-4e60-b050-edf9da3b7c02", - remote_id: "039111", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - company: "company", - code: "890", - name: "State tax rate", - description: "Sales Tax", - status: "ACTIVE", - country: "US", - total_tax_rate: 15, - effective_tax_rate: 15, - tax_components: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "039111", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Drink Tax Component", - rate: "rate", - is_compound: true, - component_type: "SALES", - 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/tax-rates/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .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", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - company: "company", - code: "890", - name: "State tax rate", - description: "Sales Tax", - status: "ACTIVE", - country: "US", - totalTaxRate: 15, - effectiveTaxRate: 15, - taxComponents: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "039111", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Drink Tax Component", - rate: "rate", - isCompound: true, - componentType: "SALES", - 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"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/trackingCategories.test.ts b/tests/wire/accounting/trackingCategories.test.ts deleted file mode 100644 index 0d0a3c8fd..000000000 --- a/tests/wire/accounting/trackingCategories.test.ts +++ /dev/null @@ -1,154 +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("TrackingCategoriesClient", () => { - 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: "948201", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Marketing Department", - status: "ACTIVE", - category_type: "CLASS", - parent_category: "d25d609b-945f-4762-b55a-1c8fb220c43c", - company: "company", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - 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", - status: "ACTIVE", - categoryType: "CLASS", - parentCategory: "d25d609b-945f-4762-b55a-1c8fb220c43c", - company: "company", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - }, - ], - }); - }); - - 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: "948201", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Marketing Department", - status: "ACTIVE", - category_type: "CLASS", - parent_category: "d25d609b-945f-4762-b55a-1c8fb220c43c", - company: "company", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - }; - server - .mockEndpoint() - .get("/accounting/v1/tracking-categories/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.trackingCategories.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeShellData: true, - remoteFields: "status", - showEnumOrigins: "status", - }); - expect(response).toEqual({ - 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", - status: "ACTIVE", - categoryType: "CLASS", - parentCategory: "d25d609b-945f-4762-b55a-1c8fb220c43c", - company: "company", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - }); - }); -}); diff --git a/tests/wire/accounting/transactions.test.ts b/tests/wire/accounting/transactions.test.ts deleted file mode 100644 index 22c8e2ee8..000000000 --- a/tests/wire/accounting/transactions.test.ts +++ /dev/null @@ -1,387 +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("TransactionsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0048ea5b-911e-4dff-9364-92070dea62ff", - remote_id: "239741", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - transaction_type: "estimate", - number: "122", - transaction_date: "2020-03-31T00:00:00Z", - account: "account", - contact: "contact", - inclusive_of_tax: true, - total_amount: "total_amount", - currency: "XUA", - exchange_rate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - 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", - memo: "Pickleball paddles", - unit_price: "25.0", - quantity: "10.0", - item: "0958cbc6-6040-430a-848e-aafacbadf4ae", - account: "2b38c085-2620-4269-b5ec-75dd9095ed2c", - tracking_categories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - total_line_amount: "total_line_amount", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - currency: "USD", - exchange_rate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - memo: "Pickleball balls", - unit_price: "25.0", - quantity: "10.0", - item: "249c9faa-3045-4a31-953b-8f22d3613301", - account: "3e442c5d-8f51-4103-b5c9-dcee39c30a08", - tracking_categories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - total_line_amount: "total_line_amount", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchange_rate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - 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/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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0048ea5b-911e-4dff-9364-92070dea62ff", - remoteId: "239741", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - transactionType: "estimate", - number: "122", - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - account: "account", - contact: "contact", - inclusiveOfTax: true, - totalAmount: "total_amount", - currency: "XUA", - exchangeRate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - 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"), - memo: "Pickleball paddles", - unitPrice: "25.0", - quantity: "10.0", - item: "0958cbc6-6040-430a-848e-aafacbadf4ae", - account: "2b38c085-2620-4269-b5ec-75dd9095ed2c", - trackingCategories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - totalLineAmount: "total_line_amount", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - currency: "USD", - exchangeRate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - memo: "Pickleball balls", - unitPrice: "25.0", - quantity: "10.0", - item: "249c9faa-3045-4a31-953b-8f22d3613301", - account: "3e442c5d-8f51-4103-b5c9-dcee39c30a08", - trackingCategories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - totalLineAmount: "total_line_amount", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchangeRate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - 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("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "0048ea5b-911e-4dff-9364-92070dea62ff", - remote_id: "239741", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - transaction_type: "estimate", - number: "122", - transaction_date: "2020-03-31T00:00:00Z", - account: "account", - contact: "contact", - inclusive_of_tax: true, - total_amount: "total_amount", - currency: "XUA", - exchange_rate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - 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", - memo: "Pickleball paddles", - unit_price: "25.0", - quantity: "10.0", - item: "0958cbc6-6040-430a-848e-aafacbadf4ae", - account: "2b38c085-2620-4269-b5ec-75dd9095ed2c", - tracking_categories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - total_line_amount: "total_line_amount", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - currency: "USD", - exchange_rate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - memo: "Pickleball balls", - unit_price: "25.0", - quantity: "10.0", - item: "249c9faa-3045-4a31-953b-8f22d3613301", - account: "3e442c5d-8f51-4103-b5c9-dcee39c30a08", - tracking_categories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - total_line_amount: "total_line_amount", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - currency: "XUA", - exchange_rate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - 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/transactions/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.transactions.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "0048ea5b-911e-4dff-9364-92070dea62ff", - remoteId: "239741", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - transactionType: "estimate", - number: "122", - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - account: "account", - contact: "contact", - inclusiveOfTax: true, - totalAmount: "total_amount", - currency: "XUA", - exchangeRate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - 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"), - memo: "Pickleball paddles", - unitPrice: "25.0", - quantity: "10.0", - item: "0958cbc6-6040-430a-848e-aafacbadf4ae", - account: "2b38c085-2620-4269-b5ec-75dd9095ed2c", - trackingCategories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - totalLineAmount: "total_line_amount", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - currency: "USD", - exchangeRate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - memo: "Pickleball balls", - unitPrice: "25.0", - quantity: "10.0", - item: "249c9faa-3045-4a31-953b-8f22d3613301", - account: "3e442c5d-8f51-4103-b5c9-dcee39c30a08", - trackingCategories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - totalLineAmount: "total_line_amount", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - currency: "XUA", - exchangeRate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - 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"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/vendorCredits.test.ts b/tests/wire/accounting/vendorCredits.test.ts deleted file mode 100644 index 36f2b1c46..000000000 --- a/tests/wire/accounting/vendorCredits.test.ts +++ /dev/null @@ -1,1070 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("VendorCreditsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - number: "6", - transaction_date: "2020-03-31T00:00:00Z", - vendor: "vendor", - total_amount: 10000, - currency: "XUA", - exchange_rate: "2.9", - inclusive_of_tax: true, - company: "company", - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - net_amount: 25.54, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - description: "Gifted Merge Credit", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "908934-49j9-093f-0989-908923908", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchange_rate: "2.9", - remote_was_deleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121223", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - net_amount: 10, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - description: "Refund for overpayment", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchange_rate: "2.9", - }, - ], - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - applied_to_lines: [ - { - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - applied_date: "2020-03-31T00:00:00Z", - applied_amount: "2.9", - }, - ], - remote_was_deleted: true, - accounting_period: "accounting_period", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/vendor-credits") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.vendorCredits.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "accounting_period", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), - transactionDateBefore: new Date("2024-01-15T09:30:00.000Z"), - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - number: "6", - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - vendor: "vendor", - totalAmount: 10000, - currency: "XUA", - exchangeRate: "2.9", - inclusiveOfTax: true, - company: "company", - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - netAmount: 25.54, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - description: "Gifted Merge Credit", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "908934-49j9-093f-0989-908923908", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchangeRate: "2.9", - remoteWasDeleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121223", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - netAmount: 10, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - description: "Refund for overpayment", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchangeRate: "2.9", - }, - ], - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - appliedToLines: [ - { - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - appliedAmount: "2.9", - }, - ], - remoteWasDeleted: true, - accountingPeriod: "accounting_period", - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - number: "6", - transaction_date: "2020-03-31T00:00:00Z", - vendor: "vendor", - total_amount: 10000, - currency: "XUA", - exchange_rate: "2.9", - inclusive_of_tax: true, - company: "company", - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - net_amount: 25.54, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - description: "Gifted Merge Credit", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "908934-49j9-093f-0989-908923908", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchange_rate: "2.9", - remote_was_deleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121223", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - net_amount: 10, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - description: "Refund for overpayment", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchange_rate: "2.9", - }, - ], - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - applied_to_lines: [ - { - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - applied_date: "2020-03-31T00:00:00Z", - applied_amount: "2.9", - }, - ], - remote_was_deleted: true, - accounting_period: "accounting_period", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/accounting/v1/vendor-credits") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.vendorCredits.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - number: "6", - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - vendor: "vendor", - totalAmount: 10000, - currency: "XUA", - exchangeRate: "2.9", - inclusiveOfTax: true, - company: "company", - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - netAmount: 25.54, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - description: "Gifted Merge Credit", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "908934-49j9-093f-0989-908923908", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchangeRate: "2.9", - remoteWasDeleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121223", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - netAmount: 10, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - description: "Refund for overpayment", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchangeRate: "2.9", - }, - ], - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - appliedToLines: [ - { - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - appliedAmount: "2.9", - }, - ], - remoteWasDeleted: true, - accountingPeriod: "accounting_period", - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - number: "6", - transaction_date: "2020-03-31T00:00:00Z", - vendor: "vendor", - total_amount: 10000, - currency: "XUA", - exchange_rate: "2.9", - inclusive_of_tax: true, - company: "company", - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - net_amount: 25.54, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - description: "Gifted Merge Credit", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "908934-49j9-093f-0989-908923908", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchange_rate: "2.9", - remote_was_deleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121223", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - net_amount: 10, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - description: "Refund for overpayment", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - project: "project", - contact: "contact", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchange_rate: "2.9", - remote_was_deleted: true, - }, - ], - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - applied_to_lines: [ - { - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - applied_date: "2020-03-31T00:00:00Z", - applied_amount: "2.9", - remote_was_deleted: true, - }, - ], - remote_was_deleted: true, - accounting_period: "accounting_period", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/accounting/v1/vendor-credits/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.vendorCredits.retrieve("id", { - expand: "accounting_period", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - number: "6", - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - vendor: "vendor", - totalAmount: 10000, - currency: "XUA", - exchangeRate: "2.9", - inclusiveOfTax: true, - company: "company", - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - netAmount: 25.54, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - description: "Gifted Merge Credit", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "908934-49j9-093f-0989-908923908", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchangeRate: "2.9", - remoteWasDeleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121223", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - netAmount: 10, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - description: "Refund for overpayment", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - project: "project", - contact: "contact", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchangeRate: "2.9", - remoteWasDeleted: true, - }, - ], - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - appliedToLines: [ - { - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - appliedAmount: "2.9", - remoteWasDeleted: true, - }, - ], - remoteWasDeleted: true, - accountingPeriod: "accounting_period", - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/vendor-credits/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.vendorCredits.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/accounting/webhookReceivers.test.ts b/tests/wire/accounting/webhookReceivers.test.ts deleted file mode 100644 index e17bc8975..000000000 --- a/tests/wire/accounting/webhookReceivers.test.ts +++ /dev/null @@ -1,64 +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("WebhookReceiversClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = [{ event: "event", is_active: true, key: "key" }]; - server - .mockEndpoint() - .get("/accounting/v1/webhook-receivers") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.webhookReceivers.list(); - expect(response).toEqual([ - { - event: "event", - isActive: true, - key: "key", - }, - ]); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { event: "event", is_active: true }; - const rawResponseBody = { event: "event", is_active: true, key: "key" }; - server - .mockEndpoint() - .post("/accounting/v1/webhook-receivers") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.webhookReceivers.create({ - event: "event", - isActive: true, - }); - expect(response).toEqual({ - event: "event", - isActive: true, - key: "key", - }); - }); -}); diff --git a/tests/wire/ats/accountDetails.test.ts b/tests/wire/ats/accountDetails.test.ts deleted file mode 100644 index 8881c800d..000000000 --- a/tests/wire/ats/accountDetails.test.ts +++ /dev/null @@ -1,54 +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("AccountDetailsClient", () => { - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - integration: "BambooHR", - integration_slug: "bamboohr", - category: "hris", - end_user_origin_id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - end_user_organization_name: "Waystar Royco", - end_user_email_address: "kendall.roy@waystar-royco.com", - status: "COMPLETE", - webhook_listener_url: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - is_duplicate: true, - account_type: "PRODUCTION", - completed_at: "2024-08-26T20:11:19Z", - }; - server - .mockEndpoint() - .get("/ats/v1/account-details") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.accountDetails.retrieve(); - expect(response).toEqual({ - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - integration: "BambooHR", - integrationSlug: "bamboohr", - category: "hris", - endUserOriginId: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - endUserOrganizationName: "Waystar Royco", - endUserEmailAddress: "kendall.roy@waystar-royco.com", - status: "COMPLETE", - webhookListenerUrl: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - isDuplicate: true, - accountType: "PRODUCTION", - completedAt: new Date("2024-08-26T20:11:19.000Z"), - }); - }); -}); diff --git a/tests/wire/ats/accountToken.test.ts b/tests/wire/ats/accountToken.test.ts deleted file mode 100644 index b4e867950..000000000 --- a/tests/wire/ats/accountToken.test.ts +++ /dev/null @@ -1,62 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AccountTokenClient", () => { - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - account_token: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", - integration: { - name: "name", - abbreviated_name: "abbreviated_name", - categories: ["hris"], - image: "image", - square_image: "square_image", - color: "color", - slug: "slug", - api_endpoints_to_documentation_urls: { key: "value" }, - webhook_setup_guide_url: "webhook_setup_guide_url", - category_beta_status: { key: "value" }, - }, - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - }; - server - .mockEndpoint() - .get("/ats/v1/account-token/public_token") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.accountToken.retrieve("public_token"); - expect(response).toEqual({ - accountToken: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", - integration: { - name: "name", - abbreviatedName: "abbreviated_name", - categories: ["hris"], - image: "image", - squareImage: "square_image", - color: "color", - slug: "slug", - apiEndpointsToDocumentationUrls: { - key: "value", - }, - webhookSetupGuideUrl: "webhook_setup_guide_url", - categoryBetaStatus: { - key: "value", - }, - }, - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - }); - }); -}); diff --git a/tests/wire/ats/activities.test.ts b/tests/wire/ats/activities.test.ts deleted file mode 100644 index b0fb7c10d..000000000 --- a/tests/wire/ats/activities.test.ts +++ /dev/null @@ -1,723 +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("ActivitiesClient", () => { - 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: "198123", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - user: "user", - remote_created_at: "2021-10-15T00:00:00Z", - activity_type: "NOTE", - subject: "Gil Feig's interview", - body: "Candidate loves integrations!", - visibility: "ADMIN_ONLY", - candidate: "550e8400-e29b-41d4-a716-446655440000", - 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("/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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "198123", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - user: "user", - remoteCreatedAt: new Date("2021-10-15T00:00:00.000Z"), - activityType: "NOTE", - subject: "Gil Feig's interview", - body: "Candidate loves integrations!", - visibility: "ADMIN_ONLY", - candidate: "550e8400-e29b-41d4-a716-446655440000", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {}, remote_user_id: "remote_user_id" }; - const rawResponseBody = { - model: { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "198123", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - user: "user", - remote_created_at: "2021-10-15T00:00:00Z", - activity_type: "NOTE", - subject: "Gil Feig's interview", - body: "Candidate loves integrations!", - visibility: "ADMIN_ONLY", - candidate: "550e8400-e29b-41d4-a716-446655440000", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/ats/v1/activities") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.activities.create({ - isDebugMode: true, - runAsync: true, - model: {}, - remoteUserId: "remote_user_id", - }); - expect(response).toEqual({ - model: { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "198123", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - user: "user", - remoteCreatedAt: new Date("2021-10-15T00:00:00.000Z"), - activityType: "NOTE", - subject: "Gil Feig's interview", - body: "Candidate loves integrations!", - visibility: "ADMIN_ONLY", - candidate: "550e8400-e29b-41d4-a716-446655440000", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "198123", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - user: "user", - remote_created_at: "2021-10-15T00:00:00Z", - activity_type: "NOTE", - subject: "Gil Feig's interview", - body: "Candidate loves integrations!", - visibility: "ADMIN_ONLY", - candidate: "550e8400-e29b-41d4-a716-446655440000", - 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("/ats/v1/activities/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.activities.retrieve("id", { - expand: "user", - includeRemoteData: true, - includeShellData: true, - remoteFields: "activity_type", - showEnumOrigins: "activity_type", - }); - expect(response).toEqual({ - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "198123", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - user: "user", - remoteCreatedAt: new Date("2021-10-15T00:00:00.000Z"), - activityType: "NOTE", - subject: "Gil Feig's interview", - body: "Candidate loves integrations!", - visibility: "ADMIN_ONLY", - candidate: "550e8400-e29b-41d4-a716-446655440000", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/ats/v1/activities/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.activities.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/ats/applications.test.ts b/tests/wire/ats/applications.test.ts deleted file mode 100644 index 4aa013b0a..000000000 --- a/tests/wire/ats/applications.test.ts +++ /dev/null @@ -1,889 +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("ApplicationsClient", () => { - 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: "92e8a369-fffe-430d-b93a-f7e8a16563f1", - remote_id: "98796", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - candidate: "candidate", - job: "job", - applied_at: "2021-10-15T00:00:00Z", - rejected_at: "2021-11-15T00:00:00Z", - offers: ["e9b5c11d-c588-468e-8567-cd6992e42b62"], - source: "Campus recruiting event", - credited_to: "credited_to", - screening_question_answers: ["screening_question_answers", "screening_question_answers"], - current_stage: "current_stage", - reject_reason: "reject_reason", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/candidacies", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "92e8a369-fffe-430d-b93a-f7e8a16563f1", - remoteId: "98796", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - candidate: "candidate", - job: "job", - appliedAt: new Date("2021-10-15T00:00:00.000Z"), - rejectedAt: new Date("2021-11-15T00:00:00.000Z"), - offers: ["e9b5c11d-c588-468e-8567-cd6992e42b62"], - source: "Campus recruiting event", - creditedTo: "credited_to", - screeningQuestionAnswers: ["screening_question_answers", "screening_question_answers"], - currentStage: "current_stage", - rejectReason: "reject_reason", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/candidacies", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {}, remote_user_id: "remote_user_id" }; - const rawResponseBody = { - model: { - id: "92e8a369-fffe-430d-b93a-f7e8a16563f1", - remote_id: "98796", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - candidate: "candidate", - job: "job", - applied_at: "2021-10-15T00:00:00Z", - rejected_at: "2021-11-15T00:00:00Z", - offers: ["e9b5c11d-c588-468e-8567-cd6992e42b62"], - source: "Campus recruiting event", - credited_to: "credited_to", - screening_question_answers: ["screening_question_answers", "screening_question_answers"], - current_stage: "current_stage", - reject_reason: "reject_reason", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/candidacies", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/ats/v1/applications") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.applications.create({ - isDebugMode: true, - runAsync: true, - model: {}, - remoteUserId: "remote_user_id", - }); - expect(response).toEqual({ - model: { - id: "92e8a369-fffe-430d-b93a-f7e8a16563f1", - remoteId: "98796", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - candidate: "candidate", - job: "job", - appliedAt: new Date("2021-10-15T00:00:00.000Z"), - rejectedAt: new Date("2021-11-15T00:00:00.000Z"), - offers: ["e9b5c11d-c588-468e-8567-cd6992e42b62"], - source: "Campus recruiting event", - creditedTo: "credited_to", - screeningQuestionAnswers: ["screening_question_answers", "screening_question_answers"], - currentStage: "current_stage", - rejectReason: "reject_reason", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/candidacies", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "92e8a369-fffe-430d-b93a-f7e8a16563f1", - remote_id: "98796", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - candidate: "candidate", - job: "job", - applied_at: "2021-10-15T00:00:00Z", - rejected_at: "2021-11-15T00:00:00Z", - offers: ["e9b5c11d-c588-468e-8567-cd6992e42b62"], - source: "Campus recruiting event", - credited_to: "credited_to", - screening_question_answers: ["screening_question_answers", "screening_question_answers"], - current_stage: "current_stage", - reject_reason: "reject_reason", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/candidacies", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ats/v1/applications/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.applications.retrieve("id", { - expand: "candidate", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "92e8a369-fffe-430d-b93a-f7e8a16563f1", - remoteId: "98796", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - candidate: "candidate", - job: "job", - appliedAt: new Date("2021-10-15T00:00:00.000Z"), - rejectedAt: new Date("2021-11-15T00:00:00.000Z"), - offers: ["e9b5c11d-c588-468e-8567-cd6992e42b62"], - source: "Campus recruiting event", - creditedTo: "credited_to", - screeningQuestionAnswers: ["screening_question_answers", "screening_question_answers"], - currentStage: "current_stage", - rejectReason: "reject_reason", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/candidacies", - data: ["Varies by platform"], - }, - ], - }); - }); - - test("changeStageCreate", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = {}; - const rawResponseBody = { - model: { - id: "92e8a369-fffe-430d-b93a-f7e8a16563f1", - remote_id: "98796", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - candidate: "candidate", - job: "job", - applied_at: "2021-10-15T00:00:00Z", - rejected_at: "2021-11-15T00:00:00Z", - offers: ["e9b5c11d-c588-468e-8567-cd6992e42b62"], - source: "Campus recruiting event", - credited_to: "credited_to", - screening_question_answers: ["screening_question_answers", "screening_question_answers"], - current_stage: "current_stage", - reject_reason: "reject_reason", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/candidacies", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/ats/v1/applications/id/change-stage") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.applications.changeStageCreate("id", { - isDebugMode: true, - runAsync: true, - }); - expect(response).toEqual({ - model: { - id: "92e8a369-fffe-430d-b93a-f7e8a16563f1", - remoteId: "98796", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - candidate: "candidate", - job: "job", - appliedAt: new Date("2021-10-15T00:00:00.000Z"), - rejectedAt: new Date("2021-11-15T00:00:00.000Z"), - offers: ["e9b5c11d-c588-468e-8567-cd6992e42b62"], - source: "Campus recruiting event", - creditedTo: "credited_to", - screeningQuestionAnswers: ["screening_question_answers", "screening_question_answers"], - currentStage: "current_stage", - rejectReason: "reject_reason", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/candidacies", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/ats/v1/applications/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.applications.metaPostRetrieve({ - applicationRemoteTemplateId: "application_remote_template_id", - }); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/ats/asyncPassthrough.test.ts b/tests/wire/ats/asyncPassthrough.test.ts deleted file mode 100644 index 30a709f5a..000000000 --- a/tests/wire/ats/asyncPassthrough.test.ts +++ /dev/null @@ -1,93 +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("AsyncPassthroughClient", () => { - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { method: "GET", path: "/scooters" }; - const rawResponseBody = { async_passthrough_receipt_id: "fd29020f-2695-445e-922e-dcd5e81903fd" }; - server - .mockEndpoint() - .post("/ats/v1/async-passthrough") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.asyncPassthrough.create({ - method: "GET", - path: "/scooters", - }); - expect(response).toEqual({ - asyncPassthroughReceiptId: "fd29020f-2695-445e-922e-dcd5e81903fd", - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - method: "GET", - path: "/scooters", - status: 200, - response: { - scooters: [ - { company: "Lime", model: "Gen 2.5" }, - { company: "Bird", model: "Bird Zero" }, - ], - }, - response_headers: { "X-Page-Token": "value" }, - response_type: "JSON", - headers: { "EXTRA-HEADER": "value", Authorization: "" }, - }; - server - .mockEndpoint() - .get("/ats/v1/async-passthrough/async_passthrough_receipt_id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.asyncPassthrough.retrieve("async_passthrough_receipt_id"); - expect(response).toEqual({ - method: "GET", - path: "/scooters", - status: 200, - response: { - scooters: [ - { - company: "Lime", - model: "Gen 2.5", - }, - { - company: "Bird", - model: "Bird Zero", - }, - ], - }, - responseHeaders: { - "X-Page-Token": "value", - }, - responseType: "JSON", - headers: { - "EXTRA-HEADER": "value", - Authorization: "", - }, - }); - }); -}); diff --git a/tests/wire/ats/attachments.test.ts b/tests/wire/ats/attachments.test.ts deleted file mode 100644 index 5f4000281..000000000 --- a/tests/wire/ats/attachments.test.ts +++ /dev/null @@ -1,711 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AttachmentsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remote_id: "11167", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - file_name: "Candidate Resume", - file_url: "http://alturl.com/p749b", - candidate: "2872ba14-4084-492b-be96-e5eee6fc33ef", - attachment_type: "RESUME", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/attachments", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/ats/v1/attachments") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.attachments.list({ - candidateId: "candidate_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "candidate", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteFields: "attachment_type", - remoteId: "remote_id", - showEnumOrigins: "attachment_type", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remoteId: "11167", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - fileName: "Candidate Resume", - fileUrl: "http://alturl.com/p749b", - candidate: "2872ba14-4084-492b-be96-e5eee6fc33ef", - attachmentType: "RESUME", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/attachments", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {}, remote_user_id: "remote_user_id" }; - const rawResponseBody = { - model: { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remote_id: "11167", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - file_name: "Candidate Resume", - file_url: "http://alturl.com/p749b", - candidate: "2872ba14-4084-492b-be96-e5eee6fc33ef", - attachment_type: "RESUME", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/attachments", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/ats/v1/attachments") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.attachments.create({ - isDebugMode: true, - runAsync: true, - model: {}, - remoteUserId: "remote_user_id", - }); - expect(response).toEqual({ - model: { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remoteId: "11167", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - fileName: "Candidate Resume", - fileUrl: "http://alturl.com/p749b", - candidate: "2872ba14-4084-492b-be96-e5eee6fc33ef", - attachmentType: "RESUME", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/attachments", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remote_id: "11167", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - file_name: "Candidate Resume", - file_url: "http://alturl.com/p749b", - candidate: "2872ba14-4084-492b-be96-e5eee6fc33ef", - attachment_type: "RESUME", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/attachments", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ats/v1/attachments/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.attachments.retrieve("id", { - expand: "candidate", - includeRemoteData: true, - includeShellData: true, - remoteFields: "attachment_type", - showEnumOrigins: "attachment_type", - }); - expect(response).toEqual({ - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remoteId: "11167", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - fileName: "Candidate Resume", - fileUrl: "http://alturl.com/p749b", - candidate: "2872ba14-4084-492b-be96-e5eee6fc33ef", - attachmentType: "RESUME", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/attachments", - data: ["Varies by platform"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/ats/v1/attachments/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.attachments.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/ats/auditTrail.test.ts b/tests/wire/ats/auditTrail.test.ts deleted file mode 100644 index a3cff831b..000000000 --- a/tests/wire/ats/auditTrail.test.ts +++ /dev/null @@ -1,67 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AuditTrailClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b5ceea2a-7171-47ce-8090-165cfce5572c", - user_name: "Gil Feig", - user_email: "hello@merge.dev", - role: "ADMIN", - ip_address: "192.0.2.123", - event_type: "CREATED_REMOTE_PRODUCTION_API_KEY", - event_description: - "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", - created_at: "2024-01-15T09:30:00Z", - }, - ], - }; - server - .mockEndpoint() - .get("/ats/v1/audit-trail") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.auditTrail.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - eventType: "event_type", - pageSize: 1, - startDate: "start_date", - userEmail: "user_email", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b5ceea2a-7171-47ce-8090-165cfce5572c", - userName: "Gil Feig", - userEmail: "hello@merge.dev", - role: "ADMIN", - ipAddress: "192.0.2.123", - eventType: "CREATED_REMOTE_PRODUCTION_API_KEY", - eventDescription: - "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", - createdAt: new Date("2024-01-15T09:30:00.000Z"), - }, - ], - }); - }); -}); diff --git a/tests/wire/ats/availableActions.test.ts b/tests/wire/ats/availableActions.test.ts deleted file mode 100644 index a79fe15d8..000000000 --- a/tests/wire/ats/availableActions.test.ts +++ /dev/null @@ -1,76 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AvailableActionsClient", () => { - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - integration: { - name: "name", - abbreviated_name: "abbreviated_name", - categories: ["hris"], - image: "image", - square_image: "square_image", - color: "color", - slug: "slug", - api_endpoints_to_documentation_urls: { key: "value" }, - webhook_setup_guide_url: "webhook_setup_guide_url", - category_beta_status: { key: "value" }, - }, - 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"], - }, - ], - }; - server - .mockEndpoint() - .get("/ats/v1/available-actions") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.availableActions.retrieve(); - expect(response).toEqual({ - integration: { - name: "name", - abbreviatedName: "abbreviated_name", - categories: ["hris"], - image: "image", - squareImage: "square_image", - color: "color", - slug: "slug", - apiEndpointsToDocumentationUrls: { - key: "value", - }, - webhookSetupGuideUrl: "webhook_setup_guide_url", - categoryBetaStatus: { - key: "value", - }, - }, - passthroughAvailable: true, - availableModelOperations: [ - { - modelName: "Candidate", - availableOperations: ["FETCH", "CREATE"], - requiredPostParameters: ["remote_user_id"], - supportedFields: ["first_name", "last_name", "company", "title"], - }, - ], - }); - }); -}); diff --git a/tests/wire/ats/candidates.test.ts b/tests/wire/ats/candidates.test.ts deleted file mode 100644 index 49d50be5f..000000000 --- a/tests/wire/ats/candidates.test.ts +++ /dev/null @@ -1,1580 +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("CandidatesClient", () => { - 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: "521b18c2-4d01-4297-b451-19858d07c133", - remote_id: "21198", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - first_name: "Gil", - last_name: "Feig", - company: "Columbia Dining App.", - title: "Software Engineer", - remote_created_at: "2021-10-15T00:00:00Z", - remote_updated_at: "2021-10-16T00:00:00Z", - last_interaction_at: "2021-10-17T00:00:00Z", - is_private: true, - can_email: true, - locations: ["San Francisco", "New York", "Miami"], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - value: "+1234567890", - phone_number_type: "MOBILE", - }, - ], - email_addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - value: "hello@merge.dev", - email_address_type: "PERSONAL", - }, - ], - urls: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - value: "http://alturl.com/p749b", - url_type: "BLOG", - }, - ], - tags: ["High-Priority"], - applications: [ - "29eb9867-ce2a-403f-b8ce-f2844b89f078", - "b4d08e5c-de00-4d64-a29f-66addac9af99", - "4ff877d2-fb3e-4a5b-a7a5-168ddf2ffa56", - ], - attachments: ["bea08964-32b4-4a20-8bb4-2612ba09de1d"], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/candidates", data: ["Varies by platform"] }], - }, - ], - }; - server.mockEndpoint().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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "521b18c2-4d01-4297-b451-19858d07c133", - remoteId: "21198", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - firstName: "Gil", - lastName: "Feig", - company: "Columbia Dining App.", - title: "Software Engineer", - remoteCreatedAt: new Date("2021-10-15T00:00:00.000Z"), - remoteUpdatedAt: new Date("2021-10-16T00:00:00.000Z"), - lastInteractionAt: new Date("2021-10-17T00:00:00.000Z"), - isPrivate: true, - canEmail: true, - locations: ["San Francisco", "New York", "Miami"], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - value: "+1234567890", - phoneNumberType: "MOBILE", - }, - ], - emailAddresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - value: "hello@merge.dev", - emailAddressType: "PERSONAL", - }, - ], - urls: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - value: "http://alturl.com/p749b", - urlType: "BLOG", - }, - ], - tags: ["High-Priority"], - applications: [ - "29eb9867-ce2a-403f-b8ce-f2844b89f078", - "b4d08e5c-de00-4d64-a29f-66addac9af99", - "4ff877d2-fb3e-4a5b-a7a5-168ddf2ffa56", - ], - attachments: ["bea08964-32b4-4a20-8bb4-2612ba09de1d"], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/candidates", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {}, remote_user_id: "remote_user_id" }; - const rawResponseBody = { - model: { - id: "521b18c2-4d01-4297-b451-19858d07c133", - remote_id: "21198", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - first_name: "Gil", - last_name: "Feig", - company: "Columbia Dining App.", - title: "Software Engineer", - remote_created_at: "2021-10-15T00:00:00Z", - remote_updated_at: "2021-10-16T00:00:00Z", - last_interaction_at: "2021-10-17T00:00:00Z", - is_private: true, - can_email: true, - locations: ["San Francisco", "New York", "Miami"], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - value: "+1234567890", - phone_number_type: "MOBILE", - }, - ], - email_addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - value: "hello@merge.dev", - email_address_type: "PERSONAL", - }, - ], - urls: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - value: "http://alturl.com/p749b", - url_type: "BLOG", - }, - ], - tags: ["High-Priority"], - applications: [ - "29eb9867-ce2a-403f-b8ce-f2844b89f078", - "b4d08e5c-de00-4d64-a29f-66addac9af99", - "4ff877d2-fb3e-4a5b-a7a5-168ddf2ffa56", - ], - attachments: ["bea08964-32b4-4a20-8bb4-2612ba09de1d"], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/candidates", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/ats/v1/candidates") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.candidates.create({ - isDebugMode: true, - runAsync: true, - model: {}, - remoteUserId: "remote_user_id", - }); - expect(response).toEqual({ - model: { - id: "521b18c2-4d01-4297-b451-19858d07c133", - remoteId: "21198", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - firstName: "Gil", - lastName: "Feig", - company: "Columbia Dining App.", - title: "Software Engineer", - remoteCreatedAt: new Date("2021-10-15T00:00:00.000Z"), - remoteUpdatedAt: new Date("2021-10-16T00:00:00.000Z"), - lastInteractionAt: new Date("2021-10-17T00:00:00.000Z"), - isPrivate: true, - canEmail: true, - locations: ["San Francisco", "New York", "Miami"], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - value: "+1234567890", - phoneNumberType: "MOBILE", - }, - ], - emailAddresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - value: "hello@merge.dev", - emailAddressType: "PERSONAL", - }, - ], - urls: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - value: "http://alturl.com/p749b", - urlType: "BLOG", - }, - ], - tags: ["High-Priority"], - applications: [ - "29eb9867-ce2a-403f-b8ce-f2844b89f078", - "b4d08e5c-de00-4d64-a29f-66addac9af99", - "4ff877d2-fb3e-4a5b-a7a5-168ddf2ffa56", - ], - attachments: ["bea08964-32b4-4a20-8bb4-2612ba09de1d"], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/candidates", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "521b18c2-4d01-4297-b451-19858d07c133", - remote_id: "21198", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - first_name: "Gil", - last_name: "Feig", - company: "Columbia Dining App.", - title: "Software Engineer", - remote_created_at: "2021-10-15T00:00:00Z", - remote_updated_at: "2021-10-16T00:00:00Z", - last_interaction_at: "2021-10-17T00:00:00Z", - is_private: true, - can_email: true, - locations: ["San Francisco", "New York", "Miami"], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - value: "+1234567890", - phone_number_type: "MOBILE", - remote_was_deleted: true, - }, - ], - email_addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - value: "hello@merge.dev", - email_address_type: "PERSONAL", - remote_was_deleted: true, - }, - ], - urls: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - value: "http://alturl.com/p749b", - url_type: "BLOG", - remote_was_deleted: true, - }, - ], - tags: ["High-Priority"], - applications: [ - "29eb9867-ce2a-403f-b8ce-f2844b89f078", - "b4d08e5c-de00-4d64-a29f-66addac9af99", - "4ff877d2-fb3e-4a5b-a7a5-168ddf2ffa56", - ], - attachments: ["bea08964-32b4-4a20-8bb4-2612ba09de1d"], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/candidates", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ats/v1/candidates/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.candidates.retrieve("id", { - expand: "applications", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "521b18c2-4d01-4297-b451-19858d07c133", - remoteId: "21198", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - firstName: "Gil", - lastName: "Feig", - company: "Columbia Dining App.", - title: "Software Engineer", - remoteCreatedAt: new Date("2021-10-15T00:00:00.000Z"), - remoteUpdatedAt: new Date("2021-10-16T00:00:00.000Z"), - lastInteractionAt: new Date("2021-10-17T00:00:00.000Z"), - isPrivate: true, - canEmail: true, - locations: ["San Francisco", "New York", "Miami"], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - value: "+1234567890", - phoneNumberType: "MOBILE", - remoteWasDeleted: true, - }, - ], - emailAddresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - value: "hello@merge.dev", - emailAddressType: "PERSONAL", - remoteWasDeleted: true, - }, - ], - urls: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - value: "http://alturl.com/p749b", - urlType: "BLOG", - remoteWasDeleted: true, - }, - ], - tags: ["High-Priority"], - applications: [ - "29eb9867-ce2a-403f-b8ce-f2844b89f078", - "b4d08e5c-de00-4d64-a29f-66addac9af99", - "4ff877d2-fb3e-4a5b-a7a5-168ddf2ffa56", - ], - attachments: ["bea08964-32b4-4a20-8bb4-2612ba09de1d"], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/candidates", - 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: {}, remote_user_id: "remote_user_id" }; - const rawResponseBody = { - model: { - id: "521b18c2-4d01-4297-b451-19858d07c133", - remote_id: "21198", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - first_name: "Gil", - last_name: "Feig", - company: "Columbia Dining App.", - title: "Software Engineer", - remote_created_at: "2021-10-15T00:00:00Z", - remote_updated_at: "2021-10-16T00:00:00Z", - last_interaction_at: "2021-10-17T00:00:00Z", - is_private: true, - can_email: true, - locations: ["San Francisco", "New York", "Miami"], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - value: "+1234567890", - phone_number_type: "MOBILE", - }, - ], - email_addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - value: "hello@merge.dev", - email_address_type: "PERSONAL", - }, - ], - urls: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - value: "http://alturl.com/p749b", - url_type: "BLOG", - }, - ], - tags: ["High-Priority"], - applications: [ - "29eb9867-ce2a-403f-b8ce-f2844b89f078", - "b4d08e5c-de00-4d64-a29f-66addac9af99", - "4ff877d2-fb3e-4a5b-a7a5-168ddf2ffa56", - ], - attachments: ["bea08964-32b4-4a20-8bb4-2612ba09de1d"], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/candidates", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .patch("/ats/v1/candidates/id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.candidates.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {}, - remoteUserId: "remote_user_id", - }); - expect(response).toEqual({ - model: { - id: "521b18c2-4d01-4297-b451-19858d07c133", - remoteId: "21198", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - firstName: "Gil", - lastName: "Feig", - company: "Columbia Dining App.", - title: "Software Engineer", - remoteCreatedAt: new Date("2021-10-15T00:00:00.000Z"), - remoteUpdatedAt: new Date("2021-10-16T00:00:00.000Z"), - lastInteractionAt: new Date("2021-10-17T00:00:00.000Z"), - isPrivate: true, - canEmail: true, - locations: ["San Francisco", "New York", "Miami"], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - value: "+1234567890", - phoneNumberType: "MOBILE", - }, - ], - emailAddresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - value: "hello@merge.dev", - emailAddressType: "PERSONAL", - }, - ], - urls: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - value: "http://alturl.com/p749b", - urlType: "BLOG", - }, - ], - tags: ["High-Priority"], - applications: [ - "29eb9867-ce2a-403f-b8ce-f2844b89f078", - "b4d08e5c-de00-4d64-a29f-66addac9af99", - "4ff877d2-fb3e-4a5b-a7a5-168ddf2ffa56", - ], - attachments: ["bea08964-32b4-4a20-8bb4-2612ba09de1d"], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/candidates", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("ignoreCreate", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { reason: "GENERAL_CUSTOMER_REQUEST" }; - - server - .mockEndpoint() - .post("/ats/v1/candidates/ignore/model_id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .build(); - - const response = await client.ats.candidates.ignoreCreate("model_id", { - reason: "GENERAL_CUSTOMER_REQUEST", - }); - expect(response).toEqual(undefined); - }); - - test("metaPatchRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/ats/v1/candidates/meta/patch/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.candidates.metaPatchRetrieve("id"); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/ats/v1/candidates/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.candidates.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/ats/deleteAccount.test.ts b/tests/wire/ats/deleteAccount.test.ts deleted file mode 100644 index 7af97f571..000000000 --- a/tests/wire/ats/deleteAccount.test.ts +++ /dev/null @@ -1,21 +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("DeleteAccountClient", () => { - test("delete", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - server.mockEndpoint().post("/ats/v1/delete-account").respondWith().statusCode(200).build(); - - const response = await client.ats.deleteAccount.delete(); - expect(response).toEqual(undefined); - }); -}); diff --git a/tests/wire/ats/departments.test.ts b/tests/wire/ats/departments.test.ts deleted file mode 100644 index d1ea77d42..000000000 --- a/tests/wire/ats/departments.test.ts +++ /dev/null @@ -1,142 +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("DepartmentsClient", () => { - 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: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - remote_id: "23456", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Engineering", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/departments", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - remoteId: "23456", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Engineering", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/departments", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - remote_id: "23456", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Engineering", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/departments", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ats/v1/departments/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.departments.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - remoteId: "23456", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Engineering", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/departments", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/ats/eeocs.test.ts b/tests/wire/ats/eeocs.test.ts deleted file mode 100644 index bc757e33c..000000000 --- a/tests/wire/ats/eeocs.test.ts +++ /dev/null @@ -1,157 +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("EeocsClient", () => { - 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: "f7dd7b4f-237e-4772-8bd4-3246384c6c58", - remote_id: "76", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - candidate: "candidate", - submitted_at: "2021-10-15T00:00:00Z", - race: "AMERICAN_INDIAN_OR_ALASKAN_NATIVE", - gender: "MALE", - veteran_status: "I_AM_NOT_A_PROTECTED_VETERAN", - disability_status: "YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/eeoc", data: ["Varies by platform"] }], - }, - ], - }; - server.mockEndpoint().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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "f7dd7b4f-237e-4772-8bd4-3246384c6c58", - remoteId: "76", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - candidate: "candidate", - submittedAt: new Date("2021-10-15T00:00:00.000Z"), - race: "AMERICAN_INDIAN_OR_ALASKAN_NATIVE", - gender: "MALE", - veteranStatus: "I_AM_NOT_A_PROTECTED_VETERAN", - disabilityStatus: "YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/eeoc", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "f7dd7b4f-237e-4772-8bd4-3246384c6c58", - remote_id: "76", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - candidate: "candidate", - submitted_at: "2021-10-15T00:00:00Z", - race: "AMERICAN_INDIAN_OR_ALASKAN_NATIVE", - gender: "MALE", - veteran_status: "I_AM_NOT_A_PROTECTED_VETERAN", - disability_status: "YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/eeoc", data: ["Varies by platform"] }], - }; - 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", - showEnumOrigins: "disability_status", - }); - expect(response).toEqual({ - id: "f7dd7b4f-237e-4772-8bd4-3246384c6c58", - remoteId: "76", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - candidate: "candidate", - submittedAt: new Date("2021-10-15T00:00:00.000Z"), - race: "AMERICAN_INDIAN_OR_ALASKAN_NATIVE", - gender: "MALE", - veteranStatus: "I_AM_NOT_A_PROTECTED_VETERAN", - disabilityStatus: "YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/eeoc", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/ats/fieldMapping.test.ts b/tests/wire/ats/fieldMapping.test.ts deleted file mode 100644 index d90790a9a..000000000 --- a/tests/wire/ats/fieldMapping.test.ts +++ /dev/null @@ -1,1868 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("FieldMappingClient", () => { - test("field_mappings_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Activity: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Application: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Attachment: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Candidate: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Department: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - EEOC: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - ScheduledInterview: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Job: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - JobPosting: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - JobInterviewStage: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Offer: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Office: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - RejectReason: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Scorecard: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Tag: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - RemoteUser: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - }; - server - .mockEndpoint() - .get("/ats/v1/field-mappings") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.fieldMapping.fieldMappingsRetrieve({ - excludeRemoteFieldMetadata: true, - }); - expect(response).toEqual({ - activity: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - application: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - attachment: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - candidate: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - department: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - eeoc: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - scheduledInterview: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - job: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - jobPosting: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - jobInterviewStage: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - offer: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - office: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - rejectReason: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - scorecard: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - tag: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - remoteUser: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - }); - }); - - test("field_mappings_create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { - target_field_name: "example_target_field_name", - target_field_description: "this is a example description of the target field", - remote_field_traversal_path: ["example_remote_field"], - remote_method: "GET", - remote_url_path: "/example-url-path", - common_model_name: "ExampleCommonModel", - }; - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/ats/v1/field-mappings") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.fieldMapping.fieldMappingsCreate({ - excludeRemoteFieldMetadata: true, - targetFieldName: "example_target_field_name", - targetFieldDescription: "this is a example description of the target field", - remoteFieldTraversalPath: ["example_remote_field"], - remoteMethod: "GET", - remoteUrlPath: "/example-url-path", - commonModelName: "ExampleCommonModel", - }); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("field_mappings_destroy", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .delete("/ats/v1/field-mappings/field_mapping_id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.fieldMapping.fieldMappingsDestroy("field_mapping_id"); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("field_mappings_partial_update", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = {}; - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .patch("/ats/v1/field-mappings/field_mapping_id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("remote_fields_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Activity: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Application: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Attachment: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Candidate: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Department: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - EEOC: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - ScheduledInterview: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Job: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - JobPosting: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - JobInterviewStage: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Offer: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Office: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - RejectReason: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Scorecard: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Tag: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - RemoteUser: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - }; - server - .mockEndpoint() - .get("/ats/v1/remote-fields") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.fieldMapping.remoteFieldsRetrieve({ - commonModels: "common_models", - includeExampleValues: "include_example_values", - }); - expect(response).toEqual({ - activity: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - application: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - attachment: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - candidate: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - department: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - eeoc: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - scheduledInterview: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - job: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - jobPosting: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - jobInterviewStage: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - offer: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - office: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - rejectReason: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - scorecard: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - tag: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - remoteUser: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - }); - }); - - test("target_fields_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Activity: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Application: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Attachment: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Candidate: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Department: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - EEOC: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - ScheduledInterview: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Job: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - JobPosting: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - JobInterviewStage: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Offer: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Office: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - RejectReason: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Scorecard: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Tag: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - RemoteUser: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - }; - server - .mockEndpoint() - .get("/ats/v1/target-fields") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.fieldMapping.targetFieldsRetrieve(); - expect(response).toEqual({ - activity: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - application: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - attachment: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - candidate: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - department: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - eeoc: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - scheduledInterview: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - job: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - jobPosting: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - jobInterviewStage: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - offer: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - office: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - rejectReason: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - scorecard: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - tag: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - remoteUser: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - }); - }); -}); diff --git a/tests/wire/ats/forceResync.test.ts b/tests/wire/ats/forceResync.test.ts deleted file mode 100644 index b91dbfc9b..000000000 --- a/tests/wire/ats/forceResync.test.ts +++ /dev/null @@ -1,52 +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("ForceResyncClient", () => { - test("sync_status_resync_create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = [ - { - model_name: "Candidate", - model_id: "ats.Candidate", - last_sync_start: "2021-03-30T19:44:18Z", - next_sync_start: "2021-03-30T20:44:18Z", - last_sync_result: "SYNCING", - last_sync_finished: "2021-03-30T19:55:18Z", - status: "SYNCING", - is_initial_sync: true, - selective_sync_configurations_usage: "IN_NEXT_SYNC", - }, - ]; - server - .mockEndpoint() - .post("/ats/v1/sync-status/resync") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.forceResync.syncStatusResyncCreate(); - expect(response).toEqual([ - { - modelName: "Candidate", - modelId: "ats.Candidate", - lastSyncStart: new Date("2021-03-30T19:44:18.000Z"), - nextSyncStart: new Date("2021-03-30T20:44:18.000Z"), - lastSyncResult: "SYNCING", - lastSyncFinished: new Date("2021-03-30T19:55:18.000Z"), - status: "SYNCING", - isInitialSync: true, - selectiveSyncConfigurationsUsage: "IN_NEXT_SYNC", - }, - ]); - }); -}); diff --git a/tests/wire/ats/generateKey.test.ts b/tests/wire/ats/generateKey.test.ts deleted file mode 100644 index 1c7860003..000000000 --- a/tests/wire/ats/generateKey.test.ts +++ /dev/null @@ -1,37 +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("GenerateKeyClient", () => { - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { name: "Remote Deployment Key 1" }; - const rawResponseBody = { - name: "Remote Deployment Key 1", - key: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", - }; - server - .mockEndpoint() - .post("/ats/v1/generate-key") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.generateKey.create({ - name: "Remote Deployment Key 1", - }); - expect(response).toEqual({ - name: "Remote Deployment Key 1", - key: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", - }); - }); -}); diff --git a/tests/wire/ats/interviews.test.ts b/tests/wire/ats/interviews.test.ts deleted file mode 100644 index 3bcda1426..000000000 --- a/tests/wire/ats/interviews.test.ts +++ /dev/null @@ -1,744 +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("InterviewsClient", () => { - 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: "b8faf072-98b9-4445-8a9a-6b4950efca19", - remote_id: "3", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - application: "application", - job_interview_stage: "job_interview_stage", - organizer: "organizer", - interviewers: ["f9813dd5-e70b-484c-91d8-00acd6065b07", "89a86fcf-d540-4e6b-ac3d-ce07c4ec9b3c"], - location: "Embarcadero Center 2", - start_at: "2021-10-15T00:00:00Z", - end_at: "2021-10-15T02:00:00Z", - remote_created_at: "2021-10-15T00:00:00Z", - remote_updated_at: "2021-10-15T00:00:00Z", - status: "SCHEDULED", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/interviews", data: ["Varies by platform"] }], - }, - ], - }; - server.mockEndpoint().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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b8faf072-98b9-4445-8a9a-6b4950efca19", - remoteId: "3", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - application: "application", - jobInterviewStage: "job_interview_stage", - organizer: "organizer", - interviewers: ["f9813dd5-e70b-484c-91d8-00acd6065b07", "89a86fcf-d540-4e6b-ac3d-ce07c4ec9b3c"], - location: "Embarcadero Center 2", - startAt: new Date("2021-10-15T00:00:00.000Z"), - endAt: new Date("2021-10-15T02:00:00.000Z"), - remoteCreatedAt: new Date("2021-10-15T00:00:00.000Z"), - remoteUpdatedAt: new Date("2021-10-15T00:00:00.000Z"), - status: "SCHEDULED", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/interviews", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {}, remote_user_id: "remote_user_id" }; - const rawResponseBody = { - model: { - id: "b8faf072-98b9-4445-8a9a-6b4950efca19", - remote_id: "3", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - application: "application", - job_interview_stage: "job_interview_stage", - organizer: "organizer", - interviewers: ["f9813dd5-e70b-484c-91d8-00acd6065b07", "89a86fcf-d540-4e6b-ac3d-ce07c4ec9b3c"], - location: "Embarcadero Center 2", - start_at: "2021-10-15T00:00:00Z", - end_at: "2021-10-15T02:00:00Z", - remote_created_at: "2021-10-15T00:00:00Z", - remote_updated_at: "2021-10-15T00:00:00Z", - status: "SCHEDULED", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/interviews", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/ats/v1/interviews") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.interviews.create({ - isDebugMode: true, - runAsync: true, - model: {}, - remoteUserId: "remote_user_id", - }); - expect(response).toEqual({ - model: { - id: "b8faf072-98b9-4445-8a9a-6b4950efca19", - remoteId: "3", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - application: "application", - jobInterviewStage: "job_interview_stage", - organizer: "organizer", - interviewers: ["f9813dd5-e70b-484c-91d8-00acd6065b07", "89a86fcf-d540-4e6b-ac3d-ce07c4ec9b3c"], - location: "Embarcadero Center 2", - startAt: new Date("2021-10-15T00:00:00.000Z"), - endAt: new Date("2021-10-15T02:00:00.000Z"), - remoteCreatedAt: new Date("2021-10-15T00:00:00.000Z"), - remoteUpdatedAt: new Date("2021-10-15T00:00:00.000Z"), - status: "SCHEDULED", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/interviews", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "b8faf072-98b9-4445-8a9a-6b4950efca19", - remote_id: "3", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - application: "application", - job_interview_stage: "job_interview_stage", - organizer: "organizer", - interviewers: ["f9813dd5-e70b-484c-91d8-00acd6065b07", "89a86fcf-d540-4e6b-ac3d-ce07c4ec9b3c"], - location: "Embarcadero Center 2", - start_at: "2021-10-15T00:00:00Z", - end_at: "2021-10-15T02:00:00Z", - remote_created_at: "2021-10-15T00:00:00Z", - remote_updated_at: "2021-10-15T00:00:00Z", - status: "SCHEDULED", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/interviews", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ats/v1/interviews/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.interviews.retrieve("id", { - expand: "application", - includeRemoteData: true, - includeShellData: true, - remoteFields: "status", - showEnumOrigins: "status", - }); - expect(response).toEqual({ - id: "b8faf072-98b9-4445-8a9a-6b4950efca19", - remoteId: "3", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - application: "application", - jobInterviewStage: "job_interview_stage", - organizer: "organizer", - interviewers: ["f9813dd5-e70b-484c-91d8-00acd6065b07", "89a86fcf-d540-4e6b-ac3d-ce07c4ec9b3c"], - location: "Embarcadero Center 2", - startAt: new Date("2021-10-15T00:00:00.000Z"), - endAt: new Date("2021-10-15T02:00:00.000Z"), - remoteCreatedAt: new Date("2021-10-15T00:00:00.000Z"), - remoteUpdatedAt: new Date("2021-10-15T00:00:00.000Z"), - status: "SCHEDULED", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/interviews", - data: ["Varies by platform"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/ats/v1/interviews/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.interviews.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/ats/issues.test.ts b/tests/wire/ats/issues.test.ts deleted file mode 100644 index 6ebf9b39c..000000000 --- a/tests/wire/ats/issues.test.ts +++ /dev/null @@ -1,105 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("IssuesClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - error_description: "Missing Permissions", - end_user: { key: "value" }, - first_incident_time: "2022-12-05T16:19:15Z", - last_incident_time: "2022-12-05T16:19:15Z", - is_muted: true, - error_details: ["Missing employee permissions.", "Missing time off permissions."], - }, - ], - }; - server.mockEndpoint().get("/ats/v1/issues").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.ats.issues.list({ - accountToken: "account_token", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - endUserOrganizationName: "end_user_organization_name", - firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - includeMuted: "include_muted", - integrationName: "integration_name", - lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - linkedAccountId: "linked_account_id", - pageSize: 1, - startDate: "start_date", - status: "ONGOING", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - errorDescription: "Missing Permissions", - endUser: { - key: "value", - }, - firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - isMuted: true, - errorDetails: ["Missing employee permissions.", "Missing time off permissions."], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - error_description: "Missing Permissions", - end_user: { key: "value" }, - first_incident_time: "2022-12-05T16:19:15Z", - last_incident_time: "2022-12-05T16:19:15Z", - is_muted: true, - error_details: ["Missing employee permissions.", "Missing time off permissions."], - }; - server.mockEndpoint().get("/ats/v1/issues/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.ats.issues.retrieve("id"); - expect(response).toEqual({ - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - errorDescription: "Missing Permissions", - endUser: { - key: "value", - }, - firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - isMuted: true, - errorDetails: ["Missing employee permissions.", "Missing time off permissions."], - }); - }); -}); diff --git a/tests/wire/ats/jobInterviewStages.test.ts b/tests/wire/ats/jobInterviewStages.test.ts deleted file mode 100644 index 66c6ff263..000000000 --- a/tests/wire/ats/jobInterviewStages.test.ts +++ /dev/null @@ -1,153 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("JobInterviewStagesClient", () => { - 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: "f9813dd5-e70b-484c-91d8-00acd6065b07", - remote_id: "876556788", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Phone Screen", - job: "job", - stage_order: 2, - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/interview-stages", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "f9813dd5-e70b-484c-91d8-00acd6065b07", - remoteId: "876556788", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Phone Screen", - job: "job", - stageOrder: 2, - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/interview-stages", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "f9813dd5-e70b-484c-91d8-00acd6065b07", - remote_id: "876556788", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Phone Screen", - job: "job", - stage_order: 2, - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/interview-stages", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ats/v1/job-interview-stages/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.jobInterviewStages.retrieve("id", { - expand: "job", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "f9813dd5-e70b-484c-91d8-00acd6065b07", - remoteId: "876556788", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Phone Screen", - job: "job", - stageOrder: 2, - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/interview-stages", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/ats/jobPostings.test.ts b/tests/wire/ats/jobPostings.test.ts deleted file mode 100644 index 13e2d88d2..000000000 --- a/tests/wire/ats/jobPostings.test.ts +++ /dev/null @@ -1,203 +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("JobPostingsClient", () => { - 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: "156a2bef-57e5-4def-8ed2-7c41bd9a554t", - remote_id: "1341324", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - title: "Platform - NYC", - job_posting_urls: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - value: "https://merge.dev/careers", - url_type: "JOB_POSTING", - }, - ], - job: "job", - status: "PUBLISHED", - content: "Apply at https://merge.dev/careers", - remote_created_at: "2021-10-15T00:00:00Z", - remote_updated_at: "2021-10-16T00:00:00Z", - is_internal: 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: "/positions", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "156a2bef-57e5-4def-8ed2-7c41bd9a554t", - remoteId: "1341324", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - title: "Platform - NYC", - jobPostingUrls: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - value: "https://merge.dev/careers", - urlType: "JOB_POSTING", - }, - ], - job: "job", - status: "PUBLISHED", - content: "Apply at https://merge.dev/careers", - remoteCreatedAt: new Date("2021-10-15T00:00:00.000Z"), - remoteUpdatedAt: new Date("2021-10-16T00:00:00.000Z"), - isInternal: true, - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/positions", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "156a2bef-57e5-4def-8ed2-7c41bd9a554t", - remote_id: "1341324", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - title: "Platform - NYC", - job_posting_urls: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - value: "https://merge.dev/careers", - url_type: "JOB_POSTING", - remote_was_deleted: true, - }, - ], - job: "job", - status: "PUBLISHED", - content: "Apply at https://merge.dev/careers", - remote_created_at: "2021-10-15T00:00:00Z", - remote_updated_at: "2021-10-16T00:00:00Z", - is_internal: 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: "/positions", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ats/v1/job-postings/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.jobPostings.retrieve("id", { - expand: "job", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "156a2bef-57e5-4def-8ed2-7c41bd9a554t", - remoteId: "1341324", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - title: "Platform - NYC", - jobPostingUrls: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - value: "https://merge.dev/careers", - urlType: "JOB_POSTING", - remoteWasDeleted: true, - }, - ], - job: "job", - status: "PUBLISHED", - content: "Apply at https://merge.dev/careers", - remoteCreatedAt: new Date("2021-10-15T00:00:00.000Z"), - remoteUpdatedAt: new Date("2021-10-16T00:00:00.000Z"), - isInternal: true, - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/positions", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/ats/jobs.test.ts b/tests/wire/ats/jobs.test.ts deleted file mode 100644 index 838251877..000000000 --- a/tests/wire/ats/jobs.test.ts +++ /dev/null @@ -1,300 +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("JobsClient", () => { - 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: "022a2bef-57e5-4def-8ed2-7c41bd9a5ed8", - remote_id: "8765432", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Software Engineer (Merge is actually hiring btw)", - description: "If you're reading this documentation, you might be a good fit for Merge!", - code: "C0025", - status: "OPEN", - type: "POSTING", - job_postings: ["2r3c1341-a20f-4e51-b72c-f3830a16c97b", "543ed912-33ec-444e-a215-8d71cc42fc12"], - job_posting_urls: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - value: "https://merge.dev/careers", - url_type: "JOB_POSTING", - }, - ], - remote_created_at: "2021-10-15T00:00:00Z", - remote_updated_at: "2021-10-16T00:00:00Z", - confidential: true, - departments: ["5b3c1341-a20f-4e51-b72c-f3830a16c97b", "d6e687d6-0c36-48a1-8114-35324b5cb38f"], - offices: ["9871b4a9-f5d2-4f3b-a66b-dfedbed42c46"], - hiring_managers: ["787ed912-33ec-444e-a215-8d71cc42fc12"], - recruiters: ["787ed912-33ec-444e-a215-8d71cc42fc12"], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/positions", data: ["Varies by platform"] }], - }, - ], - }; - server.mockEndpoint().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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "022a2bef-57e5-4def-8ed2-7c41bd9a5ed8", - remoteId: "8765432", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Software Engineer (Merge is actually hiring btw)", - description: "If you're reading this documentation, you might be a good fit for Merge!", - code: "C0025", - status: "OPEN", - type: "POSTING", - jobPostings: ["2r3c1341-a20f-4e51-b72c-f3830a16c97b", "543ed912-33ec-444e-a215-8d71cc42fc12"], - jobPostingUrls: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - value: "https://merge.dev/careers", - urlType: "JOB_POSTING", - }, - ], - remoteCreatedAt: new Date("2021-10-15T00:00:00.000Z"), - remoteUpdatedAt: new Date("2021-10-16T00:00:00.000Z"), - confidential: true, - departments: ["5b3c1341-a20f-4e51-b72c-f3830a16c97b", "d6e687d6-0c36-48a1-8114-35324b5cb38f"], - offices: ["9871b4a9-f5d2-4f3b-a66b-dfedbed42c46"], - hiringManagers: ["787ed912-33ec-444e-a215-8d71cc42fc12"], - recruiters: ["787ed912-33ec-444e-a215-8d71cc42fc12"], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/positions", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "022a2bef-57e5-4def-8ed2-7c41bd9a5ed8", - remote_id: "8765432", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Software Engineer (Merge is actually hiring btw)", - description: "If you're reading this documentation, you might be a good fit for Merge!", - code: "C0025", - status: "OPEN", - type: "POSTING", - job_postings: ["2r3c1341-a20f-4e51-b72c-f3830a16c97b", "543ed912-33ec-444e-a215-8d71cc42fc12"], - job_posting_urls: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - value: "https://merge.dev/careers", - url_type: "JOB_POSTING", - remote_was_deleted: true, - }, - ], - remote_created_at: "2021-10-15T00:00:00Z", - remote_updated_at: "2021-10-16T00:00:00Z", - confidential: true, - departments: ["5b3c1341-a20f-4e51-b72c-f3830a16c97b", "d6e687d6-0c36-48a1-8114-35324b5cb38f"], - offices: ["9871b4a9-f5d2-4f3b-a66b-dfedbed42c46"], - hiring_managers: ["787ed912-33ec-444e-a215-8d71cc42fc12"], - recruiters: ["787ed912-33ec-444e-a215-8d71cc42fc12"], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/positions", data: ["Varies by platform"] }], - }; - 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", - showEnumOrigins: "status", - }); - expect(response).toEqual({ - id: "022a2bef-57e5-4def-8ed2-7c41bd9a5ed8", - remoteId: "8765432", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Software Engineer (Merge is actually hiring btw)", - description: "If you're reading this documentation, you might be a good fit for Merge!", - code: "C0025", - status: "OPEN", - type: "POSTING", - jobPostings: ["2r3c1341-a20f-4e51-b72c-f3830a16c97b", "543ed912-33ec-444e-a215-8d71cc42fc12"], - jobPostingUrls: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - value: "https://merge.dev/careers", - urlType: "JOB_POSTING", - remoteWasDeleted: true, - }, - ], - remoteCreatedAt: new Date("2021-10-15T00:00:00.000Z"), - remoteUpdatedAt: new Date("2021-10-16T00:00:00.000Z"), - confidential: true, - departments: ["5b3c1341-a20f-4e51-b72c-f3830a16c97b", "d6e687d6-0c36-48a1-8114-35324b5cb38f"], - offices: ["9871b4a9-f5d2-4f3b-a66b-dfedbed42c46"], - hiringManagers: ["787ed912-33ec-444e-a215-8d71cc42fc12"], - recruiters: ["787ed912-33ec-444e-a215-8d71cc42fc12"], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/positions", - data: ["Varies by platform"], - }, - ], - }); - }); - - test("screeningQuestionsList", 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: "0238cbc6-6040-430a-848e-aaiehfhdbadf4ae", - remote_id: "23729392", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - job: "job", - description: - "Are you currently authorized to work for any employer in the country outlined for this role?", - title: "Work Authorisation", - type: "DATE", - required: true, - options: [ - { remote_id: "19281", label: "I am currently authorised" }, - { remote_id: "38372", label: "I am currently not eligible" }, - ], - remote_was_deleted: true, - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0238cbc6-6040-430a-848e-aaiehfhdbadf4ae", - remoteId: "23729392", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - job: "job", - description: - "Are you currently authorized to work for any employer in the country outlined for this role?", - title: "Work Authorisation", - type: "DATE", - required: true, - options: [ - { - remote_id: "19281", - label: "I am currently authorised", - }, - { - remote_id: "38372", - label: "I am currently not eligible", - }, - ], - remoteWasDeleted: true, - }, - ], - }); - }); -}); diff --git a/tests/wire/ats/linkToken.test.ts b/tests/wire/ats/linkToken.test.ts deleted file mode 100644 index a86af57aa..000000000 --- a/tests/wire/ats/linkToken.test.ts +++ /dev/null @@ -1,47 +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("LinkTokenClient", () => { - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { - end_user_email_address: "example@gmail.com", - end_user_organization_name: "Test Organization", - end_user_origin_id: "12345", - categories: ["hris", "ats"], - }; - const rawResponseBody = { - link_token: "necdP7FtdASl1fQwm62be2_dM4wBG8_GactqoUV0", - integration_name: "Lever", - magic_link_url: "https://link.merge.dev/asdfjkl12345jsndfgi2i83n", - }; - server - .mockEndpoint() - .post("/ats/v1/link-token") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.linkToken.create({ - endUserEmailAddress: "example@gmail.com", - endUserOrganizationName: "Test Organization", - endUserOriginId: "12345", - categories: ["hris", "ats"], - }); - expect(response).toEqual({ - linkToken: "necdP7FtdASl1fQwm62be2_dM4wBG8_GactqoUV0", - integrationName: "Lever", - magicLinkUrl: "https://link.merge.dev/asdfjkl12345jsndfgi2i83n", - }); - }); -}); diff --git a/tests/wire/ats/linkedAccounts.test.ts b/tests/wire/ats/linkedAccounts.test.ts deleted file mode 100644 index b8d173ea3..000000000 --- a/tests/wire/ats/linkedAccounts.test.ts +++ /dev/null @@ -1,114 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("LinkedAccountsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "e59b1821-f85c-4e28-a6b3-1804156f3563", - category: "hris", - status: "COMPLETE", - status_detail: "Invalid login credentials", - end_user_origin_id: "3ac95cde-6c7f-4eef-afec-be710b42308d", - end_user_organization_name: "Foo Bar, LLC", - end_user_email_address: "hradmin@foobar.dev", - subdomain: "foobar", - webhook_listener_url: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - is_duplicate: true, - integration: { - name: "name", - categories: ["hris"], - color: "color", - slug: "slug", - passthrough_available: true, - available_model_operations: [ - { - model_name: "Candidate", - available_operations: ["FETCH", "CREATE"], - required_post_parameters: ["remote_user_id"], - supported_fields: ["first_name", "last_name", "company", "title"], - }, - ], - }, - account_type: "PRODUCTION", - completed_at: "2024-08-26T20:11:19Z", - integration_specific_fields: { integration_specific_field: "Varies by platform" }, - }, - ], - }; - server - .mockEndpoint() - .get("/ats/v1/linked-accounts") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.linkedAccounts.list({ - category: "accounting", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endUserEmailAddress: "end_user_email_address", - endUserOrganizationName: "end_user_organization_name", - endUserOriginId: "end_user_origin_id", - endUserOriginIds: "end_user_origin_ids", - id: "id", - ids: "ids", - includeDuplicates: true, - integrationName: "integration_name", - isTestAccount: "is_test_account", - pageSize: 1, - status: "status", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "e59b1821-f85c-4e28-a6b3-1804156f3563", - category: "hris", - status: "COMPLETE", - statusDetail: "Invalid login credentials", - endUserOriginId: "3ac95cde-6c7f-4eef-afec-be710b42308d", - endUserOrganizationName: "Foo Bar, LLC", - endUserEmailAddress: "hradmin@foobar.dev", - subdomain: "foobar", - webhookListenerUrl: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - isDuplicate: true, - integration: { - name: "name", - categories: ["hris"], - color: "color", - slug: "slug", - passthroughAvailable: true, - availableModelOperations: [ - { - modelName: "Candidate", - availableOperations: ["FETCH", "CREATE"], - requiredPostParameters: ["remote_user_id"], - supportedFields: ["first_name", "last_name", "company", "title"], - }, - ], - }, - accountType: "PRODUCTION", - completedAt: new Date("2024-08-26T20:11:19.000Z"), - integrationSpecificFields: { - integration_specific_field: "Varies by platform", - }, - }, - ], - }); - }); -}); diff --git a/tests/wire/ats/offers.test.ts b/tests/wire/ats/offers.test.ts deleted file mode 100644 index c955d359b..000000000 --- a/tests/wire/ats/offers.test.ts +++ /dev/null @@ -1,162 +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("OffersClient", () => { - 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: "dd85625c-6a59-446f-a317-6de64d83bae7", - remote_id: "9876", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - application: "application", - creator: "creator", - remote_created_at: "2021-10-15T00:00:00Z", - closed_at: "2021-10-16T00:00:00Z", - sent_at: "2021-10-15T00:00:00Z", - start_date: "2021-11-15T00:00:00Z", - status: "DRAFT", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/offers", data: ["Varies by platform"] }], - }, - ], - }; - server.mockEndpoint().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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "dd85625c-6a59-446f-a317-6de64d83bae7", - remoteId: "9876", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - application: "application", - creator: "creator", - remoteCreatedAt: new Date("2021-10-15T00:00:00.000Z"), - closedAt: new Date("2021-10-16T00:00:00.000Z"), - sentAt: new Date("2021-10-15T00:00:00.000Z"), - startDate: new Date("2021-11-15T00:00:00.000Z"), - status: "DRAFT", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/offers", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "dd85625c-6a59-446f-a317-6de64d83bae7", - remote_id: "9876", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - application: "application", - creator: "creator", - remote_created_at: "2021-10-15T00:00:00Z", - closed_at: "2021-10-16T00:00:00Z", - sent_at: "2021-10-15T00:00:00Z", - start_date: "2021-11-15T00:00:00Z", - status: "DRAFT", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/offers", data: ["Varies by platform"] }], - }; - 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", - showEnumOrigins: "status", - }); - expect(response).toEqual({ - id: "dd85625c-6a59-446f-a317-6de64d83bae7", - remoteId: "9876", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - application: "application", - creator: "creator", - remoteCreatedAt: new Date("2021-10-15T00:00:00.000Z"), - closedAt: new Date("2021-10-16T00:00:00.000Z"), - sentAt: new Date("2021-10-15T00:00:00.000Z"), - startDate: new Date("2021-11-15T00:00:00.000Z"), - status: "DRAFT", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/offers", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/ats/offices.test.ts b/tests/wire/ats/offices.test.ts deleted file mode 100644 index 878e89e5c..000000000 --- a/tests/wire/ats/offices.test.ts +++ /dev/null @@ -1,134 +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("OfficesClient", () => { - 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: "9871b4a9-f5d2-4f3b-a66b-dfedbed42c46", - remote_id: "876556788", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "SF Office", - location: "Embarcadero Center 2", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/locations", data: ["Varies by platform"] }], - }, - ], - }; - server.mockEndpoint().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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "9871b4a9-f5d2-4f3b-a66b-dfedbed42c46", - remoteId: "876556788", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "SF Office", - location: "Embarcadero Center 2", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/locations", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "9871b4a9-f5d2-4f3b-a66b-dfedbed42c46", - remote_id: "876556788", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "SF Office", - location: "Embarcadero Center 2", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/locations", data: ["Varies by platform"] }], - }; - server.mockEndpoint().get("/ats/v1/offices/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.ats.offices.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "9871b4a9-f5d2-4f3b-a66b-dfedbed42c46", - remoteId: "876556788", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "SF Office", - location: "Embarcadero Center 2", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/locations", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/ats/passthrough.test.ts b/tests/wire/ats/passthrough.test.ts deleted file mode 100644 index f7f8f2bff..000000000 --- a/tests/wire/ats/passthrough.test.ts +++ /dev/null @@ -1,69 +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("PassthroughClient", () => { - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { method: "GET", path: "/scooters" }; - const rawResponseBody = { - method: "GET", - path: "/scooters", - status: 200, - response: { - scooters: [ - { company: "Lime", model: "Gen 2.5" }, - { company: "Bird", model: "Bird Zero" }, - ], - }, - response_headers: { "X-Page-Token": "value" }, - response_type: "JSON", - headers: { "EXTRA-HEADER": "value", Authorization: "" }, - }; - server - .mockEndpoint() - .post("/ats/v1/passthrough") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.passthrough.create({ - method: "GET", - path: "/scooters", - }); - expect(response).toEqual({ - method: "GET", - path: "/scooters", - status: 200, - response: { - scooters: [ - { - company: "Lime", - model: "Gen 2.5", - }, - { - company: "Bird", - model: "Bird Zero", - }, - ], - }, - responseHeaders: { - "X-Page-Token": "value", - }, - responseType: "JSON", - headers: { - "EXTRA-HEADER": "value", - Authorization: "", - }, - }); - }); -}); diff --git a/tests/wire/ats/regenerateKey.test.ts b/tests/wire/ats/regenerateKey.test.ts deleted file mode 100644 index dfaf7f4b3..000000000 --- a/tests/wire/ats/regenerateKey.test.ts +++ /dev/null @@ -1,37 +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("RegenerateKeyClient", () => { - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { name: "Remote Deployment Key 1" }; - const rawResponseBody = { - name: "Remote Deployment Key 1", - key: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", - }; - server - .mockEndpoint() - .post("/ats/v1/regenerate-key") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.regenerateKey.create({ - name: "Remote Deployment Key 1", - }); - expect(response).toEqual({ - name: "Remote Deployment Key 1", - key: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", - }); - }); -}); diff --git a/tests/wire/ats/rejectReasons.test.ts b/tests/wire/ats/rejectReasons.test.ts deleted file mode 100644 index 4f3b4c5d0..000000000 --- a/tests/wire/ats/rejectReasons.test.ts +++ /dev/null @@ -1,142 +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("RejectReasonsClient", () => { - 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: "8be99a4a-f8d4-4339-bf1e-30eac970e217", - remote_id: "876556788", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Not passionate enough about APIs.", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/rejection-reasons", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "8be99a4a-f8d4-4339-bf1e-30eac970e217", - remoteId: "876556788", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Not passionate enough about APIs.", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/rejection-reasons", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "8be99a4a-f8d4-4339-bf1e-30eac970e217", - remote_id: "876556788", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Not passionate enough about APIs.", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/rejection-reasons", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ats/v1/reject-reasons/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.rejectReasons.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "8be99a4a-f8d4-4339-bf1e-30eac970e217", - remoteId: "876556788", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Not passionate enough about APIs.", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/rejection-reasons", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/ats/scopes.test.ts b/tests/wire/ats/scopes.test.ts deleted file mode 100644 index fe4124b50..000000000 --- a/tests/wire/ats/scopes.test.ts +++ /dev/null @@ -1,294 +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("ScopesClient", () => { - test("default_scopes_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - common_models: [ - { - model_name: "Employee", - model_permissions: { READ: { is_enabled: true }, WRITE: { is_enabled: false } }, - field_permissions: { - enabled_fields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabled_fields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }; - server - .mockEndpoint() - .get("/ats/v1/default-scopes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.scopes.defaultScopesRetrieve(); - expect(response).toEqual({ - commonModels: [ - { - modelName: "Employee", - modelPermissions: { - READ: { - isEnabled: true, - }, - WRITE: { - isEnabled: false, - }, - }, - fieldPermissions: { - enabledFields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabledFields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }); - }); - - test("linked_account_scopes_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - common_models: [ - { - model_name: "Employee", - model_permissions: { READ: { is_enabled: true }, WRITE: { is_enabled: false } }, - field_permissions: { - enabled_fields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabled_fields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }; - server - .mockEndpoint() - .get("/ats/v1/linked-account-scopes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.scopes.linkedAccountScopesRetrieve(); - expect(response).toEqual({ - commonModels: [ - { - modelName: "Employee", - modelPermissions: { - READ: { - isEnabled: true, - }, - WRITE: { - isEnabled: false, - }, - }, - fieldPermissions: { - enabledFields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabledFields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }); - }); - - test("linked_account_scopes_create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { - common_models: [ - { - model_name: "Employee", - model_permissions: { READ: { is_enabled: true }, WRITE: { is_enabled: false } }, - field_permissions: { - enabled_fields: ["avatar", "home_location"], - disabled_fields: ["work_location"], - }, - }, - { model_name: "Benefit", model_permissions: { WRITE: { is_enabled: false } } }, - ], - }; - const rawResponseBody = { - common_models: [ - { - model_name: "Employee", - model_permissions: { READ: { is_enabled: true }, WRITE: { is_enabled: false } }, - field_permissions: { - enabled_fields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabled_fields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }; - server - .mockEndpoint() - .post("/ats/v1/linked-account-scopes") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.scopes.linkedAccountScopesCreate({ - commonModels: [ - { - modelName: "Employee", - modelPermissions: { - READ: { - isEnabled: true, - }, - WRITE: { - isEnabled: false, - }, - }, - fieldPermissions: { - enabledFields: ["avatar", "home_location"], - disabledFields: ["work_location"], - }, - }, - { - modelName: "Benefit", - modelPermissions: { - WRITE: { - isEnabled: false, - }, - }, - }, - ], - }); - expect(response).toEqual({ - commonModels: [ - { - modelName: "Employee", - modelPermissions: { - READ: { - isEnabled: true, - }, - WRITE: { - isEnabled: false, - }, - }, - fieldPermissions: { - enabledFields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabledFields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }); - }); -}); diff --git a/tests/wire/ats/scorecards.test.ts b/tests/wire/ats/scorecards.test.ts deleted file mode 100644 index 645f015b4..000000000 --- a/tests/wire/ats/scorecards.test.ts +++ /dev/null @@ -1,165 +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("ScorecardsClient", () => { - 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: "3eab2f17-eeb1-450d-97f0-029d8be1e06f", - remote_id: "22234", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - application: "application", - interview: "interview", - interviewer: "interviewer", - remote_created_at: "2021-10-15T00:00:00Z", - submitted_at: "2021-10-15T00:00:00Z", - overall_recommendation: "DEFINITELY_NO", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/ratings", data: ["Varies by platform"] }], - }, - ], - }; - server.mockEndpoint().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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "3eab2f17-eeb1-450d-97f0-029d8be1e06f", - remoteId: "22234", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - application: "application", - interview: "interview", - interviewer: "interviewer", - remoteCreatedAt: new Date("2021-10-15T00:00:00.000Z"), - submittedAt: new Date("2021-10-15T00:00:00.000Z"), - overallRecommendation: "DEFINITELY_NO", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/ratings", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "3eab2f17-eeb1-450d-97f0-029d8be1e06f", - remote_id: "22234", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - application: "application", - interview: "interview", - interviewer: "interviewer", - remote_created_at: "2021-10-15T00:00:00Z", - submitted_at: "2021-10-15T00:00:00Z", - overall_recommendation: "DEFINITELY_NO", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/ratings", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ats/v1/scorecards/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.scorecards.retrieve("id", { - expand: "application", - includeRemoteData: true, - includeShellData: true, - remoteFields: "overall_recommendation", - showEnumOrigins: "overall_recommendation", - }); - expect(response).toEqual({ - id: "3eab2f17-eeb1-450d-97f0-029d8be1e06f", - remoteId: "22234", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - application: "application", - interview: "interview", - interviewer: "interviewer", - remoteCreatedAt: new Date("2021-10-15T00:00:00.000Z"), - submittedAt: new Date("2021-10-15T00:00:00.000Z"), - overallRecommendation: "DEFINITELY_NO", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/ratings", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/ats/syncStatus.test.ts b/tests/wire/ats/syncStatus.test.ts deleted file mode 100644 index 7fefb7080..000000000 --- a/tests/wire/ats/syncStatus.test.ts +++ /dev/null @@ -1,63 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("SyncStatusClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - model_name: "Candidate", - model_id: "ats.Candidate", - last_sync_start: "2021-03-30T19:44:18Z", - next_sync_start: "2021-03-30T20:44:18Z", - last_sync_result: "SYNCING", - last_sync_finished: "2021-03-30T19:55:18Z", - status: "SYNCING", - is_initial_sync: true, - selective_sync_configurations_usage: "IN_NEXT_SYNC", - }, - ], - }; - server - .mockEndpoint() - .get("/ats/v1/sync-status") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.syncStatus.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - modelName: "Candidate", - modelId: "ats.Candidate", - lastSyncStart: new Date("2021-03-30T19:44:18.000Z"), - nextSyncStart: new Date("2021-03-30T20:44:18.000Z"), - lastSyncResult: "SYNCING", - lastSyncFinished: new Date("2021-03-30T19:55:18.000Z"), - status: "SYNCING", - isInitialSync: true, - selectiveSyncConfigurationsUsage: "IN_NEXT_SYNC", - }, - ], - }); - }); -}); diff --git a/tests/wire/ats/tags.test.ts b/tests/wire/ats/tags.test.ts deleted file mode 100644 index 8aee34a45..000000000 --- a/tests/wire/ats/tags.test.ts +++ /dev/null @@ -1,76 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("TagsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - remote_id: "4567", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "High-Priority", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/tags", data: ["Varies by platform"] }], - }, - ], - }; - server.mockEndpoint().get("/ats/v1/tags").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.ats.tags.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - remoteId: "4567", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "High-Priority", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/tags", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); -}); diff --git a/tests/wire/ats/users.test.ts b/tests/wire/ats/users.test.ts deleted file mode 100644 index 47221bdcc..000000000 --- a/tests/wire/ats/users.test.ts +++ /dev/null @@ -1,155 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("UsersClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b82302de-852e-4e60-b050-edf9da3b7c02", - remote_id: "344321", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - first_name: "Shensi", - last_name: "Ding", - email: "hello@merge.dev", - disabled: true, - remote_created_at: "2020-11-10T00:00:00Z", - access_role: "SUPER_ADMIN", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/users", data: ["Varies by platform"] }], - }, - ], - }; - server.mockEndpoint().get("/ats/v1/users").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.ats.users.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email: "email", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteFields: "access_role", - remoteId: "remote_id", - showEnumOrigins: "access_role", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b82302de-852e-4e60-b050-edf9da3b7c02", - remoteId: "344321", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - firstName: "Shensi", - lastName: "Ding", - email: "hello@merge.dev", - disabled: true, - remoteCreatedAt: new Date("2020-11-10T00:00:00.000Z"), - accessRole: "SUPER_ADMIN", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/users", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "b82302de-852e-4e60-b050-edf9da3b7c02", - remote_id: "344321", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - first_name: "Shensi", - last_name: "Ding", - email: "hello@merge.dev", - disabled: true, - remote_created_at: "2020-11-10T00:00:00Z", - access_role: "SUPER_ADMIN", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/users", data: ["Varies by platform"] }], - }; - server.mockEndpoint().get("/ats/v1/users/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.ats.users.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - remoteFields: "access_role", - showEnumOrigins: "access_role", - }); - expect(response).toEqual({ - id: "b82302de-852e-4e60-b050-edf9da3b7c02", - remoteId: "344321", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - firstName: "Shensi", - lastName: "Ding", - email: "hello@merge.dev", - disabled: true, - remoteCreatedAt: new Date("2020-11-10T00:00:00.000Z"), - accessRole: "SUPER_ADMIN", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/users", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/ats/webhookReceivers.test.ts b/tests/wire/ats/webhookReceivers.test.ts deleted file mode 100644 index b4686feb1..000000000 --- a/tests/wire/ats/webhookReceivers.test.ts +++ /dev/null @@ -1,64 +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("WebhookReceiversClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = [{ event: "event", is_active: true, key: "key" }]; - server - .mockEndpoint() - .get("/ats/v1/webhook-receivers") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.webhookReceivers.list(); - expect(response).toEqual([ - { - event: "event", - isActive: true, - key: "key", - }, - ]); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { event: "event", is_active: true }; - const rawResponseBody = { event: "event", is_active: true, key: "key" }; - server - .mockEndpoint() - .post("/ats/v1/webhook-receivers") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.webhookReceivers.create({ - event: "event", - isActive: true, - }); - expect(response).toEqual({ - event: "event", - isActive: true, - key: "key", - }); - }); -}); diff --git a/tests/wire/crm/accountDetails.test.ts b/tests/wire/crm/accountDetails.test.ts deleted file mode 100644 index d8b84be6c..000000000 --- a/tests/wire/crm/accountDetails.test.ts +++ /dev/null @@ -1,54 +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("AccountDetailsClient", () => { - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - integration: "BambooHR", - integration_slug: "bamboohr", - category: "hris", - end_user_origin_id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - end_user_organization_name: "Waystar Royco", - end_user_email_address: "kendall.roy@waystar-royco.com", - status: "COMPLETE", - webhook_listener_url: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - is_duplicate: true, - account_type: "PRODUCTION", - completed_at: "2024-08-26T20:11:19Z", - }; - server - .mockEndpoint() - .get("/crm/v1/account-details") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.accountDetails.retrieve(); - expect(response).toEqual({ - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - integration: "BambooHR", - integrationSlug: "bamboohr", - category: "hris", - endUserOriginId: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - endUserOrganizationName: "Waystar Royco", - endUserEmailAddress: "kendall.roy@waystar-royco.com", - status: "COMPLETE", - webhookListenerUrl: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - isDuplicate: true, - accountType: "PRODUCTION", - completedAt: new Date("2024-08-26T20:11:19.000Z"), - }); - }); -}); diff --git a/tests/wire/crm/accountToken.test.ts b/tests/wire/crm/accountToken.test.ts deleted file mode 100644 index fe76aa052..000000000 --- a/tests/wire/crm/accountToken.test.ts +++ /dev/null @@ -1,62 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AccountTokenClient", () => { - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - account_token: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", - integration: { - name: "name", - abbreviated_name: "abbreviated_name", - categories: ["hris"], - image: "image", - square_image: "square_image", - color: "color", - slug: "slug", - api_endpoints_to_documentation_urls: { key: "value" }, - webhook_setup_guide_url: "webhook_setup_guide_url", - category_beta_status: { key: "value" }, - }, - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - }; - server - .mockEndpoint() - .get("/crm/v1/account-token/public_token") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.accountToken.retrieve("public_token"); - expect(response).toEqual({ - accountToken: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", - integration: { - name: "name", - abbreviatedName: "abbreviated_name", - categories: ["hris"], - image: "image", - squareImage: "square_image", - color: "color", - slug: "slug", - apiEndpointsToDocumentationUrls: { - key: "value", - }, - webhookSetupGuideUrl: "webhook_setup_guide_url", - categoryBetaStatus: { - key: "value", - }, - }, - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - }); - }); -}); diff --git a/tests/wire/crm/accounts.test.ts b/tests/wire/crm/accounts.test.ts deleted file mode 100644 index 1b48deea4..000000000 --- a/tests/wire/crm/accounts.test.ts +++ /dev/null @@ -1,1553 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AccountsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - owner: "owner", - name: "Merge API", - description: "One API for all integrations", - industry: "API's", - website: "https://merge.dev/", - number_of_employees: 276000, - addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - street_1: "50 Bowling Green Dr", - street_2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postal_code: "94122", - country: "US", - address_type: "Shipping", - }, - ], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - phone_number: "+16788879833", - phone_number_type: "Mobile", - }, - ], - last_activity_at: "2022-02-10T00:00:00Z", - remote_updated_at: "2022-01-09T00:00:00Z", - remote_created_at: "2021-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/accounts", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server.mockEndpoint().get("/crm/v1/accounts").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.crm.accounts.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "owner", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - name: "name", - ownerId: "owner_id", - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - owner: "owner", - name: "Merge API", - description: "One API for all integrations", - industry: "API's", - website: "https://merge.dev/", - numberOfEmployees: 276000, - addresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - street1: "50 Bowling Green Dr", - street2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postalCode: "94122", - country: "US", - addressType: "Shipping", - }, - ], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - phoneNumber: "+16788879833", - phoneNumberType: "Mobile", - }, - ], - lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), - remoteUpdatedAt: new Date("2022-01-09T00:00:00.000Z"), - remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/accounts", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - owner: "owner", - name: "Merge API", - description: "One API for all integrations", - industry: "API's", - website: "https://merge.dev/", - number_of_employees: 276000, - addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - street_1: "50 Bowling Green Dr", - street_2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postal_code: "94122", - country: "US", - address_type: "Shipping", - }, - ], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - phone_number: "+16788879833", - phone_number_type: "Mobile", - }, - ], - last_activity_at: "2022-02-10T00:00:00Z", - remote_updated_at: "2022-01-09T00:00:00Z", - remote_created_at: "2021-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/accounts", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/crm/v1/accounts") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.accounts.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - owner: "owner", - name: "Merge API", - description: "One API for all integrations", - industry: "API's", - website: "https://merge.dev/", - numberOfEmployees: 276000, - addresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - street1: "50 Bowling Green Dr", - street2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postalCode: "94122", - country: "US", - addressType: "Shipping", - }, - ], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - phoneNumber: "+16788879833", - phoneNumberType: "Mobile", - }, - ], - lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), - remoteUpdatedAt: new Date("2022-01-09T00:00:00.000Z"), - remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/accounts", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - owner: "owner", - name: "Merge API", - description: "One API for all integrations", - industry: "API's", - website: "https://merge.dev/", - number_of_employees: 276000, - addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - street_1: "50 Bowling Green Dr", - street_2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postal_code: "94122", - country: "US", - address_type: "Shipping", - }, - ], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - phone_number: "+16788879833", - phone_number_type: "Mobile", - }, - ], - last_activity_at: "2022-02-10T00:00:00Z", - remote_updated_at: "2022-01-09T00:00:00Z", - remote_created_at: "2021-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/accounts", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - server - .mockEndpoint() - .get("/crm/v1/accounts/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.accounts.retrieve("id", { - expand: "owner", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - owner: "owner", - name: "Merge API", - description: "One API for all integrations", - industry: "API's", - website: "https://merge.dev/", - numberOfEmployees: 276000, - addresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - street1: "50 Bowling Green Dr", - street2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postalCode: "94122", - country: "US", - addressType: "Shipping", - }, - ], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - phoneNumber: "+16788879833", - phoneNumberType: "Mobile", - }, - ], - lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), - remoteUpdatedAt: new Date("2022-01-09T00:00:00.000Z"), - remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/accounts", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("partialUpdate", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - owner: "owner", - name: "Merge API", - description: "One API for all integrations", - industry: "API's", - website: "https://merge.dev/", - number_of_employees: 276000, - addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - street_1: "50 Bowling Green Dr", - street_2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postal_code: "94122", - country: "US", - address_type: "Shipping", - }, - ], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - phone_number: "+16788879833", - phone_number_type: "Mobile", - }, - ], - last_activity_at: "2022-02-10T00:00:00Z", - remote_updated_at: "2022-01-09T00:00:00Z", - remote_created_at: "2021-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/accounts", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .patch("/crm/v1/accounts/id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.accounts.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - owner: "owner", - name: "Merge API", - description: "One API for all integrations", - industry: "API's", - website: "https://merge.dev/", - numberOfEmployees: 276000, - addresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - street1: "50 Bowling Green Dr", - street2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postalCode: "94122", - country: "US", - addressType: "Shipping", - }, - ], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - phoneNumber: "+16788879833", - phoneNumberType: "Mobile", - }, - ], - lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), - remoteUpdatedAt: new Date("2022-01-09T00:00:00.000Z"), - remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/accounts", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("metaPatchRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/crm/v1/accounts/meta/patch/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.accounts.metaPatchRetrieve("id"); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/crm/v1/accounts/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.accounts.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("remoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: [{}], - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/accounts/remote-field-classes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.accounts.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: [{}], - }, - ], - }); - }); -}); diff --git a/tests/wire/crm/associationTypes.test.ts b/tests/wire/crm/associationTypes.test.ts deleted file mode 100644 index 2dae7eefe..000000000 --- a/tests/wire/crm/associationTypes.test.ts +++ /dev/null @@ -1,718 +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("AssociationTypesClient", () => { - test("custom_object_classes_association_types_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: "5bb73c32-3c6c-4757-ab7d-7d3540a1be31", - remote_id: "93", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - source_object_class: { id: "ff1ff4cb-a66b-47dc-8e2a-50388049e602", origin_type: "CUSTOM_OBJECT" }, - target_object_classes: [{ id: "Opportunity", origin_type: "COMMON_MODEL" }], - remote_key_name: "order_to_opportunity", - display_name: "Order to Opportunity", - cardinality: "ONE_TO_ONE", - is_required: true, - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "5bb73c32-3c6c-4757-ab7d-7d3540a1be31", - remoteId: "93", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - sourceObjectClass: { - id: "ff1ff4cb-a66b-47dc-8e2a-50388049e602", - origin_type: "CUSTOM_OBJECT", - }, - targetObjectClasses: [ - { - id: "Opportunity", - originType: "COMMON_MODEL", - }, - ], - remoteKeyName: "order_to_opportunity", - displayName: "Order to Opportunity", - cardinality: "ONE_TO_ONE", - isRequired: true, - }, - ], - }); - }); - - test("custom_object_classes_association_types_create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { - model: { - source_object_class: { id: "id", origin_type: "CUSTOM_OBJECT" }, - target_object_classes: [{ id: "id", origin_type: "CUSTOM_OBJECT" }], - remote_key_name: "remote_key_name", - }, - }; - const rawResponseBody = { - model: { - id: "5bb73c32-3c6c-4757-ab7d-7d3540a1be31", - remote_id: "93", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - source_object_class: { id: "ff1ff4cb-a66b-47dc-8e2a-50388049e602", origin_type: "CUSTOM_OBJECT" }, - target_object_classes: [{ id: "Opportunity", origin_type: "COMMON_MODEL" }], - remote_key_name: "order_to_opportunity", - display_name: "Order to Opportunity", - cardinality: "ONE_TO_ONE", - is_required: true, - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/crm/v1/custom-object-classes/custom_object_class_id/association-types") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = 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", - }, - }, - ); - expect(response).toEqual({ - model: { - id: "5bb73c32-3c6c-4757-ab7d-7d3540a1be31", - remoteId: "93", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - sourceObjectClass: { - id: "ff1ff4cb-a66b-47dc-8e2a-50388049e602", - origin_type: "CUSTOM_OBJECT", - }, - targetObjectClasses: [ - { - id: "Opportunity", - originType: "COMMON_MODEL", - }, - ], - remoteKeyName: "order_to_opportunity", - displayName: "Order to Opportunity", - cardinality: "ONE_TO_ONE", - isRequired: true, - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("custom_object_classes_association_types_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "5bb73c32-3c6c-4757-ab7d-7d3540a1be31", - remote_id: "93", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - source_object_class: { id: "ff1ff4cb-a66b-47dc-8e2a-50388049e602", origin_type: "CUSTOM_OBJECT" }, - target_object_classes: [ - { - id: "Opportunity", - created_at: "2024-01-15T09:30:00Z", - modified_at: "2024-01-15T09:30:00Z", - origin_type: "COMMON_MODEL", - }, - ], - remote_key_name: "order_to_opportunity", - display_name: "Order to Opportunity", - cardinality: "ONE_TO_ONE", - is_required: true, - }; - server - .mockEndpoint() - .get("/crm/v1/custom-object-classes/custom_object_class_id/association-types/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve( - "custom_object_class_id", - "id", - { - expand: "target_object_classes", - includeRemoteData: true, - includeShellData: true, - }, - ); - expect(response).toEqual({ - id: "5bb73c32-3c6c-4757-ab7d-7d3540a1be31", - remoteId: "93", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - sourceObjectClass: { - id: "ff1ff4cb-a66b-47dc-8e2a-50388049e602", - origin_type: "CUSTOM_OBJECT", - }, - targetObjectClasses: [ - { - id: "Opportunity", - createdAt: new Date("2024-01-15T09:30:00.000Z"), - modifiedAt: new Date("2024-01-15T09:30:00.000Z"), - originType: "COMMON_MODEL", - }, - ], - remoteKeyName: "order_to_opportunity", - displayName: "Order to Opportunity", - cardinality: "ONE_TO_ONE", - isRequired: true, - }); - }); - - test("custom_object_classes_association_types_meta_post_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/crm/v1/custom-object-classes/custom_object_class_id/association-types/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = - await client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRetrieve( - "custom_object_class_id", - ); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/crm/associations.test.ts b/tests/wire/crm/associations.test.ts deleted file mode 100644 index 58d2b8392..000000000 --- a/tests/wire/crm/associations.test.ts +++ /dev/null @@ -1,115 +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("AssociationsClient", () => { - test("custom_object_classes_custom_objects_associations_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: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - source_object: "a8f5d29f-4e50-473f-8f12-27128ffcd37a", - target_object: "da0b1963-be70-469c-9f8c-06a81d0fe759", - association_type: "association_type", - }, - ], - }; - server - .mockEndpoint() - .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( - "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", - }, - ); - 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", - }, - ], - }); - }); - - test("custom_object_classes_custom_objects_associations_update", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - source_object: "a8f5d29f-4e50-473f-8f12-27128ffcd37a", - target_object: "da0b1963-be70-469c-9f8c-06a81d0fe759", - association_type: "association_type", - }; - server - .mockEndpoint() - .put( - "/crm/v1/custom-object-classes/source_class_id/custom-objects/source_object_id/associations/target_class_id/target_object_id/association_type_id", - ) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate( - "source_class_id", - "source_object_id", - "target_class_id", - "target_object_id", - "association_type_id", - { - isDebugMode: true, - runAsync: true, - }, - ); - expect(response).toEqual({ - 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", - }); - }); -}); diff --git a/tests/wire/crm/asyncPassthrough.test.ts b/tests/wire/crm/asyncPassthrough.test.ts deleted file mode 100644 index b9ee686b0..000000000 --- a/tests/wire/crm/asyncPassthrough.test.ts +++ /dev/null @@ -1,93 +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("AsyncPassthroughClient", () => { - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { method: "GET", path: "/scooters" }; - const rawResponseBody = { async_passthrough_receipt_id: "fd29020f-2695-445e-922e-dcd5e81903fd" }; - server - .mockEndpoint() - .post("/crm/v1/async-passthrough") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.asyncPassthrough.create({ - method: "GET", - path: "/scooters", - }); - expect(response).toEqual({ - asyncPassthroughReceiptId: "fd29020f-2695-445e-922e-dcd5e81903fd", - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - method: "GET", - path: "/scooters", - status: 200, - response: { - scooters: [ - { company: "Lime", model: "Gen 2.5" }, - { company: "Bird", model: "Bird Zero" }, - ], - }, - response_headers: { "X-Page-Token": "value" }, - response_type: "JSON", - headers: { "EXTRA-HEADER": "value", Authorization: "" }, - }; - server - .mockEndpoint() - .get("/crm/v1/async-passthrough/async_passthrough_receipt_id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.asyncPassthrough.retrieve("async_passthrough_receipt_id"); - expect(response).toEqual({ - method: "GET", - path: "/scooters", - status: 200, - response: { - scooters: [ - { - company: "Lime", - model: "Gen 2.5", - }, - { - company: "Bird", - model: "Bird Zero", - }, - ], - }, - responseHeaders: { - "X-Page-Token": "value", - }, - responseType: "JSON", - headers: { - "EXTRA-HEADER": "value", - Authorization: "", - }, - }); - }); -}); diff --git a/tests/wire/crm/auditTrail.test.ts b/tests/wire/crm/auditTrail.test.ts deleted file mode 100644 index edae76d15..000000000 --- a/tests/wire/crm/auditTrail.test.ts +++ /dev/null @@ -1,67 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AuditTrailClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b5ceea2a-7171-47ce-8090-165cfce5572c", - user_name: "Gil Feig", - user_email: "hello@merge.dev", - role: "ADMIN", - ip_address: "192.0.2.123", - event_type: "CREATED_REMOTE_PRODUCTION_API_KEY", - event_description: - "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", - created_at: "2024-01-15T09:30:00Z", - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/audit-trail") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.auditTrail.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - eventType: "event_type", - pageSize: 1, - startDate: "start_date", - userEmail: "user_email", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b5ceea2a-7171-47ce-8090-165cfce5572c", - userName: "Gil Feig", - userEmail: "hello@merge.dev", - role: "ADMIN", - ipAddress: "192.0.2.123", - eventType: "CREATED_REMOTE_PRODUCTION_API_KEY", - eventDescription: - "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", - createdAt: new Date("2024-01-15T09:30:00.000Z"), - }, - ], - }); - }); -}); diff --git a/tests/wire/crm/availableActions.test.ts b/tests/wire/crm/availableActions.test.ts deleted file mode 100644 index 8fdbe97f3..000000000 --- a/tests/wire/crm/availableActions.test.ts +++ /dev/null @@ -1,76 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AvailableActionsClient", () => { - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - integration: { - name: "name", - abbreviated_name: "abbreviated_name", - categories: ["hris"], - image: "image", - square_image: "square_image", - color: "color", - slug: "slug", - api_endpoints_to_documentation_urls: { key: "value" }, - webhook_setup_guide_url: "webhook_setup_guide_url", - category_beta_status: { key: "value" }, - }, - 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"], - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/available-actions") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.availableActions.retrieve(); - expect(response).toEqual({ - integration: { - name: "name", - abbreviatedName: "abbreviated_name", - categories: ["hris"], - image: "image", - squareImage: "square_image", - color: "color", - slug: "slug", - apiEndpointsToDocumentationUrls: { - key: "value", - }, - webhookSetupGuideUrl: "webhook_setup_guide_url", - categoryBetaStatus: { - key: "value", - }, - }, - passthroughAvailable: true, - availableModelOperations: [ - { - modelName: "Candidate", - availableOperations: ["FETCH", "CREATE"], - requiredPostParameters: ["remote_user_id"], - supportedFields: ["first_name", "last_name", "company", "title"], - }, - ], - }); - }); -}); diff --git a/tests/wire/crm/contacts.test.ts b/tests/wire/crm/contacts.test.ts deleted file mode 100644 index f37b6a709..000000000 --- a/tests/wire/crm/contacts.test.ts +++ /dev/null @@ -1,1618 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("ContactsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - first_name: "Gil", - last_name: "Feig", - account: "account", - owner: "owner", - addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - street_1: "50 Bowling Green Dr", - street_2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postal_code: "94122", - country: "US", - address_type: "Shipping", - }, - ], - email_addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - email_address: "hello@merge.dev", - email_address_type: "Work", - }, - ], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - phone_number: "+13785579223", - phone_number_type: "Mobile", - }, - ], - last_activity_at: "2022-02-10T00:00:00Z", - remote_created_at: "2021-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/contacts", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server.mockEndpoint().get("/crm/v1/contacts").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.crm.contacts.list({ - accountId: "account_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - emailAddresses: "email_addresses", - expand: "account", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - phoneNumbers: "phone_numbers", - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - firstName: "Gil", - lastName: "Feig", - account: "account", - owner: "owner", - addresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - street1: "50 Bowling Green Dr", - street2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postalCode: "94122", - country: "US", - addressType: "Shipping", - }, - ], - emailAddresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - emailAddress: "hello@merge.dev", - emailAddressType: "Work", - }, - ], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - phoneNumber: "+13785579223", - phoneNumberType: "Mobile", - }, - ], - lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), - remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/contacts", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - first_name: "Gil", - last_name: "Feig", - account: "account", - owner: "owner", - addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - street_1: "50 Bowling Green Dr", - street_2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postal_code: "94122", - country: "US", - address_type: "Shipping", - }, - ], - email_addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - email_address: "hello@merge.dev", - email_address_type: "Work", - }, - ], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - phone_number: "+13785579223", - phone_number_type: "Mobile", - }, - ], - last_activity_at: "2022-02-10T00:00:00Z", - remote_created_at: "2021-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/contacts", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/crm/v1/contacts") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.contacts.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - firstName: "Gil", - lastName: "Feig", - account: "account", - owner: "owner", - addresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - street1: "50 Bowling Green Dr", - street2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postalCode: "94122", - country: "US", - addressType: "Shipping", - }, - ], - emailAddresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - emailAddress: "hello@merge.dev", - emailAddressType: "Work", - }, - ], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - phoneNumber: "+13785579223", - phoneNumberType: "Mobile", - }, - ], - lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), - remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/contacts", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - first_name: "Gil", - last_name: "Feig", - account: "account", - owner: "owner", - addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - street_1: "50 Bowling Green Dr", - street_2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postal_code: "94122", - country: "US", - address_type: "Shipping", - }, - ], - email_addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - email_address: "hello@merge.dev", - email_address_type: "Work", - }, - ], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - phone_number: "+13785579223", - phone_number_type: "Mobile", - }, - ], - last_activity_at: "2022-02-10T00:00:00Z", - remote_created_at: "2021-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/contacts", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - server - .mockEndpoint() - .get("/crm/v1/contacts/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.contacts.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - firstName: "Gil", - lastName: "Feig", - account: "account", - owner: "owner", - addresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - street1: "50 Bowling Green Dr", - street2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postalCode: "94122", - country: "US", - addressType: "Shipping", - }, - ], - emailAddresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - emailAddress: "hello@merge.dev", - emailAddressType: "Work", - }, - ], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - phoneNumber: "+13785579223", - phoneNumberType: "Mobile", - }, - ], - lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), - remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/contacts", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("partialUpdate", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - first_name: "Gil", - last_name: "Feig", - account: "account", - owner: "owner", - addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - street_1: "50 Bowling Green Dr", - street_2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postal_code: "94122", - country: "US", - address_type: "Shipping", - }, - ], - email_addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - email_address: "hello@merge.dev", - email_address_type: "Work", - }, - ], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - phone_number: "+13785579223", - phone_number_type: "Mobile", - }, - ], - last_activity_at: "2022-02-10T00:00:00Z", - remote_created_at: "2021-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/contacts", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .patch("/crm/v1/contacts/id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.contacts.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - firstName: "Gil", - lastName: "Feig", - account: "account", - owner: "owner", - addresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - street1: "50 Bowling Green Dr", - street2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postalCode: "94122", - country: "US", - addressType: "Shipping", - }, - ], - emailAddresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - emailAddress: "hello@merge.dev", - emailAddressType: "Work", - }, - ], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - phoneNumber: "+13785579223", - phoneNumberType: "Mobile", - }, - ], - lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), - remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/contacts", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("ignoreCreate", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { reason: "GENERAL_CUSTOMER_REQUEST" }; - - server - .mockEndpoint() - .post("/crm/v1/contacts/ignore/model_id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .build(); - - const response = await client.crm.contacts.ignoreCreate("model_id", { - reason: "GENERAL_CUSTOMER_REQUEST", - }); - expect(response).toEqual(undefined); - }); - - test("metaPatchRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/crm/v1/contacts/meta/patch/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.contacts.metaPatchRetrieve("id"); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/crm/v1/contacts/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.contacts.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("remoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: [{}], - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/contacts/remote-field-classes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.contacts.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: [{}], - }, - ], - }); - }); -}); diff --git a/tests/wire/crm/customObjectClasses.test.ts b/tests/wire/crm/customObjectClasses.test.ts deleted file mode 100644 index d319575ba..000000000 --- a/tests/wire/crm/customObjectClasses.test.ts +++ /dev/null @@ -1,264 +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("CustomObjectClassesClient", () => { - 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: "ff1ff4cb-a66b-47dc-8e2a-50388049e602", - remote_id: "9579977", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "order", - description: "Order object", - labels: { singular: "Order", plural: "Orders" }, - fields: [ - { - display_name: "Order ID", - remote_key_name: "order_id", - description: "The unique ID for the order.", - is_required: true, - field_type: "string", - field_format: "string", - field_choices: [{}], - item_schema: {}, - }, - { - display_name: "Order Quantity", - remote_key_name: "order_quantity", - description: "The number of items ordered.", - is_required: true, - field_type: "number", - field_format: "number", - field_choices: [{}], - item_schema: {}, - }, - { - display_name: "Customer Type", - remote_key_name: "customer_type", - description: "The type of customer.", - is_required: true, - field_type: "string", - field_format: "enumeration", - field_choices: [{}, {}], - }, - ], - association_types: [{ key: "value" }], - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ff1ff4cb-a66b-47dc-8e2a-50388049e602", - remoteId: "9579977", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "order", - description: "Order object", - labels: { - singular: "Order", - plural: "Orders", - }, - fields: [ - { - displayName: "Order ID", - remoteKeyName: "order_id", - description: "The unique ID for the order.", - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: [{}], - itemSchema: {}, - }, - { - displayName: "Order Quantity", - remoteKeyName: "order_quantity", - description: "The number of items ordered.", - isRequired: true, - fieldType: "number", - fieldFormat: "number", - fieldChoices: [{}], - itemSchema: {}, - }, - { - displayName: "Customer Type", - remoteKeyName: "customer_type", - description: "The type of customer.", - isRequired: true, - fieldType: "string", - fieldFormat: "enumeration", - fieldChoices: [{}, {}], - }, - ], - associationTypes: [ - { - key: "value", - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "ff1ff4cb-a66b-47dc-8e2a-50388049e602", - remote_id: "9579977", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "order", - description: "Order object", - labels: { singular: "Order", plural: "Orders" }, - fields: [ - { - created_at: "2024-01-15T09:30:00Z", - modified_at: "2024-01-15T09:30:00Z", - display_name: "Order ID", - remote_key_name: "order_id", - description: "The unique ID for the order.", - is_required: true, - field_type: "string", - field_format: "string", - field_choices: [{}], - item_schema: {}, - }, - { - created_at: "2024-01-15T09:30:00Z", - modified_at: "2024-01-15T09:30:00Z", - display_name: "Order Quantity", - remote_key_name: "order_quantity", - description: "The number of items ordered.", - is_required: true, - field_type: "number", - field_format: "number", - field_choices: [{}], - item_schema: {}, - }, - { - created_at: "2024-01-15T09:30:00Z", - modified_at: "2024-01-15T09:30:00Z", - display_name: "Customer Type", - remote_key_name: "customer_type", - description: "The type of customer.", - is_required: true, - field_type: "string", - field_format: "enumeration", - field_choices: [{}, {}], - }, - ], - association_types: [{ key: "value" }], - }; - server - .mockEndpoint() - .get("/crm/v1/custom-object-classes/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.customObjectClasses.retrieve("id", { - expand: "fields", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "ff1ff4cb-a66b-47dc-8e2a-50388049e602", - remoteId: "9579977", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "order", - description: "Order object", - labels: { - singular: "Order", - plural: "Orders", - }, - fields: [ - { - createdAt: new Date("2024-01-15T09:30:00.000Z"), - modifiedAt: new Date("2024-01-15T09:30:00.000Z"), - displayName: "Order ID", - remoteKeyName: "order_id", - description: "The unique ID for the order.", - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: [{}], - itemSchema: {}, - }, - { - createdAt: new Date("2024-01-15T09:30:00.000Z"), - modifiedAt: new Date("2024-01-15T09:30:00.000Z"), - displayName: "Order Quantity", - remoteKeyName: "order_quantity", - description: "The number of items ordered.", - isRequired: true, - fieldType: "number", - fieldFormat: "number", - fieldChoices: [{}], - itemSchema: {}, - }, - { - createdAt: new Date("2024-01-15T09:30:00.000Z"), - modifiedAt: new Date("2024-01-15T09:30:00.000Z"), - displayName: "Customer Type", - remoteKeyName: "customer_type", - description: "The type of customer.", - isRequired: true, - fieldType: "string", - fieldFormat: "enumeration", - fieldChoices: [{}, {}], - }, - ], - associationTypes: [ - { - key: "value", - }, - ], - }); - }); -}); diff --git a/tests/wire/crm/customObjects.test.ts b/tests/wire/crm/customObjects.test.ts deleted file mode 100644 index 9796e03a0..000000000 --- a/tests/wire/crm/customObjects.test.ts +++ /dev/null @@ -1,740 +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("CustomObjectsClient", () => { - test("custom_object_classes_custom_objects_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: "da0b1963-be70-469c-9f8c-06a81d0fe759", - remote_id: "4183634295", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - object_class: "ff1ff4cb-a66b-47dc-8e2a-50388049e602", - fields: { order_id: "4183634295", order_quantity: 50, customer_type: "Returning" }, - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "da0b1963-be70-469c-9f8c-06a81d0fe759", - remoteId: "4183634295", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - objectClass: "ff1ff4cb-a66b-47dc-8e2a-50388049e602", - fields: { - order_id: "4183634295", - order_quantity: 50, - customer_type: "Returning", - }, - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("custom_object_classes_custom_objects_create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: { fields: { test_field: "hello" } } }; - const rawResponseBody = { - model: { - id: "da0b1963-be70-469c-9f8c-06a81d0fe759", - remote_id: "4183634295", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - object_class: "ff1ff4cb-a66b-47dc-8e2a-50388049e602", - fields: { order_id: "4183634295", order_quantity: 50, customer_type: "Returning" }, - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/crm/v1/custom-object-classes/custom_object_class_id/custom-objects") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.customObjects.customObjectClassesCustomObjectsCreate( - "custom_object_class_id", - { - isDebugMode: true, - runAsync: true, - model: { - fields: { - test_field: "hello", - }, - }, - }, - ); - expect(response).toEqual({ - model: { - id: "da0b1963-be70-469c-9f8c-06a81d0fe759", - remoteId: "4183634295", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - objectClass: "ff1ff4cb-a66b-47dc-8e2a-50388049e602", - fields: { - order_id: "4183634295", - order_quantity: 50, - customer_type: "Returning", - }, - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("custom_object_classes_custom_objects_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "da0b1963-be70-469c-9f8c-06a81d0fe759", - remote_id: "4183634295", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - object_class: "ff1ff4cb-a66b-47dc-8e2a-50388049e602", - fields: { order_id: "4183634295", order_quantity: 50, customer_type: "Returning" }, - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - server - .mockEndpoint() - .get("/crm/v1/custom-object-classes/custom_object_class_id/custom-objects/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve( - "custom_object_class_id", - "id", - { - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - }, - ); - expect(response).toEqual({ - id: "da0b1963-be70-469c-9f8c-06a81d0fe759", - remoteId: "4183634295", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - objectClass: "ff1ff4cb-a66b-47dc-8e2a-50388049e602", - fields: { - order_id: "4183634295", - order_quantity: 50, - customer_type: "Returning", - }, - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("custom_object_classes_custom_objects_meta_post_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/crm/v1/custom-object-classes/custom_object_class_id/custom-objects/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = - await client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve("custom_object_class_id"); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("custom_object_classes_custom_objects_remote_field_classes_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: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: [{}], - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: [{}], - }, - ], - }); - }); -}); diff --git a/tests/wire/crm/deleteAccount.test.ts b/tests/wire/crm/deleteAccount.test.ts deleted file mode 100644 index 6578a55fc..000000000 --- a/tests/wire/crm/deleteAccount.test.ts +++ /dev/null @@ -1,21 +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("DeleteAccountClient", () => { - test("delete", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - server.mockEndpoint().post("/crm/v1/delete-account").respondWith().statusCode(200).build(); - - const response = await client.crm.deleteAccount.delete(); - expect(response).toEqual(undefined); - }); -}); diff --git a/tests/wire/crm/engagementTypes.test.ts b/tests/wire/crm/engagementTypes.test.ts deleted file mode 100644 index 61f296094..000000000 --- a/tests/wire/crm/engagementTypes.test.ts +++ /dev/null @@ -1,185 +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("EngagementTypesClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - activity_type: "CALL", - name: "First Call", - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - activityType: "CALL", - name: "First Call", - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - activity_type: "CALL", - name: "First Call", - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - server - .mockEndpoint() - .get("/crm/v1/engagement-types/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.engagementTypes.retrieve("id", { - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - activityType: "CALL", - name: "First Call", - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("remoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: [{}], - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: [{}], - }, - ], - }); - }); -}); diff --git a/tests/wire/crm/engagements.test.ts b/tests/wire/crm/engagements.test.ts deleted file mode 100644 index 906513dda..000000000 --- a/tests/wire/crm/engagements.test.ts +++ /dev/null @@ -1,1391 +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("EngagementsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - owner: "owner", - content: "Call for negotiation", - subject: "Call from customer", - direction: "INBOUND", - engagement_type: "engagement_type", - start_time: "2022-02-10T00:00:00Z", - end_time: "2022-02-10T00:05:00Z", - account: "account", - contacts: ["a7c55bc6-2940-c80a-848e-bbfacbfdf4fg"], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/engagements", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - owner: "owner", - content: "Call for negotiation", - subject: "Call from customer", - direction: "INBOUND", - engagementType: "engagement_type", - startTime: new Date("2022-02-10T00:00:00.000Z"), - endTime: new Date("2022-02-10T00:05:00.000Z"), - account: "account", - contacts: ["a7c55bc6-2940-c80a-848e-bbfacbfdf4fg"], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/engagements", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - owner: "owner", - content: "Call for negotiation", - subject: "Call from customer", - direction: "INBOUND", - engagement_type: "engagement_type", - start_time: "2022-02-10T00:00:00Z", - end_time: "2022-02-10T00:05:00Z", - account: "account", - contacts: ["a7c55bc6-2940-c80a-848e-bbfacbfdf4fg"], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/engagements", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/crm/v1/engagements") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.engagements.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - owner: "owner", - content: "Call for negotiation", - subject: "Call from customer", - direction: "INBOUND", - engagementType: "engagement_type", - startTime: new Date("2022-02-10T00:00:00.000Z"), - endTime: new Date("2022-02-10T00:05:00.000Z"), - account: "account", - contacts: ["a7c55bc6-2940-c80a-848e-bbfacbfdf4fg"], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/engagements", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - owner: "owner", - content: "Call for negotiation", - subject: "Call from customer", - direction: "INBOUND", - engagement_type: "engagement_type", - start_time: "2022-02-10T00:00:00Z", - end_time: "2022-02-10T00:05:00Z", - account: "account", - contacts: ["a7c55bc6-2940-c80a-848e-bbfacbfdf4fg"], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/engagements", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - server - .mockEndpoint() - .get("/crm/v1/engagements/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.engagements.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - owner: "owner", - content: "Call for negotiation", - subject: "Call from customer", - direction: "INBOUND", - engagementType: "engagement_type", - startTime: new Date("2022-02-10T00:00:00.000Z"), - endTime: new Date("2022-02-10T00:05:00.000Z"), - account: "account", - contacts: ["a7c55bc6-2940-c80a-848e-bbfacbfdf4fg"], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/engagements", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("partialUpdate", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - owner: "owner", - content: "Call for negotiation", - subject: "Call from customer", - direction: "INBOUND", - engagement_type: "engagement_type", - start_time: "2022-02-10T00:00:00Z", - end_time: "2022-02-10T00:05:00Z", - account: "account", - contacts: ["a7c55bc6-2940-c80a-848e-bbfacbfdf4fg"], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/engagements", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .patch("/crm/v1/engagements/id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.engagements.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - owner: "owner", - content: "Call for negotiation", - subject: "Call from customer", - direction: "INBOUND", - engagementType: "engagement_type", - startTime: new Date("2022-02-10T00:00:00.000Z"), - endTime: new Date("2022-02-10T00:05:00.000Z"), - account: "account", - contacts: ["a7c55bc6-2940-c80a-848e-bbfacbfdf4fg"], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/engagements", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("metaPatchRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/crm/v1/engagements/meta/patch/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.engagements.metaPatchRetrieve("id"); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/crm/v1/engagements/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.engagements.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("remoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: [{}], - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: [{}], - }, - ], - }); - }); -}); diff --git a/tests/wire/crm/fieldMapping.test.ts b/tests/wire/crm/fieldMapping.test.ts deleted file mode 100644 index 9cc55e8ab..000000000 --- a/tests/wire/crm/fieldMapping.test.ts +++ /dev/null @@ -1,1252 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("FieldMappingClient", () => { - test("field_mappings_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Account: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Contact: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Lead: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Note: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Opportunity: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Stage: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - User: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Task: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Engagement: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/field-mappings") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.fieldMapping.fieldMappingsRetrieve({ - excludeRemoteFieldMetadata: true, - }); - expect(response).toEqual({ - account: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - contact: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - lead: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - note: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - opportunity: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - stage: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - user: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - task: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - engagement: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - }); - }); - - test("field_mappings_create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { - target_field_name: "example_target_field_name", - target_field_description: "this is a example description of the target field", - remote_field_traversal_path: ["example_remote_field"], - remote_method: "GET", - remote_url_path: "/example-url-path", - common_model_name: "ExampleCommonModel", - }; - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/crm/v1/field-mappings") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.fieldMapping.fieldMappingsCreate({ - excludeRemoteFieldMetadata: true, - targetFieldName: "example_target_field_name", - targetFieldDescription: "this is a example description of the target field", - remoteFieldTraversalPath: ["example_remote_field"], - remoteMethod: "GET", - remoteUrlPath: "/example-url-path", - commonModelName: "ExampleCommonModel", - }); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("field_mappings_destroy", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .delete("/crm/v1/field-mappings/field_mapping_id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id"); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("field_mappings_partial_update", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = {}; - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .patch("/crm/v1/field-mappings/field_mapping_id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("remote_fields_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Account: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Contact: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Lead: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Note: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Opportunity: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Stage: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - User: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Task: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Engagement: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/remote-fields") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.fieldMapping.remoteFieldsRetrieve({ - commonModels: "common_models", - includeExampleValues: "include_example_values", - }); - expect(response).toEqual({ - account: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - contact: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - lead: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - note: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - opportunity: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - stage: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - user: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - task: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - engagement: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - }); - }); - - test("target_fields_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Account: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Contact: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Lead: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Note: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Opportunity: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Stage: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - User: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Task: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Engagement: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/target-fields") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.fieldMapping.targetFieldsRetrieve(); - expect(response).toEqual({ - account: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - contact: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - lead: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - note: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - opportunity: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - stage: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - user: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - task: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - engagement: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - }); - }); -}); diff --git a/tests/wire/crm/forceResync.test.ts b/tests/wire/crm/forceResync.test.ts deleted file mode 100644 index e1774677f..000000000 --- a/tests/wire/crm/forceResync.test.ts +++ /dev/null @@ -1,52 +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("ForceResyncClient", () => { - test("sync_status_resync_create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = [ - { - model_name: "Account", - model_id: "crm.Account", - last_sync_start: "2021-03-30T19:44:18Z", - next_sync_start: "2021-03-30T20:44:18Z", - last_sync_result: "SYNCING", - last_sync_finished: "2021-03-30T19:55:18Z", - status: "SYNCING", - is_initial_sync: true, - selective_sync_configurations_usage: "IN_NEXT_SYNC", - }, - ]; - server - .mockEndpoint() - .post("/crm/v1/sync-status/resync") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.forceResync.syncStatusResyncCreate(); - expect(response).toEqual([ - { - modelName: "Account", - modelId: "crm.Account", - lastSyncStart: new Date("2021-03-30T19:44:18.000Z"), - nextSyncStart: new Date("2021-03-30T20:44:18.000Z"), - lastSyncResult: "SYNCING", - lastSyncFinished: new Date("2021-03-30T19:55:18.000Z"), - status: "SYNCING", - isInitialSync: true, - selectiveSyncConfigurationsUsage: "IN_NEXT_SYNC", - }, - ]); - }); -}); diff --git a/tests/wire/crm/generateKey.test.ts b/tests/wire/crm/generateKey.test.ts deleted file mode 100644 index 07e046260..000000000 --- a/tests/wire/crm/generateKey.test.ts +++ /dev/null @@ -1,37 +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("GenerateKeyClient", () => { - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { name: "Remote Deployment Key 1" }; - const rawResponseBody = { - name: "Remote Deployment Key 1", - key: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", - }; - server - .mockEndpoint() - .post("/crm/v1/generate-key") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.generateKey.create({ - name: "Remote Deployment Key 1", - }); - expect(response).toEqual({ - name: "Remote Deployment Key 1", - key: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", - }); - }); -}); diff --git a/tests/wire/crm/issues.test.ts b/tests/wire/crm/issues.test.ts deleted file mode 100644 index ed98b91fc..000000000 --- a/tests/wire/crm/issues.test.ts +++ /dev/null @@ -1,105 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("IssuesClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - error_description: "Missing Permissions", - end_user: { key: "value" }, - first_incident_time: "2022-12-05T16:19:15Z", - last_incident_time: "2022-12-05T16:19:15Z", - is_muted: true, - error_details: ["Missing employee permissions.", "Missing time off permissions."], - }, - ], - }; - server.mockEndpoint().get("/crm/v1/issues").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.crm.issues.list({ - accountToken: "account_token", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - endUserOrganizationName: "end_user_organization_name", - firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - includeMuted: "include_muted", - integrationName: "integration_name", - lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - linkedAccountId: "linked_account_id", - pageSize: 1, - startDate: "start_date", - status: "ONGOING", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - errorDescription: "Missing Permissions", - endUser: { - key: "value", - }, - firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - isMuted: true, - errorDetails: ["Missing employee permissions.", "Missing time off permissions."], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - error_description: "Missing Permissions", - end_user: { key: "value" }, - first_incident_time: "2022-12-05T16:19:15Z", - last_incident_time: "2022-12-05T16:19:15Z", - is_muted: true, - error_details: ["Missing employee permissions.", "Missing time off permissions."], - }; - server.mockEndpoint().get("/crm/v1/issues/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.crm.issues.retrieve("id"); - expect(response).toEqual({ - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - errorDescription: "Missing Permissions", - endUser: { - key: "value", - }, - firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - isMuted: true, - errorDetails: ["Missing employee permissions.", "Missing time off permissions."], - }); - }); -}); diff --git a/tests/wire/crm/leads.test.ts b/tests/wire/crm/leads.test.ts deleted file mode 100644 index 5815896aa..000000000 --- a/tests/wire/crm/leads.test.ts +++ /dev/null @@ -1,1002 +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("LeadsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - owner: "owner", - lead_source: "API Blogger", - title: "Co-Founder", - company: "Merge API", - first_name: "Gil", - last_name: "Feig", - addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - street_1: "50 Bowling Green Dr", - street_2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postal_code: "94122", - country: "US", - address_type: "Shipping", - }, - ], - email_addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - email_address: "hello@merge.dev", - email_address_type: "Work", - }, - ], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - phone_number: "+16789932455", - phone_number_type: "Mobile", - }, - ], - remote_updated_at: "2022-02-10T00:00:00Z", - remote_created_at: "2021-11-10T00:00:00Z", - converted_date: "2022-03-10T00:00:00Z", - converted_contact: "converted_contact", - converted_account: "converted_account", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/leads", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server.mockEndpoint().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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - owner: "owner", - leadSource: "API Blogger", - title: "Co-Founder", - company: "Merge API", - firstName: "Gil", - lastName: "Feig", - addresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - street1: "50 Bowling Green Dr", - street2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postalCode: "94122", - country: "US", - addressType: "Shipping", - }, - ], - emailAddresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - emailAddress: "hello@merge.dev", - emailAddressType: "Work", - }, - ], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - phoneNumber: "+16789932455", - phoneNumberType: "Mobile", - }, - ], - remoteUpdatedAt: new Date("2022-02-10T00:00:00.000Z"), - remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), - convertedDate: new Date("2022-03-10T00:00:00.000Z"), - convertedContact: "converted_contact", - convertedAccount: "converted_account", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/leads", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - owner: "owner", - lead_source: "API Blogger", - title: "Co-Founder", - company: "Merge API", - first_name: "Gil", - last_name: "Feig", - addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - street_1: "50 Bowling Green Dr", - street_2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postal_code: "94122", - country: "US", - address_type: "Shipping", - }, - ], - email_addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - email_address: "hello@merge.dev", - email_address_type: "Work", - }, - ], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - phone_number: "+16789932455", - phone_number_type: "Mobile", - }, - ], - remote_updated_at: "2022-02-10T00:00:00Z", - remote_created_at: "2021-11-10T00:00:00Z", - converted_date: "2022-03-10T00:00:00Z", - converted_contact: "converted_contact", - converted_account: "converted_account", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/leads", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/crm/v1/leads") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.leads.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - owner: "owner", - leadSource: "API Blogger", - title: "Co-Founder", - company: "Merge API", - firstName: "Gil", - lastName: "Feig", - addresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - street1: "50 Bowling Green Dr", - street2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postalCode: "94122", - country: "US", - addressType: "Shipping", - }, - ], - emailAddresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - emailAddress: "hello@merge.dev", - emailAddressType: "Work", - }, - ], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - phoneNumber: "+16789932455", - phoneNumberType: "Mobile", - }, - ], - remoteUpdatedAt: new Date("2022-02-10T00:00:00.000Z"), - remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), - convertedDate: new Date("2022-03-10T00:00:00.000Z"), - convertedContact: "converted_contact", - convertedAccount: "converted_account", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/leads", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - owner: "owner", - lead_source: "API Blogger", - title: "Co-Founder", - company: "Merge API", - first_name: "Gil", - last_name: "Feig", - addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - street_1: "50 Bowling Green Dr", - street_2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postal_code: "94122", - country: "US", - address_type: "Shipping", - }, - ], - email_addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - email_address: "hello@merge.dev", - email_address_type: "Work", - }, - ], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - phone_number: "+16789932455", - phone_number_type: "Mobile", - }, - ], - remote_updated_at: "2022-02-10T00:00:00Z", - remote_created_at: "2021-11-10T00:00:00Z", - converted_date: "2022-03-10T00:00:00Z", - converted_contact: "converted_contact", - converted_account: "converted_account", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/leads", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - 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, - }); - expect(response).toEqual({ - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - owner: "owner", - leadSource: "API Blogger", - title: "Co-Founder", - company: "Merge API", - firstName: "Gil", - lastName: "Feig", - addresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - street1: "50 Bowling Green Dr", - street2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postalCode: "94122", - country: "US", - addressType: "Shipping", - }, - ], - emailAddresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - emailAddress: "hello@merge.dev", - emailAddressType: "Work", - }, - ], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - phoneNumber: "+16789932455", - phoneNumberType: "Mobile", - }, - ], - remoteUpdatedAt: new Date("2022-02-10T00:00:00.000Z"), - remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), - convertedDate: new Date("2022-03-10T00:00:00.000Z"), - convertedContact: "converted_contact", - convertedAccount: "converted_account", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/leads", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/crm/v1/leads/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.leads.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("remoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: [{}], - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: [{}], - }, - ], - }); - }); -}); diff --git a/tests/wire/crm/linkToken.test.ts b/tests/wire/crm/linkToken.test.ts deleted file mode 100644 index 2f285d9cb..000000000 --- a/tests/wire/crm/linkToken.test.ts +++ /dev/null @@ -1,47 +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("LinkTokenClient", () => { - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { - end_user_email_address: "example@gmail.com", - end_user_organization_name: "Test Organization", - end_user_origin_id: "12345", - categories: ["hris", "ats"], - }; - const rawResponseBody = { - link_token: "necdP7FtdASl1fQwm62be2_dM4wBG8_GactqoUV0", - integration_name: "Lever", - magic_link_url: "https://link.merge.dev/asdfjkl12345jsndfgi2i83n", - }; - server - .mockEndpoint() - .post("/crm/v1/link-token") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.linkToken.create({ - endUserEmailAddress: "example@gmail.com", - endUserOrganizationName: "Test Organization", - endUserOriginId: "12345", - categories: ["hris", "ats"], - }); - expect(response).toEqual({ - linkToken: "necdP7FtdASl1fQwm62be2_dM4wBG8_GactqoUV0", - integrationName: "Lever", - magicLinkUrl: "https://link.merge.dev/asdfjkl12345jsndfgi2i83n", - }); - }); -}); diff --git a/tests/wire/crm/linkedAccounts.test.ts b/tests/wire/crm/linkedAccounts.test.ts deleted file mode 100644 index 70f57a465..000000000 --- a/tests/wire/crm/linkedAccounts.test.ts +++ /dev/null @@ -1,110 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("LinkedAccountsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "e59b1821-f85c-4e28-a6b3-1804156f3563", - category: "hris", - status: "COMPLETE", - status_detail: "Invalid login credentials", - end_user_origin_id: "3ac95cde-6c7f-4eef-afec-be710b42308d", - end_user_organization_name: "Foo Bar, LLC", - end_user_email_address: "hradmin@foobar.dev", - subdomain: "foobar", - webhook_listener_url: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - is_duplicate: true, - integration: { - name: "name", - categories: ["hris"], - color: "color", - slug: "slug", - passthrough_available: true, - available_model_operations: [ - { - model_name: "Candidate", - available_operations: ["FETCH", "CREATE"], - required_post_parameters: ["remote_user_id"], - supported_fields: ["first_name", "last_name", "company", "title"], - }, - ], - }, - account_type: "PRODUCTION", - completed_at: "2024-08-26T20:11:19Z", - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/linked-accounts") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.linkedAccounts.list({ - category: "accounting", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endUserEmailAddress: "end_user_email_address", - endUserOrganizationName: "end_user_organization_name", - endUserOriginId: "end_user_origin_id", - endUserOriginIds: "end_user_origin_ids", - id: "id", - ids: "ids", - includeDuplicates: true, - integrationName: "integration_name", - isTestAccount: "is_test_account", - pageSize: 1, - status: "status", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "e59b1821-f85c-4e28-a6b3-1804156f3563", - category: "hris", - status: "COMPLETE", - statusDetail: "Invalid login credentials", - endUserOriginId: "3ac95cde-6c7f-4eef-afec-be710b42308d", - endUserOrganizationName: "Foo Bar, LLC", - endUserEmailAddress: "hradmin@foobar.dev", - subdomain: "foobar", - webhookListenerUrl: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - isDuplicate: true, - integration: { - name: "name", - categories: ["hris"], - color: "color", - slug: "slug", - passthroughAvailable: true, - availableModelOperations: [ - { - modelName: "Candidate", - availableOperations: ["FETCH", "CREATE"], - requiredPostParameters: ["remote_user_id"], - supportedFields: ["first_name", "last_name", "company", "title"], - }, - ], - }, - accountType: "PRODUCTION", - completedAt: new Date("2024-08-26T20:11:19.000Z"), - }, - ], - }); - }); -}); diff --git a/tests/wire/crm/notes.test.ts b/tests/wire/crm/notes.test.ts deleted file mode 100644 index bb2f59fe5..000000000 --- a/tests/wire/crm/notes.test.ts +++ /dev/null @@ -1,803 +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("NotesClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - owner: "owner", - content: "Merge is hiring!", - contact: "contact", - account: "account", - opportunity: "opportunity", - remote_updated_at: "2022-02-10T00:00:00Z", - remote_created_at: "2021-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/notes", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server.mockEndpoint().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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - owner: "owner", - content: "Merge is hiring!", - contact: "contact", - account: "account", - opportunity: "opportunity", - remoteUpdatedAt: new Date("2022-02-10T00:00:00.000Z"), - remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/notes", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - owner: "owner", - content: "Merge is hiring!", - contact: "contact", - account: "account", - opportunity: "opportunity", - remote_updated_at: "2022-02-10T00:00:00Z", - remote_created_at: "2021-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/notes", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/crm/v1/notes") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.notes.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - owner: "owner", - content: "Merge is hiring!", - contact: "contact", - account: "account", - opportunity: "opportunity", - remoteUpdatedAt: new Date("2022-02-10T00:00:00.000Z"), - remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/notes", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - owner: "owner", - content: "Merge is hiring!", - contact: "contact", - account: "account", - opportunity: "opportunity", - remote_updated_at: "2022-02-10T00:00:00Z", - remote_created_at: "2021-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/notes", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - 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, - }); - expect(response).toEqual({ - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - owner: "owner", - content: "Merge is hiring!", - contact: "contact", - account: "account", - opportunity: "opportunity", - remoteUpdatedAt: new Date("2022-02-10T00:00:00.000Z"), - remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/notes", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/crm/v1/notes/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.notes.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("remoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: [{}], - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: [{}], - }, - ], - }); - }); -}); diff --git a/tests/wire/crm/opportunities.test.ts b/tests/wire/crm/opportunities.test.ts deleted file mode 100644 index 1fde575e3..000000000 --- a/tests/wire/crm/opportunities.test.ts +++ /dev/null @@ -1,1406 +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("OpportunitiesClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Needs Integrations", - description: "Needs a Unified API for Integrations!", - amount: 100000, - owner: "owner", - account: "account", - stage: "stage", - status: "OPEN", - last_activity_at: "2022-02-10T00:00:00Z", - close_date: "2022-02-10T00:00:00Z", - remote_created_at: "2021-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/opportunities", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Needs Integrations", - description: "Needs a Unified API for Integrations!", - amount: 100000, - owner: "owner", - account: "account", - stage: "stage", - status: "OPEN", - lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), - closeDate: new Date("2022-02-10T00:00:00.000Z"), - remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/opportunities", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Needs Integrations", - description: "Needs a Unified API for Integrations!", - amount: 100000, - owner: "owner", - account: "account", - stage: "stage", - status: "OPEN", - last_activity_at: "2022-02-10T00:00:00Z", - close_date: "2022-02-10T00:00:00Z", - remote_created_at: "2021-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/opportunities", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/crm/v1/opportunities") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.opportunities.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Needs Integrations", - description: "Needs a Unified API for Integrations!", - amount: 100000, - owner: "owner", - account: "account", - stage: "stage", - status: "OPEN", - lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), - closeDate: new Date("2022-02-10T00:00:00.000Z"), - remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/opportunities", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Needs Integrations", - description: "Needs a Unified API for Integrations!", - amount: 100000, - owner: "owner", - account: "account", - stage: "stage", - status: "OPEN", - last_activity_at: "2022-02-10T00:00:00Z", - close_date: "2022-02-10T00:00:00Z", - remote_created_at: "2021-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/opportunities", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - server - .mockEndpoint() - .get("/crm/v1/opportunities/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.opportunities.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - remoteFields: "status", - showEnumOrigins: "status", - }); - expect(response).toEqual({ - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Needs Integrations", - description: "Needs a Unified API for Integrations!", - amount: 100000, - owner: "owner", - account: "account", - stage: "stage", - status: "OPEN", - lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), - closeDate: new Date("2022-02-10T00:00:00.000Z"), - remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/opportunities", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("partialUpdate", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Needs Integrations", - description: "Needs a Unified API for Integrations!", - amount: 100000, - owner: "owner", - account: "account", - stage: "stage", - status: "OPEN", - last_activity_at: "2022-02-10T00:00:00Z", - close_date: "2022-02-10T00:00:00Z", - remote_created_at: "2021-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/opportunities", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .patch("/crm/v1/opportunities/id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.opportunities.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Needs Integrations", - description: "Needs a Unified API for Integrations!", - amount: 100000, - owner: "owner", - account: "account", - stage: "stage", - status: "OPEN", - lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), - closeDate: new Date("2022-02-10T00:00:00.000Z"), - remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/opportunities", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("metaPatchRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/crm/v1/opportunities/meta/patch/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.opportunities.metaPatchRetrieve("id"); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/crm/v1/opportunities/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.opportunities.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("remoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: [{}], - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: [{}], - }, - ], - }); - }); -}); diff --git a/tests/wire/crm/passthrough.test.ts b/tests/wire/crm/passthrough.test.ts deleted file mode 100644 index c8645df83..000000000 --- a/tests/wire/crm/passthrough.test.ts +++ /dev/null @@ -1,69 +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("PassthroughClient", () => { - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { method: "GET", path: "/scooters" }; - const rawResponseBody = { - method: "GET", - path: "/scooters", - status: 200, - response: { - scooters: [ - { company: "Lime", model: "Gen 2.5" }, - { company: "Bird", model: "Bird Zero" }, - ], - }, - response_headers: { "X-Page-Token": "value" }, - response_type: "JSON", - headers: { "EXTRA-HEADER": "value", Authorization: "" }, - }; - server - .mockEndpoint() - .post("/crm/v1/passthrough") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.passthrough.create({ - method: "GET", - path: "/scooters", - }); - expect(response).toEqual({ - method: "GET", - path: "/scooters", - status: 200, - response: { - scooters: [ - { - company: "Lime", - model: "Gen 2.5", - }, - { - company: "Bird", - model: "Bird Zero", - }, - ], - }, - responseHeaders: { - "X-Page-Token": "value", - }, - responseType: "JSON", - headers: { - "EXTRA-HEADER": "value", - Authorization: "", - }, - }); - }); -}); diff --git a/tests/wire/crm/regenerateKey.test.ts b/tests/wire/crm/regenerateKey.test.ts deleted file mode 100644 index 0505aa4d5..000000000 --- a/tests/wire/crm/regenerateKey.test.ts +++ /dev/null @@ -1,37 +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("RegenerateKeyClient", () => { - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { name: "Remote Deployment Key 1" }; - const rawResponseBody = { - name: "Remote Deployment Key 1", - key: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", - }; - server - .mockEndpoint() - .post("/crm/v1/regenerate-key") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.regenerateKey.create({ - name: "Remote Deployment Key 1", - }); - expect(response).toEqual({ - name: "Remote Deployment Key 1", - key: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", - }); - }); -}); diff --git a/tests/wire/crm/scopes.test.ts b/tests/wire/crm/scopes.test.ts deleted file mode 100644 index 10daa71f7..000000000 --- a/tests/wire/crm/scopes.test.ts +++ /dev/null @@ -1,294 +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("ScopesClient", () => { - test("default_scopes_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - common_models: [ - { - model_name: "Employee", - model_permissions: { READ: { is_enabled: true }, WRITE: { is_enabled: false } }, - field_permissions: { - enabled_fields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabled_fields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/default-scopes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.scopes.defaultScopesRetrieve(); - expect(response).toEqual({ - commonModels: [ - { - modelName: "Employee", - modelPermissions: { - READ: { - isEnabled: true, - }, - WRITE: { - isEnabled: false, - }, - }, - fieldPermissions: { - enabledFields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabledFields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }); - }); - - test("linked_account_scopes_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - common_models: [ - { - model_name: "Employee", - model_permissions: { READ: { is_enabled: true }, WRITE: { is_enabled: false } }, - field_permissions: { - enabled_fields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabled_fields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/linked-account-scopes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.scopes.linkedAccountScopesRetrieve(); - expect(response).toEqual({ - commonModels: [ - { - modelName: "Employee", - modelPermissions: { - READ: { - isEnabled: true, - }, - WRITE: { - isEnabled: false, - }, - }, - fieldPermissions: { - enabledFields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabledFields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }); - }); - - test("linked_account_scopes_create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { - common_models: [ - { - model_name: "Employee", - model_permissions: { READ: { is_enabled: true }, WRITE: { is_enabled: false } }, - field_permissions: { - enabled_fields: ["avatar", "home_location"], - disabled_fields: ["work_location"], - }, - }, - { model_name: "Benefit", model_permissions: { WRITE: { is_enabled: false } } }, - ], - }; - const rawResponseBody = { - common_models: [ - { - model_name: "Employee", - model_permissions: { READ: { is_enabled: true }, WRITE: { is_enabled: false } }, - field_permissions: { - enabled_fields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabled_fields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }; - server - .mockEndpoint() - .post("/crm/v1/linked-account-scopes") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = 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, - }, - }, - }, - ], - }); - expect(response).toEqual({ - commonModels: [ - { - modelName: "Employee", - modelPermissions: { - READ: { - isEnabled: true, - }, - WRITE: { - isEnabled: false, - }, - }, - fieldPermissions: { - enabledFields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabledFields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }); - }); -}); diff --git a/tests/wire/crm/stages.test.ts b/tests/wire/crm/stages.test.ts deleted file mode 100644 index 48a3eaa75..000000000 --- a/tests/wire/crm/stages.test.ts +++ /dev/null @@ -1,211 +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("StagesClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0358cbc6-2040-430a-848e-aafacbadf3aa", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Closed Won", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/stages", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server.mockEndpoint().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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0358cbc6-2040-430a-848e-aafacbadf3aa", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Closed Won", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/stages", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "0358cbc6-2040-430a-848e-aafacbadf3aa", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Closed Won", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/stages", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - server.mockEndpoint().get("/crm/v1/stages/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.crm.stages.retrieve("id", { - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "0358cbc6-2040-430a-848e-aafacbadf3aa", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Closed Won", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/stages", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("remoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: [{}], - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: [{}], - }, - ], - }); - }); -}); diff --git a/tests/wire/crm/syncStatus.test.ts b/tests/wire/crm/syncStatus.test.ts deleted file mode 100644 index f282a3b24..000000000 --- a/tests/wire/crm/syncStatus.test.ts +++ /dev/null @@ -1,63 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("SyncStatusClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - model_name: "Account", - model_id: "crm.Account", - last_sync_start: "2021-03-30T19:44:18Z", - next_sync_start: "2021-03-30T20:44:18Z", - last_sync_result: "SYNCING", - last_sync_finished: "2021-03-30T19:55:18Z", - status: "SYNCING", - is_initial_sync: true, - selective_sync_configurations_usage: "IN_NEXT_SYNC", - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/sync-status") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.syncStatus.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - modelName: "Account", - modelId: "crm.Account", - lastSyncStart: new Date("2021-03-30T19:44:18.000Z"), - nextSyncStart: new Date("2021-03-30T20:44:18.000Z"), - lastSyncResult: "SYNCING", - lastSyncFinished: new Date("2021-03-30T19:55:18.000Z"), - status: "SYNCING", - isInitialSync: true, - selectiveSyncConfigurationsUsage: "IN_NEXT_SYNC", - }, - ], - }); - }); -}); diff --git a/tests/wire/crm/tasks.test.ts b/tests/wire/crm/tasks.test.ts deleted file mode 100644 index 0a16f7a9f..000000000 --- a/tests/wire/crm/tasks.test.ts +++ /dev/null @@ -1,1369 +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("TasksClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - subject: "Contact about Integration Strategy", - content: "Follow up to see whether they need integrations", - owner: "owner", - account: "account", - opportunity: "opportunity", - completed_date: "2022-02-11T00:00:00Z", - due_date: "2022-02-10T00:00:00Z", - status: "OPEN", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/tasks", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server.mockEndpoint().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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - subject: "Contact about Integration Strategy", - content: "Follow up to see whether they need integrations", - owner: "owner", - account: "account", - opportunity: "opportunity", - completedDate: new Date("2022-02-11T00:00:00.000Z"), - dueDate: new Date("2022-02-10T00:00:00.000Z"), - status: "OPEN", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/tasks", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - subject: "Contact about Integration Strategy", - content: "Follow up to see whether they need integrations", - owner: "owner", - account: "account", - opportunity: "opportunity", - completed_date: "2022-02-11T00:00:00Z", - due_date: "2022-02-10T00:00:00Z", - status: "OPEN", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/tasks", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/crm/v1/tasks") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.tasks.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - subject: "Contact about Integration Strategy", - content: "Follow up to see whether they need integrations", - owner: "owner", - account: "account", - opportunity: "opportunity", - completedDate: new Date("2022-02-11T00:00:00.000Z"), - dueDate: new Date("2022-02-10T00:00:00.000Z"), - status: "OPEN", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/tasks", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - subject: "Contact about Integration Strategy", - content: "Follow up to see whether they need integrations", - owner: "owner", - account: "account", - opportunity: "opportunity", - completed_date: "2022-02-11T00:00:00Z", - due_date: "2022-02-10T00:00:00Z", - status: "OPEN", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/tasks", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - 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, - }); - expect(response).toEqual({ - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - subject: "Contact about Integration Strategy", - content: "Follow up to see whether they need integrations", - owner: "owner", - account: "account", - opportunity: "opportunity", - completedDate: new Date("2022-02-11T00:00:00.000Z"), - dueDate: new Date("2022-02-10T00:00:00.000Z"), - status: "OPEN", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/tasks", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("partialUpdate", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - subject: "Contact about Integration Strategy", - content: "Follow up to see whether they need integrations", - owner: "owner", - account: "account", - opportunity: "opportunity", - completed_date: "2022-02-11T00:00:00Z", - due_date: "2022-02-10T00:00:00Z", - status: "OPEN", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/tasks", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .patch("/crm/v1/tasks/id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.tasks.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - subject: "Contact about Integration Strategy", - content: "Follow up to see whether they need integrations", - owner: "owner", - account: "account", - opportunity: "opportunity", - completedDate: new Date("2022-02-11T00:00:00.000Z"), - dueDate: new Date("2022-02-10T00:00:00.000Z"), - status: "OPEN", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/tasks", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("metaPatchRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/crm/v1/tasks/meta/patch/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.tasks.metaPatchRetrieve("id"); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/crm/v1/tasks/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.tasks.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("remoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: [{}], - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: [{}], - }, - ], - }); - }); -}); diff --git a/tests/wire/crm/users.test.ts b/tests/wire/crm/users.test.ts deleted file mode 100644 index d9c314ef7..000000000 --- a/tests/wire/crm/users.test.ts +++ /dev/null @@ -1,244 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("UsersClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0358cbc6-2040-430a-848e-aafacbadf3aa", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Gil Feig", - email: "merge_is_hiring@merge.dev", - is_active: true, - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/users", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server.mockEndpoint().get("/crm/v1/users").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.crm.users.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email: "email", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0358cbc6-2040-430a-848e-aafacbadf3aa", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Gil Feig", - email: "merge_is_hiring@merge.dev", - isActive: true, - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/users", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "0358cbc6-2040-430a-848e-aafacbadf3aa", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Gil Feig", - email: "merge_is_hiring@merge.dev", - is_active: true, - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/users", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - server.mockEndpoint().get("/crm/v1/users/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.crm.users.retrieve("id", { - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "0358cbc6-2040-430a-848e-aafacbadf3aa", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Gil Feig", - email: "merge_is_hiring@merge.dev", - isActive: true, - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/users", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("ignoreCreate", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { reason: "GENERAL_CUSTOMER_REQUEST" }; - - server - .mockEndpoint() - .post("/crm/v1/users/ignore/model_id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .build(); - - const response = await client.crm.users.ignoreCreate("model_id", { - reason: "GENERAL_CUSTOMER_REQUEST", - }); - expect(response).toEqual(undefined); - }); - - test("remoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: [{}], - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/users/remote-field-classes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.users.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: [{}], - }, - ], - }); - }); -}); diff --git a/tests/wire/crm/webhookReceivers.test.ts b/tests/wire/crm/webhookReceivers.test.ts deleted file mode 100644 index ab17cbbca..000000000 --- a/tests/wire/crm/webhookReceivers.test.ts +++ /dev/null @@ -1,64 +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("WebhookReceiversClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = [{ event: "event", is_active: true, key: "key" }]; - server - .mockEndpoint() - .get("/crm/v1/webhook-receivers") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.webhookReceivers.list(); - expect(response).toEqual([ - { - event: "event", - isActive: true, - key: "key", - }, - ]); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { event: "event", is_active: true }; - const rawResponseBody = { event: "event", is_active: true, key: "key" }; - server - .mockEndpoint() - .post("/crm/v1/webhook-receivers") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.webhookReceivers.create({ - event: "event", - isActive: true, - }); - expect(response).toEqual({ - event: "event", - isActive: true, - key: "key", - }); - }); -}); diff --git a/tests/wire/filestorage/accountToken.test.ts b/tests/wire/filestorage/accountToken.test.ts index 557a582d2..975372bf3 100644 --- a/tests/wire/filestorage/accountToken.test.ts +++ b/tests/wire/filestorage/accountToken.test.ts @@ -59,4 +59,32 @@ describe("AccountTokenClient", () => { id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", }); }); + + test("regenerateCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + linked_account_id: "e59b1821-f85c-4e28-a6b3-1804156f3563", + account_token: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", + }; + server + .mockEndpoint() + .post("/filestorage/v1/account-token/regenerate") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.filestorage.accountToken.regenerateCreate(); + expect(response).toEqual({ + linkedAccountId: "e59b1821-f85c-4e28-a6b3-1804156f3563", + accountToken: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", + }); + }); }); diff --git a/tests/wire/filestorage/auditTrail.test.ts b/tests/wire/filestorage/auditTrail.test.ts index c0f7b1aee..4668b1d72 100644 --- a/tests/wire/filestorage/auditTrail.test.ts +++ b/tests/wire/filestorage/auditTrail.test.ts @@ -31,22 +31,14 @@ describe("AuditTrailClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/filestorage/v1/audit-trail") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.filestorage.auditTrail.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - eventType: "event_type", - pageSize: 1, - startDate: "start_date", - userEmail: "user_email", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -62,6 +54,19 @@ describe("AuditTrailClient", () => { createdAt: new Date("2024-01-15T09:30:00.000Z"), }, ], + }; + const page = await client.filestorage.auditTrail.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + eventType: "event_type", + pageSize: 1, + startDate: "start_date", + userEmail: "user_email", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); }); diff --git a/tests/wire/filestorage/drives.test.ts b/tests/wire/filestorage/drives.test.ts index 559d61e6c..492607265 100644 --- a/tests/wire/filestorage/drives.test.ts +++ b/tests/wire/filestorage/drives.test.ts @@ -35,27 +35,14 @@ describe("DrivesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/filestorage/v1/drives") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.filestorage.drives.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - name: "name", - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -84,7 +71,25 @@ describe("DrivesClient", () => { ], }, ], + }; + const page = await client.filestorage.drives.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { diff --git a/tests/wire/filestorage/fieldMapping.test.ts b/tests/wire/filestorage/fieldMapping.test.ts index 2b8379099..54f3d1109 100644 --- a/tests/wire/filestorage/fieldMapping.test.ts +++ b/tests/wire/filestorage/fieldMapping.test.ts @@ -32,6 +32,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], Folder: [ @@ -52,6 +53,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], Drive: [ @@ -72,6 +74,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], Group: [ @@ -92,6 +95,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], User: [ @@ -112,6 +116,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], }; @@ -147,6 +152,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], folder: [ @@ -169,6 +175,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], drive: [ @@ -191,6 +198,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], group: [ @@ -213,6 +221,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], user: [ @@ -235,6 +244,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], }); @@ -274,6 +284,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, warnings: [ { @@ -314,6 +325,7 @@ describe("FieldMappingClient", () => { const response = await client.filestorage.fieldMapping.fieldMappingsCreate({ excludeRemoteFieldMetadata: true, + remoteDataIterationCount: 1, targetFieldName: "example_target_field_name", targetFieldDescription: "this is a example description of the target field", remoteFieldTraversalPath: ["example_remote_field"], @@ -341,6 +353,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, warnings: [ { @@ -403,6 +416,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, warnings: [ { @@ -461,6 +475,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, warnings: [ { @@ -523,6 +538,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, warnings: [ { @@ -561,7 +577,9 @@ describe("FieldMappingClient", () => { .jsonBody(rawResponseBody) .build(); - const response = await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); + const response = await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + remoteDataIterationCount: 1, + }); expect(response).toEqual({ model: { id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", @@ -582,6 +600,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, warnings: [ { diff --git a/tests/wire/filestorage/files.test.ts b/tests/wire/filestorage/files.test.ts index 1362c37c3..246e3b300 100644 --- a/tests/wire/filestorage/files.test.ts +++ b/tests/wire/filestorage/files.test.ts @@ -47,34 +47,14 @@ describe("FilesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/filestorage/v1/files") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.filestorage.files.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - driveId: "drive_id", - expand: "drive", - folderId: "folder_id", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - mimeType: "mime_type", - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - name: "name", - orderBy: "-created_at", - pageSize: 1, - remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), - remoteCreatedBefore: new Date("2024-01-15T09:30:00.000Z"), - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -115,7 +95,31 @@ describe("FilesClient", () => { ], }, ], + }; + const page = await client.filestorage.files.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + driveId: "drive_id", + folderId: "folder_id", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + mimeType: "mime_type", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + orderBy: "-created_at", + pageSize: 1, + remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), + remoteCreatedBefore: new Date("2024-01-15T09:30:00.000Z"), + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("create", async () => { @@ -313,7 +317,6 @@ describe("FilesClient", () => { .build(); const response = await client.filestorage.files.retrieve("id", { - expand: "drive", includeRemoteData: true, includeShellData: true, }); @@ -413,25 +416,14 @@ describe("FilesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/filestorage/v1/files/download/request-meta") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.filestorage.files.downloadRequestMetaList({ - createdAfter: "created_after", - createdBefore: "created_before", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - mimeTypes: "mime_types", - modifiedAfter: "modified_after", - modifiedBefore: "modified_before", - orderBy: "-created_at", - pageSize: 1, - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -444,7 +436,23 @@ describe("FilesClient", () => { }, }, ], + }; + const page = await client.filestorage.files.downloadRequestMetaList({ + createdAfter: "created_after", + createdBefore: "created_before", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + mimeTypes: "mime_types", + modifiedAfter: "modified_after", + modifiedBefore: "modified_before", + orderBy: "-created_at", + pageSize: 1, }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("metaPostRetrieve", async () => { diff --git a/tests/wire/filestorage/folders.test.ts b/tests/wire/filestorage/folders.test.ts index da8103572..ba9770022 100644 --- a/tests/wire/filestorage/folders.test.ts +++ b/tests/wire/filestorage/folders.test.ts @@ -41,30 +41,14 @@ describe("FoldersClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/filestorage/v1/folders") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.filestorage.folders.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - driveId: "drive_id", - expand: "drive", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - name: "name", - pageSize: 1, - parentFolderId: "parent_folder_id", - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -99,7 +83,27 @@ describe("FoldersClient", () => { ], }, ], + }; + const page = await client.filestorage.folders.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + driveId: "drive_id", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + parentFolderId: "parent_folder_id", + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("create", async () => { @@ -279,7 +283,6 @@ describe("FoldersClient", () => { .build(); const response = await client.filestorage.folders.retrieve("id", { - expand: "drive", includeRemoteData: true, includeShellData: true, }); diff --git a/tests/wire/filestorage/groups.test.ts b/tests/wire/filestorage/groups.test.ts index 8b3b67768..dddca0b25 100644 --- a/tests/wire/filestorage/groups.test.ts +++ b/tests/wire/filestorage/groups.test.ts @@ -35,27 +35,14 @@ describe("GroupsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/filestorage/v1/groups") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.filestorage.groups.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "child_groups", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -84,7 +71,24 @@ describe("GroupsClient", () => { ], }, ], + }; + const page = await client.filestorage.groups.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -120,7 +124,6 @@ describe("GroupsClient", () => { .build(); const response = await client.filestorage.groups.retrieve("id", { - expand: "child_groups", includeRemoteData: true, includeShellData: true, }); diff --git a/tests/wire/filestorage/issues.test.ts b/tests/wire/filestorage/issues.test.ts index c6ea7c562..5c1eebe70 100644 --- a/tests/wire/filestorage/issues.test.ts +++ b/tests/wire/filestorage/issues.test.ts @@ -30,30 +30,14 @@ describe("IssuesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/filestorage/v1/issues") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.filestorage.issues.list({ - accountToken: "account_token", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - endUserOrganizationName: "end_user_organization_name", - firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - includeMuted: "include_muted", - integrationName: "integration_name", - lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - linkedAccountId: "linked_account_id", - pageSize: 1, - startDate: "start_date", - status: "ONGOING", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -70,7 +54,28 @@ describe("IssuesClient", () => { errorDetails: ["Missing employee permissions.", "Missing time off permissions."], }, ], + }; + const page = await client.filestorage.issues.list({ + accountToken: "account_token", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + endUserOrganizationName: "end_user_organization_name", + firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + includeMuted: "include_muted", + integrationName: "integration_name", + lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + linkedAccountId: "linked_account_id", + pageSize: 1, + startDate: "start_date", + status: "ONGOING", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { diff --git a/tests/wire/filestorage/linkedAccounts.test.ts b/tests/wire/filestorage/linkedAccounts.test.ts index b0f4b4940..09cbeca0b 100644 --- a/tests/wire/filestorage/linkedAccounts.test.ts +++ b/tests/wire/filestorage/linkedAccounts.test.ts @@ -50,29 +50,14 @@ describe("LinkedAccountsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/filestorage/v1/linked-accounts") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.filestorage.linkedAccounts.list({ - category: "accounting", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endUserEmailAddress: "end_user_email_address", - endUserOrganizationName: "end_user_organization_name", - endUserOriginId: "end_user_origin_id", - endUserOriginIds: "end_user_origin_ids", - id: "id", - ids: "ids", - includeDuplicates: true, - integrationName: "integration_name", - isTestAccount: "is_test_account", - pageSize: 1, - status: "status", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -109,6 +94,26 @@ describe("LinkedAccountsClient", () => { }, }, ], + }; + const page = await client.filestorage.linkedAccounts.list({ + category: "accounting", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endUserEmailAddress: "end_user_email_address", + endUserOrganizationName: "end_user_organization_name", + endUserOriginId: "end_user_origin_id", + endUserOriginIds: "end_user_origin_ids", + id: "id", + ids: "ids", + includeDuplicates: true, + integrationName: "integration_name", + isTestAccount: "is_test_account", + pageSize: 1, + status: "status", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); }); diff --git a/tests/wire/filestorage/syncStatus.test.ts b/tests/wire/filestorage/syncStatus.test.ts index 03ab6b4a1..cf27e2089 100644 --- a/tests/wire/filestorage/syncStatus.test.ts +++ b/tests/wire/filestorage/syncStatus.test.ts @@ -31,18 +31,14 @@ describe("SyncStatusClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/filestorage/v1/sync-status") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.filestorage.syncStatus.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - pageSize: 1, - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -58,6 +54,15 @@ describe("SyncStatusClient", () => { selectiveSyncConfigurationsUsage: "IN_NEXT_SYNC", }, ], + }; + const page = await client.filestorage.syncStatus.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 1, }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); }); diff --git a/tests/wire/filestorage/users.test.ts b/tests/wire/filestorage/users.test.ts index b053f6f20..0d42ff7dc 100644 --- a/tests/wire/filestorage/users.test.ts +++ b/tests/wire/filestorage/users.test.ts @@ -35,27 +35,14 @@ describe("UsersClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/filestorage/v1/users") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.filestorage.users.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isMe: "is_me", - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -84,7 +71,26 @@ describe("UsersClient", () => { ], }, ], + }; + const page = await client.filestorage.users.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + emailAddress: "email_address", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isMe: "is_me", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { diff --git a/tests/wire/hris/accountDetails.test.ts b/tests/wire/hris/accountDetails.test.ts deleted file mode 100644 index 5b55df739..000000000 --- a/tests/wire/hris/accountDetails.test.ts +++ /dev/null @@ -1,54 +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("AccountDetailsClient", () => { - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - integration: "BambooHR", - integration_slug: "bamboohr", - category: "hris", - end_user_origin_id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - end_user_organization_name: "Waystar Royco", - end_user_email_address: "kendall.roy@waystar-royco.com", - status: "COMPLETE", - webhook_listener_url: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - is_duplicate: true, - account_type: "PRODUCTION", - completed_at: "2024-08-26T20:11:19Z", - }; - server - .mockEndpoint() - .get("/hris/v1/account-details") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.accountDetails.retrieve(); - expect(response).toEqual({ - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - integration: "BambooHR", - integrationSlug: "bamboohr", - category: "hris", - endUserOriginId: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - endUserOrganizationName: "Waystar Royco", - endUserEmailAddress: "kendall.roy@waystar-royco.com", - status: "COMPLETE", - webhookListenerUrl: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - isDuplicate: true, - accountType: "PRODUCTION", - completedAt: new Date("2024-08-26T20:11:19.000Z"), - }); - }); -}); diff --git a/tests/wire/hris/accountToken.test.ts b/tests/wire/hris/accountToken.test.ts deleted file mode 100644 index a79f3e109..000000000 --- a/tests/wire/hris/accountToken.test.ts +++ /dev/null @@ -1,62 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AccountTokenClient", () => { - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - account_token: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", - integration: { - name: "name", - abbreviated_name: "abbreviated_name", - categories: ["hris"], - image: "image", - square_image: "square_image", - color: "color", - slug: "slug", - api_endpoints_to_documentation_urls: { key: "value" }, - webhook_setup_guide_url: "webhook_setup_guide_url", - category_beta_status: { key: "value" }, - }, - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - }; - server - .mockEndpoint() - .get("/hris/v1/account-token/public_token") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.accountToken.retrieve("public_token"); - expect(response).toEqual({ - accountToken: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", - integration: { - name: "name", - abbreviatedName: "abbreviated_name", - categories: ["hris"], - image: "image", - squareImage: "square_image", - color: "color", - slug: "slug", - apiEndpointsToDocumentationUrls: { - key: "value", - }, - webhookSetupGuideUrl: "webhook_setup_guide_url", - categoryBetaStatus: { - key: "value", - }, - }, - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - }); - }); -}); diff --git a/tests/wire/hris/asyncPassthrough.test.ts b/tests/wire/hris/asyncPassthrough.test.ts deleted file mode 100644 index 57145b964..000000000 --- a/tests/wire/hris/asyncPassthrough.test.ts +++ /dev/null @@ -1,93 +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("AsyncPassthroughClient", () => { - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { method: "GET", path: "/scooters" }; - const rawResponseBody = { async_passthrough_receipt_id: "fd29020f-2695-445e-922e-dcd5e81903fd" }; - server - .mockEndpoint() - .post("/hris/v1/async-passthrough") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.asyncPassthrough.create({ - method: "GET", - path: "/scooters", - }); - expect(response).toEqual({ - asyncPassthroughReceiptId: "fd29020f-2695-445e-922e-dcd5e81903fd", - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - method: "GET", - path: "/scooters", - status: 200, - response: { - scooters: [ - { company: "Lime", model: "Gen 2.5" }, - { company: "Bird", model: "Bird Zero" }, - ], - }, - response_headers: { "X-Page-Token": "value" }, - response_type: "JSON", - headers: { "EXTRA-HEADER": "value", Authorization: "" }, - }; - server - .mockEndpoint() - .get("/hris/v1/async-passthrough/async_passthrough_receipt_id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.asyncPassthrough.retrieve("async_passthrough_receipt_id"); - expect(response).toEqual({ - method: "GET", - path: "/scooters", - status: 200, - response: { - scooters: [ - { - company: "Lime", - model: "Gen 2.5", - }, - { - company: "Bird", - model: "Bird Zero", - }, - ], - }, - responseHeaders: { - "X-Page-Token": "value", - }, - responseType: "JSON", - headers: { - "EXTRA-HEADER": "value", - Authorization: "", - }, - }); - }); -}); diff --git a/tests/wire/hris/auditTrail.test.ts b/tests/wire/hris/auditTrail.test.ts deleted file mode 100644 index 6ba0bd44e..000000000 --- a/tests/wire/hris/auditTrail.test.ts +++ /dev/null @@ -1,67 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AuditTrailClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b5ceea2a-7171-47ce-8090-165cfce5572c", - user_name: "Gil Feig", - user_email: "hello@merge.dev", - role: "ADMIN", - ip_address: "192.0.2.123", - event_type: "CREATED_REMOTE_PRODUCTION_API_KEY", - event_description: - "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", - created_at: "2024-01-15T09:30:00Z", - }, - ], - }; - server - .mockEndpoint() - .get("/hris/v1/audit-trail") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.auditTrail.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - eventType: "event_type", - pageSize: 1, - startDate: "start_date", - userEmail: "user_email", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b5ceea2a-7171-47ce-8090-165cfce5572c", - userName: "Gil Feig", - userEmail: "hello@merge.dev", - role: "ADMIN", - ipAddress: "192.0.2.123", - eventType: "CREATED_REMOTE_PRODUCTION_API_KEY", - eventDescription: - "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", - createdAt: new Date("2024-01-15T09:30:00.000Z"), - }, - ], - }); - }); -}); diff --git a/tests/wire/hris/availableActions.test.ts b/tests/wire/hris/availableActions.test.ts deleted file mode 100644 index 7b87becfc..000000000 --- a/tests/wire/hris/availableActions.test.ts +++ /dev/null @@ -1,76 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AvailableActionsClient", () => { - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - integration: { - name: "name", - abbreviated_name: "abbreviated_name", - categories: ["hris"], - image: "image", - square_image: "square_image", - color: "color", - slug: "slug", - api_endpoints_to_documentation_urls: { key: "value" }, - webhook_setup_guide_url: "webhook_setup_guide_url", - category_beta_status: { key: "value" }, - }, - 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"], - }, - ], - }; - server - .mockEndpoint() - .get("/hris/v1/available-actions") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.availableActions.retrieve(); - expect(response).toEqual({ - integration: { - name: "name", - abbreviatedName: "abbreviated_name", - categories: ["hris"], - image: "image", - squareImage: "square_image", - color: "color", - slug: "slug", - apiEndpointsToDocumentationUrls: { - key: "value", - }, - webhookSetupGuideUrl: "webhook_setup_guide_url", - categoryBetaStatus: { - key: "value", - }, - }, - passthroughAvailable: true, - availableModelOperations: [ - { - modelName: "Candidate", - availableOperations: ["FETCH", "CREATE"], - requiredPostParameters: ["remote_user_id"], - supportedFields: ["first_name", "last_name", "company", "title"], - }, - ], - }); - }); -}); diff --git a/tests/wire/hris/bankInfo.test.ts b/tests/wire/hris/bankInfo.test.ts deleted file mode 100644 index e8b363486..000000000 --- a/tests/wire/hris/bankInfo.test.ts +++ /dev/null @@ -1,166 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("BankInfoClient", () => { - 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: "fd1e0fb5-8f92-4ec9-9f32-179cf732867d", - remote_id: "123234", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee: "employee", - account_number: "439291590", - routing_number: "089690059", - bank_name: "Chase", - account_type: "SAVINGS", - remote_created_at: "2021-12-06T10:11:26Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/bank-info", data: ["Varies by platform"] }], - }, - ], - }; - server.mockEndpoint().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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "fd1e0fb5-8f92-4ec9-9f32-179cf732867d", - remoteId: "123234", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employee: "employee", - accountNumber: "439291590", - routingNumber: "089690059", - bankName: "Chase", - accountType: "SAVINGS", - remoteCreatedAt: new Date("2021-12-06T10:11:26.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/bank-info", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "fd1e0fb5-8f92-4ec9-9f32-179cf732867d", - remote_id: "123234", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee: "employee", - account_number: "439291590", - routing_number: "089690059", - bank_name: "Chase", - account_type: "SAVINGS", - remote_created_at: "2021-12-06T10:11:26Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/bank-info", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/hris/v1/bank-info/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.bankInfo.retrieve("id", { - expand: "employee", - includeRemoteData: true, - includeShellData: true, - remoteFields: "account_type", - showEnumOrigins: "account_type", - }); - expect(response).toEqual({ - id: "fd1e0fb5-8f92-4ec9-9f32-179cf732867d", - remoteId: "123234", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employee: "employee", - accountNumber: "439291590", - routingNumber: "089690059", - bankName: "Chase", - accountType: "SAVINGS", - remoteCreatedAt: new Date("2021-12-06T10:11:26.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/bank-info", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/hris/benefits.test.ts b/tests/wire/hris/benefits.test.ts deleted file mode 100644 index eaa19de8e..000000000 --- a/tests/wire/hris/benefits.test.ts +++ /dev/null @@ -1,163 +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("BenefitsClient", () => { - 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: "3fe5ae7a-f1ba-4529-b7af-84e86dc6d232", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee: "employee", - provider_name: "Blue Shield of California", - employee_contribution: 23.65, - company_contribution: 150, - start_date: "2020-11-15T00:59:25Z", - end_date: "2021-10-15T00:23:25Z", - employer_benefit: "025fjlc6-6000-430a-848e-aafacbadf4fe", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/benefits", data: ["Varies by platform"] }], - }, - ], - }; - server.mockEndpoint().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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "3fe5ae7a-f1ba-4529-b7af-84e86dc6d232", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employee: "employee", - providerName: "Blue Shield of California", - employeeContribution: 23.65, - companyContribution: 150, - startDate: new Date("2020-11-15T00:59:25.000Z"), - endDate: new Date("2021-10-15T00:23:25.000Z"), - employerBenefit: "025fjlc6-6000-430a-848e-aafacbadf4fe", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/benefits", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "3fe5ae7a-f1ba-4529-b7af-84e86dc6d232", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee: "employee", - provider_name: "Blue Shield of California", - employee_contribution: 23.65, - company_contribution: 150, - start_date: "2020-11-15T00:59:25Z", - end_date: "2021-10-15T00:23:25Z", - employer_benefit: "025fjlc6-6000-430a-848e-aafacbadf4fe", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/benefits", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/hris/v1/benefits/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.benefits.retrieve("id", { - expand: "employee", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "3fe5ae7a-f1ba-4529-b7af-84e86dc6d232", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employee: "employee", - providerName: "Blue Shield of California", - employeeContribution: 23.65, - companyContribution: 150, - startDate: new Date("2020-11-15T00:59:25.000Z"), - endDate: new Date("2021-10-15T00:23:25.000Z"), - employerBenefit: "025fjlc6-6000-430a-848e-aafacbadf4fe", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/benefits", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/hris/companies.test.ts b/tests/wire/hris/companies.test.ts deleted file mode 100644 index 909e629ab..000000000 --- a/tests/wire/hris/companies.test.ts +++ /dev/null @@ -1,144 +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("CompaniesClient", () => { - 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: "1b998423-db0a-4037-a4cf-f79c60cb67b3", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - legal_name: "Waystar Royco, Inc.", - display_name: "Waystar Royco", - eins: ["12-3456789", "12-3451111", "11-0011000"], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/companies", data: ["Varies by platform"] }], - }, - ], - }; - server.mockEndpoint().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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "1b998423-db0a-4037-a4cf-f79c60cb67b3", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - legalName: "Waystar Royco, Inc.", - displayName: "Waystar Royco", - eins: ["12-3456789", "12-3451111", "11-0011000"], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/companies", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "1b998423-db0a-4037-a4cf-f79c60cb67b3", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - legal_name: "Waystar Royco, Inc.", - display_name: "Waystar Royco", - eins: ["12-3456789", "12-3451111", "11-0011000"], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/companies", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/hris/v1/companies/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.companies.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "1b998423-db0a-4037-a4cf-f79c60cb67b3", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - legalName: "Waystar Royco, Inc.", - displayName: "Waystar Royco", - eins: ["12-3456789", "12-3451111", "11-0011000"], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/companies", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/hris/deleteAccount.test.ts b/tests/wire/hris/deleteAccount.test.ts deleted file mode 100644 index 98c7a77f9..000000000 --- a/tests/wire/hris/deleteAccount.test.ts +++ /dev/null @@ -1,21 +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("DeleteAccountClient", () => { - test("delete", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - server.mockEndpoint().post("/hris/v1/delete-account").respondWith().statusCode(200).build(); - - const response = await client.hris.deleteAccount.delete(); - expect(response).toEqual(undefined); - }); -}); diff --git a/tests/wire/hris/dependents.test.ts b/tests/wire/hris/dependents.test.ts deleted file mode 100644 index d7da45bb7..000000000 --- a/tests/wire/hris/dependents.test.ts +++ /dev/null @@ -1,185 +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("DependentsClient", () => { - 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: "025fjlc6-6000-430a-848e-aafacbadf4fe", - remote_id: "19202940", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - first_name: "Greg", - middle_name: "A", - last_name: "Hirsch", - relationship: "CHILD", - employee: "0958cbc6-6040-430a-848e-aafacbadf4ae", - date_of_birth: "1990-11-10T00:00:00Z", - gender: "MALE", - phone_number: "+1234567890", - home_location: "d2f972d0-2526-434b-9409-4c3b468e08f0", - is_student: true, - ssn: "1234567890", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/dependent", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "025fjlc6-6000-430a-848e-aafacbadf4fe", - remoteId: "19202940", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - firstName: "Greg", - middleName: "A", - lastName: "Hirsch", - relationship: "CHILD", - employee: "0958cbc6-6040-430a-848e-aafacbadf4ae", - dateOfBirth: new Date("1990-11-10T00:00:00.000Z"), - gender: "MALE", - phoneNumber: "+1234567890", - homeLocation: "d2f972d0-2526-434b-9409-4c3b468e08f0", - isStudent: true, - ssn: "1234567890", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/dependent", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "025fjlc6-6000-430a-848e-aafacbadf4fe", - remote_id: "19202940", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - first_name: "Greg", - middle_name: "A", - last_name: "Hirsch", - relationship: "CHILD", - employee: "0958cbc6-6040-430a-848e-aafacbadf4ae", - date_of_birth: "1990-11-10T00:00:00Z", - gender: "MALE", - phone_number: "+1234567890", - home_location: "d2f972d0-2526-434b-9409-4c3b468e08f0", - is_student: true, - ssn: "1234567890", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/dependent", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/hris/v1/dependents/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.dependents.retrieve("id", { - includeRemoteData: true, - includeSensitiveFields: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "025fjlc6-6000-430a-848e-aafacbadf4fe", - remoteId: "19202940", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - firstName: "Greg", - middleName: "A", - lastName: "Hirsch", - relationship: "CHILD", - employee: "0958cbc6-6040-430a-848e-aafacbadf4ae", - dateOfBirth: new Date("1990-11-10T00:00:00.000Z"), - gender: "MALE", - phoneNumber: "+1234567890", - homeLocation: "d2f972d0-2526-434b-9409-4c3b468e08f0", - isStudent: true, - ssn: "1234567890", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/dependent", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/hris/employeePayrollRuns.test.ts b/tests/wire/hris/employeePayrollRuns.test.ts deleted file mode 100644 index 0950c78cd..000000000 --- a/tests/wire/hris/employeePayrollRuns.test.ts +++ /dev/null @@ -1,489 +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("EmployeePayrollRunsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "fb8c55b6-1cb8-4b4c-9fb6-17924231619d", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee: "employee", - payroll_run: "payroll_run", - gross_pay: 1342.67, - net_pay: 865.78, - start_date: "2020-11-08T00:00:00Z", - end_date: "2020-11-09T00:00:00Z", - check_date: "2020-11-10T00:00:00Z", - earnings: [ - { - id: "babbced6-3a81-4775-8da2-490dc6385259", - remote_id: "52802", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee_payroll_run: "35347df1-95e7-46e2-93cc-66f1191edca5", - amount: 1002.34, - type: "SALARY", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - }, - { - id: "babbced6-3a81-4775-8da2-490dc6385259", - remote_id: "52802", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee_payroll_run: "35347df1-95e7-46e2-93cc-66f1191edca5", - amount: 8342.34, - type: "OVERTIME", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - }, - ], - deductions: [ - { - id: "5fd439fc-1b64-4755-b275-64918936c365", - remote_id: "93478612", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee_payroll_run: "35347df1-95e7-46e2-93cc-66f1191edca5", - name: "Social Security", - employee_deduction: 34.54, - company_deduction: 78.78, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/payroll-deduction", data: ["Varies by platform"] }], - }, - ], - taxes: [ - { - id: "e3a825fd-c38d-4095-a717-df98c4cb9ebc", - remote_id: "26806834", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee_payroll_run: "35347df1-95e7-46e2-93cc-66f1191edca5", - name: "California State Income Tax", - amount: 100.25, - employer_tax: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - }, - ], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/employee-payroll", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "fb8c55b6-1cb8-4b4c-9fb6-17924231619d", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employee: "employee", - payrollRun: "payroll_run", - grossPay: 1342.67, - netPay: 865.78, - startDate: new Date("2020-11-08T00:00:00.000Z"), - endDate: new Date("2020-11-09T00:00:00.000Z"), - checkDate: new Date("2020-11-10T00:00:00.000Z"), - earnings: [ - { - id: "babbced6-3a81-4775-8da2-490dc6385259", - remoteId: "52802", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employeePayrollRun: "35347df1-95e7-46e2-93cc-66f1191edca5", - amount: 1002.34, - type: "SALARY", - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - }, - { - id: "babbced6-3a81-4775-8da2-490dc6385259", - remoteId: "52802", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employeePayrollRun: "35347df1-95e7-46e2-93cc-66f1191edca5", - amount: 8342.34, - type: "OVERTIME", - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - }, - ], - deductions: [ - { - id: "5fd439fc-1b64-4755-b275-64918936c365", - remoteId: "93478612", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employeePayrollRun: "35347df1-95e7-46e2-93cc-66f1191edca5", - name: "Social Security", - employeeDeduction: 34.54, - companyDeduction: 78.78, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/payroll-deduction", - data: ["Varies by platform"], - }, - ], - }, - ], - taxes: [ - { - id: "e3a825fd-c38d-4095-a717-df98c4cb9ebc", - remoteId: "26806834", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employeePayrollRun: "35347df1-95e7-46e2-93cc-66f1191edca5", - name: "California State Income Tax", - amount: 100.25, - employerTax: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - }, - ], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/employee-payroll", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "fb8c55b6-1cb8-4b4c-9fb6-17924231619d", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee: "employee", - payroll_run: "payroll_run", - gross_pay: 1342.67, - net_pay: 865.78, - start_date: "2020-11-08T00:00:00Z", - end_date: "2020-11-09T00:00:00Z", - check_date: "2020-11-10T00:00:00Z", - earnings: [ - { - id: "babbced6-3a81-4775-8da2-490dc6385259", - remote_id: "52802", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee_payroll_run: "35347df1-95e7-46e2-93cc-66f1191edca5", - amount: 1002.34, - type: "SALARY", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - { - id: "babbced6-3a81-4775-8da2-490dc6385259", - remote_id: "52802", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee_payroll_run: "35347df1-95e7-46e2-93cc-66f1191edca5", - amount: 8342.34, - type: "OVERTIME", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - ], - deductions: [ - { - id: "5fd439fc-1b64-4755-b275-64918936c365", - remote_id: "93478612", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee_payroll_run: "35347df1-95e7-46e2-93cc-66f1191edca5", - name: "Social Security", - employee_deduction: 34.54, - company_deduction: 78.78, - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/payroll-deduction", data: ["Varies by platform"] }], - }, - ], - taxes: [ - { - id: "e3a825fd-c38d-4095-a717-df98c4cb9ebc", - remote_id: "26806834", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee_payroll_run: "35347df1-95e7-46e2-93cc-66f1191edca5", - name: "California State Income Tax", - amount: 100.25, - employer_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: "/platform-endpoint", data: ["Varies by platform"] }], - }, - ], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/employee-payroll", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/hris/v1/employee-payroll-runs/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.employeePayrollRuns.retrieve("id", { - expand: "employee", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "fb8c55b6-1cb8-4b4c-9fb6-17924231619d", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employee: "employee", - payrollRun: "payroll_run", - grossPay: 1342.67, - netPay: 865.78, - startDate: new Date("2020-11-08T00:00:00.000Z"), - endDate: new Date("2020-11-09T00:00:00.000Z"), - checkDate: new Date("2020-11-10T00:00:00.000Z"), - earnings: [ - { - id: "babbced6-3a81-4775-8da2-490dc6385259", - remoteId: "52802", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employeePayrollRun: "35347df1-95e7-46e2-93cc-66f1191edca5", - amount: 1002.34, - type: "SALARY", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - { - id: "babbced6-3a81-4775-8da2-490dc6385259", - remoteId: "52802", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employeePayrollRun: "35347df1-95e7-46e2-93cc-66f1191edca5", - amount: 8342.34, - type: "OVERTIME", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - ], - deductions: [ - { - id: "5fd439fc-1b64-4755-b275-64918936c365", - remoteId: "93478612", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employeePayrollRun: "35347df1-95e7-46e2-93cc-66f1191edca5", - name: "Social Security", - employeeDeduction: 34.54, - companyDeduction: 78.78, - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/payroll-deduction", - data: ["Varies by platform"], - }, - ], - }, - ], - taxes: [ - { - id: "e3a825fd-c38d-4095-a717-df98c4cb9ebc", - remoteId: "26806834", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employeePayrollRun: "35347df1-95e7-46e2-93cc-66f1191edca5", - name: "California State Income Tax", - amount: 100.25, - employerTax: true, - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - ], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/employee-payroll", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/hris/employees.test.ts b/tests/wire/hris/employees.test.ts deleted file mode 100644 index a41441cc1..000000000 --- a/tests/wire/hris/employees.test.ts +++ /dev/null @@ -1,893 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("EmployeesClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee_number: "2", - company: "company", - first_name: "Greg", - last_name: "Hirsch", - preferred_name: "Greg the egg", - display_full_name: "Cousin Greg Hirsch", - username: "cousingreg", - groups: ["21a54124-397f-494d-985e-3c5b330b8a68"], - work_email: "greg@merge.dev", - personal_email: "greg@gmail.com", - mobile_phone_number: "+1234567890", - employments: ["17a54124-287f-494d-965e-3c5b330c9a68"], - home_location: "home_location", - work_location: "work_location", - manager: "manager", - pay_group: "pay_group", - ssn: "1234567890", - gender: "MALE", - ethnicity: "AMERICAN_INDIAN_OR_ALASKA_NATIVE", - marital_status: "SINGLE", - date_of_birth: "1990-11-10T00:00:00Z", - start_date: "2020-10-11T00:00:00Z", - remote_created_at: "2020-10-11T00:00:00Z", - employment_status: "ACTIVE", - termination_date: "2021-10-12T00:00:00Z", - avatar: "http://alturl.com/h2h8m", - custom_fields: { key: "value" }, - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/people", data: ["Varies by platform"] }], - }, - ], - }; - server.mockEndpoint().get("/hris/v1/employees").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.hris.employees.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - displayFullName: "display_full_name", - employeeNumber: "employee_number", - employmentStatus: "ACTIVE", - employmentType: "employment_type", - expand: "company", - firstName: "first_name", - groups: "groups", - homeLocationId: "home_location_id", - includeDeletedData: true, - includeRemoteData: true, - includeSensitiveFields: true, - includeShellData: true, - jobTitle: "job_title", - lastName: "last_name", - managerId: "manager_id", - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - payGroupId: "pay_group_id", - personalEmail: "personal_email", - remoteFields: "employment_status", - remoteId: "remote_id", - showEnumOrigins: "employment_status", - startedAfter: new Date("2024-01-15T09:30:00.000Z"), - startedBefore: new Date("2024-01-15T09:30:00.000Z"), - teamId: "team_id", - terminatedAfter: new Date("2024-01-15T09:30:00.000Z"), - terminatedBefore: new Date("2024-01-15T09:30:00.000Z"), - workEmail: "work_email", - workLocationId: "work_location_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employeeNumber: "2", - company: "company", - firstName: "Greg", - lastName: "Hirsch", - preferredName: "Greg the egg", - displayFullName: "Cousin Greg Hirsch", - username: "cousingreg", - groups: ["21a54124-397f-494d-985e-3c5b330b8a68"], - workEmail: "greg@merge.dev", - personalEmail: "greg@gmail.com", - mobilePhoneNumber: "+1234567890", - employments: ["17a54124-287f-494d-965e-3c5b330c9a68"], - homeLocation: "home_location", - workLocation: "work_location", - manager: "manager", - payGroup: "pay_group", - ssn: "1234567890", - gender: "MALE", - ethnicity: "AMERICAN_INDIAN_OR_ALASKA_NATIVE", - maritalStatus: "SINGLE", - dateOfBirth: new Date("1990-11-10T00:00:00.000Z"), - startDate: new Date("2020-10-11T00:00:00.000Z"), - remoteCreatedAt: new Date("2020-10-11T00:00:00.000Z"), - employmentStatus: "ACTIVE", - terminationDate: new Date("2021-10-12T00:00:00.000Z"), - avatar: "http://alturl.com/h2h8m", - customFields: { - key: "value", - }, - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/people", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee_number: "2", - company: "company", - first_name: "Greg", - last_name: "Hirsch", - preferred_name: "Greg the egg", - display_full_name: "Cousin Greg Hirsch", - username: "cousingreg", - groups: ["21a54124-397f-494d-985e-3c5b330b8a68"], - work_email: "greg@merge.dev", - personal_email: "greg@gmail.com", - mobile_phone_number: "+1234567890", - employments: ["17a54124-287f-494d-965e-3c5b330c9a68"], - home_location: "home_location", - work_location: "work_location", - manager: "manager", - pay_group: "pay_group", - ssn: "1234567890", - gender: "MALE", - ethnicity: "AMERICAN_INDIAN_OR_ALASKA_NATIVE", - marital_status: "SINGLE", - date_of_birth: "1990-11-10T00:00:00Z", - start_date: "2020-10-11T00:00:00Z", - remote_created_at: "2020-10-11T00:00:00Z", - employment_status: "ACTIVE", - termination_date: "2021-10-12T00:00:00Z", - avatar: "http://alturl.com/h2h8m", - custom_fields: { key: "value" }, - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/people", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/hris/v1/employees") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.employees.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employeeNumber: "2", - company: "company", - firstName: "Greg", - lastName: "Hirsch", - preferredName: "Greg the egg", - displayFullName: "Cousin Greg Hirsch", - username: "cousingreg", - groups: ["21a54124-397f-494d-985e-3c5b330b8a68"], - workEmail: "greg@merge.dev", - personalEmail: "greg@gmail.com", - mobilePhoneNumber: "+1234567890", - employments: ["17a54124-287f-494d-965e-3c5b330c9a68"], - homeLocation: "home_location", - workLocation: "work_location", - manager: "manager", - payGroup: "pay_group", - ssn: "1234567890", - gender: "MALE", - ethnicity: "AMERICAN_INDIAN_OR_ALASKA_NATIVE", - maritalStatus: "SINGLE", - dateOfBirth: new Date("1990-11-10T00:00:00.000Z"), - startDate: new Date("2020-10-11T00:00:00.000Z"), - remoteCreatedAt: new Date("2020-10-11T00:00:00.000Z"), - employmentStatus: "ACTIVE", - terminationDate: new Date("2021-10-12T00:00:00.000Z"), - avatar: "http://alturl.com/h2h8m", - customFields: { - key: "value", - }, - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/people", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee_number: "2", - company: "company", - first_name: "Greg", - last_name: "Hirsch", - preferred_name: "Greg the egg", - display_full_name: "Cousin Greg Hirsch", - username: "cousingreg", - groups: ["21a54124-397f-494d-985e-3c5b330b8a68"], - work_email: "greg@merge.dev", - personal_email: "greg@gmail.com", - mobile_phone_number: "+1234567890", - employments: ["17a54124-287f-494d-965e-3c5b330c9a68"], - home_location: "home_location", - work_location: "work_location", - manager: "manager", - pay_group: "pay_group", - ssn: "1234567890", - gender: "MALE", - ethnicity: "AMERICAN_INDIAN_OR_ALASKA_NATIVE", - marital_status: "SINGLE", - date_of_birth: "1990-11-10T00:00:00Z", - start_date: "2020-10-11T00:00:00Z", - remote_created_at: "2020-10-11T00:00:00Z", - employment_status: "ACTIVE", - termination_date: "2021-10-12T00:00:00Z", - avatar: "http://alturl.com/h2h8m", - custom_fields: { key: "value" }, - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/people", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/hris/v1/employees/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.employees.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeSensitiveFields: true, - includeShellData: true, - remoteFields: "employment_status", - showEnumOrigins: "employment_status", - }); - expect(response).toEqual({ - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employeeNumber: "2", - company: "company", - firstName: "Greg", - lastName: "Hirsch", - preferredName: "Greg the egg", - displayFullName: "Cousin Greg Hirsch", - username: "cousingreg", - groups: ["21a54124-397f-494d-985e-3c5b330b8a68"], - workEmail: "greg@merge.dev", - personalEmail: "greg@gmail.com", - mobilePhoneNumber: "+1234567890", - employments: ["17a54124-287f-494d-965e-3c5b330c9a68"], - homeLocation: "home_location", - workLocation: "work_location", - manager: "manager", - payGroup: "pay_group", - ssn: "1234567890", - gender: "MALE", - ethnicity: "AMERICAN_INDIAN_OR_ALASKA_NATIVE", - maritalStatus: "SINGLE", - dateOfBirth: new Date("1990-11-10T00:00:00.000Z"), - startDate: new Date("2020-10-11T00:00:00.000Z"), - remoteCreatedAt: new Date("2020-10-11T00:00:00.000Z"), - employmentStatus: "ACTIVE", - terminationDate: new Date("2021-10-12T00:00:00.000Z"), - avatar: "http://alturl.com/h2h8m", - customFields: { - key: "value", - }, - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/people", - data: ["Varies by platform"], - }, - ], - }); - }); - - test("ignoreCreate", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { reason: "GENERAL_CUSTOMER_REQUEST" }; - - server - .mockEndpoint() - .post("/hris/v1/employees/ignore/model_id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .build(); - - const response = await client.hris.employees.ignoreCreate("model_id", { - reason: "GENERAL_CUSTOMER_REQUEST", - }); - expect(response).toEqual(undefined); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/hris/v1/employees/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.employees.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/hris/employerBenefits.test.ts b/tests/wire/hris/employerBenefits.test.ts deleted file mode 100644 index f07a5960e..000000000 --- a/tests/wire/hris/employerBenefits.test.ts +++ /dev/null @@ -1,154 +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("EmployerBenefitsClient", () => { - 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: "025fjlc6-6000-430a-848e-aafacbadf4fele", - remote_id: "19202939", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - benefit_plan_type: "MEDICAL", - name: "Kaiser Permanente Medical Plan", - description: "HDHP Silver Plan", - deduction_code: "COL", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "025fjlc6-6000-430a-848e-aafacbadf4fele", - remoteId: "19202939", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - benefitPlanType: "MEDICAL", - name: "Kaiser Permanente Medical Plan", - description: "HDHP Silver Plan", - deductionCode: "COL", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "025fjlc6-6000-430a-848e-aafacbadf4fele", - remote_id: "19202939", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - benefit_plan_type: "MEDICAL", - name: "Kaiser Permanente Medical Plan", - description: "HDHP Silver Plan", - deduction_code: "COL", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/hris/v1/employer-benefits/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.employerBenefits.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "025fjlc6-6000-430a-848e-aafacbadf4fele", - remoteId: "19202939", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - benefitPlanType: "MEDICAL", - name: "Kaiser Permanente Medical Plan", - description: "HDHP Silver Plan", - deductionCode: "COL", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/hris/employments.test.ts b/tests/wire/hris/employments.test.ts deleted file mode 100644 index 4070d1d16..000000000 --- a/tests/wire/hris/employments.test.ts +++ /dev/null @@ -1,186 +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("EmploymentsClient", () => { - 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: "65d8ffd0-211b-4ba4-b85a-fbe2ce220982", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee: "employee", - job_title: "Executive Assistant to Tom Wambsgans", - pay_rate: 1.1, - pay_period: "HOUR", - pay_frequency: "WEEKLY", - pay_currency: "XUA", - pay_group: "pay_group", - flsa_status: "EXEMPT", - effective_date: "2023-10-06T18:42:34Z", - employment_type: "FULL_TIME", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/jobs", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "65d8ffd0-211b-4ba4-b85a-fbe2ce220982", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employee: "employee", - jobTitle: "Executive Assistant to Tom Wambsgans", - payRate: 1.1, - payPeriod: "HOUR", - payFrequency: "WEEKLY", - payCurrency: "XUA", - payGroup: "pay_group", - flsaStatus: "EXEMPT", - effectiveDate: new Date("2023-10-06T18:42:34.000Z"), - employmentType: "FULL_TIME", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/jobs", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "65d8ffd0-211b-4ba4-b85a-fbe2ce220982", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee: "employee", - job_title: "Executive Assistant to Tom Wambsgans", - pay_rate: 1.1, - pay_period: "HOUR", - pay_frequency: "WEEKLY", - pay_currency: "XUA", - pay_group: "pay_group", - flsa_status: "EXEMPT", - effective_date: "2023-10-06T18:42:34Z", - employment_type: "FULL_TIME", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/jobs", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/hris/v1/employments/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.employments.retrieve("id", { - expand: "employee", - includeRemoteData: true, - includeShellData: true, - remoteFields: "employment_type", - showEnumOrigins: "employment_type", - }); - expect(response).toEqual({ - id: "65d8ffd0-211b-4ba4-b85a-fbe2ce220982", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employee: "employee", - jobTitle: "Executive Assistant to Tom Wambsgans", - payRate: 1.1, - payPeriod: "HOUR", - payFrequency: "WEEKLY", - payCurrency: "XUA", - payGroup: "pay_group", - flsaStatus: "EXEMPT", - effectiveDate: new Date("2023-10-06T18:42:34.000Z"), - employmentType: "FULL_TIME", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/jobs", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/hris/fieldMapping.test.ts b/tests/wire/hris/fieldMapping.test.ts deleted file mode 100644 index df1ba9eb3..000000000 --- a/tests/wire/hris/fieldMapping.test.ts +++ /dev/null @@ -1,1906 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("FieldMappingClient", () => { - test("field_mappings_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Benefit: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - EmployerBenefit: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Company: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - EmployeePayrollRun: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Employee: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Employment: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Location: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - PayrollRun: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Team: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - TimeOff: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - TimeOffBalance: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - BankInfo: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - PayGroup: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Group: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Dependent: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - TimesheetEntry: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - }; - server - .mockEndpoint() - .get("/hris/v1/field-mappings") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.fieldMapping.fieldMappingsRetrieve({ - excludeRemoteFieldMetadata: true, - }); - expect(response).toEqual({ - benefit: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - employerBenefit: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - company: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - employeePayrollRun: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - employee: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - employment: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - location: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - payrollRun: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - team: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - timeOff: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - timeOffBalance: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - bankInfo: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - payGroup: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - group: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - dependent: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - timesheetEntry: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - }); - }); - - test("field_mappings_create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { - target_field_name: "example_target_field_name", - target_field_description: "this is a example description of the target field", - remote_field_traversal_path: ["example_remote_field"], - remote_method: "GET", - remote_url_path: "/example-url-path", - common_model_name: "ExampleCommonModel", - }; - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/hris/v1/field-mappings") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.fieldMapping.fieldMappingsCreate({ - excludeRemoteFieldMetadata: true, - targetFieldName: "example_target_field_name", - targetFieldDescription: "this is a example description of the target field", - remoteFieldTraversalPath: ["example_remote_field"], - remoteMethod: "GET", - remoteUrlPath: "/example-url-path", - commonModelName: "ExampleCommonModel", - }); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("field_mappings_destroy", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .delete("/hris/v1/field-mappings/field_mapping_id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.fieldMapping.fieldMappingsDestroy("field_mapping_id"); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("field_mappings_partial_update", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = {}; - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .patch("/hris/v1/field-mappings/field_mapping_id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("remote_fields_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Benefit: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - EmployerBenefit: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Company: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - EmployeePayrollRun: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Employee: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Employment: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Location: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - PayrollRun: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Team: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - TimeOff: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - TimeOffBalance: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - BankInfo: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - PayGroup: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Group: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Dependent: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - TimesheetEntry: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - }; - server - .mockEndpoint() - .get("/hris/v1/remote-fields") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.fieldMapping.remoteFieldsRetrieve({ - commonModels: "common_models", - includeExampleValues: "include_example_values", - }); - expect(response).toEqual({ - benefit: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - employerBenefit: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - company: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - employeePayrollRun: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - employee: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - employment: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - location: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - payrollRun: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - team: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - timeOff: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - timeOffBalance: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - bankInfo: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - payGroup: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - group: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - dependent: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - timesheetEntry: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - }); - }); - - test("target_fields_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Benefit: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - EmployerBenefit: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Company: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - EmployeePayrollRun: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Employee: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Employment: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Location: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - PayrollRun: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Team: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - TimeOff: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - TimeOffBalance: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - BankInfo: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - PayGroup: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Group: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Dependent: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - TimesheetEntry: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - }; - server - .mockEndpoint() - .get("/hris/v1/target-fields") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.fieldMapping.targetFieldsRetrieve(); - expect(response).toEqual({ - benefit: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - employerBenefit: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - company: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - employeePayrollRun: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - employee: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - employment: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - location: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - payrollRun: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - team: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - timeOff: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - timeOffBalance: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - bankInfo: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - payGroup: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - group: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - dependent: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - timesheetEntry: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - }); - }); -}); diff --git a/tests/wire/hris/forceResync.test.ts b/tests/wire/hris/forceResync.test.ts deleted file mode 100644 index de2541bbe..000000000 --- a/tests/wire/hris/forceResync.test.ts +++ /dev/null @@ -1,52 +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("ForceResyncClient", () => { - test("sync_status_resync_create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = [ - { - model_name: "Employee", - model_id: "hris.Employee", - last_sync_start: "2021-03-30T19:44:18Z", - next_sync_start: "2021-03-30T20:44:18Z", - last_sync_result: "SYNCING", - last_sync_finished: "2021-03-30T19:55:18Z", - status: "SYNCING", - is_initial_sync: true, - selective_sync_configurations_usage: "IN_NEXT_SYNC", - }, - ]; - server - .mockEndpoint() - .post("/hris/v1/sync-status/resync") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.forceResync.syncStatusResyncCreate(); - expect(response).toEqual([ - { - modelName: "Employee", - modelId: "hris.Employee", - lastSyncStart: new Date("2021-03-30T19:44:18.000Z"), - nextSyncStart: new Date("2021-03-30T20:44:18.000Z"), - lastSyncResult: "SYNCING", - lastSyncFinished: new Date("2021-03-30T19:55:18.000Z"), - status: "SYNCING", - isInitialSync: true, - selectiveSyncConfigurationsUsage: "IN_NEXT_SYNC", - }, - ]); - }); -}); diff --git a/tests/wire/hris/generateKey.test.ts b/tests/wire/hris/generateKey.test.ts deleted file mode 100644 index adbf9aaa5..000000000 --- a/tests/wire/hris/generateKey.test.ts +++ /dev/null @@ -1,37 +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("GenerateKeyClient", () => { - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { name: "Remote Deployment Key 1" }; - const rawResponseBody = { - name: "Remote Deployment Key 1", - key: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", - }; - server - .mockEndpoint() - .post("/hris/v1/generate-key") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.generateKey.create({ - name: "Remote Deployment Key 1", - }); - expect(response).toEqual({ - name: "Remote Deployment Key 1", - key: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", - }); - }); -}); diff --git a/tests/wire/hris/groups.test.ts b/tests/wire/hris/groups.test.ts deleted file mode 100644 index 486cec172..000000000 --- a/tests/wire/hris/groups.test.ts +++ /dev/null @@ -1,149 +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("GroupsClient", () => { - 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: "134e0111-0f67-44f6-98f0-597000290bb3", - remote_id: "800293", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - parent_group: "2ef51b11-2c4e-4b02-8d1d-50592d9e96ef", - name: "COST_CENTER_US", - type: "TEAM", - is_commonly_used_as_team: 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: "/group", data: ["Varies by platform"] }], - }, - ], - }; - server.mockEndpoint().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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "134e0111-0f67-44f6-98f0-597000290bb3", - remoteId: "800293", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - parentGroup: "2ef51b11-2c4e-4b02-8d1d-50592d9e96ef", - name: "COST_CENTER_US", - type: "TEAM", - isCommonlyUsedAsTeam: true, - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/group", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "134e0111-0f67-44f6-98f0-597000290bb3", - remote_id: "800293", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - parent_group: "2ef51b11-2c4e-4b02-8d1d-50592d9e96ef", - name: "COST_CENTER_US", - type: "TEAM", - is_commonly_used_as_team: 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: "/group", data: ["Varies by platform"] }], - }; - server.mockEndpoint().get("/hris/v1/groups/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.hris.groups.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - remoteFields: "type", - showEnumOrigins: "type", - }); - expect(response).toEqual({ - id: "134e0111-0f67-44f6-98f0-597000290bb3", - remoteId: "800293", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - parentGroup: "2ef51b11-2c4e-4b02-8d1d-50592d9e96ef", - name: "COST_CENTER_US", - type: "TEAM", - isCommonlyUsedAsTeam: true, - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/group", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/hris/issues.test.ts b/tests/wire/hris/issues.test.ts deleted file mode 100644 index d4b850c3a..000000000 --- a/tests/wire/hris/issues.test.ts +++ /dev/null @@ -1,105 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("IssuesClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - error_description: "Missing Permissions", - end_user: { key: "value" }, - first_incident_time: "2022-12-05T16:19:15Z", - last_incident_time: "2022-12-05T16:19:15Z", - is_muted: true, - error_details: ["Missing employee permissions.", "Missing time off permissions."], - }, - ], - }; - server.mockEndpoint().get("/hris/v1/issues").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.hris.issues.list({ - accountToken: "account_token", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - endUserOrganizationName: "end_user_organization_name", - firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - includeMuted: "include_muted", - integrationName: "integration_name", - lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - linkedAccountId: "linked_account_id", - pageSize: 1, - startDate: "start_date", - status: "ONGOING", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - errorDescription: "Missing Permissions", - endUser: { - key: "value", - }, - firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - isMuted: true, - errorDetails: ["Missing employee permissions.", "Missing time off permissions."], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - error_description: "Missing Permissions", - end_user: { key: "value" }, - first_incident_time: "2022-12-05T16:19:15Z", - last_incident_time: "2022-12-05T16:19:15Z", - is_muted: true, - error_details: ["Missing employee permissions.", "Missing time off permissions."], - }; - server.mockEndpoint().get("/hris/v1/issues/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.hris.issues.retrieve("id"); - expect(response).toEqual({ - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - errorDescription: "Missing Permissions", - endUser: { - key: "value", - }, - firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - isMuted: true, - errorDetails: ["Missing employee permissions.", "Missing time off permissions."], - }); - }); -}); diff --git a/tests/wire/hris/linkToken.test.ts b/tests/wire/hris/linkToken.test.ts deleted file mode 100644 index 21bca4785..000000000 --- a/tests/wire/hris/linkToken.test.ts +++ /dev/null @@ -1,47 +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("LinkTokenClient", () => { - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { - end_user_email_address: "example@gmail.com", - end_user_organization_name: "Test Organization", - end_user_origin_id: "12345", - categories: ["hris", "ats"], - }; - const rawResponseBody = { - link_token: "necdP7FtdASl1fQwm62be2_dM4wBG8_GactqoUV0", - integration_name: "Lever", - magic_link_url: "https://link.merge.dev/asdfjkl12345jsndfgi2i83n", - }; - server - .mockEndpoint() - .post("/hris/v1/link-token") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.linkToken.create({ - endUserEmailAddress: "example@gmail.com", - endUserOrganizationName: "Test Organization", - endUserOriginId: "12345", - categories: ["hris", "ats"], - }); - expect(response).toEqual({ - linkToken: "necdP7FtdASl1fQwm62be2_dM4wBG8_GactqoUV0", - integrationName: "Lever", - magicLinkUrl: "https://link.merge.dev/asdfjkl12345jsndfgi2i83n", - }); - }); -}); diff --git a/tests/wire/hris/linkedAccounts.test.ts b/tests/wire/hris/linkedAccounts.test.ts deleted file mode 100644 index 779d8a6f0..000000000 --- a/tests/wire/hris/linkedAccounts.test.ts +++ /dev/null @@ -1,114 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("LinkedAccountsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "e59b1821-f85c-4e28-a6b3-1804156f3563", - category: "hris", - status: "COMPLETE", - status_detail: "Invalid login credentials", - end_user_origin_id: "3ac95cde-6c7f-4eef-afec-be710b42308d", - end_user_organization_name: "Foo Bar, LLC", - end_user_email_address: "hradmin@foobar.dev", - subdomain: "foobar", - webhook_listener_url: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - is_duplicate: true, - integration: { - name: "name", - categories: ["hris"], - color: "color", - slug: "slug", - passthrough_available: true, - available_model_operations: [ - { - model_name: "Candidate", - available_operations: ["FETCH", "CREATE"], - required_post_parameters: ["remote_user_id"], - supported_fields: ["first_name", "last_name", "company", "title"], - }, - ], - }, - account_type: "PRODUCTION", - completed_at: "2024-08-26T20:11:19Z", - integration_specific_fields: { integration_specific_field: "Varies by platform" }, - }, - ], - }; - server - .mockEndpoint() - .get("/hris/v1/linked-accounts") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.linkedAccounts.list({ - category: "accounting", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endUserEmailAddress: "end_user_email_address", - endUserOrganizationName: "end_user_organization_name", - endUserOriginId: "end_user_origin_id", - endUserOriginIds: "end_user_origin_ids", - id: "id", - ids: "ids", - includeDuplicates: true, - integrationName: "integration_name", - isTestAccount: "is_test_account", - pageSize: 1, - status: "status", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "e59b1821-f85c-4e28-a6b3-1804156f3563", - category: "hris", - status: "COMPLETE", - statusDetail: "Invalid login credentials", - endUserOriginId: "3ac95cde-6c7f-4eef-afec-be710b42308d", - endUserOrganizationName: "Foo Bar, LLC", - endUserEmailAddress: "hradmin@foobar.dev", - subdomain: "foobar", - webhookListenerUrl: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - isDuplicate: true, - integration: { - name: "name", - categories: ["hris"], - color: "color", - slug: "slug", - passthroughAvailable: true, - availableModelOperations: [ - { - modelName: "Candidate", - availableOperations: ["FETCH", "CREATE"], - requiredPostParameters: ["remote_user_id"], - supportedFields: ["first_name", "last_name", "company", "title"], - }, - ], - }, - accountType: "PRODUCTION", - completedAt: new Date("2024-08-26T20:11:19.000Z"), - integrationSpecificFields: { - integration_specific_field: "Varies by platform", - }, - }, - ], - }); - }); -}); diff --git a/tests/wire/hris/locations.test.ts b/tests/wire/hris/locations.test.ts deleted file mode 100644 index 33f45fc18..000000000 --- a/tests/wire/hris/locations.test.ts +++ /dev/null @@ -1,173 +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("LocationsClient", () => { - 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: "f5e6a151-f44e-449a-afb1-8fd781905958", - remote_id: "93018402", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "NYC Office", - phone_number: "+1111111111", - street_1: "2920 Broadway", - street_2: "2nd Floor", - city: "New York ", - state: "NY", - zip_code: "10027", - country: "AF", - location_type: "HOME", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/locations", data: ["Varies by platform"] }], - }, - ], - }; - server.mockEndpoint().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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "f5e6a151-f44e-449a-afb1-8fd781905958", - remoteId: "93018402", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "NYC Office", - phoneNumber: "+1111111111", - street1: "2920 Broadway", - street2: "2nd Floor", - city: "New York ", - state: "NY", - zipCode: "10027", - country: "AF", - locationType: "HOME", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/locations", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "f5e6a151-f44e-449a-afb1-8fd781905958", - remote_id: "93018402", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "NYC Office", - phone_number: "+1111111111", - street_1: "2920 Broadway", - street_2: "2nd Floor", - city: "New York ", - state: "NY", - zip_code: "10027", - country: "AF", - location_type: "HOME", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/locations", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/hris/v1/locations/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.locations.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - remoteFields: "country", - showEnumOrigins: "country", - }); - expect(response).toEqual({ - id: "f5e6a151-f44e-449a-afb1-8fd781905958", - remoteId: "93018402", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "NYC Office", - phoneNumber: "+1111111111", - street1: "2920 Broadway", - street2: "2nd Floor", - city: "New York ", - state: "NY", - zipCode: "10027", - country: "AF", - locationType: "HOME", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/locations", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/hris/passthrough.test.ts b/tests/wire/hris/passthrough.test.ts deleted file mode 100644 index bcc0f6f4e..000000000 --- a/tests/wire/hris/passthrough.test.ts +++ /dev/null @@ -1,69 +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("PassthroughClient", () => { - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { method: "GET", path: "/scooters" }; - const rawResponseBody = { - method: "GET", - path: "/scooters", - status: 200, - response: { - scooters: [ - { company: "Lime", model: "Gen 2.5" }, - { company: "Bird", model: "Bird Zero" }, - ], - }, - response_headers: { "X-Page-Token": "value" }, - response_type: "JSON", - headers: { "EXTRA-HEADER": "value", Authorization: "" }, - }; - server - .mockEndpoint() - .post("/hris/v1/passthrough") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.passthrough.create({ - method: "GET", - path: "/scooters", - }); - expect(response).toEqual({ - method: "GET", - path: "/scooters", - status: 200, - response: { - scooters: [ - { - company: "Lime", - model: "Gen 2.5", - }, - { - company: "Bird", - model: "Bird Zero", - }, - ], - }, - responseHeaders: { - "X-Page-Token": "value", - }, - responseType: "JSON", - headers: { - "EXTRA-HEADER": "value", - Authorization: "", - }, - }); - }); -}); diff --git a/tests/wire/hris/payGroups.test.ts b/tests/wire/hris/payGroups.test.ts deleted file mode 100644 index 5fb7f32d2..000000000 --- a/tests/wire/hris/payGroups.test.ts +++ /dev/null @@ -1,142 +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("PayGroupsClient", () => { - 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: "fd1e0fb5-8f92-4ec9-9f32-179cf732867d", - remote_id: "800293", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - pay_group_name: "contractor", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/pay-group", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "fd1e0fb5-8f92-4ec9-9f32-179cf732867d", - remoteId: "800293", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - payGroupName: "contractor", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/pay-group", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "fd1e0fb5-8f92-4ec9-9f32-179cf732867d", - remote_id: "800293", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - pay_group_name: "contractor", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/pay-group", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/hris/v1/pay-groups/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.payGroups.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "fd1e0fb5-8f92-4ec9-9f32-179cf732867d", - remoteId: "800293", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - payGroupName: "contractor", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/pay-group", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/hris/payrollRuns.test.ts b/tests/wire/hris/payrollRuns.test.ts deleted file mode 100644 index 582ffa247..000000000 --- a/tests/wire/hris/payrollRuns.test.ts +++ /dev/null @@ -1,167 +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("PayrollRunsClient", () => { - 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: "37336947-b3d4-4a4c-a310-ab6ab510e079", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - run_state: "PAID", - run_type: "REGULAR", - start_date: "2020-11-08T00:00:00Z", - end_date: "2020-11-15T00:00:00Z", - check_date: "2020-11-15T00: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: "/payroll", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "37336947-b3d4-4a4c-a310-ab6ab510e079", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - runState: "PAID", - runType: "REGULAR", - startDate: new Date("2020-11-08T00:00:00.000Z"), - endDate: new Date("2020-11-15T00:00:00.000Z"), - checkDate: new Date("2020-11-15T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/payroll", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "37336947-b3d4-4a4c-a310-ab6ab510e079", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - run_state: "PAID", - run_type: "REGULAR", - start_date: "2020-11-08T00:00:00Z", - end_date: "2020-11-15T00:00:00Z", - check_date: "2020-11-15T00: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: "/payroll", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/hris/v1/payroll-runs/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.payrollRuns.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - remoteFields: "run_state", - showEnumOrigins: "run_state", - }); - expect(response).toEqual({ - id: "37336947-b3d4-4a4c-a310-ab6ab510e079", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - runState: "PAID", - runType: "REGULAR", - startDate: new Date("2020-11-08T00:00:00.000Z"), - endDate: new Date("2020-11-15T00:00:00.000Z"), - checkDate: new Date("2020-11-15T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/payroll", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/hris/regenerateKey.test.ts b/tests/wire/hris/regenerateKey.test.ts deleted file mode 100644 index 0c0779ab2..000000000 --- a/tests/wire/hris/regenerateKey.test.ts +++ /dev/null @@ -1,37 +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("RegenerateKeyClient", () => { - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { name: "Remote Deployment Key 1" }; - const rawResponseBody = { - name: "Remote Deployment Key 1", - key: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", - }; - server - .mockEndpoint() - .post("/hris/v1/regenerate-key") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.regenerateKey.create({ - name: "Remote Deployment Key 1", - }); - expect(response).toEqual({ - name: "Remote Deployment Key 1", - key: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", - }); - }); -}); diff --git a/tests/wire/hris/scopes.test.ts b/tests/wire/hris/scopes.test.ts deleted file mode 100644 index 4989afca2..000000000 --- a/tests/wire/hris/scopes.test.ts +++ /dev/null @@ -1,294 +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("ScopesClient", () => { - test("default_scopes_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - common_models: [ - { - model_name: "Employee", - model_permissions: { READ: { is_enabled: true }, WRITE: { is_enabled: false } }, - field_permissions: { - enabled_fields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabled_fields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }; - server - .mockEndpoint() - .get("/hris/v1/default-scopes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.scopes.defaultScopesRetrieve(); - expect(response).toEqual({ - commonModels: [ - { - modelName: "Employee", - modelPermissions: { - READ: { - isEnabled: true, - }, - WRITE: { - isEnabled: false, - }, - }, - fieldPermissions: { - enabledFields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabledFields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }); - }); - - test("linked_account_scopes_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - common_models: [ - { - model_name: "Employee", - model_permissions: { READ: { is_enabled: true }, WRITE: { is_enabled: false } }, - field_permissions: { - enabled_fields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabled_fields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }; - server - .mockEndpoint() - .get("/hris/v1/linked-account-scopes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.scopes.linkedAccountScopesRetrieve(); - expect(response).toEqual({ - commonModels: [ - { - modelName: "Employee", - modelPermissions: { - READ: { - isEnabled: true, - }, - WRITE: { - isEnabled: false, - }, - }, - fieldPermissions: { - enabledFields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabledFields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }); - }); - - test("linked_account_scopes_create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { - common_models: [ - { - model_name: "Employee", - model_permissions: { READ: { is_enabled: true }, WRITE: { is_enabled: false } }, - field_permissions: { - enabled_fields: ["avatar", "home_location"], - disabled_fields: ["work_location"], - }, - }, - { model_name: "Benefit", model_permissions: { WRITE: { is_enabled: false } } }, - ], - }; - const rawResponseBody = { - common_models: [ - { - model_name: "Employee", - model_permissions: { READ: { is_enabled: true }, WRITE: { is_enabled: false } }, - field_permissions: { - enabled_fields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabled_fields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }; - server - .mockEndpoint() - .post("/hris/v1/linked-account-scopes") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = 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, - }, - }, - }, - ], - }); - expect(response).toEqual({ - commonModels: [ - { - modelName: "Employee", - modelPermissions: { - READ: { - isEnabled: true, - }, - WRITE: { - isEnabled: false, - }, - }, - fieldPermissions: { - enabledFields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabledFields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }); - }); -}); diff --git a/tests/wire/hris/syncStatus.test.ts b/tests/wire/hris/syncStatus.test.ts deleted file mode 100644 index 6b5715d63..000000000 --- a/tests/wire/hris/syncStatus.test.ts +++ /dev/null @@ -1,63 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("SyncStatusClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - model_name: "Employee", - model_id: "hris.Employee", - last_sync_start: "2021-03-30T19:44:18Z", - next_sync_start: "2021-03-30T20:44:18Z", - last_sync_result: "SYNCING", - last_sync_finished: "2021-03-30T19:55:18Z", - status: "SYNCING", - is_initial_sync: true, - selective_sync_configurations_usage: "IN_NEXT_SYNC", - }, - ], - }; - server - .mockEndpoint() - .get("/hris/v1/sync-status") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.syncStatus.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - modelName: "Employee", - modelId: "hris.Employee", - lastSyncStart: new Date("2021-03-30T19:44:18.000Z"), - nextSyncStart: new Date("2021-03-30T20:44:18.000Z"), - lastSyncResult: "SYNCING", - lastSyncFinished: new Date("2021-03-30T19:55:18.000Z"), - status: "SYNCING", - isInitialSync: true, - selectiveSyncConfigurationsUsage: "IN_NEXT_SYNC", - }, - ], - }); - }); -}); diff --git a/tests/wire/hris/teams.test.ts b/tests/wire/hris/teams.test.ts deleted file mode 100644 index 287f1ce0e..000000000 --- a/tests/wire/hris/teams.test.ts +++ /dev/null @@ -1,137 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("TeamsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "13a72919-9fae-4f54-81ca-ddfd8712a1ba", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Engineering", - parent_team: "parent_team", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/teams", data: ["Varies by platform"] }], - }, - ], - }; - server.mockEndpoint().get("/hris/v1/teams").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.hris.teams.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "parent_team", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - parentTeamId: "parent_team_id", - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "13a72919-9fae-4f54-81ca-ddfd8712a1ba", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Engineering", - parentTeam: "parent_team", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/teams", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "13a72919-9fae-4f54-81ca-ddfd8712a1ba", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Engineering", - parent_team: "parent_team", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/teams", data: ["Varies by platform"] }], - }; - server.mockEndpoint().get("/hris/v1/teams/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.hris.teams.retrieve("id", { - expand: "parent_team", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "13a72919-9fae-4f54-81ca-ddfd8712a1ba", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Engineering", - parentTeam: "parent_team", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/teams", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/hris/timeOff.test.ts b/tests/wire/hris/timeOff.test.ts deleted file mode 100644 index 018cd5231..000000000 --- a/tests/wire/hris/timeOff.test.ts +++ /dev/null @@ -1,741 +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("TimeOffClient", () => { - 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: "91b2b905-e866-40c8-8be2-efe53827a0aa", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee: "employee", - approver: "approver", - status: "REQUESTED", - employee_note: "Moving into the new apartment Kendall Roy gave me!", - units: "HOURS", - amount: 3, - request_type: "VACATION", - start_time: "2020-11-10T00:00:00Z", - end_time: "2020-11-17T00: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: "/leave", data: ["Varies by platform"] }], - }, - ], - }; - server.mockEndpoint().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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "91b2b905-e866-40c8-8be2-efe53827a0aa", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employee: "employee", - approver: "approver", - status: "REQUESTED", - employeeNote: "Moving into the new apartment Kendall Roy gave me!", - units: "HOURS", - amount: 3, - requestType: "VACATION", - startTime: new Date("2020-11-10T00:00:00.000Z"), - endTime: new Date("2020-11-17T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/leave", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "91b2b905-e866-40c8-8be2-efe53827a0aa", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee: "employee", - approver: "approver", - status: "REQUESTED", - employee_note: "Moving into the new apartment Kendall Roy gave me!", - units: "HOURS", - amount: 3, - request_type: "VACATION", - start_time: "2020-11-10T00:00:00Z", - end_time: "2020-11-17T00: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: "/leave", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/hris/v1/time-off") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.timeOff.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "91b2b905-e866-40c8-8be2-efe53827a0aa", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employee: "employee", - approver: "approver", - status: "REQUESTED", - employeeNote: "Moving into the new apartment Kendall Roy gave me!", - units: "HOURS", - amount: 3, - requestType: "VACATION", - startTime: new Date("2020-11-10T00:00:00.000Z"), - endTime: new Date("2020-11-17T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/leave", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "91b2b905-e866-40c8-8be2-efe53827a0aa", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee: "employee", - approver: "approver", - status: "REQUESTED", - employee_note: "Moving into the new apartment Kendall Roy gave me!", - units: "HOURS", - amount: 3, - request_type: "VACATION", - start_time: "2020-11-10T00:00:00Z", - end_time: "2020-11-17T00: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: "/leave", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/hris/v1/time-off/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.timeOff.retrieve("id", { - expand: "approver", - includeRemoteData: true, - includeShellData: true, - remoteFields: "request_type", - showEnumOrigins: "request_type", - }); - expect(response).toEqual({ - id: "91b2b905-e866-40c8-8be2-efe53827a0aa", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employee: "employee", - approver: "approver", - status: "REQUESTED", - employeeNote: "Moving into the new apartment Kendall Roy gave me!", - units: "HOURS", - amount: 3, - requestType: "VACATION", - startTime: new Date("2020-11-10T00:00:00.000Z"), - endTime: new Date("2020-11-17T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/leave", - data: ["Varies by platform"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/hris/v1/time-off/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.timeOff.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/hris/timeOffBalances.test.ts b/tests/wire/hris/timeOffBalances.test.ts deleted file mode 100644 index 49f13d589..000000000 --- a/tests/wire/hris/timeOffBalances.test.ts +++ /dev/null @@ -1,162 +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("TimeOffBalancesClient", () => { - 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: "91b2b905-e866-40c8-8be2-efe53827a0aa", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee: "employee", - balance: 1.1, - used: 1.1, - policy_type: "VACATION", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/leave", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "91b2b905-e866-40c8-8be2-efe53827a0aa", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employee: "employee", - balance: 1.1, - used: 1.1, - policyType: "VACATION", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/leave", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "91b2b905-e866-40c8-8be2-efe53827a0aa", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee: "employee", - balance: 1.1, - used: 1.1, - policy_type: "VACATION", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/leave", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/hris/v1/time-off-balances/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.timeOffBalances.retrieve("id", { - expand: "employee", - includeRemoteData: true, - includeShellData: true, - remoteFields: "policy_type", - showEnumOrigins: "policy_type", - }); - expect(response).toEqual({ - id: "91b2b905-e866-40c8-8be2-efe53827a0aa", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employee: "employee", - balance: 1.1, - used: 1.1, - policyType: "VACATION", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/leave", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/hris/timesheetEntries.test.ts b/tests/wire/hris/timesheetEntries.test.ts deleted file mode 100644 index f53c9f738..000000000 --- a/tests/wire/hris/timesheetEntries.test.ts +++ /dev/null @@ -1,711 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("TimesheetEntriesClient", () => { - 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: "91b2b905-e866-40c8-8be2-efe53827a0aa", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee: "employee", - hours_worked: 10, - start_time: "2020-11-10T00:00:00Z", - end_time: "2020-11-10T00:10: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: "/dependent", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "91b2b905-e866-40c8-8be2-efe53827a0aa", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employee: "employee", - hoursWorked: 10, - startTime: new Date("2020-11-10T00:00:00.000Z"), - endTime: new Date("2020-11-10T00:10:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/dependent", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "91b2b905-e866-40c8-8be2-efe53827a0aa", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee: "employee", - hours_worked: 10, - start_time: "2020-11-10T00:00:00Z", - end_time: "2020-11-10T00:10: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: "/dependent", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/hris/v1/timesheet-entries") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.timesheetEntries.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "91b2b905-e866-40c8-8be2-efe53827a0aa", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employee: "employee", - hoursWorked: 10, - startTime: new Date("2020-11-10T00:00:00.000Z"), - endTime: new Date("2020-11-10T00:10:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/dependent", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "91b2b905-e866-40c8-8be2-efe53827a0aa", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee: "employee", - hours_worked: 10, - start_time: "2020-11-10T00:00:00Z", - end_time: "2020-11-10T00:10: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: "/dependent", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/hris/v1/timesheet-entries/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.timesheetEntries.retrieve("id", { - expand: "employee", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "91b2b905-e866-40c8-8be2-efe53827a0aa", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employee: "employee", - hoursWorked: 10, - startTime: new Date("2020-11-10T00:00:00.000Z"), - endTime: new Date("2020-11-10T00:10:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/dependent", - data: ["Varies by platform"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/hris/v1/timesheet-entries/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.timesheetEntries.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/hris/webhookReceivers.test.ts b/tests/wire/hris/webhookReceivers.test.ts deleted file mode 100644 index c96375f8b..000000000 --- a/tests/wire/hris/webhookReceivers.test.ts +++ /dev/null @@ -1,64 +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("WebhookReceiversClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = [{ event: "event", is_active: true, key: "key" }]; - server - .mockEndpoint() - .get("/hris/v1/webhook-receivers") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.webhookReceivers.list(); - expect(response).toEqual([ - { - event: "event", - isActive: true, - key: "key", - }, - ]); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { event: "event", is_active: true }; - const rawResponseBody = { event: "event", is_active: true, key: "key" }; - server - .mockEndpoint() - .post("/hris/v1/webhook-receivers") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.webhookReceivers.create({ - event: "event", - isActive: true, - }); - expect(response).toEqual({ - event: "event", - isActive: true, - key: "key", - }); - }); -}); diff --git a/tests/wire/ticketing/accountDetails.test.ts b/tests/wire/ticketing/accountDetails.test.ts deleted file mode 100644 index 4b81bd2d2..000000000 --- a/tests/wire/ticketing/accountDetails.test.ts +++ /dev/null @@ -1,54 +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("AccountDetailsClient", () => { - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - integration: "BambooHR", - integration_slug: "bamboohr", - category: "hris", - end_user_origin_id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - end_user_organization_name: "Waystar Royco", - end_user_email_address: "kendall.roy@waystar-royco.com", - status: "COMPLETE", - webhook_listener_url: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - is_duplicate: true, - account_type: "PRODUCTION", - completed_at: "2024-08-26T20:11:19Z", - }; - server - .mockEndpoint() - .get("/ticketing/v1/account-details") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.accountDetails.retrieve(); - expect(response).toEqual({ - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - integration: "BambooHR", - integrationSlug: "bamboohr", - category: "hris", - endUserOriginId: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - endUserOrganizationName: "Waystar Royco", - endUserEmailAddress: "kendall.roy@waystar-royco.com", - status: "COMPLETE", - webhookListenerUrl: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - isDuplicate: true, - accountType: "PRODUCTION", - completedAt: new Date("2024-08-26T20:11:19.000Z"), - }); - }); -}); diff --git a/tests/wire/ticketing/accountToken.test.ts b/tests/wire/ticketing/accountToken.test.ts deleted file mode 100644 index ba4d2af27..000000000 --- a/tests/wire/ticketing/accountToken.test.ts +++ /dev/null @@ -1,62 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AccountTokenClient", () => { - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - account_token: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", - integration: { - name: "name", - abbreviated_name: "abbreviated_name", - categories: ["hris"], - image: "image", - square_image: "square_image", - color: "color", - slug: "slug", - api_endpoints_to_documentation_urls: { key: "value" }, - webhook_setup_guide_url: "webhook_setup_guide_url", - category_beta_status: { key: "value" }, - }, - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - }; - server - .mockEndpoint() - .get("/ticketing/v1/account-token/public_token") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.accountToken.retrieve("public_token"); - expect(response).toEqual({ - accountToken: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", - integration: { - name: "name", - abbreviatedName: "abbreviated_name", - categories: ["hris"], - image: "image", - squareImage: "square_image", - color: "color", - slug: "slug", - apiEndpointsToDocumentationUrls: { - key: "value", - }, - webhookSetupGuideUrl: "webhook_setup_guide_url", - categoryBetaStatus: { - key: "value", - }, - }, - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - }); - }); -}); diff --git a/tests/wire/ticketing/accounts.test.ts b/tests/wire/ticketing/accounts.test.ts deleted file mode 100644 index 011262b99..000000000 --- a/tests/wire/ticketing/accounts.test.ts +++ /dev/null @@ -1,146 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AccountsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Waystar Royco", - domains: ["waystar-royco.com", "royco.com"], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/accounts") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.accounts.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Waystar Royco", - domains: ["waystar-royco.com", "royco.com"], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Waystar Royco", - domains: ["waystar-royco.com", "royco.com"], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ticketing/v1/accounts/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.accounts.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Waystar Royco", - domains: ["waystar-royco.com", "royco.com"], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/ticketing/asyncPassthrough.test.ts b/tests/wire/ticketing/asyncPassthrough.test.ts deleted file mode 100644 index 03d628c54..000000000 --- a/tests/wire/ticketing/asyncPassthrough.test.ts +++ /dev/null @@ -1,93 +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("AsyncPassthroughClient", () => { - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { method: "GET", path: "/scooters" }; - const rawResponseBody = { async_passthrough_receipt_id: "fd29020f-2695-445e-922e-dcd5e81903fd" }; - server - .mockEndpoint() - .post("/ticketing/v1/async-passthrough") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.asyncPassthrough.create({ - method: "GET", - path: "/scooters", - }); - expect(response).toEqual({ - asyncPassthroughReceiptId: "fd29020f-2695-445e-922e-dcd5e81903fd", - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - method: "GET", - path: "/scooters", - status: 200, - response: { - scooters: [ - { company: "Lime", model: "Gen 2.5" }, - { company: "Bird", model: "Bird Zero" }, - ], - }, - response_headers: { "X-Page-Token": "value" }, - response_type: "JSON", - headers: { "EXTRA-HEADER": "value", Authorization: "" }, - }; - server - .mockEndpoint() - .get("/ticketing/v1/async-passthrough/async_passthrough_receipt_id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.asyncPassthrough.retrieve("async_passthrough_receipt_id"); - expect(response).toEqual({ - method: "GET", - path: "/scooters", - status: 200, - response: { - scooters: [ - { - company: "Lime", - model: "Gen 2.5", - }, - { - company: "Bird", - model: "Bird Zero", - }, - ], - }, - responseHeaders: { - "X-Page-Token": "value", - }, - responseType: "JSON", - headers: { - "EXTRA-HEADER": "value", - Authorization: "", - }, - }); - }); -}); diff --git a/tests/wire/ticketing/attachments.test.ts b/tests/wire/ticketing/attachments.test.ts deleted file mode 100644 index 811624dc8..000000000 --- a/tests/wire/ticketing/attachments.test.ts +++ /dev/null @@ -1,719 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AttachmentsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - file_name: "Screenshot.png", - ticket: "ticket", - file_url: "http://alturl.com/p749b", - content_type: "jpeg", - uploaded_by: "28b54125-287f-494d-965e-3c5b330c9a68", - remote_created_at: "2022-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/attachments") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.attachments.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "ticket", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), - remoteId: "remote_id", - ticketId: "ticket_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - fileName: "Screenshot.png", - ticket: "ticket", - fileUrl: "http://alturl.com/p749b", - contentType: "jpeg", - uploadedBy: "28b54125-287f-494d-965e-3c5b330c9a68", - remoteCreatedAt: new Date("2022-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - file_name: "Screenshot.png", - ticket: "ticket", - file_url: "http://alturl.com/p749b", - content_type: "jpeg", - uploaded_by: "28b54125-287f-494d-965e-3c5b330c9a68", - remote_created_at: "2022-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/ticketing/v1/attachments") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.attachments.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - fileName: "Screenshot.png", - ticket: "ticket", - fileUrl: "http://alturl.com/p749b", - contentType: "jpeg", - uploadedBy: "28b54125-287f-494d-965e-3c5b330c9a68", - remoteCreatedAt: new Date("2022-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - file_name: "Screenshot.png", - ticket: "ticket", - file_url: "http://alturl.com/p749b", - content_type: "jpeg", - uploaded_by: "28b54125-287f-494d-965e-3c5b330c9a68", - remote_created_at: "2022-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ticketing/v1/attachments/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.attachments.retrieve("id", { - expand: "ticket", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - fileName: "Screenshot.png", - ticket: "ticket", - fileUrl: "http://alturl.com/p749b", - contentType: "jpeg", - uploadedBy: "28b54125-287f-494d-965e-3c5b330c9a68", - remoteCreatedAt: new Date("2022-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/ticketing/v1/attachments/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.attachments.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/ticketing/auditTrail.test.ts b/tests/wire/ticketing/auditTrail.test.ts deleted file mode 100644 index d9e1553c3..000000000 --- a/tests/wire/ticketing/auditTrail.test.ts +++ /dev/null @@ -1,67 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AuditTrailClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b5ceea2a-7171-47ce-8090-165cfce5572c", - user_name: "Gil Feig", - user_email: "hello@merge.dev", - role: "ADMIN", - ip_address: "192.0.2.123", - event_type: "CREATED_REMOTE_PRODUCTION_API_KEY", - event_description: - "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", - created_at: "2024-01-15T09:30:00Z", - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/audit-trail") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.auditTrail.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - eventType: "event_type", - pageSize: 1, - startDate: "start_date", - userEmail: "user_email", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b5ceea2a-7171-47ce-8090-165cfce5572c", - userName: "Gil Feig", - userEmail: "hello@merge.dev", - role: "ADMIN", - ipAddress: "192.0.2.123", - eventType: "CREATED_REMOTE_PRODUCTION_API_KEY", - eventDescription: - "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", - createdAt: new Date("2024-01-15T09:30:00.000Z"), - }, - ], - }); - }); -}); diff --git a/tests/wire/ticketing/availableActions.test.ts b/tests/wire/ticketing/availableActions.test.ts deleted file mode 100644 index b03677a09..000000000 --- a/tests/wire/ticketing/availableActions.test.ts +++ /dev/null @@ -1,76 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AvailableActionsClient", () => { - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - integration: { - name: "name", - abbreviated_name: "abbreviated_name", - categories: ["hris"], - image: "image", - square_image: "square_image", - color: "color", - slug: "slug", - api_endpoints_to_documentation_urls: { key: "value" }, - webhook_setup_guide_url: "webhook_setup_guide_url", - category_beta_status: { key: "value" }, - }, - 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"], - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/available-actions") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.availableActions.retrieve(); - expect(response).toEqual({ - integration: { - name: "name", - abbreviatedName: "abbreviated_name", - categories: ["hris"], - image: "image", - squareImage: "square_image", - color: "color", - slug: "slug", - apiEndpointsToDocumentationUrls: { - key: "value", - }, - webhookSetupGuideUrl: "webhook_setup_guide_url", - categoryBetaStatus: { - key: "value", - }, - }, - passthroughAvailable: true, - availableModelOperations: [ - { - modelName: "Candidate", - availableOperations: ["FETCH", "CREATE"], - requiredPostParameters: ["remote_user_id"], - supportedFields: ["first_name", "last_name", "company", "title"], - }, - ], - }); - }); -}); diff --git a/tests/wire/ticketing/collections.test.ts b/tests/wire/ticketing/collections.test.ts deleted file mode 100644 index 8def1180f..000000000 --- a/tests/wire/ticketing/collections.test.ts +++ /dev/null @@ -1,234 +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("CollectionsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "fb8c55b6-1cb8-4b4c-9fb6-17924231619d", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Q1 Platform", - description: "For tracking all tasks related to Platform for Q1", - access_level: "PRIVATE", - collection_type: "LIST", - parent_collection: "parent_collection", - collection_url: "https://example.com", - remote_created_at: "2022-01-01T00:00:00Z", - remote_updated_at: "2022-01-01T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "fb8c55b6-1cb8-4b4c-9fb6-17924231619d", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Q1 Platform", - description: "For tracking all tasks related to Platform for Q1", - accessLevel: "PRIVATE", - collectionType: "LIST", - parentCollection: "parent_collection", - collectionUrl: "https://example.com", - remoteCreatedAt: new Date("2022-01-01T00:00:00.000Z"), - remoteUpdatedAt: new Date("2022-01-01T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("viewersList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - team: "team", - user: "user", - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - team: "team", - user: "user", - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "fb8c55b6-1cb8-4b4c-9fb6-17924231619d", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Q1 Platform", - description: "For tracking all tasks related to Platform for Q1", - access_level: "PRIVATE", - collection_type: "LIST", - parent_collection: "parent_collection", - collection_url: "https://example.com", - remote_created_at: "2022-01-01T00:00:00Z", - remote_updated_at: "2022-01-01T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ticketing/v1/collections/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.collections.retrieve("id", { - expand: "parent_collection", - includeRemoteData: true, - includeShellData: true, - remoteFields: "collection_type", - showEnumOrigins: "collection_type", - }); - expect(response).toEqual({ - id: "fb8c55b6-1cb8-4b4c-9fb6-17924231619d", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Q1 Platform", - description: "For tracking all tasks related to Platform for Q1", - accessLevel: "PRIVATE", - collectionType: "LIST", - parentCollection: "parent_collection", - collectionUrl: "https://example.com", - remoteCreatedAt: new Date("2022-01-01T00:00:00.000Z"), - remoteUpdatedAt: new Date("2022-01-01T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/ticketing/comments.test.ts b/tests/wire/ticketing/comments.test.ts deleted file mode 100644 index b59014d04..000000000 --- a/tests/wire/ticketing/comments.test.ts +++ /dev/null @@ -1,725 +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("CommentsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - user: "user", - contact: "contact", - body: "When will these integrations be done? You all should use Merge.", - html_body: "When will these integrations be done? You all should use Merge.", - ticket: "ticket", - is_private: true, - remote_created_at: "1990-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - user: "user", - contact: "contact", - body: "When will these integrations be done? You all should use Merge.", - htmlBody: "When will these integrations be done? You all should use Merge.", - ticket: "ticket", - isPrivate: true, - remoteCreatedAt: new Date("1990-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - user: "user", - contact: "contact", - body: "When will these integrations be done? You all should use Merge.", - html_body: "When will these integrations be done? You all should use Merge.", - ticket: "ticket", - is_private: true, - remote_created_at: "1990-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/ticketing/v1/comments") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.comments.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - user: "user", - contact: "contact", - body: "When will these integrations be done? You all should use Merge.", - htmlBody: "When will these integrations be done? You all should use Merge.", - ticket: "ticket", - isPrivate: true, - remoteCreatedAt: new Date("1990-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - user: "user", - contact: "contact", - body: "When will these integrations be done? You all should use Merge.", - html_body: "When will these integrations be done? You all should use Merge.", - ticket: "ticket", - is_private: true, - remote_created_at: "1990-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ticketing/v1/comments/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.comments.retrieve("id", { - expand: "contact", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - user: "user", - contact: "contact", - body: "When will these integrations be done? You all should use Merge.", - htmlBody: "When will these integrations be done? You all should use Merge.", - ticket: "ticket", - isPrivate: true, - remoteCreatedAt: new Date("1990-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/ticketing/v1/comments/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.comments.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/ticketing/contacts.test.ts b/tests/wire/ticketing/contacts.test.ts deleted file mode 100644 index 5694f277e..000000000 --- a/tests/wire/ticketing/contacts.test.ts +++ /dev/null @@ -1,712 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("ContactsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Cousin Greg", - email_address: "greg@waystar-royco.com", - phone_number: "5108890293", - details: "Executive Assistant to Tom Wambsgans", - account: "account", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/contacts") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.contacts.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - emailAddress: "email_address", - expand: "account", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Cousin Greg", - emailAddress: "greg@waystar-royco.com", - phoneNumber: "5108890293", - details: "Executive Assistant to Tom Wambsgans", - account: "account", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Cousin Greg", - email_address: "greg@waystar-royco.com", - phone_number: "5108890293", - details: "Executive Assistant to Tom Wambsgans", - account: "account", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/ticketing/v1/contacts") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.contacts.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Cousin Greg", - emailAddress: "greg@waystar-royco.com", - phoneNumber: "5108890293", - details: "Executive Assistant to Tom Wambsgans", - account: "account", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Cousin Greg", - email_address: "greg@waystar-royco.com", - phone_number: "5108890293", - details: "Executive Assistant to Tom Wambsgans", - account: "account", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ticketing/v1/contacts/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.contacts.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Cousin Greg", - emailAddress: "greg@waystar-royco.com", - phoneNumber: "5108890293", - details: "Executive Assistant to Tom Wambsgans", - account: "account", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/ticketing/v1/contacts/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.contacts.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/ticketing/deleteAccount.test.ts b/tests/wire/ticketing/deleteAccount.test.ts deleted file mode 100644 index d4dc1ac1e..000000000 --- a/tests/wire/ticketing/deleteAccount.test.ts +++ /dev/null @@ -1,21 +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("DeleteAccountClient", () => { - test("delete", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - server.mockEndpoint().post("/ticketing/v1/delete-account").respondWith().statusCode(200).build(); - - const response = await client.ticketing.deleteAccount.delete(); - expect(response).toEqual(undefined); - }); -}); diff --git a/tests/wire/ticketing/fieldMapping.test.ts b/tests/wire/ticketing/fieldMapping.test.ts deleted file mode 100644 index bb4f64225..000000000 --- a/tests/wire/ticketing/fieldMapping.test.ts +++ /dev/null @@ -1,1456 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("FieldMappingClient", () => { - test("field_mappings_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Ticket: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Comment: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Project: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Collection: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - User: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Role: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Account: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Team: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Attachment: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Tag: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Contact: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/field-mappings") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.fieldMapping.fieldMappingsRetrieve({ - excludeRemoteFieldMetadata: true, - }); - expect(response).toEqual({ - ticket: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - comment: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - project: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - collection: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - user: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - role: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - account: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - team: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - attachment: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - tag: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - contact: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - }); - }); - - test("field_mappings_create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { - target_field_name: "example_target_field_name", - target_field_description: "this is a example description of the target field", - remote_field_traversal_path: ["example_remote_field"], - remote_method: "GET", - remote_url_path: "/example-url-path", - common_model_name: "ExampleCommonModel", - }; - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/ticketing/v1/field-mappings") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.fieldMapping.fieldMappingsCreate({ - excludeRemoteFieldMetadata: true, - targetFieldName: "example_target_field_name", - targetFieldDescription: "this is a example description of the target field", - remoteFieldTraversalPath: ["example_remote_field"], - remoteMethod: "GET", - remoteUrlPath: "/example-url-path", - commonModelName: "ExampleCommonModel", - }); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("field_mappings_destroy", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .delete("/ticketing/v1/field-mappings/field_mapping_id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.fieldMapping.fieldMappingsDestroy("field_mapping_id"); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("field_mappings_partial_update", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = {}; - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .patch("/ticketing/v1/field-mappings/field_mapping_id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("remote_fields_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Ticket: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Comment: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Project: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Collection: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - User: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Role: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Account: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Team: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Attachment: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Tag: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Contact: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/remote-fields") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.fieldMapping.remoteFieldsRetrieve({ - commonModels: "common_models", - includeExampleValues: "include_example_values", - }); - expect(response).toEqual({ - ticket: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - comment: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - project: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - collection: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - user: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - role: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - account: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - team: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - attachment: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - tag: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - contact: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - }); - }); - - test("target_fields_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Ticket: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Comment: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Project: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Collection: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - User: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Role: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Account: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Team: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Attachment: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Tag: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Contact: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/target-fields") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.fieldMapping.targetFieldsRetrieve(); - expect(response).toEqual({ - ticket: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - comment: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - project: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - collection: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - user: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - role: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - account: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - team: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - attachment: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - tag: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - contact: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - }); - }); -}); diff --git a/tests/wire/ticketing/forceResync.test.ts b/tests/wire/ticketing/forceResync.test.ts deleted file mode 100644 index 8cb5114bb..000000000 --- a/tests/wire/ticketing/forceResync.test.ts +++ /dev/null @@ -1,52 +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("ForceResyncClient", () => { - test("sync_status_resync_create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = [ - { - model_name: "Ticket", - model_id: "ticketing.Ticket", - last_sync_start: "2021-03-30T19:44:18Z", - next_sync_start: "2021-03-30T20:44:18Z", - last_sync_result: "SYNCING", - last_sync_finished: "2021-03-30T19:55:18Z", - status: "SYNCING", - is_initial_sync: true, - selective_sync_configurations_usage: "IN_NEXT_SYNC", - }, - ]; - server - .mockEndpoint() - .post("/ticketing/v1/sync-status/resync") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.forceResync.syncStatusResyncCreate(); - expect(response).toEqual([ - { - modelName: "Ticket", - modelId: "ticketing.Ticket", - lastSyncStart: new Date("2021-03-30T19:44:18.000Z"), - nextSyncStart: new Date("2021-03-30T20:44:18.000Z"), - lastSyncResult: "SYNCING", - lastSyncFinished: new Date("2021-03-30T19:55:18.000Z"), - status: "SYNCING", - isInitialSync: true, - selectiveSyncConfigurationsUsage: "IN_NEXT_SYNC", - }, - ]); - }); -}); diff --git a/tests/wire/ticketing/generateKey.test.ts b/tests/wire/ticketing/generateKey.test.ts deleted file mode 100644 index 60229e309..000000000 --- a/tests/wire/ticketing/generateKey.test.ts +++ /dev/null @@ -1,37 +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("GenerateKeyClient", () => { - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { name: "Remote Deployment Key 1" }; - const rawResponseBody = { - name: "Remote Deployment Key 1", - key: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", - }; - server - .mockEndpoint() - .post("/ticketing/v1/generate-key") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.generateKey.create({ - name: "Remote Deployment Key 1", - }); - expect(response).toEqual({ - name: "Remote Deployment Key 1", - key: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", - }); - }); -}); diff --git a/tests/wire/ticketing/issues.test.ts b/tests/wire/ticketing/issues.test.ts deleted file mode 100644 index b8334c5e7..000000000 --- a/tests/wire/ticketing/issues.test.ts +++ /dev/null @@ -1,117 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("IssuesClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - error_description: "Missing Permissions", - end_user: { key: "value" }, - first_incident_time: "2022-12-05T16:19:15Z", - last_incident_time: "2022-12-05T16:19:15Z", - is_muted: true, - error_details: ["Missing employee permissions.", "Missing time off permissions."], - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/issues") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.issues.list({ - accountToken: "account_token", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - endUserOrganizationName: "end_user_organization_name", - firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - includeMuted: "include_muted", - integrationName: "integration_name", - lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - linkedAccountId: "linked_account_id", - pageSize: 1, - startDate: "start_date", - status: "ONGOING", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - errorDescription: "Missing Permissions", - endUser: { - key: "value", - }, - firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - isMuted: true, - errorDetails: ["Missing employee permissions.", "Missing time off permissions."], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - error_description: "Missing Permissions", - end_user: { key: "value" }, - first_incident_time: "2022-12-05T16:19:15Z", - last_incident_time: "2022-12-05T16:19:15Z", - is_muted: true, - error_details: ["Missing employee permissions.", "Missing time off permissions."], - }; - server - .mockEndpoint() - .get("/ticketing/v1/issues/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.issues.retrieve("id"); - expect(response).toEqual({ - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - errorDescription: "Missing Permissions", - endUser: { - key: "value", - }, - firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - isMuted: true, - errorDetails: ["Missing employee permissions.", "Missing time off permissions."], - }); - }); -}); diff --git a/tests/wire/ticketing/linkToken.test.ts b/tests/wire/ticketing/linkToken.test.ts deleted file mode 100644 index 02701be79..000000000 --- a/tests/wire/ticketing/linkToken.test.ts +++ /dev/null @@ -1,47 +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("LinkTokenClient", () => { - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { - end_user_email_address: "example@gmail.com", - end_user_organization_name: "Test Organization", - end_user_origin_id: "12345", - categories: ["hris", "ats"], - }; - const rawResponseBody = { - link_token: "necdP7FtdASl1fQwm62be2_dM4wBG8_GactqoUV0", - integration_name: "Lever", - magic_link_url: "https://link.merge.dev/asdfjkl12345jsndfgi2i83n", - }; - server - .mockEndpoint() - .post("/ticketing/v1/link-token") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.linkToken.create({ - endUserEmailAddress: "example@gmail.com", - endUserOrganizationName: "Test Organization", - endUserOriginId: "12345", - categories: ["hris", "ats"], - }); - expect(response).toEqual({ - linkToken: "necdP7FtdASl1fQwm62be2_dM4wBG8_GactqoUV0", - integrationName: "Lever", - magicLinkUrl: "https://link.merge.dev/asdfjkl12345jsndfgi2i83n", - }); - }); -}); diff --git a/tests/wire/ticketing/linkedAccounts.test.ts b/tests/wire/ticketing/linkedAccounts.test.ts deleted file mode 100644 index d5185a037..000000000 --- a/tests/wire/ticketing/linkedAccounts.test.ts +++ /dev/null @@ -1,114 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("LinkedAccountsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "e59b1821-f85c-4e28-a6b3-1804156f3563", - category: "hris", - status: "COMPLETE", - status_detail: "Invalid login credentials", - end_user_origin_id: "3ac95cde-6c7f-4eef-afec-be710b42308d", - end_user_organization_name: "Foo Bar, LLC", - end_user_email_address: "hradmin@foobar.dev", - subdomain: "foobar", - webhook_listener_url: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - is_duplicate: true, - integration: { - name: "name", - categories: ["hris"], - color: "color", - slug: "slug", - passthrough_available: true, - available_model_operations: [ - { - model_name: "Candidate", - available_operations: ["FETCH", "CREATE"], - required_post_parameters: ["remote_user_id"], - supported_fields: ["first_name", "last_name", "company", "title"], - }, - ], - }, - account_type: "PRODUCTION", - completed_at: "2024-08-26T20:11:19Z", - integration_specific_fields: { integration_specific_field: "Varies by platform" }, - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/linked-accounts") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.linkedAccounts.list({ - category: "accounting", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endUserEmailAddress: "end_user_email_address", - endUserOrganizationName: "end_user_organization_name", - endUserOriginId: "end_user_origin_id", - endUserOriginIds: "end_user_origin_ids", - id: "id", - ids: "ids", - includeDuplicates: true, - integrationName: "integration_name", - isTestAccount: "is_test_account", - pageSize: 1, - status: "status", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "e59b1821-f85c-4e28-a6b3-1804156f3563", - category: "hris", - status: "COMPLETE", - statusDetail: "Invalid login credentials", - endUserOriginId: "3ac95cde-6c7f-4eef-afec-be710b42308d", - endUserOrganizationName: "Foo Bar, LLC", - endUserEmailAddress: "hradmin@foobar.dev", - subdomain: "foobar", - webhookListenerUrl: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - isDuplicate: true, - integration: { - name: "name", - categories: ["hris"], - color: "color", - slug: "slug", - passthroughAvailable: true, - availableModelOperations: [ - { - modelName: "Candidate", - availableOperations: ["FETCH", "CREATE"], - requiredPostParameters: ["remote_user_id"], - supportedFields: ["first_name", "last_name", "company", "title"], - }, - ], - }, - accountType: "PRODUCTION", - completedAt: new Date("2024-08-26T20:11:19.000Z"), - integrationSpecificFields: { - integration_specific_field: "Varies by platform", - }, - }, - ], - }); - }); -}); diff --git a/tests/wire/ticketing/passthrough.test.ts b/tests/wire/ticketing/passthrough.test.ts deleted file mode 100644 index 3ca86493f..000000000 --- a/tests/wire/ticketing/passthrough.test.ts +++ /dev/null @@ -1,69 +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("PassthroughClient", () => { - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { method: "GET", path: "/scooters" }; - const rawResponseBody = { - method: "GET", - path: "/scooters", - status: 200, - response: { - scooters: [ - { company: "Lime", model: "Gen 2.5" }, - { company: "Bird", model: "Bird Zero" }, - ], - }, - response_headers: { "X-Page-Token": "value" }, - response_type: "JSON", - headers: { "EXTRA-HEADER": "value", Authorization: "" }, - }; - server - .mockEndpoint() - .post("/ticketing/v1/passthrough") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.passthrough.create({ - method: "GET", - path: "/scooters", - }); - expect(response).toEqual({ - method: "GET", - path: "/scooters", - status: 200, - response: { - scooters: [ - { - company: "Lime", - model: "Gen 2.5", - }, - { - company: "Bird", - model: "Bird Zero", - }, - ], - }, - responseHeaders: { - "X-Page-Token": "value", - }, - responseType: "JSON", - headers: { - "EXTRA-HEADER": "value", - Authorization: "", - }, - }); - }); -}); diff --git a/tests/wire/ticketing/projects.test.ts b/tests/wire/ticketing/projects.test.ts deleted file mode 100644 index 4ae21389f..000000000 --- a/tests/wire/ticketing/projects.test.ts +++ /dev/null @@ -1,230 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("ProjectsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "fb8c55b6-1cb8-4b4c-9fb6-17924231619d", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Q1 Platform", - description: "For tracking all tasks related to Platform for Q1", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/projects") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.projects.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "fb8c55b6-1cb8-4b4c-9fb6-17924231619d", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Q1 Platform", - description: "For tracking all tasks related to Platform for Q1", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "fb8c55b6-1cb8-4b4c-9fb6-17924231619d", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Q1 Platform", - description: "For tracking all tasks related to Platform for Q1", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ticketing/v1/projects/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.projects.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "fb8c55b6-1cb8-4b4c-9fb6-17924231619d", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Q1 Platform", - description: "For tracking all tasks related to Platform for Q1", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }); - }); - - test("usersList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Gil Feig", - email_address: "help@merge.dev", - is_active: true, - teams: ["28b54125-287f-494d-965e-3c5b330c9a68", "17a54124-287f-494d-965e-3c5b330c9a68"], - roles: ["23454124-387f-494d-265e-345b330c9123"], - avatar: "https://merge.dev/user_profile_pic.png", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/projects/parent_id/users") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.projects.usersList("parent_id", { - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "roles", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Gil Feig", - emailAddress: "help@merge.dev", - isActive: true, - teams: ["28b54125-287f-494d-965e-3c5b330c9a68", "17a54124-287f-494d-965e-3c5b330c9a68"], - roles: ["23454124-387f-494d-265e-345b330c9123"], - avatar: "https://merge.dev/user_profile_pic.png", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); -}); diff --git a/tests/wire/ticketing/regenerateKey.test.ts b/tests/wire/ticketing/regenerateKey.test.ts deleted file mode 100644 index 5f9b50248..000000000 --- a/tests/wire/ticketing/regenerateKey.test.ts +++ /dev/null @@ -1,37 +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("RegenerateKeyClient", () => { - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { name: "Remote Deployment Key 1" }; - const rawResponseBody = { - name: "Remote Deployment Key 1", - key: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", - }; - server - .mockEndpoint() - .post("/ticketing/v1/regenerate-key") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.regenerateKey.create({ - name: "Remote Deployment Key 1", - }); - expect(response).toEqual({ - name: "Remote Deployment Key 1", - key: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", - }); - }); -}); diff --git a/tests/wire/ticketing/roles.test.ts b/tests/wire/ticketing/roles.test.ts deleted file mode 100644 index 16392d806..000000000 --- a/tests/wire/ticketing/roles.test.ts +++ /dev/null @@ -1,150 +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("RolesClient", () => { - 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: "23454124-387f-494d-265e-345b330c9123", - remote_id: "123", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Member", - ticket_actions: ["VIEW", "EDIT", "CREATE"], - ticket_access: "ALL", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "23454124-387f-494d-265e-345b330c9123", - remoteId: "123", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Member", - ticketActions: ["VIEW", "EDIT", "CREATE"], - ticketAccess: "ALL", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "23454124-387f-494d-265e-345b330c9123", - remote_id: "123", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Member", - ticket_actions: ["VIEW", "EDIT", "CREATE"], - ticket_access: "ALL", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ticketing/v1/roles/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.roles.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "23454124-387f-494d-265e-345b330c9123", - remoteId: "123", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Member", - ticketActions: ["VIEW", "EDIT", "CREATE"], - ticketAccess: "ALL", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/ticketing/scopes.test.ts b/tests/wire/ticketing/scopes.test.ts deleted file mode 100644 index 59549f480..000000000 --- a/tests/wire/ticketing/scopes.test.ts +++ /dev/null @@ -1,294 +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("ScopesClient", () => { - test("default_scopes_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - common_models: [ - { - model_name: "Employee", - model_permissions: { READ: { is_enabled: true }, WRITE: { is_enabled: false } }, - field_permissions: { - enabled_fields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabled_fields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/default-scopes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.scopes.defaultScopesRetrieve(); - expect(response).toEqual({ - commonModels: [ - { - modelName: "Employee", - modelPermissions: { - READ: { - isEnabled: true, - }, - WRITE: { - isEnabled: false, - }, - }, - fieldPermissions: { - enabledFields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabledFields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }); - }); - - test("linked_account_scopes_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - common_models: [ - { - model_name: "Employee", - model_permissions: { READ: { is_enabled: true }, WRITE: { is_enabled: false } }, - field_permissions: { - enabled_fields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabled_fields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/linked-account-scopes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.scopes.linkedAccountScopesRetrieve(); - expect(response).toEqual({ - commonModels: [ - { - modelName: "Employee", - modelPermissions: { - READ: { - isEnabled: true, - }, - WRITE: { - isEnabled: false, - }, - }, - fieldPermissions: { - enabledFields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabledFields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }); - }); - - test("linked_account_scopes_create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { - common_models: [ - { - model_name: "Employee", - model_permissions: { READ: { is_enabled: true }, WRITE: { is_enabled: false } }, - field_permissions: { - enabled_fields: ["avatar", "home_location"], - disabled_fields: ["work_location"], - }, - }, - { model_name: "Benefit", model_permissions: { WRITE: { is_enabled: false } } }, - ], - }; - const rawResponseBody = { - common_models: [ - { - model_name: "Employee", - model_permissions: { READ: { is_enabled: true }, WRITE: { is_enabled: false } }, - field_permissions: { - enabled_fields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabled_fields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }; - server - .mockEndpoint() - .post("/ticketing/v1/linked-account-scopes") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = 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, - }, - }, - }, - ], - }); - expect(response).toEqual({ - commonModels: [ - { - modelName: "Employee", - modelPermissions: { - READ: { - isEnabled: true, - }, - WRITE: { - isEnabled: false, - }, - }, - fieldPermissions: { - enabledFields: [ - "avatar", - "created_at", - "custom_fields", - "date_of_birth", - "first_name", - "gender", - "remote_created_at", - "remote_data", - ], - disabledFields: [ - "company", - "employments", - "groups", - "home_location", - "manager", - "work_location", - ], - }, - }, - ], - }); - }); -}); diff --git a/tests/wire/ticketing/syncStatus.test.ts b/tests/wire/ticketing/syncStatus.test.ts deleted file mode 100644 index f3f691f8f..000000000 --- a/tests/wire/ticketing/syncStatus.test.ts +++ /dev/null @@ -1,63 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("SyncStatusClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - model_name: "Ticket", - model_id: "ticketing.Ticket", - last_sync_start: "2021-03-30T19:44:18Z", - next_sync_start: "2021-03-30T20:44:18Z", - last_sync_result: "SYNCING", - last_sync_finished: "2021-03-30T19:55:18Z", - status: "SYNCING", - is_initial_sync: true, - selective_sync_configurations_usage: "IN_NEXT_SYNC", - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/sync-status") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.syncStatus.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - modelName: "Ticket", - modelId: "ticketing.Ticket", - lastSyncStart: new Date("2021-03-30T19:44:18.000Z"), - nextSyncStart: new Date("2021-03-30T20:44:18.000Z"), - lastSyncResult: "SYNCING", - lastSyncFinished: new Date("2021-03-30T19:55:18.000Z"), - status: "SYNCING", - isInitialSync: true, - selectiveSyncConfigurationsUsage: "IN_NEXT_SYNC", - }, - ], - }); - }); -}); diff --git a/tests/wire/ticketing/tags.test.ts b/tests/wire/ticketing/tags.test.ts deleted file mode 100644 index 2cc65a082..000000000 --- a/tests/wire/ticketing/tags.test.ts +++ /dev/null @@ -1,136 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("TagsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - id: "17a54124-287f-494d-965e-3c5b330c9a68", - name: "Ticketing API", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - ], - }; - server.mockEndpoint().get("/ticketing/v1/tags").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.ticketing.tags.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - id: "17a54124-287f-494d-965e-3c5b330c9a68", - name: "Ticketing API", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - id: "17a54124-287f-494d-965e-3c5b330c9a68", - name: "Ticketing API", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ticketing/v1/tags/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.tags.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - id: "17a54124-287f-494d-965e-3c5b330c9a68", - name: "Ticketing API", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/ticketing/teams.test.ts b/tests/wire/ticketing/teams.test.ts deleted file mode 100644 index 9fc07959d..000000000 --- a/tests/wire/ticketing/teams.test.ts +++ /dev/null @@ -1,146 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("TeamsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Platform", - description: "Platform and Integrations Team", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/teams") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.teams.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Platform", - description: "Platform and Integrations Team", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Platform", - description: "Platform and Integrations Team", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ticketing/v1/teams/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.teams.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Platform", - description: "Platform and Integrations Team", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/ticketing/tickets.test.ts b/tests/wire/ticketing/tickets.test.ts deleted file mode 100644 index 2befcf4f4..000000000 --- a/tests/wire/ticketing/tickets.test.ts +++ /dev/null @@ -1,1568 +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("TicketsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Please add more integrations", - assignees: ["17a54124-287f-494d-965e-3c5b330c9a68"], - assigned_teams: ["4857c306-c1f9-489e-a6b6-90902f736dfe"], - creator: "creator", - due_date: "2022-10-11T00:00:00Z", - status: "OPEN", - description: "Can you please add more integrations? It'll make syncing data much easier!", - collections: ["fb8c55b6-1cb8-4b4c-9fb6-17924231619d"], - ticket_type: "incident", - account: "account", - contact: "contact", - parent_ticket: "parent_ticket", - attachments: ["42747df1-95e7-46e2-93cc-66f1191edca5", "92f972d0-2526-434b-9409-4c3b468e08f0"], - access_level: "COMPANY", - tags: ["enterprise", "other-tag"], - roles: ["21a54124-397f-494d-985e-3c5b330b8a68", "17a54124-287f-494d-965e-3c5b330c9a68"], - 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" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Please add more integrations", - assignees: ["17a54124-287f-494d-965e-3c5b330c9a68"], - assignedTeams: ["4857c306-c1f9-489e-a6b6-90902f736dfe"], - creator: "creator", - dueDate: new Date("2022-10-11T00:00:00.000Z"), - status: "OPEN", - description: "Can you please add more integrations? It'll make syncing data much easier!", - collections: ["fb8c55b6-1cb8-4b4c-9fb6-17924231619d"], - ticketType: "incident", - account: "account", - contact: "contact", - parentTicket: "parent_ticket", - attachments: ["42747df1-95e7-46e2-93cc-66f1191edca5", "92f972d0-2526-434b-9409-4c3b468e08f0"], - accessLevel: "COMPANY", - tags: ["enterprise", "other-tag"], - roles: ["21a54124-397f-494d-985e-3c5b330b8a68", "17a54124-287f-494d-965e-3c5b330c9a68"], - 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", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Please add more integrations", - assignees: ["17a54124-287f-494d-965e-3c5b330c9a68"], - assigned_teams: ["4857c306-c1f9-489e-a6b6-90902f736dfe"], - creator: "creator", - due_date: "2022-10-11T00:00:00Z", - status: "OPEN", - description: "Can you please add more integrations? It'll make syncing data much easier!", - collections: ["fb8c55b6-1cb8-4b4c-9fb6-17924231619d"], - ticket_type: "incident", - account: "account", - contact: "contact", - parent_ticket: "parent_ticket", - attachments: ["42747df1-95e7-46e2-93cc-66f1191edca5", "92f972d0-2526-434b-9409-4c3b468e08f0"], - access_level: "COMPANY", - tags: ["enterprise", "other-tag"], - roles: ["21a54124-397f-494d-985e-3c5b330b8a68", "17a54124-287f-494d-965e-3c5b330c9a68"], - 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" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/ticketing/v1/tickets") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.tickets.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Please add more integrations", - assignees: ["17a54124-287f-494d-965e-3c5b330c9a68"], - assignedTeams: ["4857c306-c1f9-489e-a6b6-90902f736dfe"], - creator: "creator", - dueDate: new Date("2022-10-11T00:00:00.000Z"), - status: "OPEN", - description: "Can you please add more integrations? It'll make syncing data much easier!", - collections: ["fb8c55b6-1cb8-4b4c-9fb6-17924231619d"], - ticketType: "incident", - account: "account", - contact: "contact", - parentTicket: "parent_ticket", - attachments: ["42747df1-95e7-46e2-93cc-66f1191edca5", "92f972d0-2526-434b-9409-4c3b468e08f0"], - accessLevel: "COMPANY", - tags: ["enterprise", "other-tag"], - roles: ["21a54124-397f-494d-985e-3c5b330b8a68", "17a54124-287f-494d-965e-3c5b330c9a68"], - 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", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Please add more integrations", - assignees: ["17a54124-287f-494d-965e-3c5b330c9a68"], - assigned_teams: ["4857c306-c1f9-489e-a6b6-90902f736dfe"], - creator: "creator", - due_date: "2022-10-11T00:00:00Z", - status: "OPEN", - description: "Can you please add more integrations? It'll make syncing data much easier!", - collections: ["fb8c55b6-1cb8-4b4c-9fb6-17924231619d"], - ticket_type: "incident", - account: "account", - contact: "contact", - parent_ticket: "parent_ticket", - attachments: ["42747df1-95e7-46e2-93cc-66f1191edca5", "92f972d0-2526-434b-9409-4c3b468e08f0"], - access_level: "COMPANY", - tags: ["enterprise", "other-tag"], - roles: ["21a54124-397f-494d-985e-3c5b330b8a68", "17a54124-287f-494d-965e-3c5b330c9a68"], - 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" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - server - .mockEndpoint() - .get("/ticketing/v1/tickets/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.tickets.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - remoteFields: "priority", - showEnumOrigins: "priority", - }); - expect(response).toEqual({ - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Please add more integrations", - assignees: ["17a54124-287f-494d-965e-3c5b330c9a68"], - assignedTeams: ["4857c306-c1f9-489e-a6b6-90902f736dfe"], - creator: "creator", - dueDate: new Date("2022-10-11T00:00:00.000Z"), - status: "OPEN", - description: "Can you please add more integrations? It'll make syncing data much easier!", - collections: ["fb8c55b6-1cb8-4b4c-9fb6-17924231619d"], - ticketType: "incident", - account: "account", - contact: "contact", - parentTicket: "parent_ticket", - attachments: ["42747df1-95e7-46e2-93cc-66f1191edca5", "92f972d0-2526-434b-9409-4c3b468e08f0"], - accessLevel: "COMPANY", - tags: ["enterprise", "other-tag"], - roles: ["21a54124-397f-494d-985e-3c5b330b8a68", "17a54124-287f-494d-965e-3c5b330c9a68"], - 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", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("partialUpdate", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Please add more integrations", - assignees: ["17a54124-287f-494d-965e-3c5b330c9a68"], - assigned_teams: ["4857c306-c1f9-489e-a6b6-90902f736dfe"], - creator: "creator", - due_date: "2022-10-11T00:00:00Z", - status: "OPEN", - description: "Can you please add more integrations? It'll make syncing data much easier!", - collections: ["fb8c55b6-1cb8-4b4c-9fb6-17924231619d"], - ticket_type: "incident", - account: "account", - contact: "contact", - parent_ticket: "parent_ticket", - attachments: ["42747df1-95e7-46e2-93cc-66f1191edca5", "92f972d0-2526-434b-9409-4c3b468e08f0"], - access_level: "COMPANY", - tags: ["enterprise", "other-tag"], - roles: ["21a54124-397f-494d-985e-3c5b330b8a68", "17a54124-287f-494d-965e-3c5b330c9a68"], - 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" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .patch("/ticketing/v1/tickets/id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.tickets.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Please add more integrations", - assignees: ["17a54124-287f-494d-965e-3c5b330c9a68"], - assignedTeams: ["4857c306-c1f9-489e-a6b6-90902f736dfe"], - creator: "creator", - dueDate: new Date("2022-10-11T00:00:00.000Z"), - status: "OPEN", - description: "Can you please add more integrations? It'll make syncing data much easier!", - collections: ["fb8c55b6-1cb8-4b4c-9fb6-17924231619d"], - ticketType: "incident", - account: "account", - contact: "contact", - parentTicket: "parent_ticket", - attachments: ["42747df1-95e7-46e2-93cc-66f1191edca5", "92f972d0-2526-434b-9409-4c3b468e08f0"], - accessLevel: "COMPANY", - tags: ["enterprise", "other-tag"], - roles: ["21a54124-397f-494d-985e-3c5b330b8a68", "17a54124-287f-494d-965e-3c5b330c9a68"], - 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", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("viewersList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - team: "team", - user: "user", - }, - ], - }; - server - .mockEndpoint() - .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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - team: "team", - user: "user", - }, - ], - }); - }); - - test("metaPatchRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/ticketing/v1/tickets/meta/patch/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.tickets.metaPatchRetrieve("id"); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/ticketing/v1/tickets/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.tickets.metaPostRetrieve({ - collectionId: "collection_id", - ticketType: "ticket_type", - }); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("remoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: [{}], - }, - ], - }; - server - .mockEndpoint() - .get("/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({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: [{}], - }, - ], - }); - }); -}); diff --git a/tests/wire/ticketing/users.test.ts b/tests/wire/ticketing/users.test.ts deleted file mode 100644 index 50dbf5c94..000000000 --- a/tests/wire/ticketing/users.test.ts +++ /dev/null @@ -1,166 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("UsersClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Gil Feig", - email_address: "help@merge.dev", - is_active: true, - teams: ["28b54125-287f-494d-965e-3c5b330c9a68", "17a54124-287f-494d-965e-3c5b330c9a68"], - roles: ["23454124-387f-494d-265e-345b330c9123"], - avatar: "https://merge.dev/user_profile_pic.png", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/users") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.users.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - emailAddress: "email_address", - expand: "roles", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - team: "team", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Gil Feig", - emailAddress: "help@merge.dev", - isActive: true, - teams: ["28b54125-287f-494d-965e-3c5b330c9a68", "17a54124-287f-494d-965e-3c5b330c9a68"], - roles: ["23454124-387f-494d-265e-345b330c9123"], - avatar: "https://merge.dev/user_profile_pic.png", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Gil Feig", - email_address: "help@merge.dev", - is_active: true, - teams: ["28b54125-287f-494d-965e-3c5b330c9a68", "17a54124-287f-494d-965e-3c5b330c9a68"], - roles: ["23454124-387f-494d-265e-345b330c9123"], - avatar: "https://merge.dev/user_profile_pic.png", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ticketing/v1/users/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.users.retrieve("id", { - expand: "roles", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Gil Feig", - emailAddress: "help@merge.dev", - isActive: true, - teams: ["28b54125-287f-494d-965e-3c5b330c9a68", "17a54124-287f-494d-965e-3c5b330c9a68"], - roles: ["23454124-387f-494d-265e-345b330c9123"], - avatar: "https://merge.dev/user_profile_pic.png", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/ticketing/webhookReceivers.test.ts b/tests/wire/ticketing/webhookReceivers.test.ts deleted file mode 100644 index cd1948c0a..000000000 --- a/tests/wire/ticketing/webhookReceivers.test.ts +++ /dev/null @@ -1,64 +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("WebhookReceiversClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = [{ event: "event", is_active: true, key: "key" }]; - server - .mockEndpoint() - .get("/ticketing/v1/webhook-receivers") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.webhookReceivers.list(); - expect(response).toEqual([ - { - event: "event", - isActive: true, - key: "key", - }, - ]); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { event: "event", is_active: true }; - const rawResponseBody = { event: "event", is_active: true, key: "key" }; - server - .mockEndpoint() - .post("/ticketing/v1/webhook-receivers") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.webhookReceivers.create({ - event: "event", - isActive: true, - }); - expect(response).toEqual({ - event: "event", - isActive: true, - key: "key", - }); - }); -});